import{_ as t,h as e,P as n,l as i,k as r,c as o,g as a,a as s,a$ as l,bP as u,bi as c,G as h,X as p,aV as d,b as f,aU as g,n as v,I as y,e as m,ci as x,F as _,aW as b,H as w,Z as S,be as C,v as T,bV as M,aO as I,bR as D,f as k,s as A,a6 as O,ax as P,bv as E,aY as B,bf as R,bU as L,a_ as z,b5 as N,$ as F,L as H,bu as $,C as V,cj as j,b4 as W,aj as G,ck as U,b6 as X,cl as K,r as Y,aD as q,aE as Z,aF as Q,aG as J,bb as tt,aI as et,m as nt,bE as it,j as rt,ba as ot,u as at,bC as st,b8 as lt,y as ut,b$ as ct,cm as ht,ay as pt,o as dt,p as ft,q as gt,b_ as vt,bg as yt,aA as mt,aZ as xt,bF as _t,D as bt,bt as wt,bA as St,t as Ct,z as Tt,bc as Mt,aJ as It,W as Dt,cb as kt,aP as At,aQ as Ot}from"./index-b8cd3494.js";import{p as Pt,d as Et,D as Bt,g as Rt,i as Lt}from"./index-60c3666d.js";import{l as zt,u as Nt}from"./index-287ba071.js";import{o as Ft}from"./omit-cfb7cc57.js";import{i as Ht}from"./isPlainObject-162b6460.js";import{R as $t}from"./RightOutlined-6c65bef5.js";import{r as Vt,q as jt}from"./index-1b6a7101.js";import{h as Wt}from"./http-02fe43dc.js";function Gt(t,e){const{key:n}=t;let i;return"value"in t&&({value:i}=t),null!=n?n:void 0!==i?i:`rc-index-key-${e}`}function Ut(t,e){const{label:n,value:i,options:r}=t||{};return{label:n||(e?"children":"label"),value:i||"value",options:r||"options"}}function Xt(e){const n=t({},e);return"props"in n||Object.defineProperty(n,"props",{get:()=>n}),n}var Kt=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Yt=e({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:n.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:n.oneOfType([Number,Boolean]).def(!0),popupElement:n.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,n){let{slots:u,attrs:c,expose:h}=n;const p=i((()=>{const{dropdownMatchSelectWidth:t}=e;return(t=>{const e=!0===t?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}})(t)})),d=r();return h({getPopupElement:()=>d.value}),()=>{const n=t(t({},e),c),{empty:i=!1}=n,r=Kt(n,["empty"]),{visible:h,dropdownAlign:f,prefixCls:g,popupElement:v,dropdownClassName:y,dropdownStyle:m,direction:x="ltr",placement:_,dropdownMatchSelectWidth:b,containerWidth:w,dropdownRender:S,animation:C,transitionName:T,getPopupContainer:M,getTriggerDOMNode:I,onPopupVisibleChange:D,onPopupMouseEnter:k,onPopupFocusin:A,onPopupFocusout:O}=r,P=`${g}-dropdown`;let E=v;S&&(E=S({menuNode:v,props:e}));const B=C?`${P}-${C}`:T,R=t({minWidth:`${w}px`},m);return"number"==typeof b?R.width=`${b}px`:b&&(R.width=`${w}px`),o(l,a(a({},e),{},{showAction:D?["click"]:[],hideAction:D?["click"]:[],popupPlacement:_||("rtl"===x?"bottomRight":"bottomLeft"),builtinPlacements:p.value,prefixCls:P,popupTransitionName:B,popupAlign:f,popupVisible:h,getPopupContainer:M,popupClassName:s(y,{[`${P}-empty`]:i}),popupStyle:R,getTriggerDOMNode:I,onPopupVisibleChange:D}),{default:u.default,popup:()=>o("div",{ref:d,onMouseenter:k,onFocusin:A,onFocusout:O},[E])})}}}),qt=(t,e)=>{let{slots:n}=e;var i;const{class:r,customizeIcon:a,customizeIconProps:s,onMousedown:l,onClick:h}=t;let p;return p="function"==typeof a?a(s):u(a)?c(a):a,o("span",{class:r,onMousedown:t=>{t.preventDefault(),l&&l(t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:h,"aria-hidden":!0},[void 0!==p?p:o("span",{class:r.split(/\s+/).map((t=>`${t}-icon`))},[null===(i=n.default)||void 0===i?void 0:i.call(n)])])};qt.inheritAttrs=!1,qt.displayName="TransBtn",qt.props={class:String,customizeIcon:n.any,customizeIconProps:n.any,onMousedown:Function,onClick:Function};const Zt=qt;var Qt=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Jt=e({compatConfig:{MODE:3},props:{disabled:n.looseBool,type:n.string,value:n.any,tag:{type:String,default:"input"},size:n.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{expose:n}=e;const i=h(null);return n({focus:()=>{i.value&&i.value.focus()},blur:()=>{i.value&&i.value.blur()},input:i,setSelectionRange:(t,e,n)=>{var r;null===(r=i.value)||void 0===r||r.setSelectionRange(t,e,n)},select:()=>{var t;null===(t=i.value)||void 0===t||t.select()},getSelectionStart:()=>{var t;return null===(t=i.value)||void 0===t?void 0:t.selectionStart},getSelectionEnd:()=>{var t;return null===(t=i.value)||void 0===t?void 0:t.selectionEnd},getScrollTop:()=>{var t;return null===(t=i.value)||void 0===t?void 0:t.scrollTop}}),()=>{const{tag:e,value:n}=t,r=Qt(t,["tag","value"]);return o(e,a(a({},r),{},{ref:i,value:n}),null)}}});function te(t){const e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var ee=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const ne=e({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:n.looseBool,type:n.string,value:n.any,lazy:n.bool.def(!0),tag:{type:String,default:"input"},size:n.string,style:n.oneOfType([String,Object]),class:n.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{emit:n,attrs:s,expose:l}=e;const u=h(null),c=r(),d=r(!1);p([()=>t.value,d],(()=>{d.value||(c.value=t.value)}),{immediate:!0});const f=t=>{n("change",t)},g=t=>{d.value=!0,t.target.composing=!0,n("compositionstart",t)},v=t=>{d.value=!1,t.target.composing=!1,n("compositionend",t);const e=document.createEvent("HTMLEvents");e.initEvent("input",!0,!0),t.target.dispatchEvent(e),f(t)},y=e=>{d.value&&t.lazy?c.value=e.target.value:n("input",e)},m=t=>{n("blur",t)},x=t=>{n("focus",t)},_=t=>{n("keydown",t)},b=t=>{n("keyup",t)};l({focus:()=>{u.value&&u.value.focus()},blur:()=>{u.value&&u.value.blur()},input:i((()=>{var t;return null===(t=u.value)||void 0===t?void 0:t.input})),setSelectionRange:(t,e,n)=>{var i;null===(i=u.value)||void 0===i||i.setSelectionRange(t,e,n)},select:()=>{var t;null===(t=u.value)||void 0===t||t.select()},getSelectionStart:()=>{var t;return null===(t=u.value)||void 0===t?void 0:t.getSelectionStart()},getSelectionEnd:()=>{var t;return null===(t=u.value)||void 0===t?void 0:t.getSelectionEnd()},getScrollTop:()=>{var t;return null===(t=u.value)||void 0===t?void 0:t.getScrollTop()}});const w=t=>{n("mousedown",t)},S=t=>{n("paste",t)},C=i((()=>{return t.style&&"string"!=typeof t.style?(e=t.style,Object.keys(e).reduce(((t,n)=>null==e[n]?t:t+=`${n}: ${e[n]};`),"")):t.style;var e}));return()=>{const e=ee(t,["style","lazy"]);return o(Jt,a(a(a({},e),s),{},{style:C.value,onInput:y,onChange:f,onBlur:m,onFocus:x,ref:u,value:c.value,onCompositionstart:g,onCompositionend:v,onKeyup:b,onKeydown:_,onPaste:S,onMousedown:w}),null)}}}),ie=e({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:{inputRef:n.any,prefixCls:String,id:String,inputElement:n.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:n.oneOfType([n.number,n.string]),attrs:n.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},setup(e){let n=null;const i=d("VCSelectContainerEvent");return()=>{var r;const{prefixCls:a,id:l,inputElement:u,disabled:c,tabindex:h,autofocus:p,autocomplete:d,editable:g,activeDescendantId:v,value:y,onKeydown:m,onMousedown:x,onChange:_,onPaste:b,onCompositionstart:w,onCompositionend:S,onFocus:C,onBlur:T,open:M,inputRef:I,attrs:D}=e;let k=u||o(ne,null,null);const A=k.props||{},{onKeydown:O,onInput:P,onFocus:E,onBlur:B,onMousedown:R,onCompositionstart:L,onCompositionend:z,style:N}=A;return k=f(k,t(t(t(t(t({type:"search"},A),{id:l,ref:I,disabled:c,tabindex:h,lazy:!1,autocomplete:d||"off",autofocus:p,class:s(`${a}-selection-search-input`,null===(r=null==k?void 0:k.props)||void 0===r?void 0:r.class),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":v}),D),{value:g?y:"",readonly:!g,unselectable:g?null:"on",style:t(t({},N),{opacity:g?null:0}),onKeydown:t=>{m(t),O&&O(t)},onMousedown:t=>{x(t),R&&R(t)},onInput:t=>{_(t),P&&P(t)},onCompositionstart(t){w(t),L&&L(t)},onCompositionend(t){S(t),z&&z(t)},onPaste:b,onFocus:function(){clearTimeout(n),E&&E(arguments.length<=0?void 0:arguments[0]),C&&C(arguments.length<=0?void 0:arguments[0]),null==i||i.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n=setTimeout((()=>{B&&B(e[0]),T&&T(e[0]),null==i||i.blur(e[0])}),100)}}),"textarea"===k.type?{}:{type:"search"}),!0,!0),k}}}),re=Symbol("TreeSelectLegacyContextPropsKey");function oe(t){return g(re,t)}function ae(){return d(re,{})}const se={id:String,prefixCls:String,values:n.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:n.any,placeholder:n.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:n.oneOfType([n.number,n.string]),compositionStatus:Boolean,removeIcon:n.any,choiceTransitionName:String,maxTagCount:n.oneOfType([n.number,n.string]),maxTagTextLength:Number,maxTagPlaceholder:n.any.def((()=>t=>`+ ${t.length} ...`)),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},le=t=>{t.preventDefault(),t.stopPropagation()},ue=e({name:"MultipleSelectSelector",inheritAttrs:!1,props:se,setup(t){const e=h(),n=h(0),a=h(!1),l=ae(),u=i((()=>`${t.prefixCls}-selection`)),c=i((()=>t.open||"tags"===t.mode?t.searchValue:"")),d=i((()=>"tags"===t.mode||t.showSearch&&(t.open||a.value))),f=r("");function g(e,n,i,r,a){return o("span",{class:s(`${u.value}-item`,{[`${u.value}-item-disabled`]:i}),title:"string"==typeof e||"number"==typeof e?e.toString():void 0},[o("span",{class:`${u.value}-item-content`},[n]),r&&o(Zt,{class:`${u.value}-item-remove`,onMousedown:le,onClick:a,customizeIcon:t.removeIcon},{default:()=>[m("×")]})])}function b(e){const{disabled:n,label:i,value:r,option:a}=e,s=!t.disabled&&!n;let u=i;if("number"==typeof t.maxTagTextLength&&("string"==typeof i||"number"==typeof i)){const e=String(u);e.length>t.maxTagTextLength&&(u=`${e.slice(0,t.maxTagTextLength)}...`)}const c=n=>{var i;n&&n.stopPropagation(),null===(i=t.onRemove)||void 0===i||i.call(t,e)};return"function"==typeof t.tagRender?function(e,n,i,r,a,s){var u;let c=s;return l.keyEntities&&(c=(null===(u=l.keyEntities[e])||void 0===u?void 0:u.node)||{}),o("span",{key:e,onMousedown:e=>{le(e),t.onToggleOpen(!open)}},[t.tagRender({label:n,value:e,disabled:i,closable:r,onClose:a,option:c})])}(r,u,n,s,c,a):g(i,u,n,s,c)}function w(e){const{maxTagPlaceholder:n=t=>`+ ${t.length} ...`}=t,i="function"==typeof n?n(e):n;return g(i,i,!1)}v((()=>{f.value=c.value})),y((()=>{p(f,(()=>{n.value=e.value.scrollWidth}),{flush:"post",immediate:!0})}));const S=e=>{const n=e.target.composing;f.value=e.target.value,n||t.onInputChange(e)};return()=>{const{id:i,prefixCls:r,values:s,open:l,inputRef:h,placeholder:p,disabled:g,autofocus:v,autocomplete:y,activeDescendantId:C,tabindex:T,compositionStatus:M,onInputPaste:I,onInputKeyDown:D,onInputMouseDown:k,onInputCompositionStart:A,onInputCompositionEnd:O}=t,P=o("div",{class:`${u.value}-search`,style:{width:n.value+"px"},key:"input"},[o(ie,{inputRef:h,open:l,prefixCls:r,id:i,inputElement:null,disabled:g,autofocus:v,autocomplete:y,editable:d.value,activeDescendantId:C,value:f.value,onKeydown:D,onMousedown:k,onChange:S,onPaste:I,onCompositionstart:A,onCompositionend:O,tabindex:T,attrs:Pt(t,!0),onFocus:()=>a.value=!0,onBlur:()=>a.value=!1},null),o("span",{ref:e,class:`${u.value}-search-mirror`,"aria-hidden":!0},[f.value,m(" ")])]),E=o(x,{prefixCls:`${u.value}-overflow`,data:s,renderItem:b,renderRest:w,suffix:P,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return o(_,null,[E,!s.length&&!c.value&&!M&&o("span",{class:`${u.value}-placeholder`},[p])])}}}),ce={inputElement:n.any,id:String,prefixCls:String,values:n.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:n.any,placeholder:n.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:n.oneOfType([n.number,n.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},he=e({name:"SingleSelector",setup(t){const e=h(!1),n=i((()=>"combobox"===t.mode)),r=i((()=>n.value||t.showSearch)),a=i((()=>{let i=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(i=t.activeValue),i})),s=ae();p([n,()=>t.activeValue],(()=>{n.value&&(e.value=!1)}),{immediate:!0});const l=i((()=>!("combobox"!==t.mode&&!t.open&&!t.showSearch)&&(!!a.value||t.compositionStatus))),u=i((()=>{const e=t.values[0];return!e||"string"!=typeof e.label&&"number"!=typeof e.label?void 0:e.label.toString()})),c=()=>{if(t.values[0])return null;const e=l.value?{visibility:"hidden"}:void 0;return o("span",{class:`${t.prefixCls}-selection-placeholder`,style:e},[t.placeholder])},d=n=>{n.target.composing||(e.value=!0,t.onInputChange(n))};return()=>{var e,i,h,p;const{inputElement:f,prefixCls:g,id:v,values:y,inputRef:m,disabled:x,autofocus:b,autocomplete:w,activeDescendantId:S,open:C,tabindex:T,optionLabelRender:M,onInputKeyDown:I,onInputMouseDown:D,onInputPaste:k,onInputCompositionStart:A,onInputCompositionEnd:O}=t,P=y[0];let E=null;if(P&&s.customSlots){const t=null!==(e=P.key)&&void 0!==e?e:P.value,n=(null===(i=s.keyEntities[t])||void 0===i?void 0:i.node)||{};E=s.customSlots[null===(h=n.slots)||void 0===h?void 0:h.title]||s.customSlots.title||P.label,"function"==typeof E&&(E=E(n))}else E=M&&P?M(P.option):null==P?void 0:P.label;return o(_,null,[o("span",{class:`${g}-selection-search`},[o(ie,{inputRef:m,prefixCls:g,id:v,open:C,inputElement:f,disabled:x,autofocus:b,autocomplete:w,editable:r.value,activeDescendantId:S,value:a.value,onKeydown:I,onMousedown:D,onChange:d,onPaste:k,onCompositionstart:A,onCompositionend:O,tabindex:T,attrs:Pt(t,!0)},null)]),!n.value&&P&&!l.value&&o("span",{class:`${g}-selection-item`,title:u.value},[o(_,{key:null!==(p=P.key)&&void 0!==p?p:P.value},[E])]),c()])}}});he.props=ce,he.inheritAttrs=!1;const pe=he;function de(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;return w((()=>{clearTimeout(t)})),[()=>n,function(i){(i||null===n)&&(n=i),clearTimeout(t),t=setTimeout((()=>{n=null}),e)}]}function fe(){const t=e=>{t.current=e};return t}const ge=e({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:n.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:n.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:n.oneOfType([n.number,n.string]),disabled:{type:Boolean,default:void 0},placeholder:n.any,removeIcon:n.any,maxTagCount:n.oneOfType([n.number,n.string]),maxTagTextLength:Number,maxTagPlaceholder:n.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(t,e){let{expose:n}=e;const i=fe(),s=r(!1),[l,u]=de(0),c=e=>{const{which:n}=e;var i;n!==b.UP&&n!==b.DOWN||e.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(e),n!==b.ENTER||"tags"!==t.mode||s.value||t.open||t.onSearchSubmit(e.target.value),i=n,[b.ESC,b.SHIFT,b.BACKSPACE,b.TAB,b.WIN_KEY,b.ALT,b.META,b.WIN_KEY_RIGHT,b.CTRL,b.SEMICOLON,b.EQUALS,b.CAPS_LOCK,b.CONTEXT_MENU,b.F1,b.F2,b.F3,b.F4,b.F5,b.F6,b.F7,b.F8,b.F9,b.F10,b.F11,b.F12].includes(i)||t.onToggleOpen(!0)},h=()=>{u(!0)};let p=null;const d=e=>{!1!==t.onSearch(e,!0,s.value)&&t.onToggleOpen(!0)},f=()=>{s.value=!0},g=e=>{s.value=!1,"combobox"!==t.mode&&d(e.target.value)},v=e=>{let{target:{value:n}}=e;if(t.tokenWithEnter&&p&&/[\r\n]/.test(p)){const t=p.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,p)}p=null,d(n)},y=t=>{const{clipboardData:e}=t,n=e.getData("text");p=n},m=t=>{let{target:e}=t;if(e!==i.current){void 0!==document.body.style.msTouchAction?setTimeout((()=>{i.current.focus()})):i.current.focus()}},x=e=>{const n=l();e.target===i.current||n||e.preventDefault(),("combobox"===t.mode||t.showSearch&&n)&&t.open||(t.open&&t.onSearch("",!0,!1),t.onToggleOpen())};return n({focus:()=>{i.current.focus()},blur:()=>{i.current.blur()}}),()=>{const{prefixCls:e,domRef:n,mode:r}=t,l={inputRef:i,onInputKeyDown:c,onInputMouseDown:h,onInputChange:v,onInputPaste:y,compositionStatus:s.value,onInputCompositionStart:f,onInputCompositionEnd:g},u=o("multiple"===r||"tags"===r?ue:pe,a(a({},t),l),null);return o("div",{ref:n,class:`${e}-selector`,onClick:m,onMousedown:x},[u])}}}),ve=ge;const ye=Symbol("BaseSelectContextKey");function me(){return d(ye,{})}function xe(t){if(!S(t))return C(t);const e=new Proxy({},{get:(e,n,i)=>Reflect.get(t.value,n,i),set:(e,n,i)=>(t.value[n]=i,!0),deleteProperty:(e,n)=>Reflect.deleteProperty(t.value,n),has:(e,n)=>Reflect.has(t.value,n),ownKeys:()=>Object.keys(t.value),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0})});return C(e)}var _e=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const be=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],we=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:n.any,placeholder:n.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:n.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:n.any,clearIcon:n.any,removeIcon:n.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function});function Se(t){return"tags"===t||"multiple"===t}const Ce=e({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:T(t(t({},{prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:n.any,emptyOptions:Boolean}),we()),{showAction:[],notFoundContent:"Not Found"}),setup(e,n){let{attrs:l,expose:u,slots:c}=n;const d=i((()=>Se(e.mode))),x=i((()=>void 0!==e.showSearch?e.showSearch:d.value||"combobox"===e.mode)),_=h(!1);y((()=>{_.value=zt()}));const S=ae(),C=h(null),T=fe(),D=h(null),k=h(null),A=h(null),O=r(!1),[P,E,B]=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const e=h(!1);let n;const i=()=>{clearTimeout(n)};return y((()=>{i()})),[e,(r,o)=>{i(),n=setTimeout((()=>{e.value=r,o&&o()}),t)},i]}();u({focus:()=>{var t;null===(t=k.value)||void 0===t||t.focus()},blur:()=>{var t;null===(t=k.value)||void 0===t||t.blur()},scrollTo:t=>{var e;return null===(e=A.value)||void 0===e?void 0:e.scrollTo(t)}});const R=i((()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"==typeof n||"number"==typeof n?String(n):""})),L=void 0!==e.open?e.open:e.defaultOpen,z=h(L),N=h(L),F=t=>{z.value=void 0!==e.open?e.open:t,N.value=z.value};p((()=>e.open),(()=>{F(e.open)}));const H=i((()=>!e.notFoundContent&&e.emptyOptions));v((()=>{N.value=z.value,(e.disabled||H.value&&N.value&&"combobox"===e.mode)&&(N.value=!1)}));const $=i((()=>!H.value&&N.value)),V=t=>{const n=void 0!==t?t:!N.value;N.value===n||e.disabled||(F(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n),!n&&Q.value&&(Q.value=!1,E(!1,(()=>{Z.value=!1,O.value=!1}))))},j=i((()=>(e.tokenSeparators||[]).some((t=>["\n","\r\n"].includes(t))))),W=(t,n,i)=>{var r,o;let a=!0,s=t;null===(r=e.onActiveValueChange)||void 0===r||r.call(e,null);const l=i?null:function(t,e){if(!e||!e.length)return null;let n=!1;const i=function t(e,i){let[r,...o]=i;if(!r)return[e];const a=e.split(r);return n=n||a.length>1,a.reduce(((e,n)=>[...e,...t(n,o)]),[]).filter((t=>t))}(t,e);return n?i:null}(t,e.tokenSeparators);return"combobox"!==e.mode&&l&&(s="",null===(o=e.onSearchSplit)||void 0===o||o.call(e,l),V(!1),a=!1),e.onSearch&&R.value!==s&&e.onSearch(s,{source:n?"typing":"effect"}),a},G=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};p(N,(()=>{N.value||d.value||"combobox"===e.mode||W("",!1,!1)}),{immediate:!0,flush:"post"}),p((()=>e.disabled),(()=>{z.value&&e.disabled&&F(!1),e.disabled&&!O.value&&E(!1)}),{immediate:!0});const[U,X]=de(),K=function(t){var n;const i=U(),{which:r}=t;if(r===b.ENTER&&("combobox"!==e.mode&&t.preventDefault(),N.value||V(!0)),X(!!R.value),r===b.BACKSPACE&&!i&&d.value&&!R.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const i=t[e];if(!i.disabled){t.splice(e,1),n=i;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];N.value&&A.value&&A.value.onKeydown(t,...a),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...a)},Y=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];N.value&&A.value&&A.value.onKeyup(t,...i),e.onKeyup&&e.onKeyup(t,...i)},q=t=>{const n=e.displayValues.filter((e=>e!==t));e.onDisplayValuesChange(n,{type:"remove",values:[t]})},Z=h(!1),Q=r(!1),J=()=>{Q.value=!0},tt=()=>{Q.value=!1};g("VCSelectContainerEvent",{focus:function(){E(!0),e.disabled||(e.onFocus&&!Z.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&V(!0)),Z.value=!0},blur:function(){if(Q.value)return;if(O.value=!0,E(!1,(()=>{Z.value=!1,O.value=!1,V(!1)})),e.disabled)return;const t=R.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const et=[];y((()=>{et.forEach((t=>clearTimeout(t))),et.splice(0,et.length)})),w((()=>{et.forEach((t=>clearTimeout(t))),et.splice(0,et.length)}));const nt=function(t){var n,i;const{target:r}=t,o=null===(n=D.value)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(r)){const t=setTimeout((()=>{var e;const n=et.indexOf(t);-1!==n&&et.splice(n,1),B(),_.value||o.contains(document.activeElement)||null===(e=k.value)||void 0===e||e.focus()}));et.push(t)}for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=e.onMousedown)||void 0===i||i.call(e,t,...s)},it=h(null),rt=()=>{};return y((()=>{p($,(()=>{var t;if($.value){const e=Math.ceil(null===(t=C.value)||void 0===t?void 0:t.offsetWidth);it.value===e||Number.isNaN(e)||(it.value=e)}}),{immediate:!0,flush:"post"})})),function(t,e,n){function i(i){var r,o,a;let s=i.target;s.shadowRoot&&i.composed&&(s=i.composedPath()[0]||s);const l=[null===(r=t[0])||void 0===r?void 0:r.value,null===(a=null===(o=t[1])||void 0===o?void 0:o.value)||void 0===a?void 0:a.getPopupElement()];e.value&&l.every((t=>t&&!t.contains(s)&&t!==s))&&n(!1)}y((()=>{window.addEventListener("mousedown",i)})),w((()=>{window.removeEventListener("mousedown",i)}))}([C,D],$,V),function(t){g(ye,t)}(xe(t(t({},M(e)),{open:N,triggerOpen:$,showSearch:x,multiple:d,toggleOpen:V}))),()=>{const n=t(t({},e),l),{prefixCls:i,id:r,open:u,defaultOpen:h,mode:p,showSearch:g,searchValue:v,onSearch:y,allowClear:_,clearIcon:b,showArrow:w,inputIcon:M,disabled:O,loading:E,getInputElement:B,getPopupContainer:L,placement:z,animation:F,transitionName:H,dropdownStyle:U,dropdownClassName:X,dropdownMatchSelectWidth:Z,dropdownRender:Q,dropdownAlign:et,showAction:ot,direction:at,tokenSeparators:st,tagRender:lt,optionLabelRender:ut,onPopupScroll:ct,onDropdownVisibleChange:ht,onFocus:pt,onBlur:dt,onKeyup:ft,onKeydown:gt,onMousedown:vt,onClear:yt,omitDomProps:mt,getRawInputElement:xt,displayValues:_t,onDisplayValuesChange:bt,emptyOptions:wt,activeDescendantId:St,activeValue:Ct,OptionList:Tt}=n,Mt=_e(n,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),It="combobox"===p&&B&&B()||null,Dt="function"==typeof xt&&xt(),kt=t({},Mt);let At;Dt&&(At=t=>{V(t)}),be.forEach((t=>{delete kt[t]})),null==mt||mt.forEach((t=>{delete kt[t]}));const Ot=void 0!==w?w:E||!d.value&&"combobox"!==p;let Pt,Et;Ot&&(Pt=o(Zt,{class:s(`${i}-arrow`,{[`${i}-arrow-loading`]:E}),customizeIcon:M,customizeIconProps:{loading:E,searchValue:R.value,open:N.value,focused:P.value,showSearch:x.value}},null));const Bt=()=>{null==yt||yt(),bt([],{type:"clear",values:_t}),W("",!1,!1)};!O&&_&&(_t.length||R.value)&&(Et=o(Zt,{class:`${i}-clear`,onMousedown:Bt,customizeIcon:b},{default:()=>[m("×")]}));const Rt=o(Tt,{ref:A},t(t({},S.customSlots),{option:c.option})),Lt=s(i,l.class,{[`${i}-focused`]:P.value,[`${i}-multiple`]:d.value,[`${i}-single`]:!d.value,[`${i}-allow-clear`]:_,[`${i}-show-arrow`]:Ot,[`${i}-disabled`]:O,[`${i}-loading`]:E,[`${i}-open`]:N.value,[`${i}-customize-input`]:It,[`${i}-show-search`]:x.value}),zt=o(Yt,{ref:D,disabled:O,prefixCls:i,visible:$.value,popupElement:Rt,containerWidth:it.value,animation:F,transitionName:H,dropdownStyle:U,dropdownClassName:X,direction:at,dropdownMatchSelectWidth:Z,dropdownRender:Q,dropdownAlign:et,placement:z,getPopupContainer:L,empty:wt,getTriggerDOMNode:()=>T.current,onPopupVisibleChange:At,onPopupMouseEnter:rt,onPopupFocusin:J,onPopupFocusout:tt},{default:()=>Dt?I(Dt)&&f(Dt,{ref:T},!1,!0):o(ve,a(a({},e),{},{domRef:T,prefixCls:i,inputElement:It,ref:k,id:r,showSearch:x.value,mode:p,activeDescendantId:St,tagRender:lt,optionLabelRender:ut,values:_t,open:N.value,onToggleOpen:V,activeValue:Ct,searchValue:R.value,onSearch:W,onSearchSubmit:G,onRemove:q,tokenWithEnter:j.value}),null)});let Nt;return Nt=Dt?zt:o("div",a(a({},kt),{},{class:Lt,ref:C,onMousedown:nt,onKeydown:K,onKeyup:Y}),[P.value&&!N.value&&o("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${_t.map((t=>{let{label:e,value:n}=t;return["number","string"].includes(typeof e)?e:n})).join(", ")}`]),zt,Pt,Et]),Nt}}}),Te=(e,n)=>{let{height:i,offset:r,prefixCls:a,onInnerResize:l}=e,{slots:u}=n;var c;let h={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:`${i}px`,position:"relative",overflow:"hidden"},p=t(t({},p),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),o("div",{style:h},[o(D,{onResize:t=>{let{offsetHeight:e}=t;e&&l&&l()}},{default:()=>[o("div",{style:p,class:s({[`${a}-holder-inner`]:a})},[null===(c=u.default)||void 0===c?void 0:c.call(u)])]})])};Te.displayName="Filter",Te.inheritAttrs=!1,Te.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Me=Te,Ie=(t,e)=>{let{setRef:n}=t,{slots:i}=e;var r;const o=k(null===(r=i.default)||void 0===r?void 0:r.call(i));return o&&o.length?c(o[0],{ref:n}):o};Ie.props={setRef:{type:Function,default:()=>{}}};const De=Ie;function ke(t){return"touches"in t?t.touches[0].pageY:t.pageY}const Ae=e({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup:()=>({moveRaf:null,scrollbarRef:fe(),thumbRef:fe(),visibleTimeout:null,state:C({dragging:!1,pageY:null,startTop:null,visible:!1})}),watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var t,e;null===(t=this.scrollbarRef.current)||void 0===t||t.addEventListener("touchstart",this.onScrollbarTouchStart,!!A&&{passive:!1}),null===(e=this.thumbRef.current)||void 0===e||e.addEventListener("touchstart",this.onMouseDown,!!A&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout((()=>{this.state.visible=!1}),2e3)},onScrollbarTouchStart(t){t.preventDefault()},onContainerMouseDown(t){t.stopPropagation(),t.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!A&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!A&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),O.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:n}=this.$props;t(this.state,{dragging:!0,pageY:ke(e),startTop:this.getTop()}),n(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(t){const{dragging:e,pageY:n,startTop:i}=this.state,{onScroll:r}=this.$props;if(O.cancel(this.moveRaf),e){const e=i+(ke(t)-n),o=this.getEnableScrollRange(),a=this.getEnableHeightRange(),s=a?e/a:0,l=Math.ceil(s*o);this.moveRaf=O((()=>{r(l)}))}},onMouseUp(){const{onStopMove:t}=this.$props;this.state.dragging=!1,t(),this.removeEvents()},getSpinHeight(){const{height:t,scrollHeight:e}=this.$props;let n=t/e*100;return n=Math.max(n,20),n=Math.min(n,t/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:t,height:e}=this.$props;return t-e||0},getEnableHeightRange(){const{height:t}=this.$props;return t-this.getSpinHeight()||0},getTop(){const{scrollTop:t}=this.$props,e=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===t||0===e)return 0;return t/e*n},showScroll(){const{height:t,scrollHeight:e}=this.$props;return e>t}},render(){const{dragging:t,visible:e}=this.state,{prefixCls:n}=this.$props,i=this.getSpinHeight()+"px",r=this.getTop()+"px",a=this.showScroll(),l=a&&e;return o("div",{ref:this.scrollbarRef,class:s(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[o("div",{ref:this.thumbRef,class:s(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:t}),style:{width:"100%",height:i,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});const Oe="object"==typeof navigator&&/Firefox/i.test(navigator.userAgent),Pe=(t,e)=>{let n=!1,i=null;return function(r){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=r<0&&t.value||r>0&&e.value;return o&&a?(clearTimeout(i),n=!1):a&&!n||(clearTimeout(i),n=!0,i=setTimeout((()=>{n=!1}),50)),!n&&a}};const Ee=14/15;var Be=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Re=[],Le={overflowY:"auto",overflowAnchor:"none"};const ze=e({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:n.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,n){let{expose:o}=n;const a=i((()=>{const{height:t,itemHeight:n,virtual:i}=e;return!(!1===i||!t||!n)})),s=i((()=>{const{height:t,itemHeight:n,data:i}=e;return a.value&&i&&n*i.length>t})),l=C({scrollTop:0,scrollMoving:!1}),u=i((()=>e.data||Re)),c=h([]);p(u,(()=>{c.value=E(u.value).slice()}),{immediate:!0});const d=h((t=>{}));p((()=>e.itemKey),(t=>{d.value="function"==typeof t?t:e=>null==e?void 0:e[t]}),{immediate:!0});const f=h(),g=h(),m=h(),x=t=>d.value(t),_={getKey:x};function b(t){let e;e="function"==typeof t?t(l.scrollTop):t;const n=function(t){let e=t;Number.isNaN(L.value)||(e=Math.min(e,L.value));return e=Math.max(e,0),e}(e);f.value&&(f.value.scrollTop=n),l.scrollTop=n}const[S,T,M,I]=function(t,e,n,i){const o=new Map,a=new Map,s=r(Symbol("update"));let l;function u(){O.cancel(l)}function c(){u(),l=O((()=>{o.forEach(((t,e)=>{if(t&&t.offsetParent){const{offsetHeight:n}=t;a.get(e)!==n&&(s.value=Symbol("update"),a.set(e,t.offsetHeight))}}))}))}return p(t,(()=>{s.value=Symbol("update")})),P((()=>{u()})),[function(t,r){const a=e(t),s=o.get(a);r?(o.set(a,r.$el||r),c()):o.delete(a),!s!=!r&&(r?null==n||n(t):null==i||i(t))},c,a,s]}(c,x,null,null),D=C({scrollHeight:void 0,start:0,end:0,offset:void 0}),k=h(0);y((()=>{B((()=>{var t;k.value=(null===(t=g.value)||void 0===t?void 0:t.offsetHeight)||0}))})),R((()=>{B((()=>{var t;k.value=(null===(t=g.value)||void 0===t?void 0:t.offsetHeight)||0}))})),p([a,c],(()=>{a.value||t(D,{scrollHeight:void 0,start:0,end:c.value.length-1,offset:void 0})}),{immediate:!0}),p([a,c,k,s],(()=>{a.value&&!s.value&&t(D,{scrollHeight:k.value,start:0,end:c.value.length-1,offset:void 0}),f.value&&(l.scrollTop=f.value.scrollTop)}),{immediate:!0}),p([s,a,()=>l.scrollTop,c,I,()=>e.height,k],(()=>{if(!a.value||!s.value)return;let n,i,r,o=0;const u=c.value.length,h=c.value,p=l.scrollTop,{itemHeight:d,height:f}=e,g=p+f;for(let t=0;t<u;t+=1){const e=h[t],a=x(e);let s=M.get(a);void 0===s&&(s=d);const l=o+s;void 0===n&&l>=p&&(n=t,i=o),void 0===r&&l>g&&(r=t),o=l}void 0===n&&(n=0,i=0,r=Math.ceil(f/d)),void 0===r&&(r=u-1),r=Math.min(r+1,u),t(D,{scrollHeight:o,start:n,end:r,offset:i})}),{immediate:!0});const L=i((()=>D.scrollHeight-e.height));const z=i((()=>l.scrollTop<=0)),N=i((()=>l.scrollTop>=L.value)),F=Pe(z,N);const[H,$]=function(t,e,n,i){let r=0,o=null,a=null,s=!1;const l=Pe(e,n);return[function(e){if(!t.value)return;O.cancel(o);const{deltaY:n}=e;r+=n,a=n,l(n)||(Oe||e.preventDefault(),o=O((()=>{i(r*(s?10:1)),r=0})))},function(e){t.value&&(s=e.detail===a)}]}(a,z,N,(t=>{b((e=>e+t))}));function V(t){a.value&&t.preventDefault()}!function(t,e,n){let i=!1,r=0,o=null,a=null;const s=()=>{o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=t=>{if(i){const e=Math.ceil(t.touches[0].pageY);let i=r-e;r=e,n(i)&&t.preventDefault(),clearInterval(a),a=setInterval((()=>{i*=Ee,(!n(i,!0)||Math.abs(i)<=.1)&&clearInterval(a)}),16)}},u=()=>{i=!1,s()},c=t=>{s(),1!==t.touches.length||i||(i=!0,r=Math.ceil(t.touches[0].pageY),o=t.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},h=()=>{};y((()=>{document.addEventListener("touchmove",h,{passive:!1}),p(t,(t=>{e.value.removeEventListener("touchstart",c),s(),clearInterval(a),t&&e.value.addEventListener("touchstart",c,{passive:!1})}),{immediate:!0})})),w((()=>{document.removeEventListener("touchmove",h)}))}(a,f,((t,e)=>!F(t,e)&&(H({preventDefault(){},deltaY:t}),!0)));const j=()=>{f.value&&(f.value.removeEventListener("wheel",H,!!A&&{passive:!1}),f.value.removeEventListener("DOMMouseScroll",$),f.value.removeEventListener("MozMousePixelScroll",V))};v((()=>{B((()=>{f.value&&(j(),f.value.addEventListener("wheel",H,!!A&&{passive:!1}),f.value.addEventListener("DOMMouseScroll",$),f.value.addEventListener("MozMousePixelScroll",V))}))})),w((()=>{j()}));const W=function(t,e,n,i,r,o,a,s){let l;return u=>{if(null==u)return void s();O.cancel(l);const c=e.value,h=i.itemHeight;if("number"==typeof u)a(u);else if(u&&"object"==typeof u){let e;const{align:i}=u;"index"in u?({index:e}=u):e=c.findIndex((t=>r(t)===u.key));const{offset:s=0}=u,p=(u,d)=>{if(u<0||!t.value)return;const f=t.value.clientHeight;let g=!1,v=d;if(f){const o=d||i;let l=0,u=0,p=0;const y=Math.min(c.length,e);for(let t=0;t<=y;t+=1){const i=r(c[t]);u=l;const o=n.get(i);p=u+(void 0===o?h:o),l=p,t===e&&void 0===o&&(g=!0)}const m=t.value.scrollTop;let x=null;switch(o){case"top":x=u-s;break;case"bottom":x=p-f+s;break;default:u<m?v="top":p>m+f&&(v="bottom")}null!==x&&x!==m&&a(x)}l=O((()=>{g&&o(),p(u-1,v)}),2)};p(5)}}}(f,c,M,e,x,T,b,(()=>{var t;null===(t=m.value)||void 0===t||t.delayHidden()}));o({scrollTo:W});const G=i((()=>{let n=null;return e.height&&(n=t({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Le),a.value&&(n.overflowY="hidden",l.scrollMoving&&(n.pointerEvents="none"))),n}));p([()=>D.start,()=>D.end,c],(()=>{if(e.onVisibleChange){const t=c.value.slice(D.start,D.end+1);e.onVisibleChange(t,c.value)}}),{flush:"post"});return{state:l,mergedData:c,componentStyle:G,onFallbackScroll:function(t){var n;const{scrollTop:i}=t.currentTarget;i!==l.scrollTop&&b(i),null===(n=e.onScroll)||void 0===n||n.call(e,t)},onScrollBar:function(t){b(t)},componentRef:f,useVirtual:a,calRes:D,collectHeight:T,setInstance:S,sharedConfig:_,scrollBarRef:m,fillerInnerRef:g,delayHideScrollBar:()=>{var t;null===(t=m.value)||void 0===t||t.delayHidden()}}},render(){const e=t(t({},this.$props),this.$attrs),{prefixCls:n="rc-virtual-list",height:i,itemHeight:r,fullHeight:l,data:u,itemKey:c,virtual:h,component:p="div",onScroll:d,children:f=this.$slots.default,style:g,class:v}=e,y=Be(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),m=s(n,v),{scrollTop:x}=this.state,{scrollHeight:_,offset:b,start:w,end:S}=this.calRes,{componentStyle:C,onFallbackScroll:T,onScrollBar:M,useVirtual:I,collectHeight:D,sharedConfig:k,setInstance:A,mergedData:O,delayHideScrollBar:P}=this;return o("div",a({style:t(t({},g),{position:"relative"}),class:m},y),[o(p,{class:`${n}-holder`,style:C,ref:"componentRef",onScroll:T,onMouseenter:P},{default:()=>[o(Me,{prefixCls:n,height:_,offset:b,onInnerResize:D,ref:"fillerInnerRef"},{default:()=>function(t,e,n,i,r,a){let{getKey:s}=a;return t.slice(e,n+1).map(((t,n)=>{const a=r(t,e+n,{}),l=s(t);return o(De,{key:l,setRef:e=>i(t,e)},{default:()=>[a]})}))}(O,w,S,A,f,k)})]}),I&&o(Ae,{ref:"scrollBarRef",prefixCls:n,scrollTop:x,height:i,scrollHeight:_,count:O.length,onScroll:M,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Ne(t,e,n){const i=r(t());return p(e,((e,r)=>{n?n(e,r)&&(i.value=t()):i.value=t()})),i}const Fe=Symbol("SelectContextKey");var He=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function $e(t){return"string"==typeof t||"number"==typeof t}const Ve=e({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,e){let{expose:n,slots:r}=e;const l=me(),u=d(Fe,{}),c=i((()=>`${l.prefixCls}-item`)),h=Ne((()=>u.flattenOptions),[()=>l.open,()=>u.flattenOptions],(t=>t[0])),f=fe(),g=t=>{t.preventDefault()},v=t=>{f.current&&f.current.scrollTo("number"==typeof t?{index:t}:t)},y=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=h.value.length;for(let i=0;i<n;i+=1){const r=(t+i*e+n)%n,{group:o,data:a}=h.value[r];if(!o&&!a.disabled)return r}return-1},m=C({activeIndex:y(0)}),x=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.activeIndex=t;const n={source:e?"keyboard":"mouse"},i=h.value[t];i?u.onActiveValue(i.value,t,n):u.onActiveValue(null,-1,n)};p([()=>h.value.length,()=>l.searchValue],(()=>{x(!1!==u.defaultActiveFirstOption?y(0):-1)}),{immediate:!0});const w=t=>u.rawValues.has(t)&&"combobox"!==l.mode;p([()=>l.open,()=>l.searchValue],(()=>{if(!l.multiple&&l.open&&1===u.rawValues.size){const t=Array.from(u.rawValues)[0],e=E(h.value).findIndex((e=>{let{data:n}=e;return n[u.fieldNames.value]===t}));-1!==e&&(x(e),B((()=>{v(e)})))}l.open&&B((()=>{var t;null===(t=f.current)||void 0===t||t.scrollTo(void 0)}))}),{immediate:!0,flush:"post"});const S=t=>{void 0!==t&&u.onSelect(t,{selected:!u.rawValues.has(t)}),l.multiple||l.toggleOpen(!1)},T=t=>"function"==typeof t.label?t.label():t.label;function M(t){const e=h.value[t];if(!e)return null;const n=e.data||{},{value:i}=n,{group:r}=e,s=Pt(n,!0),u=T(e);return e?o("div",a(a({"aria-label":"string"!=typeof u||r?null:u},s),{},{key:t,role:r?"presentation":"option",id:`${l.id}_list_${t}`,"aria-selected":w(i)}),[i]):null}return n({onKeydown:t=>{const{which:e,ctrlKey:n}=t;switch(e){case b.N:case b.P:case b.UP:case b.DOWN:{let t=0;if(e===b.UP?t=-1:e===b.DOWN?t=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(e===b.N?t=1:e===b.P&&(t=-1)),0!==t){const e=y(m.activeIndex+t,t);v(e),x(e,!0)}break}case b.ENTER:{const e=h.value[m.activeIndex];e&&!e.data.disabled?S(e.value):S(void 0),l.open&&t.preventDefault();break}case b.ESC:l.toggleOpen(!1),l.open&&t.stopPropagation()}},onKeyup:()=>{},scrollTo:t=>{v(t)}}),()=>{const{id:t,notFoundContent:e,onPopupScroll:n}=l,{menuItemSelectedIcon:i,fieldNames:p,virtual:d,listHeight:v,listItemHeight:y}=u,b=r.option,{activeIndex:C}=m,D=Object.keys(p).map((t=>p[t]));return 0===h.value.length?o("div",{role:"listbox",id:`${t}_list`,class:`${c.value}-empty`,onMousedown:g},[e]):o(_,null,[o("div",{role:"listbox",id:`${t}_list`,style:{height:0,width:0,overflow:"hidden"}},[M(C-1),M(C),M(C+1)]),o(ze,{itemKey:"key",ref:f,data:h.value,height:v,itemHeight:y,fullHeight:!1,onMousedown:g,onScroll:n,virtual:d},{default:(t,e)=>{var n;const{group:r,groupOption:l,data:u,value:h}=t,{key:p}=u,d="function"==typeof t.label?t.label():t.label;if(r){const t=null!==(n=u.title)&&void 0!==n?n:$e(d)&&d;return o("div",{class:s(c.value,`${c.value}-group`),title:t},[b?b(u):void 0!==d?d:p])}const{disabled:f,title:g,children:v,style:y,class:m,className:_}=u,M=He(u,["disabled","title","children","style","class","className"]),k=Ft(M,D),A=w(h),O=`${c.value}-option`,P=s(c.value,O,m,_,{[`${O}-grouped`]:l,[`${O}-active`]:C===e&&!f,[`${O}-disabled`]:f,[`${O}-selected`]:A}),E=T(t),B=!i||"function"==typeof i||A,R="number"==typeof E?E:E||h;let L=$e(R)?R.toString():void 0;return void 0!==g&&(L=g),o("div",a(a({},k),{},{"aria-selected":A,class:P,title:L,onMousemove:t=>{M.onMousemove&&M.onMousemove(t),C===e||f||x(e)},onClick:t=>{f||S(h),M.onClick&&M.onClick(t)},style:y}),[o("div",{class:`${O}-content`},[b?b(u):R]),I(i)||A,B&&o(Zt,{class:`${c.value}-option-state`,customizeIcon:i,customizeIconProps:{isSelected:A}},{default:()=>[A?"✓":null]})])}})])}}});var je=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function We(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return k(e).map(((e,i)=>{var r;if(!I(e)||!e.type)return null;const{type:{isSelectOptGroup:o},key:a,children:s,props:l}=e;if(n||!o)return function(e){const n=e,{key:i,children:r}=n,o=n.props,{value:a,disabled:s}=o,l=je(o,["value","disabled"]),u=null==r?void 0:r.default;return t({key:i,value:void 0!==a?a:i,children:u,disabled:s||""===s},l)}(e);const u=s&&s.default?s.default():void 0,c=(null==l?void 0:l.label)||(null===(r=s.label)||void 0===r?void 0:r.call(s))||a;return t(t({key:`__RC_SELECT_GRP__${null===a?i:String(a)}__`},l),{label:c,options:We(u||[])})})).filter((t=>t))}let Ge=0;const Ue=L();function Xe(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r("");const e=`rc_select_${function(){let t;return Ue?(t=Ge,Ge+=1):t="TEST_OR_SSR",t}()}`;return t.value||e}function Ke(t){return Array.isArray(t)?t:void 0!==t?[t]:[]}function Ye(t,e){return Ke(t).join("").toUpperCase().includes(e)}const qe=["inputValue"];function Ze(){return t(t({},we()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:n.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:n.any,defaultValue:n.any,onChange:Function,children:Array})}const Qe=e({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:T(Ze(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,n){let{expose:s,attrs:l,slots:u}=n;const c=Xe(z(e,"id")),d=i((()=>Se(e.mode))),f=i((()=>!(e.options||!e.children))),y=i((()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption)),m=i((()=>Ut(e.fieldNames,f.value))),[x,_]=Nt("",{value:i((()=>void 0!==e.searchValue?e.searchValue:e.inputValue)),postState:t=>t||""}),b=function(t,e,n){const i=h(),r=h(),o=h(),a=h([]);return p([t,e],(()=>{t.value?a.value=E(t.value).slice():a.value=We(e.value)}),{immediate:!0,deep:!0}),v((()=>{const t=a.value,e=new Map,s=new Map,l=n.value;!function t(n){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<n.length;r+=1){const o=n[r];!o[l.options]||i?(e.set(o[l.value],o),s.set(o[l.label],o)):t(o[l.options],!0)}}(t),i.value=t,r.value=e,o.value=s})),{options:i,valueOptions:r,labelOptions:o}}(z(e,"options"),z(e,"children"),m),{valueOptions:w,labelOptions:S,options:C}=b,T=t=>Ke(t).map((t=>{var n,i;let r,o,a,s;var l;(l=t)&&"object"==typeof l?(a=t.key,o=t.label,r=null!==(n=t.value)&&void 0!==n?n:a):r=t;const u=w.value.get(r);return u&&(void 0===o&&(o=null==u?void 0:u[e.optionLabelProp||m.value.label]),void 0===a&&(a=null!==(i=null==u?void 0:u.key)&&void 0!==i?i:r),s=null==u?void 0:u.disabled),{label:o,value:r,key:a,disabled:s,option:u}})),[M,I]=Nt(e.defaultValue,{value:z(e,"value")}),D=i((()=>{var t;const n=T(M.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]})),[k,A]=((e,n)=>{const r=h({values:new Map,options:new Map});return[i((()=>{const{values:i,options:o}=r.value,a=e.value.map((e=>{var n;return void 0===e.label?t(t({},e),{label:null===(n=i.get(e.value))||void 0===n?void 0:n.label}):e})),s=new Map,l=new Map;return a.forEach((t=>{s.set(t.value,t),l.set(t.value,n.value.get(t.value)||o.get(t.value))})),r.value.values=s,r.value.options=l,a})),t=>n.value.get(t)||r.value.options.get(t)]})(D,w),O=i((()=>{if(!e.mode&&1===k.value.length){const t=k.value[0];if(null===t.value&&(null===t.label||void 0===t.label))return[]}return k.value.map((e=>{var n;return t(t({},e),{label:null!==(n="function"==typeof e.label?e.label():e.label)&&void 0!==n?n:e.value})}))})),P=i((()=>new Set(k.value.map((t=>t.value)))));v((()=>{var t;if("combobox"===e.mode){const e=null===(t=k.value[0])||void 0===t?void 0:t.value;null!=e&&_(String(e))}}),{flush:"post"});const B=(t,e)=>{const n=null!=e?e:t;return{[m.value.value]:t,[m.value.label]:n}},R=h();v((()=>{if("tags"!==e.mode)return void(R.value=C.value);const t=C.value.slice();[...k.value].sort(((t,e)=>t.value<e.value?-1:1)).forEach((e=>{const n=e.value;(t=>w.value.has(t))(n)||t.push(B(n,e.label))})),R.value=t}));const L=(F=R,H=m,$=x,V=y,j=z(e,"optionFilterProp"),i((()=>{const e=$.value,n=null==j?void 0:j.value,i=null==V?void 0:V.value;if(!e||!1===i)return F.value;const{options:r,label:o,value:a}=H.value,s=[],l="function"==typeof i,u=e.toUpperCase(),c=l?i:(t,e)=>n?Ye(e[n],u):e[r]?Ye(e["children"!==o?o:"label"],u):Ye(e[a],u),h=l?t=>Xt(t):t=>t;return F.value.forEach((n=>{if(n[r])if(c(e,h(n)))s.push(n);else{const i=n[r].filter((t=>c(e,h(t))));i.length&&s.push(t(t({},n),{[r]:i}))}else c(e,h(n))&&s.push(n)})),s})));var F,H,$,V,j;const W=i((()=>"tags"!==e.mode||!x.value||L.value.some((t=>t[e.optionFilterProp||"value"]===x.value))?L.value:[B(x.value),...L.value])),G=i((()=>e.filterSort?[...W.value].sort(((t,n)=>e.filterSort(t,n))):W.value)),U=i((()=>function(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],{label:r,value:o,options:a}=Ut(e,!1);return function t(e,s){e.forEach((e=>{const l=e[r];if(s||!(a in e)){const t=e[o];i.push({key:Gt(e,i.length),groupOption:s,data:e,label:l,value:t})}else{let r=l;void 0===r&&n&&(r=e.label),i.push({key:Gt(e,i.length),group:!0,data:e,label:r}),t(e[a],!0)}}))}(t,!1),i}(G.value,{fieldNames:m.value,childrenAsData:f.value}))),X=n=>{const i=T(n);if(I(i),e.onChange&&(i.length!==k.value.length||i.some(((t,e)=>{var n;return(null===(n=k.value[e])||void 0===n?void 0:n.value)!==(null==t?void 0:t.value)})))){const n=e.labelInValue?i.map((e=>t(t({},e),{originLabel:e.label,label:"function"==typeof e.label?e.label():e.label}))):i.map((t=>t.value)),r=i.map((t=>Xt(A(t.value))));e.onChange(d.value?n:n[0],d.value?r:r[0])}},[K,Y]=N(null),[q,Z]=N(0),Q=i((()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode)),J=(t,n)=>{const i=()=>{var n;const i=A(t),r=null==i?void 0:i[m.value.label];return[e.labelInValue?{label:"function"==typeof r?r():r,originLabel:r,value:t,key:null!==(n=null==i?void 0:i.key)&&void 0!==n?n:t}:t,Xt(i)]};if(n&&e.onSelect){const[t,n]=i();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=i();e.onDeselect(t,n)}},tt=(t,e)=>{X(t),"remove"!==e.type&&"clear"!==e.type||e.values.forEach((t=>{J(t.value,!1)}))},et=(t,n)=>{var i;if(_(t),Y(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===e.mode&&X(t),null===(i=e.onSearch)||void 0===i||i.call(e,t));else{const e=(t||"").trim();if(e){const t=Array.from(new Set([...P.value,e]));X(t),J(e,!0),_("")}}},nt=t=>{let n=t;"tags"!==e.mode&&(n=t.map((t=>{const e=S.value.get(t);return null==e?void 0:e.value})).filter((t=>void 0!==t)));const i=Array.from(new Set([...P.value,...n]));X(i),i.forEach((t=>{J(t,!0)}))},it=i((()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth));!function(t){g(Fe,t)}(xe(t(t({},b),{flattenOptions:U,onActiveValue:function(t,n){let{source:i="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Z(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===i&&Y(String(t))},defaultActiveFirstOption:Q,onSelect:(t,n)=>{let i;const r=!d.value||n.selected;i=r?d.value?[...k.value,t]:[t]:k.value.filter((e=>e.value!==t)),X(i),J(t,r),"combobox"===e.mode?Y(""):d.value&&!e.autoClearSearchValue||(_(""),Y(""))},menuItemSelectedIcon:z(e,"menuItemSelectedIcon"),rawValues:P,fieldNames:m,virtual:it,listHeight:z(e,"listHeight"),listItemHeight:z(e,"listItemHeight"),childrenAsData:f})));const rt=r();s({focus(){var t;null===(t=rt.value)||void 0===t||t.focus()},blur(){var t;null===(t=rt.value)||void 0===t||t.blur()},scrollTo(t){var e;null===(e=rt.value)||void 0===e||e.scrollTo(t)}});const ot=i((()=>Ft(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"])));return()=>o(Ce,a(a(a({},ot.value),l),{},{id:c,prefixCls:e.prefixCls,ref:rt,omitDomProps:qe,mode:e.mode,displayValues:O.value,onDisplayValuesChange:tt,searchValue:x.value,onSearch:et,onSearchSplit:nt,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:Ve,emptyOptions:!U.value.length,activeValue:K.value,activeDescendantId:`${c}_list_${q.value}`}),u)}}),Je=()=>null;Je.isSelectOption=!0,Je.displayName="ASelectOption";const tn=Je,en=()=>null;en.isSelectOptGroup=!0,en.displayName="ASelectOptGroup";const nn=en;const rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function on(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){an(t,e,n[e])}))}return t}function an(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sn=function(t,e){var n=on({},t,e.attrs);return o(F,on({},n,{icon:rn}),null)};sn.displayName="DownOutlined",sn.inheritAttrs=!1;const ln=sn;const un={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function cn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){hn(t,e,n[e])}))}return t}function hn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pn=function(t,e){var n=cn({},t,e.attrs);return o(F,cn({},n,{icon:un}),null)};pn.displayName="CheckOutlined",pn.inheritAttrs=!1;const dn=pn;const fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function gn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){vn(t,e,n[e])}))}return t}function vn(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yn=function(t,e){var n=gn({},t,e.attrs);return o(F,gn({},n,{icon:fn}),null)};yn.displayName="SearchOutlined",yn.inheritAttrs=!1;const mn=yn;function xn(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:i,prefixCls:r,hasFeedback:a,feedbackIcon:s,showArrow:l}=t,u=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),c=t.clearIcon||e.clearIcon&&e.clearIcon(),h=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),p=t.removeIcon||e.removeIcon&&e.removeIcon(),d=null!=c?c:o(H,null,null),f=t=>o(_,null,[!1!==l&&t,a&&s]);let g=null;if(void 0!==u)g=f(u);else if(n)g=f(o($,{spin:!0},null));else{const t=`${r}-suffix`;g=e=>{let{open:n,showSearch:i}=e;return f(o(n&&i?mn:ln,{class:t},null))}}let v=null;v=void 0!==h?h:i?o(dn,null,null):null;let y=null;return y=void 0!==p?p:o(V,null,null),{clearIcon:d,suffixIcon:g,itemIcon:v,removeIcon:y}}const _n=Symbol("ContextProps"),bn=Symbol("InternalContextProps"),wn=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i((()=>!0));const n=r(new Map);p([e,n],(()=>{})),g(_n,t),g(bn,{addFormItemField:(t,e)=>{n.value.set(t,e),n.value=new Map(n.value)},removeFormItemField:t=>{n.value.delete(t),n.value=new Map(n.value)}})},Sn={id:i((()=>{})),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Cn={addFormItemField:()=>{},removeFormItemField:()=>{}},Tn=()=>{const t=d(bn,Cn),e=Symbol("FormItemFieldKey"),n=W();return t.addFormItemField(e,n.type),w((()=>{t.removeFormItemField(e)})),g(bn,Cn),g(_n,Sn),d(_n,Sn)},Mn=e({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return g(bn,Cn),g(_n,Sn),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}}),In=j({}),Dn=e({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return In.useProvide({}),()=>{var t;return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});function kn(t,e,n){return s({[`${t}-status-success`]:"success"===e,[`${t}-status-warning`]:"warning"===e,[`${t}-status-error`]:"error"===e,[`${t}-status-validating`]:"validating"===e,[`${t}-has-feedback`]:n})}const An=(t,e)=>e||t;const On=new X("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Pn=new X("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),En=new X("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Bn=new X("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Rn=new X("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ln=new X("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zn={"move-up":{inKeyframes:new X("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new X("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:On,outKeyframes:Pn},"move-left":{inKeyframes:En,outKeyframes:Bn},"move-right":{inKeyframes:Rn,outKeyframes:Ln}},Nn=(t,e)=>{const{antCls:n}=t,i=`${n}-${e}`,{inKeyframes:r,outKeyframes:o}=zn[e];return[K(i,r,o,t.motionDurationMid),{[`\n ${i}-enter,\n ${i}-appear\n `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${i}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},Fn=t=>{const{controlPaddingHorizontal:e}=t;return{position:"relative",display:"block",minHeight:t.controlHeight,padding:`${(t.controlHeight-t.fontSize*t.lineHeight)/2}px ${e}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,boxSizing:"border-box"}},Hn=e=>{const{antCls:n,componentCls:i}=e,r=`${i}-item`;return[{[`${i}-dropdown`]:t(t({},Y(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n &${n}-slide-up-enter${n}-slide-up-enter-active${i}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${i}-dropdown-placement-bottomLeft\n `]:{animationName:q},[`\n &${n}-slide-up-enter${n}-slide-up-enter-active${i}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${i}-dropdown-placement-topLeft\n `]:{animationName:Z},[`&${n}-slide-up-leave${n}-slide-up-leave-active${i}-dropdown-placement-bottomLeft`]:{animationName:Q},[`&${n}-slide-up-leave${n}-slide-up-leave-active${i}-dropdown-placement-topLeft`]:{animationName:J},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:t(t({},Fn(e)),{color:e.colorTextDisabled}),[`${r}`]:t(t({},Fn(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":t({flex:"auto"},tt),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},et(e,"slide-up"),et(e,"slide-down"),Nn(e,"move-up"),Nn(e,"move-down")]};function $n(t){let{controlHeightSM:e,controlHeight:n,lineWidth:i}=t;const r=(n-e)/2-i;return[r,Math.ceil(r/2)]}function Vn(e,n){const{componentCls:i,iconCls:r}=e,o=`${i}-selection-overflow`,a=e.controlHeightSM,[s]=$n(e),l=n?`${i}-${n}`:"";return{[`${i}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${i}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:s-2+"px 4px",borderRadius:e.borderRadius,[`${i}-show-search&`]:{cursor:"text"},[`${i}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${a}px`,content:'"\\a0"'}},[`\n &${i}-show-arrow ${i}-selector,\n &${i}-allow-clear ${i}-selector\n `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${i}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:2,marginBottom:2,lineHeight:a-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${i}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":t(t({},it()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${i}-selection-search`]:{marginInlineStart:0}},[`${i}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-s,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${i}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function jn(t){const{componentCls:e}=t,n=nt(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,i]=$n(t);return[Vn(t),Vn(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:i}}},Vn(nt(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function Wn(e,n){const{componentCls:i,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,s=Math.ceil(1.25*e.fontSize),l=n?`${i}-${n}`:"";return{[`${i}-single${l}`]:{fontSize:e.fontSize,[`${i}-selector`]:t(t({},Y(e)),{display:"flex",borderRadius:o,[`${i}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n ${i}-selection-item,\n ${i}-selection-placeholder\n `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${i}-selection-item`]:{position:"relative",userSelect:"none"},[`${i}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${i}-selection-item:after`,`${i}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${i}-show-arrow ${i}-selection-item,\n &${i}-show-arrow ${i}-selection-placeholder\n `]:{paddingInlineEnd:s},[`&${i}-open ${i}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${i}-customize-input)`]:{[`${i}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${i}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${i}-customize-input`]:{[`${i}-selector`]:{"&:after":{display:"none"},[`${i}-selection-search`]:{position:"static",width:"100%"},[`${i}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function Gn(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[Wn(t),Wn(nt(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${n}px`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:n+1.5*t.fontSize},[`\n &${e}-show-arrow ${e}-selection-item,\n &${e}-show-arrow ${e}-selection-placeholder\n `]:{paddingInlineEnd:1.5*t.fontSize}}}},Wn(nt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}const Un=t=>{const{componentCls:e}=t;return{position:"relative",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${e}-disabled&`]:{color:t.colorTextDisabled,background:t.colorBgContainerDisabled,cursor:"not-allowed",[`${e}-multiple&`]:{background:t.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},Xn=function(e,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:s}=n,l=i?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${s}-pagination-size-changer)`]:t(t({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${n.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${n.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${n.controlLineWidth}px !important`}})}}},Kn=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Yn=e=>{const{componentCls:n,inputPaddingHorizontalBase:i,iconCls:r}=e;return{[n]:t(t({},Y(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:t(t({},Un(e)),Kn(e)),[`${n}-selection-item`]:t({flex:1,fontWeight:"normal"},tt),[`${n}-selection-placeholder`]:t(t({},tt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:t(t({},it()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:i+e.fontSize+e.paddingXXS}}}},qn=t=>{const{componentCls:e}=t;return[{[e]:{[`&-borderless ${e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${e}-in-form-item`]:{width:"100%"}}},Yn(t),Gn(t),jn(t),Hn(t),{[`${e}-rtl`]:{direction:"rtl"}},Xn(e,nt(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),Xn(`${e}-status-error`,nt(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),Xn(`${e}-status-warning`,nt(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),ot(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},Zn=rt("Select",((t,e)=>{let{rootPrefixCls:n}=e;const i=nt(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[qn(i)]}),(t=>({zIndexPopup:t.zIndexPopupBase+50}))),Qn=()=>t(t({},Ft(Ze(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:pt([Array,Object,String,Number]),defaultValue:pt([Array,Object,String,Number]),notFoundContent:n.any,suffixIcon:n.any,itemIcon:n.any,size:dt(),mode:dt(),bordered:ft(!0),transitionName:String,choiceTransitionName:dt(""),popupClassName:String,dropdownClassName:String,placement:dt(),status:dt(),"onUpdate:value":gt()}),Jn="SECRET_COMBOBOX_MODE_DO_NOT_USE",ti=e({compatConfig:{MODE:3},name:"ASelect",Option:tn,OptGroup:nn,inheritAttrs:!1,props:T(Qn(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Jn,slots:Object,setup(e,n){let{attrs:l,emit:u,slots:c,expose:h}=n;const p=r(),d=Tn(),f=In.useInject(),g=i((()=>An(f.status,e.status))),v=i((()=>{const{mode:t}=e;if("combobox"!==t)return t===Jn?"combobox":t})),{prefixCls:y,direction:m,configProvider:x,renderEmpty:_,size:b,getPrefixCls:w,getPopupContainer:S,disabled:C,select:T}=at("select",e),{compactSize:M,compactItemClassnames:I}=st(y,m),D=i((()=>M.value||b.value)),k=lt(),A=i((()=>{var t;return null!==(t=C.value)&&void 0!==t?t:k.value})),[O,P]=Zn(y),E=i((()=>w())),B=i((()=>void 0!==e.placement?e.placement:"rtl"===m.value?"bottomRight":"bottomLeft")),R=i((()=>ut(E.value,ct(B.value),e.transitionName))),L=i((()=>s({[`${y.value}-lg`]:"large"===D.value,[`${y.value}-sm`]:"small"===D.value,[`${y.value}-rtl`]:"rtl"===m.value,[`${y.value}-borderless`]:!e.bordered,[`${y.value}-in-form-item`]:f.isFormItemInput},kn(y.value,g.value,f.hasFeedback),I.value,P.value))),z=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];u("update:value",e[0]),u("change",...e),d.onFieldChange()},N=t=>{u("blur",t),d.onFieldBlur()};h({blur:()=>{var t;null===(t=p.value)||void 0===t||t.blur()},focus:()=>{var t;null===(t=p.value)||void 0===t||t.focus()},scrollTo:t=>{var e;null===(e=p.value)||void 0===e||e.scrollTo(t)}});const F=i((()=>"multiple"===v.value||"tags"===v.value)),H=i((()=>void 0!==e.showArrow?e.showArrow:e.loading||!(F.value||"combobox"===v.value)));return()=>{var n,i,r,u;const{notFoundContent:h,listHeight:g=256,listItemHeight:x=24,popupClassName:b,dropdownClassName:w,virtual:C,dropdownMatchSelectWidth:M,id:I=d.id.value,placeholder:D=(null===(n=c.placeholder)||void 0===n?void 0:n.call(c)),showArrow:k}=e,{hasFeedback:E,feedbackIcon:B}=f;let $;$=void 0!==h?h:c.notFoundContent?c.notFoundContent():"combobox"===v.value?null:(null==_?void 0:_("Select"))||o(ht,{componentName:"Select"},null);const{suffixIcon:V,itemIcon:j,removeIcon:W,clearIcon:G}=xn(t(t({},e),{multiple:F.value,prefixCls:y.value,hasFeedback:E,feedbackIcon:B,showArrow:H.value}),c),U=Ft(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),X=s(b||w,{[`${y.value}-dropdown-${m.value}`]:"rtl"===m.value},P.value);return O(o(Qe,a(a(a({ref:p,virtual:C,dropdownMatchSelectWidth:M},U),l),{},{showSearch:null!==(i=e.showSearch)&&void 0!==i?i:null===(r=null==T?void 0:T.value)||void 0===r?void 0:r.showSearch,placeholder:D,listHeight:g,listItemHeight:x,mode:v.value,prefixCls:y.value,direction:m.value,inputIcon:V,menuItemSelectedIcon:j,removeIcon:W,clearIcon:G,notFoundContent:$,class:[L.value,l.class],getPopupContainer:null==S?void 0:S.value,dropdownClassName:X,onChange:z,onBlur:N,id:I,dropdownRender:U.dropdownRender||c.dropdownRender,transitionName:R.value,children:null===(u=c.default)||void 0===u?void 0:u.call(c),tagRender:e.tagRender||c.tagRender,optionLabelRender:c.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||c.maxTagPlaceholder,showArrow:E||k,disabled:A.value}),{option:c.option}))}}});ti.install=function(t){return t.component(ti.name,ti),t.component(ti.Option.displayName,ti.Option),t.component(ti.OptGroup.displayName,ti.OptGroup),t};const ei=ti.Option;ti.OptGroup;const ni=ti,ii=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ri=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),oi=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),ai=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":t({},ri(nt(e,{inputBorderHoverColor:e.colorBorder})))}),si=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:i,borderRadiusLG:r,inputPaddingHorizontalLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:i,borderRadius:r}},li=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),ui=(e,n)=>{const{componentCls:i,colorError:r,colorWarning:o,colorErrorOutline:a,colorWarningOutline:s,colorErrorBorderHover:l,colorWarningBorderHover:u}=e;return{[`&-status-error:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":t({},oi(nt(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${i}-prefix`]:{color:r}},[`&-status-warning:not(${n}-disabled):not(${n}-borderless)${n}`]:{borderColor:o,"&:hover":{borderColor:u},"&:focus, &-focused":t({},oi(nt(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:s}))),[`${i}-prefix`]:{color:o}}}},ci=e=>t(t({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},ii(e.colorTextPlaceholder)),{"&:hover":t({},ri(e)),"&:focus, &-focused":t({},oi(e)),"&-disabled, &[disabled]":t({},ai(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":t({},si(e)),"&-sm":t({},li(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),hi=e=>{const{componentCls:n,antCls:i}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${n}, &-lg > ${n}-group-addon`]:t({},si(e)),[`&-sm ${n}, &-sm > ${n}-group-addon`]:t({},li(e)),[`> ${n}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${n}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${i}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${i}-select-single:not(${i}-select-customize-input)`]:{[`${i}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${i}-select-selector`]:{color:e.colorPrimary}}},[`${i}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${i}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${n}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${n}-search-with-button &`]:{zIndex:0}}},[`> ${n}:first-child, ${n}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${i}-select ${i}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}-affix-wrapper`]:{[`&:not(:first-child) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${n}:last-child, ${n}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${i}-select ${i}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${n}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${n}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${n}-group-compact`]:t(t({display:"block"},vt()),{[`${n}-group-addon, ${n}-group-wrap, > ${n}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${n}-affix-wrapper`]:{display:"inline-flex"},[`& > ${i}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${n}`]:{float:"none"},[`& > ${i}-select > ${i}-select-selector,\n & > ${i}-select-auto-complete ${n},\n & > ${i}-cascader-picker ${n},\n & > ${n}-group-wrapper ${n}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${i}-select-focused`]:{zIndex:1},[`& > ${i}-select > ${i}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${i}-select:first-child > ${i}-select-selector,\n & > ${i}-select-auto-complete:first-child ${n},\n & > ${i}-cascader-picker:first-child ${n}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${i}-select:last-child > ${i}-select-selector,\n & > ${i}-cascader-picker:last-child ${n},\n & > ${i}-cascader-picker-focused:last-child ${n}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${i}-select-auto-complete ${n}`]:{verticalAlign:"top"},[`${n}-group-wrapper + ${n}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${n}-affix-wrapper`]:{borderRadius:0}},[`${n}-group-wrapper:not(:last-child)`]:{[`&${n}-search > ${n}-group`]:{[`& > ${n}-group-addon > ${n}-search-button`]:{borderRadius:0},[`& > ${n}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${i}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${i}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${i}-select-single ${i}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${i}-select-selection-item, ${i}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${i}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${i}-select-single ${i}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${i}-select-selection-item, ${i}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${i}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},pi=e=>{const{componentCls:n,controlHeightSM:i,lineWidth:r}=e,o=(i-2*r-16)/2;return{[n]:t(t(t(t({},Y(e)),ci(e)),ui(e,n)),{'&[type="color"]':{height:e.controlHeight,[`&${n}-lg`]:{height:e.controlHeightLG},[`&${n}-sm`]:{height:i,paddingTop:o,paddingBottom:o}}})}},di=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${e}-clear-icon`]:{position:"absolute",insetBlockStart:t.paddingXS,insetInlineEnd:t.paddingXS,zIndex:1}}}},fi=e=>{const{componentCls:n,inputAffixPadding:i,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:s,iconCls:l}=e;return{[`${n}-affix-wrapper`]:t(t(t(t(t({},ci(e)),{display:"inline-flex",[`&:not(${n}-affix-wrapper-disabled):hover`]:t(t({},ri(e)),{zIndex:1,[`${n}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${n}[disabled]`]:{background:"transparent"}},[`> input${n}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${n}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:i},"&-suffix":{marginInlineStart:i}}}),di(e)),{[`${l}${n}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),ui(e,`${n}-affix-wrapper`))}},gi=e=>{const{componentCls:n,colorError:i,colorSuccess:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${n}-group`]:t(t(t({},Y(e)),hi(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${n}-group-addon`]:{borderRadius:o}},"&-sm":{[`${n}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${n}-group-addon`]:{color:i,borderColor:i}},"&-status-warning":{[`${n}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},vi=t=>{const{componentCls:e,antCls:n}=t,i=`${e}-search`;return{[i]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${i}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0},[`${i}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${i}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${i}-button`]:{height:t.controlHeightLG},[`&-small ${i}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function yi(t){return nt(t,{inputAffixPadding:t.paddingXXS,inputPaddingVertical:Math.max(Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,3),inputPaddingVerticalLG:Math.ceil((t.controlHeightLG-t.fontSizeLG*t.lineHeightLG)/2*10)/10-t.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((t.controlHeightSM-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,0),inputPaddingHorizontal:t.paddingSM-t.lineWidth,inputPaddingHorizontalSM:t.paddingXS-t.lineWidth,inputPaddingHorizontalLG:t.controlPaddingHorizontal-t.lineWidth,inputBorderHoverColor:t.colorPrimaryHover,inputBorderActiveColor:t.colorPrimaryHover})}const mi=t=>{const{componentCls:e,inputPaddingHorizontal:n,paddingLG:i}=t,r=`${e}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:i}}},"&-show-count":{[`> ${e}`]:{height:"100%"},"&::after":{color:t.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},xi=rt("Input",(t=>{const e=yi(t);return[pi(e),mi(e),fi(e),gi(e),vi(e),ot(e)]}));const _i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function bi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){wi(t,e,n[e])}))}return t}function wi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Si=function(t,e){var n=bi({},t,e.attrs);return o(F,bi({},n,{icon:_i}),null)};Si.displayName="LeftOutlined",Si.inheritAttrs=!1;const Ci=Si;const Ti={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function Mi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Ii(t,e,n[e])}))}return t}function Ii(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Di=function(t,e){var n=Mi({},t,e.attrs);return o(F,Mi({},n,{icon:Ti}),null)};Di.displayName="QuestionCircleOutlined",Di.inheritAttrs=!1;const ki=Di,Ai=t=>null!=t&&(!Array.isArray(t)||yt(t).length);function Oi(t){return Ai(t.prefix)||Ai(t.suffix)||Ai(t.allowClear)}function Pi(t){return Ai(t.addonBefore)||Ai(t.addonAfter)}function Ei(t){return null==t?"":String(t)}function Bi(t,e,n,i){if(!n)return;const r=e;if("click"===e.type){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const e=t.cloneNode(!0);return r.target=e,r.currentTarget=e,e.value="",void n(r)}if(void 0!==i)return Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=t,r.currentTarget=t,t.value=i,void n(r);n(r)}function Ri(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const e=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(e,e);break;default:t.setSelectionRange(0,e)}}}const Li=()=>t(t({},{addonBefore:n.any,addonAfter:n.any,prefix:n.any,suffix:n.any,clearIcon:n.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:n.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),zi=()=>t(t({},Li()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:dt("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Ni=e({name:"BaseInput",inheritAttrs:!1,props:Li(),setup(t,e){let{slots:n,attrs:i}=e;const a=r(),l=e=>{var n;if(null===(n=a.value)||void 0===n?void 0:n.contains(e.target)){const{triggerFocus:e}=t;null==e||e()}},u=()=>{var e;const{allowClear:i,value:r,disabled:a,readonly:l,handleReset:u,suffix:c=n.suffix,prefixCls:h}=t;if(!i)return null;const p=!a&&!l&&r,d=`${h}-clear-icon`,f=(null===(e=n.clearIcon)||void 0===e?void 0:e.call(n))||"*";return o("span",{onClick:u,onMousedown:t=>t.preventDefault(),class:s({[`${d}-hidden`]:!p,[`${d}-has-suffix`]:!!c},d),role:"button",tabindex:-1},[f])};return()=>{var e,r;const{focused:c,value:h,disabled:p,allowClear:d,readonly:g,hidden:v,prefixCls:y,prefix:m=(null===(e=n.prefix)||void 0===e?void 0:e.call(n)),suffix:x=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),addonAfter:_=n.addonAfter,addonBefore:b=n.addonBefore,inputElement:w,affixWrapperClassName:S,wrapperClassName:C,groupClassName:T}=t;let M=f(w,{value:h,hidden:v});if(Oi({prefix:m,suffix:x,allowClear:d})){const t=`${y}-affix-wrapper`,e=s(t,{[`${t}-disabled`]:p,[`${t}-focused`]:c,[`${t}-readonly`]:g,[`${t}-input-with-clear-btn`]:x&&d&&h},!Pi({addonAfter:_,addonBefore:b})&&i.class,S),n=(x||d)&&o("span",{class:`${y}-suffix`},[u(),x]);M=o("span",{class:e,style:i.style,hidden:!Pi({addonAfter:_,addonBefore:b})&&v,onMousedown:l,ref:a},[m&&o("span",{class:`${y}-prefix`},[m]),f(w,{style:null,value:h,hidden:null}),n])}if(Pi({addonAfter:_,addonBefore:b})){const t=`${y}-group`,e=`${t}-addon`,n=s(`${y}-wrapper`,t,C),r=s(`${y}-group-wrapper`,i.class,T);return o("span",{class:r,style:i.style,hidden:v},[o("span",{class:n},[b&&o("span",{class:e},[b]),f(M,{style:null,hidden:null}),_&&o("span",{class:e},[_])])])}return M}}});var Fi=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Hi=e({name:"VCInput",inheritAttrs:!1,props:zi(),setup(e,n){let{slots:r,attrs:l,expose:u,emit:c}=n;const d=h(void 0===e.value?e.defaultValue:e.value),f=h(!1),g=h(),v=h();p((()=>e.value),(()=>{d.value=e.value})),p((()=>e.disabled),(()=>{e.disabled&&(f.value=!1)}));const m=t=>{g.value&&Ri(g.value.input,t)};u({focus:m,blur:()=>{var t;null===(t=g.value.input)||void 0===t||t.blur()},input:i((()=>{var t;return null===(t=g.value.input)||void 0===t?void 0:t.input})),stateValue:d,setSelectionRange:(t,e,n)=>{var i;null===(i=g.value.input)||void 0===i||i.setSelectionRange(t,e,n)},select:()=>{var t;null===(t=g.value.input)||void 0===t||t.select()}});const x=t=>{c("change",t)},b=(t,n)=>{d.value!==t&&(void 0===e.value?d.value=t:B((()=>{var t;g.value.input.value!==d.value&&(null===(t=v.value)||void 0===t||t.$forceUpdate())})),B((()=>{n&&n()})))},w=t=>{const{value:e}=t.target;if(d.value===e)return;const n=t.target.value;Bi(g.value.input,t,x),b(n)},S=t=>{13===t.keyCode&&c("pressEnter",t),c("keydown",t)},C=t=>{f.value=!0,c("focus",t)},T=t=>{f.value=!1,c("blur",t)},M=t=>{Bi(g.value.input,t,x),b("",(()=>{m()}))},I=()=>{var n,i;const{addonBefore:a=r.addonBefore,addonAfter:u=r.addonAfter,disabled:c,valueModifiers:h={},htmlSize:p,autocomplete:d,prefixCls:f,inputClassName:v,prefix:y=(null===(n=r.prefix)||void 0===n?void 0:n.call(r)),suffix:m=(null===(i=r.suffix)||void 0===i?void 0:i.call(r)),allowClear:x,type:_="text"}=e,b=Ft(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),M=t(t(t({},b),l),{autocomplete:d,onChange:w,onInput:w,onFocus:C,onBlur:T,onKeydown:S,class:s(f,{[`${f}-disabled`]:c},v,!Pi({addonAfter:u,addonBefore:a})&&!Oi({prefix:y,suffix:m,allowClear:x})&&l.class),ref:g,key:"ant-input",size:p,type:_,lazy:e.lazy});h.lazy&&delete M.onInput,M.autofocus||delete M.autofocus;return o(ne,Ft(M,["size"]),null)},D=()=>{var t;const{maxlength:n,suffix:i=(null===(t=r.suffix)||void 0===t?void 0:t.call(r)),showCount:a,prefixCls:l}=e,u=Number(n)>0;if(i||a){const t=[...Ei(d.value)].length,e="object"==typeof a?a.formatter({count:t,maxlength:n}):`${t}${u?` / ${n}`:""}`;return o(_,null,[!!a&&o("span",{class:s(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!i})},[e]),i])}return null};return y((()=>{})),()=>{const{prefixCls:t,disabled:n}=e,i=Fi(e,["prefixCls","disabled"]);return o(Ni,a(a(a({},i),l),{},{ref:v,prefixCls:t,inputElement:I(),handleReset:M,value:Ei(d.value),focused:f.value,triggerFocus:m,suffix:D(),disabled:n}),r)}}}),$i=()=>Ft(zi(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),Vi=$i,ji=()=>t(t({},Ft($i(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:mt(),onCompositionend:mt(),valueModifiers:Object});var Wi=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Gi=e({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:Vi(),setup(e,n){let{slots:l,attrs:u,expose:c,emit:h}=n;const p=r(),d=Tn(),f=In.useInject(),g=i((()=>An(f.status,e.status))),{direction:v,prefixCls:m,size:x,autocomplete:b}=at("input",e),{compactSize:S,compactItemClassnames:C}=st(m,v),T=i((()=>S.value||x.value)),[M,I]=xi(m),D=lt();c({focus:t=>{var e;null===(e=p.value)||void 0===e||e.focus(t)},blur:()=>{var t;null===(t=p.value)||void 0===t||t.blur()},input:p,setSelectionRange:(t,e,n)=>{var i;null===(i=p.value)||void 0===i||i.setSelectionRange(t,e,n)},select:()=>{var t;null===(t=p.value)||void 0===t||t.select()}});const k=r([]),A=()=>{k.value.push(setTimeout((()=>{var t,e,n,i;(null===(t=p.value)||void 0===t?void 0:t.input)&&"password"===(null===(e=p.value)||void 0===e?void 0:e.input.getAttribute("type"))&&(null===(n=p.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(i=p.value)||void 0===i||i.input.removeAttribute("value"))})))};y((()=>{A()})),xt((()=>{k.value.forEach((t=>clearTimeout(t)))})),w((()=>{k.value.forEach((t=>clearTimeout(t)))}));const O=t=>{A(),h("blur",t),d.onFieldBlur()},P=t=>{A(),h("focus",t)},E=t=>{h("update:value",t.target.value),h("change",t),h("input",t),d.onFieldChange()};return()=>{var n,i,r,c,h,y;const{hasFeedback:x,feedbackIcon:w}=f,{allowClear:S,bordered:k=!0,prefix:A=(null===(n=l.prefix)||void 0===n?void 0:n.call(l)),suffix:B=(null===(i=l.suffix)||void 0===i?void 0:i.call(l)),addonAfter:R=(null===(r=l.addonAfter)||void 0===r?void 0:r.call(l)),addonBefore:L=(null===(c=l.addonBefore)||void 0===c?void 0:c.call(l)),id:z=(null===(h=d.id)||void 0===h?void 0:h.value)}=e,N=Wi(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),F=(x||B)&&o(_,null,[B,x&&w]),$=m.value,V=Oi({prefix:A,suffix:B})||!!x,j=l.clearIcon||(()=>o(H,null,null));return M(o(Hi,a(a(a({},u),Ft(N,["onUpdate:value","onChange","onInput"])),{},{onChange:E,id:z,disabled:null!==(y=e.disabled)&&void 0!==y?y:D.value,ref:p,prefixCls:$,autocomplete:b.value,onBlur:O,onFocus:P,prefix:A,suffix:F,allowClear:S,addonAfter:R&&o(_t,null,{default:()=>[o(Dn,null,{default:()=>[R]})]}),addonBefore:L&&o(_t,null,{default:()=>[o(Dn,null,{default:()=>[L]})]}),class:[u.class,C.value],inputClassName:s({[`${$}-sm`]:"small"===T.value,[`${$}-lg`]:"large"===T.value,[`${$}-rtl`]:"rtl"===v.value,[`${$}-borderless`]:!k},!V&&kn($,g.value),I.value),affixWrapperClassName:s({[`${$}-affix-wrapper-sm`]:"small"===T.value,[`${$}-affix-wrapper-lg`]:"large"===T.value,[`${$}-affix-wrapper-rtl`]:"rtl"===v.value,[`${$}-affix-wrapper-borderless`]:!k},kn(`${$}-affix-wrapper`,g.value,x),I.value),wrapperClassName:s({[`${$}-group-rtl`]:"rtl"===v.value},I.value),groupClassName:s({[`${$}-group-wrapper-sm`]:"small"===T.value,[`${$}-group-wrapper-lg`]:"large"===T.value,[`${$}-group-wrapper-rtl`]:"rtl"===v.value},kn(`${$}-group-wrapper`,g.value,x),I.value)}),t(t({},l),{clearIcon:j})))}}}),Ui=e({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:l,direction:u,getPrefixCls:c}=at("input-group",t),h=In.useInject();In.useProvide(h,{isFormItemInput:!1});const p=i((()=>c("input"))),[d,f]=xi(p),g=i((()=>{const e=l.value;return{[`${e}`]:!0,[f.value]:!0,[`${e}-lg`]:"large"===t.size,[`${e}-sm`]:"small"===t.size,[`${e}-compact`]:t.compact,[`${e}-rtl`]:"rtl"===u.value}}));return()=>{var t;return d(o("span",a(a({},r),{},{class:s(g.value,r.class)}),[null===(t=n.default)||void 0===t?void 0:t.call(n)]))}}});var Xi=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Ki=e({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:t(t({},Vi()),{inputPrefixCls:String,enterButton:n.any,onSearch:{type:Function}}),setup(e,n){let{slots:r,attrs:l,expose:u,emit:c}=n;const p=h(),d=h(!1);u({focus:()=>{var t;null===(t=p.value)||void 0===t||t.focus()},blur:()=>{var t;null===(t=p.value)||void 0===t||t.blur()}});const g=t=>{c("update:value",t.target.value),t&&t.target&&"click"===t.type&&c("search",t.target.value,t),c("change",t)},v=t=>{var e;document.activeElement===(null===(e=p.value)||void 0===e?void 0:e.input)&&t.preventDefault()},y=t=>{var e,n;c("search",null===(n=null===(e=p.value)||void 0===e?void 0:e.input)||void 0===n?void 0:n.stateValue,t)},m=t=>{d.value||e.loading||y(t)},x=t=>{d.value=!0,c("compositionstart",t)},_=t=>{d.value=!1,c("compositionend",t)},{prefixCls:b,getPrefixCls:w,direction:S,size:C}=at("input-search",e),T=i((()=>w("input",e.inputPrefixCls)));return()=>{var n,i,u,c;const{disabled:h,loading:d,addonAfter:w=(null===(n=r.addonAfter)||void 0===n?void 0:n.call(r)),suffix:M=(null===(i=r.suffix)||void 0===i?void 0:i.call(r))}=e,I=Xi(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:D=null!==(c=null===(u=r.enterButton)||void 0===u?void 0:u.call(r))&&void 0!==c&&c}=e;D=D||""===D;const k="boolean"==typeof D?o(mn,null,null):null,A=`${b.value}-button`,O=Array.isArray(D)?D[0]:D;let P;const E=O.type&&Ht(O.type)&&O.type.__ANT_BUTTON;if(E||"button"===O.tagName)P=f(O,t({onMousedown:v,onClick:y,key:"enterButton"},E?{class:A,size:C.value}:{}),!1);else{const t=k&&!D;P=o(bt,{class:A,type:D?"primary":void 0,size:C.value,disabled:h,key:"enterButton",onMousedown:v,onClick:y,loading:d,icon:t?k:null},{default:()=>[t?null:k||D]})}w&&(P=[P,w]);const B=s(b.value,{[`${b.value}-rtl`]:"rtl"===S.value,[`${b.value}-${C.value}`]:!!C.value,[`${b.value}-with-button`]:!!D},l.class);return o(Gi,a(a(a({ref:p},Ft(I,["onUpdate:value","onSearch","enterButton"])),l),{},{onPressEnter:m,onCompositionstart:x,onCompositionend:_,size:C.value,prefixCls:T.value,addonAfter:P,suffix:M,onChange:g,class:B,disabled:h}),r)}}}),Yi=t=>null!=t&&(!Array.isArray(t)||yt(t).length);const qi=["text","input"],Zi=e({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:n.oneOf(wt("text","input")),value:St(),defaultValue:St(),allowClear:{type:Boolean,default:void 0},element:St(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:St(),prefix:St(),addonBefore:St(),addonAfter:St(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(t,e){let{slots:n,attrs:i}=e;const r=In.useInject(),a=e=>{const{value:i,disabled:r,readonly:a,handleReset:l,suffix:u=n.suffix}=t,c=!r&&!a&&i,h=`${e}-clear-icon`;return o(H,{onClick:l,onMousedown:t=>t.preventDefault(),class:s({[`${h}-hidden`]:!c,[`${h}-has-suffix`]:!!u},h),role:"button"},null)};return()=>{var e;const{prefixCls:l,inputType:u,element:c=(null===(e=n.element)||void 0===e?void 0:e.call(n))}=t;return u===qi[0]?((e,l)=>{const{value:u,allowClear:c,direction:h,bordered:p,hidden:d,status:g,addonAfter:v=n.addonAfter,addonBefore:y=n.addonBefore,hashId:m}=t,{status:x,hasFeedback:_}=r;if(!c)return f(l,{value:u,disabled:t.disabled});const b=s(`${e}-affix-wrapper`,`${e}-affix-wrapper-textarea-with-clear-btn`,kn(`${e}-affix-wrapper`,An(x,g),_),{[`${e}-affix-wrapper-rtl`]:"rtl"===h,[`${e}-affix-wrapper-borderless`]:!p,[`${i.class}`]:(w={addonAfter:v,addonBefore:y},!(Yi(w.addonBefore)||Yi(w.addonAfter))&&i.class)},m);var w;return o("span",{class:b,style:i.style,hidden:d},[f(l,{style:null,value:u,disabled:t.disabled}),a(e)])})(l,c):null}}}),Qi=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ji={};let tr;function er(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;tr||(tr=document.createElement("textarea"),tr.setAttribute("tab-index","-1"),tr.setAttribute("aria-hidden","true"),document.body.appendChild(tr)),t.getAttribute("wrap")?tr.setAttribute("wrap",t.getAttribute("wrap")):tr.removeAttribute("wrap");const{paddingSize:r,borderSize:o,boxSizing:a,sizingStyle:s}=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&Ji[n])return Ji[n];const i=window.getComputedStyle(t),r=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s={sizingStyle:Qi.map((t=>`${t}:${i.getPropertyValue(t)}`)).join(";"),paddingSize:o,borderSize:a,boxSizing:r};return e&&n&&(Ji[n]=s),s}(t,e);let l,u,c;tr.setAttribute("style",`${s};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n`),tr.value=t.value||t.placeholder||"";let h=tr.scrollHeight;if("border-box"===a?h+=o:"content-box"===a&&(h-=r),null!==n||null!==i){tr.value=" ";const t=tr.scrollHeight-r;null!==n&&(l=t*n,"border-box"===a&&(l=l+r+o),h=Math.max(l,h)),null!==i&&(u=t*i,"border-box"===a&&(u=u+r+o),c=h>u?"":"hidden",h=Math.min(u,h))}const p={height:`${h}px`,overflowY:c,resize:"none"};return l&&(p.minHeight=`${l}px`),u&&(p.maxHeight=`${u}px`),p}const nr=e({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:ji(),setup(e,n){let{attrs:l,emit:u,expose:c}=n;const h=r(),d=r({}),f=r(2);w((()=>{O.cancel(undefined),O.cancel(undefined)}));const g=r(),y=r();v((()=>{const t=e.autoSize||e.autosize;t?(g.value=t.minRows,y.value=t.maxRows):(g.value=void 0,y.value=void 0)}));const m=i((()=>!(!e.autoSize&&!e.autosize))),x=()=>{f.value=0};p([()=>e.value,g,y,m],(()=>{m.value&&x()}),{immediate:!0});const _=r();p([f,h],(()=>{if(h.value)if(0===f.value)f.value=1;else if(1===f.value){const t=er(h.value.input,!1,g.value,y.value);f.value=2,_.value=t}else(()=>{try{if(h.value&&document.activeElement===h.value.input){const t=h.value.getSelectionStart(),e=h.value.getSelectionEnd(),n=h.value.getScrollTop();h.value.setSelectionRange(t,e),h.value.setScrollTop(n)}}catch(t){}})()}),{immediate:!0,flush:"post"});const b=W(),S=r(),C=()=>{O.cancel(S.value)},T=t=>{2===f.value&&(u("resize",t),m.value&&(C(),S.value=O((()=>{x()}))))};w((()=>{C()}));c({resizeTextarea:()=>{x()},textArea:i((()=>{var t;return null===(t=h.value)||void 0===t?void 0:t.input})),instance:b}),Ct(void 0===e.autosize);return()=>(()=>{const{prefixCls:n,disabled:i}=e,r=Ft(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),u=s(n,l.class,{[`${n}-disabled`]:i}),c=m.value?_.value:null,p=[l.style,d.value,c],g=t(t(t({},r),l),{style:p,class:u});return 0!==f.value&&1!==f.value||p.push({overflowX:"hidden",overflowY:"hidden"}),g.autofocus||delete g.autofocus,0===g.rows&&delete g.rows,o(D,{onResize:T,disabled:!m.value},{default:()=>[o(ne,a(a({},g),{},{ref:h,tag:"textarea"}),null)]})})()}});function ir(t,e){return[...t||""].slice(0,e).join("")}function rr(t,e,n,i){let r=n;return t?r=ir(n,i):[...e||""].length<n.length&&[...n||""].length>i&&(r=e),r}const or=e({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:ji(),setup(e,n){let{attrs:r,expose:l,emit:u}=n;var c;const d=Tn(),f=In.useInject(),g=i((()=>An(f.status,e.status))),y=h(null!==(c=e.value)&&void 0!==c?c:e.defaultValue),m=h(),x=h(""),{prefixCls:_,size:b,direction:w}=at("input",e),[S,C]=xi(_),T=lt(),M=i((()=>""===e.showCount||e.showCount||!1)),I=i((()=>Number(e.maxlength)>0)),D=h(!1),k=h(),A=h(0),O=t=>{D.value=!0,k.value=x.value,A.value=t.currentTarget.selectionStart,u("compositionstart",t)},P=t=>{var n;D.value=!1;let i=t.currentTarget.value;if(I.value){i=rr(A.value>=e.maxlength+1||A.value===(null===(n=k.value)||void 0===n?void 0:n.length),k.value,i,e.maxlength)}i!==x.value&&(L(i),Bi(t.currentTarget,t,F,i)),u("compositionend",t)},E=W();p((()=>e.value),(()=>{var t;E.vnode.props,y.value=null!==(t=e.value)&&void 0!==t?t:""}));const R=t=>{var e;Ri(null===(e=m.value)||void 0===e?void 0:e.textArea,t)},L=(t,n)=>{y.value!==t&&(void 0===e.value?y.value=t:B((()=>{var t,e,n;m.value.textArea.value!==x.value&&(null===(n=null===(t=m.value)||void 0===t?void 0:(e=t.instance).update)||void 0===n||n.call(e))})),B((()=>{n&&n()})))},z=t=>{13===t.keyCode&&u("pressEnter",t),u("keydown",t)},N=t=>{const{onBlur:n}=e;null==n||n(t),d.onFieldBlur()},F=t=>{u("update:value",t.target.value),u("change",t),u("input",t),d.onFieldChange()},H=t=>{Bi(m.value.textArea,t,F),L("",(()=>{R()}))},$=t=>{let n=t.target.value;if(y.value!==n){if(I.value){const i=t.target;n=rr(i.selectionStart>=e.maxlength+1||i.selectionStart===n.length||!i.selectionStart,x.value,n,e.maxlength)}Bi(t.currentTarget,t,F,n),L(n)}},V=()=>{var n,i;const{class:s}=r,{bordered:l=!0}=e,u=t(t(t({},Ft(e,["allowClear"])),r),{class:[{[`${_.value}-borderless`]:!l,[`${s}`]:s&&!M.value,[`${_.value}-sm`]:"small"===b.value,[`${_.value}-lg`]:"large"===b.value},kn(_.value,g.value),C.value],disabled:T.value,showCount:null,prefixCls:_.value,onInput:$,onChange:$,onBlur:N,onKeydown:z,onCompositionstart:O,onCompositionend:P});return(null===(n=e.valueModifiers)||void 0===n?void 0:n.lazy)&&delete u.onInput,o(nr,a(a({},u),{},{id:null!==(i=null==u?void 0:u.id)&&void 0!==i?i:d.id.value,ref:m,maxlength:e.maxlength,lazy:e.lazy}),null)};return l({focus:R,blur:()=>{var t,e;null===(e=null===(t=m.value)||void 0===t?void 0:t.textArea)||void 0===e||e.blur()},resizableTextArea:m}),v((()=>{let t=Ei(y.value);D.value||!I.value||null!==e.value&&void 0!==e.value||(t=ir(t,e.maxlength)),x.value=t})),()=>{var n;const{maxlength:i,bordered:l=!0,hidden:u}=e,{style:c,class:h}=r,p=t(t(t({},e),r),{prefixCls:_.value,inputType:"text",handleReset:H,direction:w.value,bordered:l,style:M.value?void 0:c,hashId:C.value,disabled:null!==(n=e.disabled)&&void 0!==n?n:T.value});let d=o(Zi,a(a({},p),{},{value:x.value,status:e.status}),{element:V});if(M.value||f.hasFeedback){const t=[...x.value].length;let e="";e="object"==typeof M.value?M.value.formatter({value:x.value,count:t,maxlength:i}):`${t}${I.value?` / ${i}`:""}`,d=o("div",{hidden:u,class:s(`${_.value}-textarea`,{[`${_.value}-textarea-rtl`]:"rtl"===w.value,[`${_.value}-textarea-show-count`]:M.value,[`${_.value}-textarea-in-form-item`]:f.isFormItemInput},`${_.value}-textarea-show-count`,h,C.value),style:c,"data-count":"object"!=typeof e?e:void 0},[d,f.hasFeedback&&o("span",{class:`${_.value}-textarea-suffix`},[f.feedbackIcon])])}return S(d)}}});const ar={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function sr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){lr(t,e,n[e])}))}return t}function lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ur=function(t,e){var n=sr({},t,e.attrs);return o(F,sr({},n,{icon:ar}),null)};ur.displayName="EyeOutlined",ur.inheritAttrs=!1;const cr=ur;const hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function pr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){dr(t,e,n[e])}))}return t}function dr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fr=function(t,e){var n=pr({},t,e.attrs);return o(F,pr({},n,{icon:hr}),null)};fr.displayName="EyeInvisibleOutlined",fr.inheritAttrs=!1;const gr=fr;var vr=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const yr={click:"onClick",hover:"onMouseover"},mr=t=>o(t?cr:gr,null,null),xr=e({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:t(t({},Vi()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,n){let{slots:r,attrs:l,expose:u,emit:c}=n;const p=h(!1),d=()=>{const{disabled:t}=e;t||(p.value=!p.value,c("update:visible",p.value))};v((()=>{void 0!==e.visible&&(p.value=!!e.visible)}));const g=h();u({focus:()=>{var t;null===(t=g.value)||void 0===t||t.focus()},blur:()=>{var t;null===(t=g.value)||void 0===t||t.blur()}});const{prefixCls:y,getPrefixCls:m}=at("input-password",e),x=i((()=>m("input",e.inputPrefixCls))),_=()=>{const{size:n,visibilityToggle:i}=e,u=vr(e,["size","visibilityToggle"]),c=i&&(t=>{const{action:n,iconRender:i=r.iconRender||mr}=e,a=yr[n]||"",s=i(p.value),l={[a]:d,class:`${t}-icon`,key:"passwordIcon",onMousedown:t=>{t.preventDefault()},onMouseup:t=>{t.preventDefault()}};return f(I(s)?s:o("span",null,[s]),l)})(y.value),h=s(y.value,l.class,{[`${y.value}-${n}`]:!!n}),v=t(t(t({},Ft(u,["suffix","iconRender","action"])),l),{type:p.value?"text":"password",class:h,prefixCls:x.value,suffix:c});return n&&(v.size=n),o(Gi,a({ref:g},v),r)};return()=>_()}});function _r(t,e,n,i){const r=e+n,o=(n-i)/2;if(n>i){if(e>0)return{[t]:o};if(e<0&&r<i)return{[t]:-o}}else if(e<0||r>i)return{[t]:e<0?o:-o};return{}}function br(e,n,i,r){const{width:o,height:a}={width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight};let s=null;return e<=o&&n<=a?s={x:0,y:0}:(e>o||n>a)&&(s=t(t({},_r("x",i,e,o)),_r("y",r,n,a))),s}Gi.Group=Ui,Gi.Search=Ki,Gi.TextArea=or,Gi.Password=xr,Gi.install=function(t){return t.component(Gi.name,Gi),t.component(Gi.Group.name,Gi.Group),t.component(Gi.Search.name,Gi.Search),t.component(Gi.TextArea.name,Gi.TextArea),t.component(Gi.Password.name,Gi.Password),t};var wr=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Sr=Symbol("previewGroupContext"),Cr=t=>{g(Sr,t)},Tr=()=>d(Sr,{isPreviewGroup:h(!1),previewUrls:i((()=>new Map)),setPreviewUrls:()=>{},current:r(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""}),Mr=e({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}},setup(t,e){let{slots:n}=e;const s=i((()=>{const e={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"==typeof t.preview?Or(t.preview,e):e})),l=C(new Map),u=r(),c=i((()=>s.value.visible)),d=i((()=>s.value.getContainer)),[f,g]=Nt(!!c.value,{value:c,onChange:(t,e)=>{var n,i;null===(i=(n=s.value).onVisibleChange)||void 0===i||i.call(n,t,e)}}),y=r(null),m=i((()=>void 0!==c.value)),x=i((()=>Array.from(l.keys()))),b=i((()=>x.value[s.value.current])),w=i((()=>new Map(Array.from(l).filter((t=>{let[,{canPreview:e}]=t;return!!e})).map((t=>{let[e,{url:n}]=t;return[e,n]}))))),S=t=>{u.value=t},T=t=>{y.value=t},M=t=>{null==t||t.stopPropagation(),g(!1),T(null)};return p(b,(t=>{S(t)}),{immediate:!0,flush:"post"}),v((()=>{f.value&&m.value&&S(b.value)}),{flush:"post"}),Cr({isPreviewGroup:h(!0),previewUrls:w,setPreviewUrls:function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l.set(t,{url:e,canPreview:n})},current:u,setCurrent:S,setShowPreview:g,setMousePosition:T,registerImage:function(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return l.set(t,{url:e,canPreview:n}),()=>{l.delete(t)}}}),()=>{const e=wr(s.value,[]);return o(_,null,[n.default&&n.default(),o(Dr,a(a({},e),{},{"ria-hidden":!f.value,visible:f.value,prefixCls:t.previewPrefixCls,onClose:M,mousePosition:y.value,src:w.value.get(u.value),icons:t.icons,getContainer:d.value}),null)])}}}),Ir={x:0,y:0},Dr=e({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:t(t({},Et()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),emits:["close","afterClose"],setup(e,n){let{emit:l,attrs:u}=n;const{rotateLeft:d,rotateRight:f,zoomIn:g,zoomOut:v,close:m,left:x,right:_,flipX:w,flipY:S}=C(e.icons),T=h(1),M=h(0),I=C({x:1,y:1}),[D,k]=function(e){const n=r(null),i=C(t({},e)),o=r([]);return y((()=>{n.value&&O.cancel(n.value)})),[i,e=>{null===n.value&&(o.value=[],n.value=O((()=>{let e;o.value.forEach((n=>{e=t(t({},e),n)})),t(i,e),n.value=null}))),o.value.push(e)}]}(Ir),A=()=>l("close"),E=h(),B=C({originX:0,originY:0,deltaX:0,deltaY:0}),R=h(!1),L=Tr(),{previewUrls:z,current:N,isPreviewGroup:F,setCurrent:H}=L,$=i((()=>z.value.size)),V=i((()=>Array.from(z.value.keys()))),j=i((()=>V.value.indexOf(N.value))),W=i((()=>F.value?z.value.get(N.value):e.src)),G=i((()=>F.value&&$.value>1)),U=h({wheelDirection:0}),X=()=>{T.value=1,M.value=0,I.x=1,I.y=1,k(Ir),l("afterClose")},K=t=>{t?T.value+=.5:T.value++,k(Ir)},Y=t=>{T.value>1&&(t?T.value-=.5:T.value--),k(Ir)},q=t=>{t.preventDefault(),t.stopPropagation(),j.value>0&&H(V.value[j.value-1])},Z=t=>{t.preventDefault(),t.stopPropagation(),j.value<$.value-1&&H(V.value[j.value+1])},Q=s({[`${e.prefixCls}-moving`]:R.value}),J=`${e.prefixCls}-operations-operation`,tt=`${e.prefixCls}-operations-icon`,et=[{icon:m,onClick:A,type:"close"},{icon:g,onClick:()=>K(),type:"zoomIn"},{icon:v,onClick:()=>Y(),type:"zoomOut",disabled:i((()=>1===T.value))},{icon:f,onClick:()=>{M.value+=90},type:"rotateRight"},{icon:d,onClick:()=>{M.value-=90},type:"rotateLeft"},{icon:w,onClick:()=>{I.x=-I.x},type:"flipX"},{icon:S,onClick:()=>{I.y=-I.y},type:"flipY"}],nt=()=>{if(e.visible&&R.value){const e=E.value.offsetWidth*T.value,n=E.value.offsetHeight*T.value,{left:i,top:r}=te(E.value),o=M.value%180!=0;R.value=!1;const a=br(o?n:e,o?e:n,i,r);a&&k(t({},a))}},it=t=>{0===t.button&&(t.preventDefault(),t.stopPropagation(),B.deltaX=t.pageX-D.x,B.deltaY=t.pageY-D.y,B.originX=D.x,B.originY=D.y,R.value=!0)},rt=t=>{e.visible&&R.value&&k({x:t.pageX-B.deltaX,y:t.pageY-B.deltaY})},ot=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;U.value={wheelDirection:n}},at=t=>{e.visible&&G.value&&(t.preventDefault(),t.keyCode===b.LEFT?j.value>0&&H(V.value[j.value-1]):t.keyCode===b.RIGHT&&j.value<$.value-1&&H(V.value[j.value+1]))},st=()=>{e.visible&&(1!==T.value&&(T.value=1),D.x===Ir.x&&D.y===Ir.y||k(Ir))};let lt=()=>{};return y((()=>{p([()=>e.visible,R],(()=>{let t,e;lt();const n=Tt(window,"mouseup",nt,!1),i=Tt(window,"mousemove",rt,!1),r=Tt(window,"wheel",ot,{passive:!1}),o=Tt(window,"keydown",at,!1);try{window.top!==window.self&&(t=Tt(window.top,"mouseup",nt,!1),e=Tt(window.top,"mousemove",rt,!1))}catch(a){}lt=()=>{n.remove(),i.remove(),r.remove(),o.remove(),t&&t.remove(),e&&e.remove()}}),{flush:"post",immediate:!0}),p([U],(()=>{const{wheelDirection:t}=U.value;t>0?Y(!0):t<0&&K(!0)}))})),P((()=>{lt()})),()=>{const{visible:t,prefixCls:n,rootClassName:i}=e;return o(Bt,a(a({},u),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:A,afterClose:X,visible:t,wrapClassName:Q,rootClassName:i,getContainer:e.getContainer}),{default:()=>[o("div",{class:[`${e.prefixCls}-operations-wrapper`,i]},[o("ul",{class:`${e.prefixCls}-operations`},[et.map((t=>{let{icon:n,onClick:i,type:r,disabled:a}=t;return o("li",{class:s(J,{[`${e.prefixCls}-operations-operation-disabled`]:a&&(null==a?void 0:a.value)}),onClick:i,key:r},[c(n,{class:tt})])}))])]),o("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${D.x}px, ${D.y}px, 0)`}},[o("img",{onMousedown:it,onDblclick:st,ref:E,class:`${e.prefixCls}-img`,src:W.value,alt:e.alt,style:{transform:`scale3d(${I.x*T.value}, ${I.y*T.value}, 1) rotate(${M.value}deg)`}},null)]),G.value&&o("div",{class:s(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:j.value<=0}),onClick:q},[x]),G.value&&o("div",{class:s(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:j.value>=$.value-1}),onClick:Z},[_])]})}}});var kr=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Ar=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:n.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),Or=(e,n)=>{const i=t({},e);return Object.keys(n).forEach((t=>{void 0===e[t]&&(i[t]=n[t])})),i};let Pr=0;const Er=e({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:Ar(),emits:["click","error"],setup(e,n){let{attrs:l,slots:u,emit:c}=n;const h=i((()=>e.prefixCls)),d=i((()=>`${h.value}-preview`)),f=i((()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"==typeof e.preview?Or(e.preview,t):t})),g=i((()=>{var t;return null!==(t=f.value.src)&&void 0!==t?t:e.src})),v=i((()=>e.placeholder&&!0!==e.placeholder||u.placeholder)),m=i((()=>f.value.visible)),x=i((()=>f.value.getContainer)),b=i((()=>void 0!==m.value)),[w,S]=Nt(!!m.value,{value:m,onChange:(t,e)=>{var n,i;null===(i=(n=f.value).onVisibleChange)||void 0===i||i.call(n,t,e)}}),C=r(v.value?"loading":"normal");p((()=>e.src),(()=>{C.value=v.value?"loading":"normal"}));const T=r(null),M=i((()=>"error"===C.value)),I=Tr(),{isPreviewGroup:D,setCurrent:k,setShowPreview:A,setMousePosition:O,registerImage:E}=I,B=r(Pr++),R=i((()=>e.preview&&!M.value)),L=()=>{C.value="normal"},z=t=>{C.value="error",c("error",t)},N=t=>{if(!b.value){const{left:e,top:n}=te(t.target);D.value?(k(B.value),O({x:e,y:n})):T.value={x:e,y:n}}D.value?A(!0):S(!0),c("click",t)},F=()=>{S(!1),b.value||(T.value=null)},H=r(null);p((()=>H),(()=>{"loading"===C.value&&H.value.complete&&(H.value.naturalWidth||H.value.naturalHeight)&&L()}));let $=()=>{};y((()=>{p([g,R],(()=>{if($(),!D.value)return()=>{};$=E(B.value,g.value,R.value),R.value||$()}),{flush:"post",immediate:!0})})),P((()=>{$()}));const V=t=>{return"number"==typeof(e=t)||G(e)&&"[object Number]"==U(e)?t+"px":t;var e};return()=>{const{prefixCls:n,wrapperClassName:i,fallback:r,src:h,placeholder:p,wrapperStyle:v,rootClassName:y,width:m,height:b,crossorigin:S,decoding:I,alt:k,sizes:A,srcset:O,usemap:P,class:E,style:B}=t(t({},e),l),$=f.value,{icons:j,maskClassName:W}=$,G=kr($,["icons","maskClassName"]),U=s(n,i,y,{[`${n}-error`]:M.value}),X=M.value&&r?r:g.value,K={crossorigin:S,decoding:I,alt:k,sizes:A,srcset:O,usemap:P,width:m,height:b,class:s(`${n}-img`,{[`${n}-img-placeholder`]:!0===p},E),style:t({height:V(b)},B)};return o(_,null,[o("div",{class:U,onClick:R.value?N:t=>{c("click",t)},style:t({width:V(m),height:V(b)},v)},[o("img",a(a(a({},K),M.value&&r?{src:r}:{onLoad:L,onError:z,src:h}),{},{ref:H}),null),"loading"===C.value&&o("div",{"aria-hidden":"true",class:`${n}-placeholder`},[p||u.placeholder&&u.placeholder()]),u.previewMask&&R.value&&o("div",{class:[`${n}-mask`,W]},[u.previewMask()])]),!D.value&&R.value&&o(Dr,a(a({},G),{},{"aria-hidden":!w.value,visible:w.value,prefixCls:d.value,onClose:F,mousePosition:T.value,src:X,alt:k,getContainer:x.value,icons:j,rootClassName:y}),null)])}}});Er.PreviewGroup=Mr;const Br=Er;const Rr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function Lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){zr(t,e,n[e])}))}return t}function zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nr=function(t,e){var n=Lr({},t,e.attrs);return o(F,Lr({},n,{icon:Rr}),null)};Nr.displayName="RotateLeftOutlined",Nr.inheritAttrs=!1;const Fr=Nr;const Hr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function $r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Vr(t,e,n[e])}))}return t}function Vr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jr=function(t,e){var n=$r({},t,e.attrs);return o(F,$r({},n,{icon:Hr}),null)};jr.displayName="RotateRightOutlined",jr.inheritAttrs=!1;const Wr=jr;const Gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function Ur(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Xr(t,e,n[e])}))}return t}function Xr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kr=function(t,e){var n=Ur({},t,e.attrs);return o(F,Ur({},n,{icon:Gr}),null)};Kr.displayName="ZoomInOutlined",Kr.inheritAttrs=!1;const Yr=Kr;const qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function Zr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){Qr(t,e,n[e])}))}return t}function Qr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jr=function(t,e){var n=Zr({},t,e.attrs);return o(F,Zr({},n,{icon:qr}),null)};Jr.displayName="ZoomOutOutlined",Jr.inheritAttrs=!1;const to=Jr;const eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function no(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){io(t,e,n[e])}))}return t}function io(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ro=function(t,e){var n=no({},t,e.attrs);return o(F,no({},n,{icon:eo}),null)};ro.displayName="SwapOutlined",ro.inheritAttrs=!1;const oo=ro,ao=t=>({position:t||"absolute",inset:0}),so=e=>{const{iconCls:n,motionDurationSlow:i,paddingXXS:r,marginXXS:o,prefixCls:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new Mt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${i}`,[`.${a}-mask-info`]:t(t({},tt),{padding:`0 ${r}px`,[n]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},lo=e=>{const{previewCls:n,modalMaskBg:i,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:a}=e,s=new Mt(i).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${n}-operations`]:t(t({},Y(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:s.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},uo=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:i,previewCls:r,zIndexPopup:o,motionDurationSlow:a}=t,s=new Mt(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:-t.imagePreviewSwitchSize/2,color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:i,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:t.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:t.marginSM},[`${r}-switch-right`]:{insetInlineEnd:t.marginSM}}},co=e=>{const{motionEaseOut:n,previewCls:i,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[i]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${i}-body`]:t(t({},ao()),{overflow:"hidden"}),[`${i}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${n} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":t(t({},ao()),{transition:`transform ${r} ${n} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${i}-moving`]:{[`${i}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${i}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[lo(e),uo(e)]}]},ho=e=>{const{componentCls:n}=e;return{[n]:{position:"relative",display:"inline-block",[`${n}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${n}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${n}-mask`]:t({},so(e)),[`${n}-mask:hover`]:{opacity:1},[`${n}-placeholder`]:t({},ao())}}},po=t=>{const{previewCls:e}=t;return{[`${e}-root`]:It(t,"zoom"),"&":Lt(t,!0)}},fo=rt("Image",(t=>{const e=`${t.componentCls}-preview`,n=nt(t,{previewCls:e,modalMaskBg:new Mt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[ho(n),co(n),Rt(nt(n,{componentCls:e})),po(n)]}),(t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new Mt(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new Mt(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*t.fontSizeIcon}))),go={rotateLeft:o(Fr,null,null),rotateRight:o(Wr,null,null),zoomIn:o(Yr,null,null),zoomOut:o(to,null,null),close:o(V,null,null),left:o(Ci,null,null),right:o($t,null,null),flipX:o(oo,null,null),flipY:o(oo,{rotate:90},null)},vo=e({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:{previewPrefixCls:String,preview:St()},setup(e,n){let{attrs:r,slots:s}=n;const{prefixCls:l,rootPrefixCls:u}=at("image",e),c=i((()=>`${l.value}-preview`)),[h,p]=fo(l),d=i((()=>{const{preview:n}=e;if(!1===n)return n;const i="object"==typeof n?n:{};return t(t({},i),{rootClassName:p.value,transitionName:ut(u.value,"zoom",i.transitionName),maskTransitionName:ut(u.value,"fade",i.maskTransitionName)})}));return()=>h(o(Mr,a(a({},t(t({},r),e)),{},{preview:d.value,icons:go,previewPrefixCls:c.value}),s))}}),yo=e({name:"AImage",inheritAttrs:!1,props:Ar(),setup(e,n){let{slots:r,attrs:l}=n;const{prefixCls:u,rootPrefixCls:c,configProvider:h}=at("image",e),[p,d]=fo(u),f=i((()=>{const{preview:n}=e;if(!1===n)return n;const i="object"==typeof n?n:{};return t(t({icons:go},i),{transitionName:ut(c.value,"zoom",i.transitionName),maskTransitionName:ut(c.value,"fade",i.maskTransitionName)})}));return()=>{var n,i;const c=(null===(i=null===(n=h.locale)||void 0===n?void 0:n.value)||void 0===i?void 0:i.Image)||Dt.Image,g=()=>o("div",{class:`${u.value}-mask-info`},[o(cr,null,null),null==c?void 0:c.preview]),{previewMask:v=r.previewMask||g}=e;return p(o(Br,a(a({},t(t(t({},l),e),{prefixCls:u.value})),{},{preview:f.value,rootClassName:s(e.rootClassName,d.value)}),t(t({},r),{previewMask:"function"==typeof v?v:null})))}}});yo.PreviewGroup=vo,yo.install=function(t){return t.component(yo.name,yo),t.component(yo.PreviewGroup.name,yo.PreviewGroup),t};const mo=yo;function xo(t,e,n){var i=(n||{}).atBegin;return function(t,e,n){var i,r=n||{},o=r.noTrailing,a=void 0!==o&&o,s=r.noLeading,l=void 0!==s&&s,u=r.debounceMode,c=void 0===u?void 0:u,h=!1,p=0;function d(){i&&clearTimeout(i)}function f(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var s=this,u=Date.now()-p;function f(){p=Date.now(),e.apply(s,r)}function g(){i=void 0}h||(l||!c||i||f(),d(),void 0===c&&u>t?l?(p=Date.now(),a||(i=setTimeout(c?g:f,t))):f():!0!==a&&(i=setTimeout(c?g:f,void 0===c?t-u:t)))}return f.cancel=function(t){var e=(t||{}).upcomingOnly,n=void 0!==e&&e;d(),h=!n},f}(t,e,{debounceMode:!1!==(void 0!==i&&i)})}const _o=new X("antSpinMove",{to:{opacity:1}}),bo=new X("antRotate",{to:{transform:"rotate(405deg)"}}),wo=e=>({[`${e.componentCls}`]:t(t({},Y(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:_o,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:bo,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),So=rt("Spin",(t=>{const e=nt(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:.35*t.controlHeightLG,spinDotSizeLG:t.controlHeight});return[wo(e)]}),{contentHeight:400});var Co=globalThis&&globalThis.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};let To=null;const Mo=e({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:T({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:n.any,delay:Number,indicator:n.any},{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:i}=e;const{prefixCls:r,size:s,direction:l}=at("spin",t),[d,f]=So(r),g=h(t.spinning&&(v=t.spinning,y=t.delay,!(v&&y&&!isNaN(Number(y)))));var v,y;let m;return p([()=>t.spinning,()=>t.delay],(()=>{null==m||m.cancel(),m=xo(t.delay,(()=>{g.value=t.spinning})),null==m||m()}),{immediate:!0,flush:"post"}),w((()=>{null==m||m.cancel()})),()=>{var e,h;const{class:p}=n,v=Co(n,["class"]),{tip:y=(null===(e=i.tip)||void 0===e?void 0:e.call(i))}=t,m=null===(h=i.default)||void 0===h?void 0:h.call(i),x={[f.value]:!0,[r.value]:!0,[`${r.value}-sm`]:"small"===s.value,[`${r.value}-lg`]:"large"===s.value,[`${r.value}-spinning`]:g.value,[`${r.value}-show-text`]:!!y,[`${r.value}-rtl`]:"rtl"===l.value,[p]:!!p};const _=o("div",a(a({},v),{},{class:x,"aria-live":"polite","aria-busy":g.value}),[function(e){const n=`${e}-dot`;let r=kt(i,t,"indicator");return null===r?null:(Array.isArray(r)&&(r=1===r.length?r[0]:r),u(r)?c(r,{class:n}):To&&u(To())?c(To(),{class:n}):o("span",{class:`${n} ${e}-dot-spin`},[o("i",{class:`${e}-dot-item`},null),o("i",{class:`${e}-dot-item`},null),o("i",{class:`${e}-dot-item`},null),o("i",{class:`${e}-dot-item`},null)]))}(r.value),y?o("div",{class:`${r.value}-text`},[y]):null]);if(m&&yt(m).length){const e={[`${r.value}-container`]:!0,[`${r.value}-blur`]:g.value};return d(o("div",{class:[`${r.value}-nested-loading`,t.wrapperClassName,f.value]},[g.value&&o("div",{key:"loading"},[_]),o("div",{class:e,key:"container"},[m])]))}return d(_)}}});Mo.setDefaultIndicator=function(t){const e=t.indicator;To="function"==typeof e?e:()=>o(e,null,null)},Mo.install=function(t){return t.component(Mo.name,Mo),t};const Io={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};function Do(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){ko(t,e,n[e])}))}return t}function ko(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ao=function(t,e){var n=Do({},t,e.attrs);return o(F,Do({},n,{icon:Io}),null)};Ao.displayName="CloudUploadOutlined",Ao.inheritAttrs=!1;const Oo=Ao;var Po={exports:{}};var Eo,Bo={exports:{}};function Ro(){return Eo||(Eo=1,Bo.exports=(t=t||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==At&&At.crypto&&(n=At.crypto),!n)try{n=Vt}catch(g){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},r=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var e=r(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)e[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(i());return new l.init(e,t)}}),u=o.enc={},c=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(n,e/2)}},h=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(n,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,c=t.min(4*u,o);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(r,h);n=r.splice(0,u),i.sigBytes-=c}return new l.init(n,c)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=d.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new f.HMAC.init(t,n).finalize(e)}}});var f=o.algo={};return o}(Math),t)),Bo.exports;var t}var Lo,zo={exports:{}};function No(){return Lo?zo.exports:(Lo=1,zo.exports=(a=Ro(),n=(e=a).lib,i=n.Base,r=n.WordArray,(o=e.x64={}).Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var o=t[i];n.push(o.high),n.push(o.low)}return r.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,r=0;r<n;r++)e[r]=e[r].clone();return t}}),a));var t,e,n,i,r,o,a}var Fo,Ho={exports:{}};function $o(){return Fo||(Fo=1,Ho.exports=(t=Ro(),function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,n=e.init,i=e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,i=[],r=0;r<e;r++)i[r>>>2]|=t[r]<<24-r%4*8;n.call(this,i,e)}else n.apply(this,arguments)};i.prototype=e}}(),t.lib.WordArray)),Ho.exports;var t}var Vo,jo={exports:{}};function Wo(){return Vo?jo.exports:(Vo=1,jo.exports=(t=Ro(),function(){var e=t,n=e.lib.WordArray,i=e.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r++)i[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return n.create(i,2*e)}},i.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o<n;o+=2){var a=r(e[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,i=[],o=0;o<e;o++)i[o>>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return n.create(i,2*e)}}}(),t.enc.Utf16));var t}var Go,Uo={exports:{}};function Xo(){return Go?Uo.exports:(Go=1,Uo.exports=(t=Ro(),function(){var e=t,n=e.lib.WordArray;function i(t,e,i){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=i[t.charCodeAt(a-1)]<<a%4*2|i[t.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=s<<24-o%4*8,o++}return n.create(r,o)}e.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)r.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(t){var e=t.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return i(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.enc.Base64));var t}var Ko,Yo={exports:{}};function qo(){return Ko?Yo.exports:(Ko=1,Yo.exports=(t=Ro(),function(){var e=t,n=e.lib.WordArray;function i(t,e,i){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=i[t.charCodeAt(a-1)]<<a%4*2|i[t.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=s<<24-o%4*8,o++}return n.create(r,o)}e.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<i;l++)o.push(r.charAt(s>>>6*(3-l)&63));var u=r.charAt(64);if(u)for(;o.length%4;)o.push(u);return o.join("")},parse:function(t,e){void 0===e&&(e=!0);var n=t.length,r=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<r.length;a++)o[r.charCodeAt(a)]=a}var s=r.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return i(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),t.enc.Base64url));var t}var Zo,Qo={exports:{}};function Jo(){return Zo||(Zo=1,Qo.exports=(t=Ro(),function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],d=t[e+2],f=t[e+3],g=t[e+4],v=t[e+5],y=t[e+6],m=t[e+7],x=t[e+8],_=t[e+9],b=t[e+10],w=t[e+11],S=t[e+12],C=t[e+13],T=t[e+14],M=t[e+15],I=o[0],D=o[1],k=o[2],A=o[3];I=u(I,D,k,A,a,7,s[0]),A=u(A,I,D,k,l,12,s[1]),k=u(k,A,I,D,d,17,s[2]),D=u(D,k,A,I,f,22,s[3]),I=u(I,D,k,A,g,7,s[4]),A=u(A,I,D,k,v,12,s[5]),k=u(k,A,I,D,y,17,s[6]),D=u(D,k,A,I,m,22,s[7]),I=u(I,D,k,A,x,7,s[8]),A=u(A,I,D,k,_,12,s[9]),k=u(k,A,I,D,b,17,s[10]),D=u(D,k,A,I,w,22,s[11]),I=u(I,D,k,A,S,7,s[12]),A=u(A,I,D,k,C,12,s[13]),k=u(k,A,I,D,T,17,s[14]),I=c(I,D=u(D,k,A,I,M,22,s[15]),k,A,l,5,s[16]),A=c(A,I,D,k,y,9,s[17]),k=c(k,A,I,D,w,14,s[18]),D=c(D,k,A,I,a,20,s[19]),I=c(I,D,k,A,v,5,s[20]),A=c(A,I,D,k,b,9,s[21]),k=c(k,A,I,D,M,14,s[22]),D=c(D,k,A,I,g,20,s[23]),I=c(I,D,k,A,_,5,s[24]),A=c(A,I,D,k,T,9,s[25]),k=c(k,A,I,D,f,14,s[26]),D=c(D,k,A,I,x,20,s[27]),I=c(I,D,k,A,C,5,s[28]),A=c(A,I,D,k,d,9,s[29]),k=c(k,A,I,D,m,14,s[30]),I=h(I,D=c(D,k,A,I,S,20,s[31]),k,A,v,4,s[32]),A=h(A,I,D,k,x,11,s[33]),k=h(k,A,I,D,w,16,s[34]),D=h(D,k,A,I,T,23,s[35]),I=h(I,D,k,A,l,4,s[36]),A=h(A,I,D,k,g,11,s[37]),k=h(k,A,I,D,m,16,s[38]),D=h(D,k,A,I,b,23,s[39]),I=h(I,D,k,A,C,4,s[40]),A=h(A,I,D,k,a,11,s[41]),k=h(k,A,I,D,f,16,s[42]),D=h(D,k,A,I,y,23,s[43]),I=h(I,D,k,A,_,4,s[44]),A=h(A,I,D,k,S,11,s[45]),k=h(k,A,I,D,M,16,s[46]),I=p(I,D=h(D,k,A,I,d,23,s[47]),k,A,a,6,s[48]),A=p(A,I,D,k,m,10,s[49]),k=p(k,A,I,D,T,15,s[50]),D=p(D,k,A,I,v,21,s[51]),I=p(I,D,k,A,S,6,s[52]),A=p(A,I,D,k,f,10,s[53]),k=p(k,A,I,D,b,15,s[54]),D=p(D,k,A,I,l,21,s[55]),I=p(I,D,k,A,x,6,s[56]),A=p(A,I,D,k,M,10,s[57]),k=p(k,A,I,D,y,15,s[58]),D=p(D,k,A,I,C,21,s[59]),I=p(I,D,k,A,g,6,s[60]),A=p(A,I,D,k,w,10,s[61]),k=p(k,A,I,D,d,15,s[62]),D=p(D,k,A,I,_,21,s[63]),o[0]=o[0]+I|0,o[1]=o[1]+D|0,o[2]=o[2]+k|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function c(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function p(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5)),Qo.exports;var t}var ta,ea={exports:{}};function na(){return ta||(ta=1,ea.exports=(s=Ro(),e=(t=s).lib,n=e.WordArray,i=e.Hasher,r=t.algo,o=[],a=r.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],a=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)o[u]=0|t[e+u];else{var c=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=c<<1|c>>>31}var h=(i<<5|i>>>27)+l+o[u];h+=u<20?1518500249+(r&a|~r&s):u<40?1859775393+(r^a^s):u<60?(r&a|r&s|a&s)-1894007588:(r^a^s)-899497514,l=s,s=a,a=r<<30|r>>>2,r=i,i=h}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a),s.SHA1)),ea.exports;var t,e,n,i,r,o,a,s}var ia,ra={exports:{}};function oa(){return ia?ra.exports:(ia=1,ra.exports=(t=Ro(),function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),l[r]=n(e.pow(i,1/3)),r++),i++}();var u=[],c=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],c=n[5],h=n[6],p=n[7],d=0;d<64;d++){if(d<16)u[d]=0|t[e+d];else{var f=u[d-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[d]=g+u[d-7]+y+u[d-16]}var m=i&r^i&o^r&o,x=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),_=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&h)+l[d]+u[d];p=h,h=c,c=s,s=a+_|0,a=o,o=r,r=i,i=_+(x+m)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+h|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(c),n.HmacSHA256=o._createHmacHelper(c)}(Math),t.SHA256));var t}var aa,sa={exports:{}};var la,ua={exports:{}};function ca(){return la||(la=1,ua.exports=(t=Ro(),No(),function(){var e=t,n=e.lib.Hasher,i=e.x64,r=i.Word,o=i.WordArray,a=e.algo;function s(){return r.create.apply(r,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var t=0;t<80;t++)u[t]=s()}();var c=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],c=n[5],h=n[6],p=n[7],d=i.high,f=i.low,g=r.high,v=r.low,y=o.high,m=o.low,x=a.high,_=a.low,b=s.high,w=s.low,S=c.high,C=c.low,T=h.high,M=h.low,I=p.high,D=p.low,k=d,A=f,O=g,P=v,E=y,B=m,R=x,L=_,z=b,N=w,F=S,H=C,$=T,V=M,j=I,W=D,G=0;G<80;G++){var U,X,K=u[G];if(G<16)X=K.high=0|t[e+2*G],U=K.low=0|t[e+2*G+1];else{var Y=u[G-15],q=Y.high,Z=Y.low,Q=(q>>>1|Z<<31)^(q>>>8|Z<<24)^q>>>7,J=(Z>>>1|q<<31)^(Z>>>8|q<<24)^(Z>>>7|q<<25),tt=u[G-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[G-7],at=ot.high,st=ot.low,lt=u[G-16],ut=lt.high,ct=lt.low;X=(X=(X=Q+at+((U=J+st)>>>0<J>>>0?1:0))+it+((U+=rt)>>>0<rt>>>0?1:0))+ut+((U+=ct)>>>0<ct>>>0?1:0),K.high=X,K.low=U}var ht,pt=z&F^~z&$,dt=N&H^~N&V,ft=k&O^k&E^O&E,gt=A&P^A&B^P&B,vt=(k>>>28|A<<4)^(k<<30|A>>>2)^(k<<25|A>>>7),yt=(A>>>28|k<<4)^(A<<30|k>>>2)^(A<<25|k>>>7),mt=(z>>>14|N<<18)^(z>>>18|N<<14)^(z<<23|N>>>9),xt=(N>>>14|z<<18)^(N>>>18|z<<14)^(N<<23|z>>>9),_t=l[G],bt=_t.high,wt=_t.low,St=j+mt+((ht=W+xt)>>>0<W>>>0?1:0),Ct=yt+gt;j=$,W=V,$=F,V=H,F=z,H=N,z=R+(St=(St=(St=St+pt+((ht+=dt)>>>0<dt>>>0?1:0))+bt+((ht+=wt)>>>0<wt>>>0?1:0))+X+((ht+=U)>>>0<U>>>0?1:0))+((N=L+ht|0)>>>0<L>>>0?1:0)|0,R=E,L=B,E=O,B=P,O=k,P=A,k=St+(vt+ft+(Ct>>>0<yt>>>0?1:0))+((A=ht+Ct|0)>>>0<ht>>>0?1:0)|0}f=i.low=f+A,i.high=d+k+(f>>>0<A>>>0?1:0),v=r.low=v+P,r.high=g+O+(v>>>0<P>>>0?1:0),m=o.low=m+B,o.high=y+E+(m>>>0<B>>>0?1:0),_=a.low=_+L,a.high=x+R+(_>>>0<L>>>0?1:0),w=s.low=w+N,s.high=b+z+(w>>>0<N>>>0?1:0),C=c.low=C+H,c.high=S+F+(C>>>0<H>>>0?1:0),M=h.low=M+V,h.high=T+$+(M>>>0<V>>>0?1:0),D=p.low=D+W,p.high=I+j+(D>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(c),e.HmacSHA512=n._createHmacHelper(c)}(),t.SHA512)),ua.exports;var t}var ha,pa={exports:{}};var da,fa={exports:{}};function ga(){return da||(da=1,fa.exports=(t=Ro(),No(),function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64.Word,s=n.algo,l=[],u=[],c=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var r=1,o=0;o<24;o++){for(var s=0,h=0,p=0;p<7;p++){if(1&r){var d=(1<<p)-1;d<32?h^=1<<d:s^=1<<d-32}128&r?r=r<<1^113:r<<=1}c[o]=a.create(s,h)}}();var h=[];!function(){for(var t=0;t<25;t++)h[t]=a.create()}();var p=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(D=n[r]).high^=a,D.low^=o}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var d=0,f=0,g=0;g<5;g++)d^=(D=n[p+5*g]).high,f^=D.low;var v=h[p];v.high=d,v.low=f}for(p=0;p<5;p++){var y=h[(p+4)%5],m=h[(p+1)%5],x=m.high,_=m.low;for(d=y.high^(x<<1|_>>>31),f=y.low^(_<<1|x>>>31),g=0;g<5;g++)(D=n[p+5*g]).high^=d,D.low^=f}for(var b=1;b<25;b++){var w=(D=n[b]).high,S=D.low,C=l[b];C<32?(d=w<<C|S>>>32-C,f=S<<C|w>>>32-C):(d=S<<C-32|w>>>64-C,f=w<<C-32|S>>>64-C);var T=h[u[b]];T.high=d,T.low=f}var M=h[0],I=n[0];for(M.high=I.high,M.low=I.low,p=0;p<5;p++)for(g=0;g<5;g++){var D=n[b=p+5*g],k=h[b],A=h[(p+1)%5+5*g],O=h[(p+2)%5+5*g];D.high=k.high^~A.high&O.high,D.low=k.low^~A.low&O.low}D=n[0];var P=c[s];D.high^=P.high,D.low^=P.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var i=8*t.sigBytes,o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var h=a[c],p=h.high,d=h.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),u.push(d),u.push(p)}return new r.init(u,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3)),fa.exports;var t}var va,ya={exports:{}};var ma,xa={exports:{}};function _a(){return ma?xa.exports:(ma=1,xa.exports=(t=Ro(),n=(e=t).lib.Base,i=e.enc.Utf8,void(e.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,l=a.words,u=0;u<n;u++)s[u]^=1549556828,l[u]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}}))));var t,e,n,i}var ba,wa={exports:{}};var Sa,Ca={exports:{}};function Ta(){return Sa?Ca.exports:(Sa=1,Ca.exports=(s=Ro(),na(),_a(),e=(t=s).lib,n=e.Base,i=e.WordArray,r=t.algo,o=r.MD5,a=r.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,l=r.keySize,u=r.iterations;s.length<l;){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var c=1;c<u;c++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}}),t.EvpKDF=function(t,e,n){return a.create(n).compute(t,e)},s.EvpKDF));var t,e,n,i,r,o,a,s}var Ma,Ia={exports:{}};function Da(){return Ma?Ia.exports:(Ma=1,Ia.exports=(t=Ro(),Ta(),void(t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,u=n.algo.EvpKDF,c=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?x:y}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()});i.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var h=n.mode={},p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=h.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a<i;a++)t[n+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this._prevBlock=o}}),t}(),f=(n.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};i.BlockCipher=c.extend({cfg:c.cfg.extend({mode:d,padding:f}),reset:function(){var t;c.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4});var g=i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:e})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:v}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(n,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),m=(n.kdf={}).OpenSSL={execute:function(t,e,n,i,r){if(i||(i=o.random(8)),r)a=u.create({keySize:e+n,hasher:r}).compute(t,i);else var a=u.create({keySize:e+n}).compute(t,i);var s=o.create(a.words.slice(e),4*n);return a.sigBytes=4*e,g.create({key:a,iv:s,salt:i})}},x=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:m}),encrypt:function(t,e,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=r.iv;var o=y.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt,i.hasher);return i.iv=r.iv,y.decrypt.call(this,t,e,r.key,i)}})}())));var t}var ka,Aa={exports:{}};var Oa,Pa={exports:{}};var Ea,Ba={exports:{}};function Ra(){return Ea?Ba.exports:(Ea=1,Ba.exports=(t=Ro(),Da(), /** @preserve * Counter block mode compatible with Dr Brian Gladman fileenc.c * derived from CryptoJS.mode.CTR * Jan Hruby jhruby.web@gmail.com */ t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255&~(t>>24))t+=1<<24;else{var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman));var t}var La,za={exports:{}};var Na,Fa={exports:{}};var Ha,$a={exports:{}};var Va,ja={exports:{}};var Wa,Ga={exports:{}};var Ua,Xa={exports:{}};var Ka,Ya={exports:{}};var qa,Za={exports:{}};var Qa,Ja={exports:{}};var ts,es={exports:{}};function ns(){return ts||(ts=1,es.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib,i=n.WordArray,r=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var i=a[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var u=r[o]=[],c=l[o];for(n=0;n<24;n++)u[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=r[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],p.call(this,4,252645135),p.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),p.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((a^r[l])&c[l])>>>0];this._lBlock=a,this._rBlock=o^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,p.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function d(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=r._createHelper(h);var f=o.TripleDES=r.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(i.create(e)),this._des2=h.createEncryptor(i.create(n)),this._des3=h.createEncryptor(i.create(r))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES)),es.exports;var t}var is,rs={exports:{}};var os,as={exports:{}};var ss,ls={exports:{}};var us,cs,hs,ps,ds,fs,gs,vs={exports:{}};function ys(){return us?vs.exports:(us=1,vs.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib.BlockCipher,i=e.algo;const r=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(t,e){let n=e>>24&255,i=e>>16&255,r=e>>8&255,o=255&e,a=t.sbox[0][n]+t.sbox[1][i];return a^=t.sbox[2][r],a+=t.sbox[3][o],a}function u(t,e,n){let i,o=e,a=n;for(let s=0;s<r;++s)o^=t.pbox[s],a=l(t,o)^a,i=o,o=a,a=i;return i=o,o=a,a=i,a^=t.pbox[r],o^=t.pbox[r+1],{left:o,right:a}}function c(t,e,n){let i,o=e,a=n;for(let s=r+1;s>1;--s)o^=t.pbox[s],a=l(t,o)^a,i=o,o=a,a=i;return i=o,o=a,a=i,a^=t.pbox[1],o^=t.pbox[0],{left:o,right:a}}function h(t,e,n){for(let r=0;r<4;r++){t.sbox[r]=[];for(let e=0;e<256;e++)t.sbox[r][e]=a[r][e]}let i=0;for(let a=0;a<r+2;a++)t.pbox[a]=o[a]^e[i],i++,i>=n&&(i=0);let s=0,l=0,c=0;for(let o=0;o<r+2;o+=2)c=u(t,s,l),s=c.left,l=c.right,t.pbox[o]=s,t.pbox[o+1]=l;for(let r=0;r<4;r++)for(let e=0;e<256;e+=2)c=u(t,s,l),s=c.left,l=c.right,t.sbox[r][e]=s,t.sbox[r][e+1]=l;return!0}var p=i.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4;h(s,e,n)}},encryptBlock:function(t,e){var n=u(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},decryptBlock:function(t,e){var n=c(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=n._createHelper(p)}(),t.Blowfish));var t}Po.exports=function(t){return t}(Ro(),No(),$o(),Wo(),Xo(),qo(),Jo(),na(),oa(),aa||(aa=1,sa.exports=(gs=Ro(),oa(),hs=(cs=gs).lib.WordArray,ps=cs.algo,ds=ps.SHA256,fs=ps.SHA224=ds.extend({_doReset:function(){this._hash=new hs.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=ds._doFinalize.call(this);return t.sigBytes-=4,t}}),cs.SHA224=ds._createHelper(fs),cs.HmacSHA224=ds._createHmacHelper(fs),gs.SHA224)),ca(),function(){return ha?pa.exports:(ha=1,pa.exports=(s=Ro(),No(),ca(),e=(t=s).x64,n=e.Word,i=e.WordArray,r=t.algo,o=r.SHA512,a=r.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=16,t}}),t.SHA384=o._createHelper(a),t.HmacSHA384=o._createHmacHelper(a),s.SHA384));var t,e,n,i,r,o,a,s}(),ga(),function(){return va||(va=1,ya.exports=(t=Ro(), /** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,p,x,_,b,w,S,C,T,M,I,D=this._hash.words,k=c.words,A=h.words,O=a.words,P=s.words,E=l.words,B=u.words;for(w=o=D[0],S=p=D[1],C=x=D[2],T=_=D[3],M=b=D[4],n=0;n<80;n+=1)I=o+t[e+O[n]]|0,I+=n<16?d(p,x,_)+k[0]:n<32?f(p,x,_)+k[1]:n<48?g(p,x,_)+k[2]:n<64?v(p,x,_)+k[3]:y(p,x,_)+k[4],I=(I=m(I|=0,E[n]))+b|0,o=b,b=_,_=m(x,10),x=p,p=I,I=w+t[e+P[n]]|0,I+=n<16?y(S,C,T)+A[0]:n<32?v(S,C,T)+A[1]:n<48?g(S,C,T)+A[2]:n<64?f(S,C,T)+A[3]:d(S,C,T)+A[4],I=(I=m(I|=0,B[n]))+M|0,w=M,M=T,T=m(C,10),C=S,S=I;I=D[1]+x+T|0,D[1]=D[2]+_+M|0,D[2]=D[3]+b+w|0,D[3]=D[4]+o+S|0,D[4]=D[0]+p+C|0,D[0]=I},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function d(t,e,n){return t^e^n}function f(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function m(t,e){return t<<e|t>>>32-e}e.RIPEMD160=r._createHelper(p),e.HmacRIPEMD160=r._createHmacHelper(p)}(),t.RIPEMD160)),ya.exports;var t}(),_a(),function(){return ba?wa.exports:(ba=1,wa.exports=(l=Ro(),oa(),_a(),e=(t=l).lib,n=e.Base,i=e.WordArray,r=t.algo,o=r.SHA256,a=r.HMAC,s=r.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:o,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,r=a.create(n.hasher,t),o=i.create(),s=i.create([1]),l=o.words,u=s.words,c=n.keySize,h=n.iterations;l.length<c;){var p=r.update(e).finalize(s);r.reset();for(var d=p.words,f=d.length,g=p,v=1;v<h;v++){g=r.finalize(g),r.reset();for(var y=g.words,m=0;m<f;m++)d[m]^=y[m]}o.concat(p),u[0]++}return o.sigBytes=4*c,o}}),t.PBKDF2=function(t,e,n){return s.create(n).compute(t,e)},l.PBKDF2));var t,e,n,i,r,o,a,s,l}(),Ta(),Da(),function(){return ka?Aa.exports:(ka=1,Aa.exports=(t=Ro(),Da(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function n(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var a=0;a<n;a++)t[e+a]^=r[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r,i),this._prevBlock=t.slice(e,e+r)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);n.call(this,t,e,r,i),this._prevBlock=o}}),e}(),t.mode.CFB));var t}(),function(){return Oa?Pa.exports:(Oa=1,Pa.exports=(n=Ro(),Da(),n.mode.CTR=(t=n.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}}),t.Decryptor=e,t),n.mode.CTR));var t,e,n}(),Ra(),function(){return La?za.exports:(La=1,za.exports=(n=Ro(),Da(),n.mode.OFB=(t=n.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)t[e+a]^=o[a]}}),t.Decryptor=e,t),n.mode.OFB));var t,e,n}(),function(){return Na?Fa.exports:(Na=1,Fa.exports=(e=Ro(),Da(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return Ha?$a.exports:(Ha=1,$a.exports=(t=Ro(),Da(),t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return Va?ja.exports:(Va=1,ja.exports=(t=Ro(),Da(),t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return Wa?Ga.exports:(Wa=1,Ga.exports=(t=Ro(),Da(),t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return Ua?Xa.exports:(Ua=1,Xa.exports=(t=Ro(),Da(),t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding));var t}(),function(){return Ka?Ya.exports:(Ka=1,Ya.exports=(t=Ro(),Da(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return qa?Za.exports:(qa=1,Za.exports=(i=Ro(),Da(),e=(t=i).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(n)},parse:function(t){var i=n.parse(t);return e.create({ciphertext:i})}},i.format.Hex));var t,e,n,i}(),function(){return Qa||(Qa=1,Ja.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib.BlockCipher,i=e.algo,r=[],o=[],a=[],s=[],l=[],u=[],c=[],h=[],p=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,r[n]=f,o[f]=n;var g=t[n],v=t[g],y=t[v],m=257*t[f]^16843008*f;a[n]=m<<24|m>>>8,s[n]=m<<16|m>>>16,l[n]=m<<8|m>>>24,u[n]=m,m=16843009*y^65537*v^257*g^16843008*n,c[f]=m<<24|m>>>8,h[f]=m<<16|m>>>16,p[f]=m<<8|m>>>24,d[f]=m,n?(n=g^t[t[t[y^g]]],i^=t[t[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],g=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<i;a++)a<n?o[a]=e[a]:(u=o[a-1],a%n?n>6&&a%n==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=f[a/n|0]<<24),o[a]=o[a-n]^u);for(var s=this._invKeySchedule=[],l=0;l<i;l++){if(a=i-l,l%4)var u=o[a];else u=o[a-4];s[l]=l<4||a<=4?u:c[r[u>>>24]]^h[r[u>>>16&255]]^p[r[u>>>8&255]]^d[r[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,l,u,r)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,h,p,d,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,u=t[e]^n[0],c=t[e+1]^n[1],h=t[e+2]^n[2],p=t[e+3]^n[3],d=4,f=1;f<l;f++){var g=i[u>>>24]^r[c>>>16&255]^o[h>>>8&255]^a[255&p]^n[d++],v=i[c>>>24]^r[h>>>16&255]^o[p>>>8&255]^a[255&u]^n[d++],y=i[h>>>24]^r[p>>>16&255]^o[u>>>8&255]^a[255&c]^n[d++],m=i[p>>>24]^r[u>>>16&255]^o[c>>>8&255]^a[255&h]^n[d++];u=g,c=v,h=y,p=m}g=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^n[d++],v=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^n[d++],y=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[d++],m=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[d++],t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=m},keySize:8});e.AES=n._createHelper(g)}(),t.AES)),Ja.exports;var t}(),ns(),function(){return is||(is=1,rs.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib.StreamCipher,i=e.algo,r=i.RC4=n.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=n._createHelper(r);var a=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=n._createHelper(a)}(),t.RC4)),rs.exports;var t}(),function(){return os?as.exports:(os=1,as.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib.StreamCipher,i=e.algo,r=[],o=[],a=[],s=i.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,p=c<<16|65535&u;for(r[0]^=u,r[1]^=h,r[2]^=c,r[3]^=p,r[4]^=u,r[5]^=h,r[6]^=c,r[7]^=p,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[n]=l^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=n._createHelper(s)}(),t.Rabbit));var t}(),function(){return ss?ls.exports:(ss=1,ls.exports=(t=Ro(),Xo(),Jo(),Ta(),Da(),function(){var e=t,n=e.lib.StreamCipher,i=e.algo,r=[],o=[],a=[],s=i.RabbitLegacy=n.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)l.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=u>>>16|4294901760&c,p=c<<16|65535&u;for(i[0]^=u,i[1]^=h,i[2]^=c,i[3]^=p,i[4]^=u,i[5]^=h,i[6]^=c,i[7]^=p,r=0;r<4;r++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[n]=l^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=n._createHelper(s)}(),t.RabbitLegacy));var t}(),ys());const ms=Ot(Po.exports);function xs(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function _s(t,e){return t&e}function bs(t,e){return t|e}function ws(t,e){return t^e}function Ss(t,e){return t&~e}function Cs(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function Ts(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var Ms,Is="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ds(t){var e,n,i="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),i+=Is.charAt(n>>6)+Is.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=Is.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=Is.charAt(n>>2)+Is.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}function ks(t){var e,n="",i=0,r=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var o=Is.indexOf(t.charAt(e));o<0||(0==i?(n+=xs(o>>2),r=3&o,i=1):1==i?(n+=xs(r<<2|o>>4),r=15&o,i=2):2==i?(n+=xs(r),n+=xs(o>>2),r=3&o,i=3):(n+=xs(r<<2|o>>4),n+=xs(15&o),i=0))}return 1==i&&(n+=xs(r<<2)),n}var As,Os=function(t){var e;if(void 0===Ms){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(Ms={},e=0;e<16;++e)Ms[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)Ms[n.charAt(e)]=e;for(e=0;e<8;++e)Ms[i.charAt(e)]=-1}var r=[],o=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=Ms[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);o|=s,++a>=2?(r[r.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return r},Ps={decode:function(t){var e;if(void 0===As){var n="= \f\n\r\t \u2028\u2029";for(As=Object.create(null),e=0;e<64;++e)As["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(As["-"]=62,As._=63,e=0;e<9;++e)As[n.charAt(e)]=-1}var i=[],r=0,o=0;for(e=0;e<t.length;++e){var a=t.charAt(e);if("="==a)break;if(-1!=(a=As[a])){if(void 0===a)throw new Error("Illegal character at offset "+e);r|=a,++o>=4?(i[i.length]=r>>16,i[i.length]=r>>8&255,i[i.length]=255&r,r=0,o=0):r<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=r>>10;break;case 3:i[i.length]=r>>16,i[i.length]=r>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=Ps.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return Ps.decode(t)}},Es=1e13,Bs=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,i,r=this.buf,o=r.length;for(n=0;n<o;++n)(i=r[n]*t+e)<Es?e=0:i-=(e=0|i/Es)*Es,r[n]=i;e>0&&(r[n]=e)},t.prototype.sub=function(t){var e,n,i=this.buf,r=i.length;for(e=0;e<r;++e)(n=i[e]-t)<0?(n+=Es,t=1):t=0,i[e]=n;for(;0===i[i.length-1];)i.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),i=e.length-2;i>=0;--i)n+=(Es+e[i]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*Es+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Rs=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Ls=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function zs(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var Ns,Fs=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var i="",r=t;r<e;++r)if(i+=this.hexByte(this.get(r)),!0!==n)switch(15&r){case 7:i+=" ";break;case 15:i+="\n";break;default:i+=" "}return i},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",i=t;i<e;++i)n+=String.fromCharCode(this.get(i));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",i=t;i<e;){var r=this.get(i++);n+=r<128?String.fromCharCode(r):r>191&&r<224?String.fromCharCode((31&r)<<6|63&this.get(i++)):String.fromCharCode((15&r)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,i,r="",o=t;o<e;)n=this.get(o++),i=this.get(o++),r+=String.fromCharCode(n<<8|i);return r},t.prototype.parseTime=function(t,e,n){var i=this.parseStringISO(t,e),r=(n?Rs:Ls).exec(i);return r?(n&&(r[1]=+r[1],r[1]+=+r[1]<70?2e3:1900),i=r[1]+"-"+r[2]+"-"+r[3]+" "+r[4],r[5]&&(i+=":"+r[5],r[6]&&(i+=":"+r[6],r[7]&&(i+="."+r[7]))),r[8]&&(i+=" UTC","Z"!=r[8]&&(i+=r[8],r[9]&&(i+=":"+r[9]))),i):"Unrecognized time: "+i},t.prototype.parseInteger=function(t,e){for(var n,i=this.get(t),r=i>127,o=r?255:0,a="";i==o&&++t<e;)i=this.get(t);if(0===(n=e-t))return r?-1:0;if(n>4){for(a=i,n<<=3;!(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}r&&(i-=256);for(var s=new Bs(i),l=t+1;l<e;++l)s.mulAdd(256,this.get(l));return a+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var i=this.get(t),r="("+((e-t-1<<3)-i)+" bit)\n",o="",a=t+1;a<e;++a){for(var s=this.get(a),l=a==e-1?i:0,u=7;u>=l;--u)o+=s>>u&1?"1":"0";if(o.length>n)return r+zs(o,n)}return r+o},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return zs(this.parseStringISO(t,e),n);var i=e-t,r="("+i+" byte)\n";i>(n/=2)&&(e=t+n);for(var o=t;o<e;++o)r+=this.hexByte(this.get(o));return i>n&&(r+="…"),r},t.prototype.parseOID=function(t,e,n){for(var i="",r=new Bs,o=0,a=t;a<e;++a){var s=this.get(a);if(r.mulAdd(128,127&s),o+=7,!(128&s)){if(""===i)if((r=r.simplify())instanceof Bs)r.sub(80),i="2."+r.toString();else{var l=r<80?r<40?0:1:2;i=l+"."+(r-40*l)}else i+="."+r.toString();if(i.length>n)return zs(i,n);r=new Bs,o=0}}return o>0&&(i+=".incomplete"),i},t}(),Hs=function(){function t(t,e,n,i,r){if(!(i instanceof $s))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=i,this.sub=r}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return zs(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return zs(this.stream.parseStringISO(e,e+n),t);case 30:return zs(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var i=0;i<n;++i)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof Fs?e:new Fs(e,0);var i=new Fs(n),r=new $s(n),o=t.decodeLength(n),a=n.pos,s=a-i.pos,l=null,u=function(){var e=[];if(null!==o){for(var i=a+o;n.pos<i;)e[e.length]=t.decode(n);if(n.pos!=i)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var r=t.decode(n);if(r.tag.isEOC())break;e[e.length]=r}o=a-n.pos}catch(s){throw new Error("Exception while decoding undefined length content: "+s)}return e};if(r.tagConstructed)l=u();else if(r.isUniversal()&&(3==r.tagNumber||4==r.tagNumber))try{if(3==r.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(h){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new t(i,s,o,r,l)},t}(),$s=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=!!(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new Bs;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),Vs=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],js=(1<<26)/Vs[Vs.length-1],Ws=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,i=(1<<e)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%e;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=xs(n));a>=0;)s<e?(n=(this[a]&(1<<s)-1)<<e-s,n|=this[--a]>>(s+=this.DB-e)):(n=this[a]>>(s-=e)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=xs(n));return r?o:"0"},t.prototype.negate=function(){var e=Ys();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+il(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=Ys();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new Us(e):new Xs(e),this.exp(t,n)},t.prototype.clone=function(){var t=Ys();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,i=this.DB-t*this.DB%8,r=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(e[r++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),128&n&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(e[r++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=Ys();return this.bitwiseTo(t,_s,e),e},t.prototype.or=function(t){var e=Ys();return this.bitwiseTo(t,bs,e),e},t.prototype.xor=function(t){var e=Ys();return this.bitwiseTo(t,ws,e),e},t.prototype.andNot=function(t){var e=Ys();return this.bitwiseTo(t,Ss,e),e},t.prototype.not=function(){for(var t=Ys(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=Ys();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=Ys();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+Cs(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=Ts(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,bs)},t.prototype.clearBit=function(t){return this.changeBit(t,Ss)},t.prototype.flipBit=function(t){return this.changeBit(t,ws)},t.prototype.add=function(t){var e=Ys();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=Ys();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=Ys();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=Ys();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=Ys();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=Ys(),n=Ys();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,i,r=t.bitLength(),o=nl(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Us(e):e.isEven()?new Ks(e):new Xs(e);var a=[],s=3,l=n-1,u=(1<<n)-1;if(a[1]=i.convert(this),n>1){var c=Ys();for(i.sqrTo(a[1],c);s<=u;)a[s]=Ys(),i.mulTo(c,a[s-2],a[s]),s+=2}var h,p,d=t.t-1,f=!0,g=Ys();for(r=il(t[d])-1;d>=0;){for(r>=l?h=t[d]>>r-l&u:(h=(t[d]&(1<<r+1)-1)<<l-r,d>0&&(h|=t[d-1]>>this.DB+r-l)),s=n;!(1&h);)h>>=1,--s;if((r-=s)<0&&(r+=this.DB,--d),f)a[h].copyTo(o),f=!1;else{for(;s>1;)i.sqrTo(o,g),i.sqrTo(g,o),s-=2;s>0?i.sqrTo(o,g):(p=o,o=g,g=p),i.mulTo(g,a[h],o)}for(;d>=0&&!(t[d]&1<<r);)i.sqrTo(o,g),p=o,o=g,g=p,--r<0&&(r=this.DB-1,--d)}return i.revert(o)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var i=e.clone(),r=this.clone(),o=nl(1),a=nl(0),s=nl(0),l=nl(1);0!=i.signum();){for(;i.isEven();)i.rShiftTo(1,i),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;r.isEven();)r.rShiftTo(1,r),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);i.compareTo(r)>=0?(i.subTo(r,i),n&&o.subTo(s,o),a.subTo(l,a)):(r.subTo(i,r),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=r.compareTo(t.ONE)?t.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},t.prototype.pow=function(t){return this.exp(t,new Gs)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var r=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(r<o&&(o=r),o>0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(r=e.getLowestSetBit())>0&&e.rShiftTo(r,e),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=Vs[Vs.length-1]){for(e=0;e<Vs.length;++e)if(n[0]==Vs[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<Vs.length;){for(var i=Vs[e],r=e+1;r<Vs.length&&i<js;)i*=Vs[r++];for(i=n.modInt(i);e<r;)if(i%Vs[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(e,n);i=2}this.t=0,this.s=0;for(var r=e.length,o=!1,a=0;--r>=0;){var s=8==i?255&+e[r]:el(e,r);s<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+i>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=i)>=this.DB&&(a-=this.DB))}8==i&&128&+e[0]&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,i=this.DB-n,r=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+o+1]=this[s]>>i|a,a=(this[s]&r)<<n;for(s=o-1;s>=0;--s)e[s]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,r=this.DB-i,o=(1<<i)-1;e[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&o)<<r,e[a-n]=this[a]>>i;i>0&&(e[this.t-n-1]|=(this.s&o)<<r),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]-t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],e[n++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var i=this.abs(),r=e.abs(),o=i.t;for(n.t=o+r.t;--o>=0;)n[o]=0;for(o=0;o<r.t;++o)n[o+i.t]=i.am(0,r[o],n,o,0,i.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var i=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,i,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,i){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=n&&n.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=Ys());var a=Ys(),s=this.s,l=e.s,u=this.DB-il(r[r.t-1]);u>0?(r.lShiftTo(u,a),o.lShiftTo(u,i)):(r.copyTo(a),o.copyTo(i));var c=a.t,h=a[c-1];if(0!=h){var p=h*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),d=this.FV/p,f=(1<<this.F1)/p,g=1<<this.F2,v=i.t,y=v-c,m=null==n?Ys():n;for(a.dlShiftTo(y,m),i.compareTo(m)>=0&&(i[i.t++]=1,i.subTo(m,i)),t.ONE.dlShiftTo(c,m),m.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--y>=0;){var x=i[--v]==h?this.DM:Math.floor(i[v]*d+(i[v-1]+g)*f);if((i[v]+=a.am(0,x,i,y,0,c))<x)for(a.dlShiftTo(y,m),i.subTo(m,i);i[v]<--x;)i.subTo(m,i)}null!=n&&(i.drShiftTo(c,n),s!=l&&t.ZERO.subTo(n,n)),i.t=c,i.clamp(),u>0&&i.rShiftTo(u,i),s<0&&t.ZERO.subTo(i,i)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var i=Ys(),r=Ys(),o=n.convert(this),a=il(e)-1;for(o.copyTo(i);--a>=0;)if(n.sqrTo(i,r),(e&1<<a)>0)n.mulTo(r,o,i);else{var s=i;i=r,r=s}return n.revert(i)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=nl(n),r=Ys(),o=Ys(),a="";for(this.divRemTo(i,r,o);r.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(t)+a},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),r=Math.pow(n,i),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=el(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+u,++a>=i&&(this.dMultiply(r),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,i){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),bs,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var r=[],o=7&e;r.length=1+(e>>3),n.nextBytes(r),o>0?r[0]&=(1<<o)-1:r[0]=0,this.fromString(r,256)}},t.prototype.bitwiseTo=function(t,e,n){var i,r,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=e(this[i],t[i]);if(t.t<this.t){for(r=t.s&this.DM,i=o;i<this.t;++i)n[i]=e(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<t.t;++i)n[i]=e(r,t[i]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var i=t.ONE.shiftLeft(e);return this.bitwiseTo(i,n,i),i},t.prototype.addTo=function(t,e){for(var n=0,i=0,r=Math.min(t.t,this.t);n<r;)i+=this[n]+t[n],e[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],e[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],e[n++]=i&this.DM,i>>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(r=Math.min(t.t,e);i<r;++i)this.am(0,t[i],n,i,0,e-i);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var i=n.t=this.t+t.t-e;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)n[this.t+i-e]=this.am(e-i,t[i],n,0,0,this.t+i-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var r=n.shiftRight(i);(e=e+1>>1)>Vs.length&&(e=Vs.length);for(var o=Ys(),a=0;a<e;++a){o.fromInt(Vs[Math.floor(Math.random()*Vs.length)]);var s=o.modPow(r,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<i&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=Ys();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var r=n;n=i,i=r}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0)e(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(s,0):(a>0&&i.lShiftTo(a,i),setTimeout((function(){e(i)}),0))};setTimeout(s,10)}},t.prototype.fromNumberAsync=function(e,n,i,r){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,i),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),bs,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>e&&o.subTo(t.ONE.shiftLeft(e-1),o),o.isProbablePrime(n)?setTimeout((function(){r()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&e;s.length=1+(e>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},t}(),Gs=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),Us=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Xs=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=Ys();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Ws.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=Ys();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],i=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),Ks=function(){function t(t){this.m=t,this.r2=Ys(),this.q3=Ys(),Ws.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=Ys();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function Ys(){return new Ws(null)}function qs(t,e){return new Ws(t,e)}var Zs="undefined"!=typeof navigator;Zs&&"Microsoft Internet Explorer"==navigator.appName?(Ws.prototype.am=function(t,e,n,i,r,o){for(var a=32767&e,s=e>>15;--o>=0;){var l=32767&this[t],u=this[t++]>>15,c=s*l+u*a;r=((l=a*l+((32767&c)<<15)+n[i]+(1073741823&r))>>>30)+(c>>>15)+s*u+(r>>>30),n[i++]=1073741823&l}return r},Ns=30):Zs&&"Netscape"!=navigator.appName?(Ws.prototype.am=function(t,e,n,i,r,o){for(;--o>=0;){var a=e*this[t++]+n[i]+r;r=Math.floor(a/67108864),n[i++]=67108863&a}return r},Ns=26):(Ws.prototype.am=function(t,e,n,i,r,o){for(var a=16383&e,s=e>>14;--o>=0;){var l=16383&this[t],u=this[t++]>>14,c=s*l+u*a;r=((l=a*l+((16383&c)<<14)+n[i]+r)>>28)+(c>>14)+s*u,n[i++]=268435455&l}return r},Ns=28),Ws.prototype.DB=Ns,Ws.prototype.DM=(1<<Ns)-1,Ws.prototype.DV=1<<Ns;Ws.prototype.FV=Math.pow(2,52),Ws.prototype.F1=52-Ns,Ws.prototype.F2=2*Ns-52;var Qs,Js,tl=[];for(Qs="0".charCodeAt(0),Js=0;Js<=9;++Js)tl[Qs++]=Js;for(Qs="a".charCodeAt(0),Js=10;Js<36;++Js)tl[Qs++]=Js;for(Qs="A".charCodeAt(0),Js=10;Js<36;++Js)tl[Qs++]=Js;function el(t,e){var n=tl[t.charCodeAt(e)];return null==n?-1:n}function nl(t){var e=Ys();return e.fromInt(t),e}function il(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}Ws.ZERO=nl(0),Ws.ONE=nl(1);var rl=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,i;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,i=this.S[e],this.S[e]=this.S[n],this.S[n]=i;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var ol,al,sl=null;if(null==sl){sl=[],al=0;var ll=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var ul=new Uint32Array(256);for(window.crypto.getRandomValues(ul),ll=0;ll<ul.length;++ll)sl[al++]=255&ul[ll]}var cl=0,hl=function(t){if((cl=cl||0)>=256||al>=256)window.removeEventListener?window.removeEventListener("mousemove",hl,!1):window.detachEvent&&window.detachEvent("onmousemove",hl);else try{var e=t.x+t.y;sl[al++]=255&e,cl+=1}catch(n){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",hl,!1):window.attachEvent&&window.attachEvent("onmousemove",hl))}function pl(){if(null==ol){for(ol=new rl;al<256;){var t=Math.floor(65536*Math.random());sl[al++]=255&t}for(ol.init(sl),al=0;al<sl.length;++al)sl[al]=0;al=0}return ol.next()}var dl=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=pl()},t}();var fl=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=qs(t,16),this.e=parseInt(e,16))},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return null;for(var n=[],i=t.length-1;i>=0&&e>0;){var r=t.charCodeAt(i--);r<128?n[--e]=r:r>127&&r<2048?(n[--e]=63&r|128,n[--e]=r>>6|192):(n[--e]=63&r|128,n[--e]=r>>6&63|128,n[--e]=r>>12|224)}n[--e]=0;for(var o=new dl,a=[];e>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--e]=a[0]}return n[--e]=2,n[--e]=0,new Ws(n)}(t,e);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var r=i.toString(16),o=r.length,a=0;a<2*e-o;a++)r="0"+r;return r},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=qs(t,16),this.e=parseInt(e,16),this.d=qs(n,16))},t.prototype.setPrivateEx=function(t,e,n,i,r,o,a,s){null!=t&&null!=e&&t.length>0&&e.length>0&&(this.n=qs(t,16),this.e=parseInt(e,16),this.d=qs(n,16),this.p=qs(i,16),this.q=qs(r,16),this.dmp1=qs(o,16),this.dmq1=qs(a,16),this.coeff=qs(s,16))},t.prototype.generate=function(t,e){var n=new dl,i=t>>1;this.e=parseInt(e,16);for(var r=new Ws(e,16);;){for(;this.p=new Ws(t-i,1,n),0!=this.p.subtract(Ws.ONE).gcd(r).compareTo(Ws.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Ws(i,1,n),0!=this.q.subtract(Ws.ONE).gcd(r).compareTo(Ws.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(Ws.ONE),s=this.q.subtract(Ws.ONE),l=a.multiply(s);if(0==l.gcd(r).compareTo(Ws.ONE)){this.n=this.p.multiply(this.q),this.d=r.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=qs(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),i=0;for(;i<n.length&&0==n[i];)++i;if(n.length-i!=e-1||2!=n[i])return null;++i;for(;0!=n[i];)if(++i>=n.length)return null;var r="";for(;++i<n.length;){var o=255&n[i];o<128?r+=String.fromCharCode(o):o>191&&o<224?(r+=String.fromCharCode((31&o)<<6|63&n[i+1]),++i):(r+=String.fromCharCode((15&o)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return r}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var i=new dl,r=t>>1;this.e=parseInt(e,16);var o=new Ws(e,16),a=this,s=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q,a.q=t}var e=a.p.subtract(Ws.ONE),i=a.q.subtract(Ws.ONE),r=e.multiply(i);0==r.gcd(o).compareTo(Ws.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(r),a.dmp1=a.d.mod(e),a.dmq1=a.d.mod(i),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Ys(),a.q.fromNumberAsync(r,1,i,(function(){a.q.subtract(Ws.ONE).gcda(o,(function(t){0==t.compareTo(Ws.ONE)&&a.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(l,0)}))}))},u=function(){a.p=Ys(),a.p.fromNumberAsync(t-r,1,i,(function(){a.p.subtract(Ws.ONE).gcda(o,(function(t){0==t.compareTo(Ws.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(u,0)}))}))};setTimeout(u,0)};setTimeout(s,0)},t.prototype.sign=function(t,e,n){var i=function(t,e){if(e<t.length+22)return null;for(var n=e-t.length-6,i="",r=0;r<n;r+=2)i+="ff";return qs("0001"+i+"00"+t,16)}((gl[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==i)return null;var r=this.doPrivate(i);if(null==r)return null;var o=r.toString(16);return 1&o.length?"0"+o:o},t.prototype.verify=function(t,e,n){var i=qs(e,16),r=this.doPublic(i);return null==r?null:function(t){for(var e in gl)if(gl.hasOwnProperty(e)){var n=gl[e],i=n.length;if(t.substr(0,i)==n)return t.substr(i)}return t} /*! Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */(r.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var gl={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var vl={};vl.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var r;for(r in n)t.prototype[r]=n[r];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(t,e){for(r=0;r<a.length;r+=1){var n=a[r],i=e[n];"function"==typeof i&&i!=Object.prototype[n]&&(t[n]=i)}})}catch(s){}o(t.prototype,n)}}}; /** * @fileOverview * @name asn1-1.0.js * @author Kenji Urushima kenji.urushima@gmail.com * @version asn1 1.0.13 (2017-Jun-02) * @since jsrsasign 2.1 * @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a> */ var yl={};void 0!==yl.asn1&&yl.asn1||(yl.asn1={}),yl.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",r=0;r<n;r++)i+="f";e=new Ws(i,16).xor(t).add(Ws.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=yl.asn1,n=e.DERBoolean,i=e.DERInteger,r=e.DERBitString,o=e.DEROctetString,a=e.DERNull,s=e.DERObjectIdentifier,l=e.DEREnumerated,u=e.DERUTF8String,c=e.DERNumericString,h=e.DERPrintableString,p=e.DERTeletexString,d=e.DERIA5String,f=e.DERUTCTime,g=e.DERGeneralizedTime,v=e.DERSequence,y=e.DERSet,m=e.DERTaggedObject,x=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.length)throw"key of param shall be only one.";var b=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+b+":"))throw"undefined key: "+b;if("bool"==b)return new n(t[b]);if("int"==b)return new i(t[b]);if("bitstr"==b)return new r(t[b]);if("octstr"==b)return new o(t[b]);if("null"==b)return new a(t[b]);if("oid"==b)return new s(t[b]);if("enum"==b)return new l(t[b]);if("utf8str"==b)return new u(t[b]);if("numstr"==b)return new c(t[b]);if("prnstr"==b)return new h(t[b]);if("telstr"==b)return new p(t[b]);if("ia5str"==b)return new d(t[b]);if("utctime"==b)return new f(t[b]);if("gentime"==b)return new g(t[b]);if("seq"==b){for(var w=t[b],S=[],C=0;C<w.length;C++){var T=x(w[C]);S.push(T)}return new v({array:S})}if("set"==b){for(w=t[b],S=[],C=0;C<w.length;C++){T=x(w[C]);S.push(T)}return new y({array:S})}if("tag"==b){var M=t[b];if("[object Array]"===Object.prototype.toString.call(M)&&3==M.length){var I=x(M[2]);return new m({tag:M[0],explicit:M[1],obj:I})}var D={};if(void 0!==M.explicit&&(D.explicit=M.explicit),void 0!==M.tag&&(D.tag=M.tag),void 0===M.obj)throw"obj shall be specified for 'tag'.";return D.obj=x(M.obj),new m(D)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},yl.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),i=(e=Math.floor(n/40)+"."+n%40,""),r=2;r<t.length;r+=2){var o=("00000000"+parseInt(t.substr(r,2),16).toString(2)).slice(-8);if(i+=o.substr(1,7),"0"==o.substr(0,1))e=e+"."+new Ws(i,2).toString(10),i=""}return e},yl.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new Ws(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var o="",a=0;a<r;a++)o+="0";i=o+i;for(a=0;a<i.length-1;a+=7){var s=i.substr(a,7);a!=i.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=e(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);return i},yl.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},yl.asn1.DERAbstractString=function(t){yl.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},vl.lang.extend(yl.asn1.DERAbstractString,yl.asn1.ASN1Object),yl.asn1.DERAbstractTime=function(t){yl.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var i=this.zeroPadding,r=this.localDateToUTC(t),o=String(r.getFullYear());"utc"==e&&(o=o.substr(2,2));var a=o+i(String(r.getMonth()+1),2)+i(String(r.getDate()),2)+i(String(r.getHours()),2)+i(String(r.getMinutes()),2)+i(String(r.getSeconds()),2);if(!0===n){var s=r.getMilliseconds();if(0!=s){var l=i(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,i,r,o){var a=new Date(Date.UTC(t,e-1,n,i,r,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},vl.lang.extend(yl.asn1.DERAbstractTime,yl.asn1.ASN1Object),yl.asn1.DERAbstractStructured=function(t){yl.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},vl.lang.extend(yl.asn1.DERAbstractStructured,yl.asn1.ASN1Object),yl.asn1.DERBoolean=function(){yl.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},vl.lang.extend(yl.asn1.DERBoolean,yl.asn1.ASN1Object),yl.asn1.DERInteger=function(t){yl.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=yl.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Ws(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},vl.lang.extend(yl.asn1.DERInteger,yl.asn1.ASN1Object),yl.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=yl.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}yl.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var i="";for(n=0;n<t.length-1;n+=8){var r=t.substr(n,8),o=parseInt(r,2).toString(16);1==o.length&&(o="0"+o),i+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+e+i},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},vl.lang.extend(yl.asn1.DERBitString,yl.asn1.ASN1Object),yl.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=yl.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}yl.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},vl.lang.extend(yl.asn1.DEROctetString,yl.asn1.DERAbstractString),yl.asn1.DERNull=function(){yl.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},vl.lang.extend(yl.asn1.DERNull,yl.asn1.ASN1Object),yl.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",i=new Ws(t,10).toString(2),r=7-i.length%7;7==r&&(r=0);for(var o="",a=0;a<r;a++)o+="0";i=o+i;for(a=0;a<i.length-1;a+=7){var s=i.substr(a,7);a!=i.length-7&&(s="1"+s),n+=e(parseInt(s,2))}return n};yl.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var i="",r=t.split("."),o=40*parseInt(r[0])+parseInt(r[1]);i+=e(o),r.splice(0,2);for(var a=0;a<r.length;a++)i+=n(r[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(t){var e=yl.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},vl.lang.extend(yl.asn1.DERObjectIdentifier,yl.asn1.ASN1Object),yl.asn1.DEREnumerated=function(t){yl.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=yl.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Ws(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},vl.lang.extend(yl.asn1.DEREnumerated,yl.asn1.ASN1Object),yl.asn1.DERUTF8String=function(t){yl.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},vl.lang.extend(yl.asn1.DERUTF8String,yl.asn1.DERAbstractString),yl.asn1.DERNumericString=function(t){yl.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},vl.lang.extend(yl.asn1.DERNumericString,yl.asn1.DERAbstractString),yl.asn1.DERPrintableString=function(t){yl.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},vl.lang.extend(yl.asn1.DERPrintableString,yl.asn1.DERAbstractString),yl.asn1.DERTeletexString=function(t){yl.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},vl.lang.extend(yl.asn1.DERTeletexString,yl.asn1.DERAbstractString),yl.asn1.DERIA5String=function(t){yl.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},vl.lang.extend(yl.asn1.DERIA5String,yl.asn1.DERAbstractString),yl.asn1.DERUTCTime=function(t){yl.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},vl.lang.extend(yl.asn1.DERUTCTime,yl.asn1.DERAbstractTime),yl.asn1.DERGeneralizedTime=function(t){yl.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},vl.lang.extend(yl.asn1.DERGeneralizedTime,yl.asn1.DERAbstractTime),yl.asn1.DERSequence=function(t){yl.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},vl.lang.extend(yl.asn1.DERSequence,yl.asn1.DERAbstractStructured),yl.asn1.DERSet=function(t){yl.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},vl.lang.extend(yl.asn1.DERSet,yl.asn1.DERAbstractStructured),yl.asn1.DERTaggedObject=function(t){yl.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},vl.lang.extend(yl.asn1.DERTaggedObject,yl.asn1.ASN1Object);var ml,xl,_l=globalThis&&globalThis.__extends||(ml=function(t,e){return(ml=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ml(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),bl=function(t){function e(n){var i=t.call(this)||this;return n&&("string"==typeof n?i.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&i.parsePropertiesFrom(n)),i}return _l(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?Os(t):Ps.unarmor(t),r=Hs.decode(i);if(3===r.sub.length&&(r=r.sub[2].sub[0]),9===r.sub.length){e=r.sub[1].getHexStringValue(),this.n=qs(e,16),n=r.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=r.sub[3].getHexStringValue();this.d=qs(o,16);var a=r.sub[4].getHexStringValue();this.p=qs(a,16);var s=r.sub[5].getHexStringValue();this.q=qs(s,16);var l=r.sub[6].getHexStringValue();this.dmp1=qs(l,16);var u=r.sub[7].getHexStringValue();this.dmq1=qs(u,16);var c=r.sub[8].getHexStringValue();this.coeff=qs(c,16)}else{if(2!==r.sub.length)return!1;if(r.sub[0].sub){var h=r.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=qs(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=r.sub[0].getHexStringValue(),this.n=qs(e,16),n=r.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(p){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new yl.asn1.DERInteger({int:0}),new yl.asn1.DERInteger({bigint:this.n}),new yl.asn1.DERInteger({int:this.e}),new yl.asn1.DERInteger({bigint:this.d}),new yl.asn1.DERInteger({bigint:this.p}),new yl.asn1.DERInteger({bigint:this.q}),new yl.asn1.DERInteger({bigint:this.dmp1}),new yl.asn1.DERInteger({bigint:this.dmq1}),new yl.asn1.DERInteger({bigint:this.coeff})]};return new yl.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return Ds(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new yl.asn1.DERSequence({array:[new yl.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new yl.asn1.DERNull]}),e=new yl.asn1.DERSequence({array:[new yl.asn1.DERInteger({bigint:this.n}),new yl.asn1.DERInteger({int:this.e})]}),n=new yl.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new yl.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return Ds(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(fl),wl="undefined"!=typeof process?null===(xl=process.env)||void 0===xl?void 0:xl.npm_package_version:void 0,Sl=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key,this.key=new bl(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(ks(t))}catch(e){return!1}},t.prototype.encrypt=function(t){try{return Ds(this.getKey().encrypt(t))}catch(e){return!1}},t.prototype.sign=function(t,e,n){try{return Ds(this.getKey().sign(t,e,n))}catch(i){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,ks(e),n)}catch(i){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new bl,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=wl,t}();let Cl;const Tl=new Uint8Array(16);function Ml(){if(!Cl&&(Cl="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cl(Tl)}const Il=[];for(let wx=0;wx<256;++wx)Il.push((wx+256).toString(16).slice(1));const Dl={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kl(t,e,n){if(Dl.randomUUID&&!e&&!t)return Dl.randomUUID();const i=(t=t||{}).random||(t.rng||Ml)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=i[t];return e}return function(t,e=0){return Il[t[e+0]]+Il[t[e+1]]+Il[t[e+2]]+Il[t[e+3]]+"-"+Il[t[e+4]]+Il[t[e+5]]+"-"+Il[t[e+6]]+Il[t[e+7]]+"-"+Il[t[e+8]]+Il[t[e+9]]+"-"+Il[t[e+10]]+Il[t[e+11]]+Il[t[e+12]]+Il[t[e+13]]+Il[t[e+14]]+Il[t[e+15]]}(i)}let Al;const Ol=t=>t<1e4?parseInt(t):t<1e8?`${Math.floor(t/1e4)}万`:`${Math.floor(t/1e8)}亿`,Pl=t=>t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),El=t=>{const e=(new Date).getTime()-new Date(t).getTime();return e<26784e5?"1个月内":e<31536e6?`${Math.floor(e/26784e5)}月å‰`:`${Math.floor(e/31536e6)}å¹´å‰`},Bl=async t=>{t.pluginName="temuWeb",t.pluginVersion="1.1.0",t.url=location.href,t.timestamp=(new Date).getTime();const{sign:e,content:n}=await(async t=>{var e=new Sl;if(!Al){const t=await Wt.get("/api/v1/plugin/config",{params:{name:"temuWeb"}});Al=t.headers["anti-content"]}e.setPublicKey(Al);const n=JSON.stringify(t);let i=ms.SHA256(n).toString().slice(0,32);return{sign:e.encrypt(i),content:ms.AES.encrypt(ms.enc.Utf8.parse(n),ms.enc.Utf8.parse(i),{mode:ms.mode.ECB,padding:ms.pad.Pkcs7}).toString()}})(t);await Wt.post("/api/v1/plugin/log-v2",jt.stringify({content:n}),{headers:{"Anti-Content":e,"Content-Type":"application/x-www-form-urlencoded"}})},Rl=t=>{const e=(t=t.replace(/,/g,"")).match(/\d+(\.\d+)?/g);return e?parseFloat(e[0]):0},Ll=t=>(t=t.replace(/,/g,"")).replace(/\d+(\.\d+)?/g,""),zl=(t,e)=>1===e.localeCompare(t,void 0,{numeric:!0}),Nl=t=>t?(t=(t=(t=(t=t.replace(/,/g,"")).replace(/\(/g,"")).replace(/\)/g,"")).replace(/ Items/g,"")).includes("K")?1e3*parseFloat(t.replace("K+","")):parseFloat(t):null,Fl=async(t,e=200)=>{const n=new FileReader;n.readAsDataURL(t);const i=await new Promise(((t,e)=>{n.onload=e=>{const n=new Image;n.src=e.target.result,n.onload=()=>{t(n)}}})),r=i.width,o=i.height;let a=1;(r>e||o>e)&&(a=Math.max(r/e,o/e));const s=document.createElement("canvas");s.width=r/a,s.height=o/a;s.getContext("2d").drawImage(i,0,0,s.width,s.height);return await new Promise(((e,n)=>{s.toBlob((n=>{e(new File([n],t.name,{type:t.type}))}),t.type)}))},Hl=t=>{t=t||32;for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n="",i=0;i<t;i++)n+=e.charAt(Math.floor(62*Math.random()));return n},$l=async()=>{const t=kl();window.postMessage({type:"getPluginInfo",uuid:t});return await new Promise((e=>{window.addEventListener("message",(function(n){"getPluginInfoSuccess"===n.data.type&&n.data.uuid===t&&e(n.data.data)})),setTimeout((()=>{e({error_code:1,error_msg:"请求超时"})}),5e3)}))}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var Vl=function(t,e){return(Vl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function jl(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Vl(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Wl=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Gl=new function(){this.browser=new Wl,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Gl.wxa=!0,Gl.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Gl.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(Gl.node=!0,Gl.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,Gl);const Ul=Gl;var Xl="12px sans-serif";var Kl,Yl,ql=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Zl={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!Kl){var n=Zl.createCanvas();Kl=n&&n.getContext("2d")}if(Kl)return Yl!==e&&(Yl=Kl.font=e||Xl),Kl.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||Xl),r=i&&+i[1]||12,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=ql[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}},Ql=bu(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),Jl=bu(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),tu=Object.prototype.toString,eu=Array.prototype,nu=eu.forEach,iu=eu.filter,ru=eu.slice,ou=eu.map,au=function(){}.constructor,su=au?au.prototype:null,lu="__proto__",uu=2311;function cu(){return uu++}function hu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e]}function pu(t){if(null==t||"object"!=typeof t)return t;var e=t,n=tu.call(t);if("[object Array]"===n){if(!Uu(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=pu(t[i])}}else if(Jl[n]){if(!Uu(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!Ql[n]&&!Uu(t)&&!Bu(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==lu&&(e[a]=pu(t[a]));return e}function du(t,e,n){if(!Ou(e)||!Ou(t))return n?pu(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==lu){var r=t[i],o=e[i];!Ou(o)||!Ou(r)||Mu(o)||Mu(r)||Bu(o)||Bu(r)||Pu(o)||Pu(r)||Uu(o)||Uu(r)?!n&&i in t||(t[i]=pu(e[i])):du(r,o,n)}return t}function fu(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==lu&&(t[n]=e[n]);return t}function gu(t,e,n){for(var i=Su(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}function vu(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function yu(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else gu(t,e,n)}function mu(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function xu(t,e,n){if(t&&e)if(t.forEach&&t.forEach===nu)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function _u(t,e,n){if(!t)return[];if(!e)return Hu(t);if(t.map&&t.map===ou)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function bu(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function wu(t,e,n){if(!t)return[];if(!e)return Hu(t);if(t.filter&&t.filter===iu)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function Su(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var Cu=su&&Iu(su.bind)?su.call.bind(su.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(ru.call(arguments)))}};function Tu(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(ru.call(arguments)))}}function Mu(t){return Array.isArray?Array.isArray(t):"[object Array]"===tu.call(t)}function Iu(t){return"function"==typeof t}function Du(t){return"string"==typeof t}function ku(t){return"[object String]"===tu.call(t)}function Au(t){return"number"==typeof t}function Ou(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Pu(t){return!!Ql[tu.call(t)]}function Eu(t){return!!Jl[tu.call(t)]}function Bu(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Ru(t){return null!=t.colorStops}function Lu(t){return t!=t}function zu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function Nu(t,e){return null!=t?t:e}function Fu(t,e,n){return null!=t?t:null!=e?e:n}function Hu(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ru.apply(t,e)}function $u(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Vu(t,e){if(!t)throw new Error(e)}function ju(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Wu="__ec_primitive__";function Gu(t){t[Wu]=!0}function Uu(t){return t[Wu]}var Xu=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return Su(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),Ku="function"==typeof Map;var Yu=function(){function t(e){var n=Mu(e);this.data=Ku?new Map:new Xu;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&xu(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return Ku?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function qu(t){return new Yu(t)}function Zu(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&fu(n,e),n}function Qu(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Ju(t,e){return t.hasOwnProperty(e)}function tc(){}var ec=180/Math.PI;function nc(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ic(t){return[t[0],t[1]]}function rc(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function oc(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function ac(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function sc(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function lc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var uc=lc;var cc=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function hc(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function pc(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function dc(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var fc=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const gc=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.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 fc(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new fc(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new fc(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new fc(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new fc(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new fc(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const vc=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}();var yc=Math.log(2);function mc(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/yc);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(h+=(d%2?-1:1)*t[n][p]*mc(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function xc(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=mc(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*mc(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var _c="___zrEVENTSAVED",bc=[];function wc(t,e,n,i,r){if(e.getBoundingClientRect&&Ul.domSupported&&!Sc(e)){var o=e[_c]||(e[_c]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?xc(s,a):xc(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Sc(t){return"CANVAS"===t.nodeName.toUpperCase()}var Cc=/([&<>"'])/g,Tc={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mc(t){return null==t?"":(t+"").replace(Cc,(function(t,e){return Tc[e]}))}var Ic=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Dc=[],kc=Ul.browser.firefox&&+Ul.browser.version.split(".")[0]<39;function Ac(t,e,n,i){return n=n||{},i?Oc(t,e,n):kc&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Oc(t,e,n),n}function Oc(t,e,n){if(Ul.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Sc(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(wc(Dc,t,i,r))return n.zrX=Dc[0],void(n.zrY=Dc[1])}n.zrX=n.zrY=0}function Pc(t){return t||window.event}function Ec(t,e,n){if(null!=(e=Pc(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&Ac(t,r,e,n)}else{Ac(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Ic.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var Bc=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Rc=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Ac(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in zc)if(zc.hasOwnProperty(e)){var n=zc[e](this._track,t);if(n)return n}},t}();function Lc(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var zc={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Lc(r)/Lc(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Nc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Fc(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Hc(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function $c(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function Vc(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}var jc=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const Wc=jc;var Gc=Math.min,Uc=Math.max,Xc=new Wc,Kc=new Wc,Yc=new Wc,qc=new Wc,Zc=new Wc,Qc=new Wc,Jc=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Gc(t.x,this.x),n=Gc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Uc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Uc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return Hc(r,r,[-e.x,-e.y]),function(t,e,n){var i=n[0],r=n[1];t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r}(r,r,[n,i]),Hc(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(o<l||u<r||s<c||h<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),v=Math.abs(u-r),y=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,v),_=Math.min(y,m);o<l||u<r?x>f&&(f=x,g<v?Wc.set(Qc,-g,0):Wc.set(Qc,v,0)):x<d&&(d=x,g<v?Wc.set(Zc,g,0):Wc.set(Zc,-v,0)),s<c||h<a?_>f&&(f=_,y<m?Wc.set(Qc,0,-y):Wc.set(Qc,0,m)):x<d&&(d=x,y<m?Wc.set(Zc,0,y):Wc.set(Zc,0,-m))}return n&&Wc.copy(n,p?Zc:Qc),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Xc.x=Yc.x=n.x,Xc.y=qc.y=n.y,Kc.x=qc.x=n.x+n.width,Kc.y=Yc.y=n.y+n.height,Xc.transform(i),qc.transform(i),Kc.transform(i),Yc.transform(i),e.x=Gc(Xc.x,Kc.x,Yc.x,qc.x),e.y=Gc(Xc.y,Kc.y,Yc.y,qc.y);var l=Uc(Xc.x,Kc.x,Yc.x,qc.x),u=Uc(Xc.y,Kc.y,Yc.y,qc.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const th=Jc;var eh="silent";function nh(){Bc(this.event)}var ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return jl(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(vc),rh=function(t,e){this.x=t,this.y=e},oh=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ah=new th(0,0,0,0),sh=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new rh(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new ih,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new gc(a),a}return jl(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(xu(oh,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=ch(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new rh(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new rh(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nh}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new rh(t,e);if(uh(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new th(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ah.copy(c.getBoundingRect()),c.transform&&ah.applyTransform(c.transform),ah.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h){if(uh(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Rc);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new rh;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(vc);function lh(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||eh}return!1}function uh(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=lh(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==eh)){e.target=a;break}}}function ch(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}xu(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){sh.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=ch(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||uc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const hh=sh;function ph(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function dh(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function fh(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function gh(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function vh(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=gh(t[c],t,l,u,0,e);l+=p,0!==(u-=p)&&0!==(h=fh(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0==--s){for(l=0;l<i;l++)t[h+l]=a[u+l];return}if(1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];return void(t[h+s]=a[u])}var p,d,f,g=r;for(;;){p=0,d=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],d++,p=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],p++,d=0,1==--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=gh(t[c],a,u,i,0,e))){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(d=fh(a[u],t,c,s,0,e))){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,0===(s-=d)){f=!0;break}}if(t[h++]=a[u++],1==--i){f=!0;break}g--}while(p>=7||d>=7);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0==--i){for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l];return}if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];return void(t[h]=a[c])}var f=r;for(;;){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0==--i){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1==--s){y=!0;break}}while((g|v)<f);if(y)break;do{if(0!==(g=i-gh(a[c],t,n,i,i-1,e))){for(i-=g,d=(h-=g)+1,p=(u-=g)+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1==--s){y=!0;break}if(0!==(v=s-fh(t[u],a,0,s,s-1,e))){for(s-=v,d=(h-=v)+1,p=(c-=v)+1,l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0==--i){y=!0;break}f--}while(g>=7||v>=7);if(y)break;f<0&&(f=0),f+=2}(r=f)<1&&(r=1);if(1===s){for(d=(h-=i)+1,p=(u-=i)+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function yh(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)dh(t,n,i,n+(o=ph(t,n,i,e)),e);else{var a=vh(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ph(t,n,i,e))<s){var l=r;l>s&&(l=s),dh(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var mh=!1;function xh(){mh||(mh=!0)}function _h(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const bh=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_h}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,yh(n,_h)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(xh(),u.z=0),isNaN(u.z2)&&(xh(),u.z2=0),isNaN(u.zlevel)&&(xh(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=vu(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const wh=Ul.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Sh={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Sh.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Sh.bounceIn(2*t):.5*Sh.bounceOut(2*t-1)+.5}};const Ch=Sh;var Th=Math.pow,Mh=Math.sqrt,Ih=1e-8,Dh=1e-4,kh=Mh(3),Ah=1/3,Oh=nc(),Ph=nc(),Eh=nc();function Bh(t){return t>-1e-8&&t<Ih}function Rh(t){return t>Ih||t<-1e-8}function Lh(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function zh(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Nh(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Bh(c)&&Bh(h)){if(Bh(s))o[0]=0;else(C=-l/s)>=0&&C<=1&&(o[d++]=C)}else{var f=h*h-4*c*p;if(Bh(f)){var g=h/c,v=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[d++]=C),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var y=Mh(f),m=c*s+1.5*a*(-h+y),x=c*s+1.5*a*(-h-y);(C=(-s-((m=m<0?-Th(-m,Ah):Th(m,Ah))+(x=x<0?-Th(-x,Ah):Th(x,Ah))))/(3*a))>=0&&C<=1&&(o[d++]=C)}else{var _=(2*c*s-3*a*h)/(2*Mh(c*c*c)),b=Math.acos(_)/3,w=Mh(c),S=Math.cos(b),C=(-s-2*w*S)/(3*a),T=(v=(-s+w*(S+kh*Math.sin(b)))/(3*a),(-s+w*(S-kh*Math.sin(b)))/(3*a));C>=0&&C<=1&&(o[d++]=C),v>=0&&v<=1&&(o[d++]=v),T>=0&&T<=1&&(o[d++]=T)}}return d}function Fh(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Bh(a)){if(Rh(o))(c=-s/o)>=0&&c<=1&&(r[l++]=c)}else{var u=o*o-4*a*s;if(Bh(u))r[0]=-o/(2*a);else if(u>0){var c,h=Mh(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}function Hh(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function $h(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Lh(t,n,r,a,f),v=Lh(e,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Vh(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function jh(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Wh(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Gh(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Uh(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=Vh(t,n,r,p),f=Vh(e,i,o,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var Xh=/cubic-bezier\(([0-9,\.e ]+)\)/;function Kh(t){var e=t&&Xh.exec(t);if(e){var n=e[1].split(","),i=+ju(n[0]),r=+ju(n[1]),o=+ju(n[2]),a=+ju(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Nh(0,i,o,1,t,s)&&Lh(0,r,a,1,s[0])}}}const Yh=function(){function t(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||tc,this.ondestroy=t.ondestroy||tc,this.onrestart=t.onrestart||tc,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Iu(t)?t:Ch[t]||Kh(t)},t}();var qh=function(t){this.value=t},Zh=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new qh(t);return this.insertEntry(e),e},t.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++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const Qh=function(){function t(t){this._list=new Zh,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new qh(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();var Jh={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 tp(t){return(t=Math.round(t))<0?0:t>255?255:t}function ep(t){return t<0?0:t>1?1:t}function np(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?tp(parseFloat(e)/100*255):tp(parseInt(e,10))}function ip(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?ep(parseFloat(e)/100):ep(parseFloat(e))}function rp(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function op(t,e,n){return t+(e-t)*n}function ap(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function sp(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var lp=new Qh(20),up=null;function cp(t,e){up&&sp(up,e),up=lp.put(t,up||e.slice())}function hp(t,e){if(t){e=e||[];var n=lp.get(t);if(n)return sp(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Jh)return sp(e,Jh[i]),cp(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(ap(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),cp(t,e),e):void ap(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(ap(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),cp(t,e),e):void ap(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?ap(e,+u[0],+u[1],+u[2],1):ap(e,0,0,0,1);c=ip(u.pop());case"rgb":return u.length>=3?(ap(e,np(u[0]),np(u[1]),np(u[2]),3===u.length?c:ip(u[3])),cp(t,e),e):void ap(e,0,0,0,1);case"hsla":return 4!==u.length?void ap(e,0,0,0,1):(u[3]=ip(u[3]),pp(u,e),cp(t,e),e);case"hsl":return 3!==u.length?void ap(e,0,0,0,1):(pp(u,e),cp(t,e),e);default:return}}ap(e,0,0,0,1)}}function pp(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=ip(t[1]),r=ip(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return ap(e=e||[],tp(255*rp(a,o,n+1/3)),tp(255*rp(a,o,n)),tp(255*rp(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function dp(t,e){var n=hp(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return fp(n,4===n.length?"rgba":"rgb")}}function fp(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function gp(t,e){var n=hp(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var vp=new Qh(100);function yp(t){if(Du(t)){var e=vp.get(t);return e||(e=dp(t,-.1),vp.put(t,e)),e}if(Ru(t)){var n=fu({},t);return n.colorStops=_u(t.colorStops,(function(t){return{offset:t.offset,color:dp(t.color,-.1)}})),n}return t}Ul.hasGlobalWindow&&Iu(window.btoa);var mp=Array.prototype.slice;function xp(t,e,n){return(e-t)*n+t}function _p(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=xp(e[o],n[o],i);return t}function bp(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function wp(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Sp(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Cp(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:mp.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Tp(t){if(mu(t)){var e=t.length;if(mu(t[0])){for(var n=[],i=0;i<e;i++)n.push(mp.call(t[i]));return n}return mp.call(t)}return t}function Mp(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ip(t){return 4===t||5===t}function Dp(t){return 1===t||2===t}var kp=[0,0,0,0],Ap=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(mu(e)){var l=function(t){return mu(t&&t[0])?2:1}(e);a=l,(1===l&&!Au(e[0])||2===l&&!Au(e[0][0]))&&(o=!0)}else if(Au(e)&&!Lu(e))a=0;else if(Du(e))if(isNaN(+e)){var u=hp(e);u&&(s=u,a=3)}else a=0;else if(Ru(e)){var c=fu({},s);c.colorStops=_u(e.colorStops,(function(t){return{offset:t.offset,color:hp(t.color)}})),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Iu(n)?n:Ch[n]||Kh(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=Dp(i),l=Ip(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?Cp(h,p,i):l&&Sp(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=bp([],n[u].value,d,-1):Dp(i)&&(n[u].additiveValue=1===i?bp([],n[u].value,d,-1):wp([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?kp:t[c];if(!Dp(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(Dp(s))1===s?_p(v,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=xp(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(Ip(s)){var y=i[a],m=r[a],x=4===s;t[c]={type:x?"linear":"radial",x:xp(y.x,m.x,g),y:xp(y.y,m.y,g),colorStops:_u(y.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:xp(t.offset,n.offset,g),color:Mp(_p([],t.color,n.color,g))}})),global:m.global},x?(t[c].x2=xp(y.x2,m.x2,g),t[c].y2=xp(y.y2,m.y2,g)):t[c].r=xp(y.r,m.r,g)}else if(h)_p(v,i[a],r[a],g),o||(t[c]=Mp(v));else{var _=xp(i[a],r[a],g);o?this._additiveValue=_:t[c]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(hp(t[n],kp),bp(kp,kp,i,1),t[n]=Mp(kp)):1===e?bp(t[n],t[n],i,1):2===e&&wp(t[n],t[n],i,1)},t}(),Op=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?hu("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Su(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new Ap(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=Mp(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Tp(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Tp(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Yh({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return _u(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Tp(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Su(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const Pp=Op;function Ep(){return(new Date).getTime()}var Bp=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return jl(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=Ep()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,wh((function e(){t._running&&(wh(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=Ep(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ep(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ep()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Pp(t,e.loop);return this.addAnimator(n),n},e}(vc);const Rp=Bp;var Lp,zp,Np=Ul.domSupported,Fp=(zp={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Lp=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:_u(Lp,(function(t){var e=t.replace("mouse","pointer");return zp.hasOwnProperty(e)?e:t}))}),Hp=["mousemove","mouseup"],$p=["pointermove","pointerup"],Vp=!1;function jp(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Wp(t){t&&(t.zrByTouch=!0)}function Gp(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Up=function(t,e){this.stopPropagation=tc,this.stopImmediatePropagation=tc,this.preventDefault=tc,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Xp={mousedown:function(t){t=Ec(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ec(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ec(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Gp(this,(t=Ec(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Vp=!0,t=Ec(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Vp||(t=Ec(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Wp(t=Ec(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Xp.mousemove.call(this,t),Xp.mousedown.call(this,t)},touchmove:function(t){Wp(t=Ec(this.dom,t)),this.handler.processGesture(t,"change"),Xp.mousemove.call(this,t)},touchend:function(t){Wp(t=Ec(this.dom,t)),this.handler.processGesture(t,"end"),Xp.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Xp.click.call(this,t)},pointerdown:function(t){Xp.mousedown.call(this,t)},pointermove:function(t){jp(t)||Xp.mousemove.call(this,t)},pointerup:function(t){Xp.mouseup.call(this,t)},pointerout:function(t){jp(t)||Xp.mouseout.call(this,t)}};xu(["click","dblclick","contextmenu"],(function(t){Xp[t]=function(e){e=Ec(this.dom,e),this.trigger(t,e)}}));var Kp={pointermove:function(t){jp(t)||Kp.mousemove.call(this,t)},pointerup:function(t){Kp.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Yp(t,e){var n=e.domHandlers;Ul.pointerEventsSupported?xu(Fp.pointer,(function(i){Zp(e,i,(function(e){n[i].call(t,e)}))})):(Ul.touchEventsSupported&&xu(Fp.touch,(function(i){Zp(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),xu(Fp.mouse,(function(i){Zp(e,i,(function(r){r=Pc(r),e.touching||n[i].call(t,r)}))})))}function qp(t,e){function n(n){Zp(e,n,(function(i){i=Pc(i),Gp(t,i.target)||(i=function(t,e){return Ec(t.dom,new Up(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}Ul.pointerEventsSupported?xu($p,n):Ul.touchEventsSupported||xu(Hp,n)}function Zp(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function Qp(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var Jp=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const td=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Jp(e,Xp),Np&&(i._globalHandlerScope=new Jp(document,Kp)),Yp(i,i._localHandlerScope),i}return jl(e,t),e.prototype.dispose=function(){Qp(this._localHandlerScope),Np&&Qp(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Np&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?qp(this,e):Qp(e)}},e}(vc);var ed=1;Ul.hasGlobalWindow&&(ed=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nd=ed,id="#333",rd="#ccc",od=Nc,ad=5e-5;function sd(t){return t>ad||t<-5e-5}var ld=[],ud=[],cd=[1,0,0,1,0,0],hd=Math.abs,pd=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return sd(this.rotation)||sd(this.x)||sd(this.y)||sd(this.scaleX-1)||sd(this.scaleY-1)||sd(this.skewX)||sd(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):od(n),t&&(e?Fc(n,t,n):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(od(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(ld);var n=ld[0]<0?-1:1,i=ld[1]<0?-1:1,r=((ld[0]-n)*e+n)/ld[0]||0,o=((ld[1]-i)*e+i)/ld[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],Vc(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],Fc(ud,t.invTransform,e),e=ud);var n=this.originX,i=this.originY;(n||i)&&(cd[4]=n,cd[5]=i,Fc(ud,e,cd),ud[4]-=n,ud[5]-=i,e=ud),this.setLocalTransform(e)}},t.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)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&hc(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&hc(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&hd(t[0]-1)>1e-10&&hd(t[3]-1)>1e-10?Math.sqrt(hd(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var n=0;n<dd.length;n++){var i=dd[n];t[i]=e[i]}}(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&$c(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),dd=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];const fd=pd;var gd={};function vd(t,e){var n=gd[e=e||Xl];n||(n=gd[e]=new Qh(500));var i=n.get(t);return null==i&&(i=Zl.measureText(t,e).width,n.put(t,i)),i}function yd(t,e,n,i){var r=vd(t,e),o=bd(e),a=xd(0,r,n),s=_d(0,o,i);return new th(a,s,r,o)}function md(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return yd(r[0],e,n,i);for(var o=new th(0,0,0,0),a=0;a<r.length;a++){var s=yd(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function xd(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function _d(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function bd(t){return vd("国",t)}function wd(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Sd(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=wd(i[0],n.width),u+=wd(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Cd="__zr_normal__",Td=dd.concat(["ignore"]),Md=bu(dd,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Id={},Dd=new th(0,0,0,0),kd=function(){function t(t){this.id=cu(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=Dd;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Id,n,u):Sd(Id,n,u),r.x=Id.x,r.y=Id.y,o=Id.align,a=Id.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,p=void 0;"center"===c?(h=.5*u.width,p=.5*u.height):(h=wd(c[0],u.width),p=wd(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],l||(r.originX=-d[0],r.originY=-d[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),(v=v||"#000")===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?rd:id},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&hp(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,fp(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},fu(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Ou(t))for(var n=Su(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==Cd)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Td)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Cd,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===Cd;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(vu(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}hu("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=vu(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=vu(i,t),o=vu(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];fu(n,r),r.textConfig&&fu(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=fu({},i?this.textConfig:n.textConfig),fu(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Td.length;u++){var c=Td[u],h=r&&Md[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.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}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new fd,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),fu(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,r=new Pp(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=vu(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){Ad(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Ad(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=Ad(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Ad(t,e,n,i,r){var o=[];Ed(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function Od(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Pd(t,e,n){if(mu(e[n]))if(mu(t[n])||(t[n]=[]),Eu(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Od(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(mu(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Od(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Od(o,r,a);o.length=r.length}else t[n]=e[n]}function Ed(t,e,n,i,r,o,a,s){for(var l=Su(i),u=r.duration,c=r.delay,h=r.additive,p=r.setToFinal,d=!Ou(o),f=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(null!=m&&null!=n[y]&&(d||o[y]))if(!Ou(m)||mu(m)||Ru(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Ed(t,y,n[y],m,r,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){if((w=f[_]).targetName===e)if(w.stopTracks(g)){var b=vu(f,w);f.splice(b,1)}}if(r.force||(g=wu(g,(function(t){return e=i[t],r=n[t],!(e===r||mu(e)&&mu(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,C=void 0,T=void 0;if(s){C={},p&&(S={});for(_=0;_<x;_++){C[y=g[_]]=n[y],p?S[y]=i[y]:n[y]=i[y]}}else if(p){T={};for(_=0;_<x;_++){T[y=g[_]]=Tp(n[y]),Pd(n,i,y)}}(w=new Pp(n,!1,!1,h?wu(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(null==u?500:u,s?C:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}yu(kd,vc),yu(kd,fd);const Bd=kd;var Rd=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return jl(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=vu(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=vu(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new th(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(th.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(Bd);Rd.prototype.type="group";const Ld=Rd; /*! * ZRender, a high performance 2d drawing library. * * Copyright (c) 2013, Baidu Inc. * All rights reserved. * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */var zd={},Nd={};var Fd=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new bh,o=n.renderer||"canvas";zd[o]||(o=Su(zd)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new zd[o](e,r,n,t),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,u=Ul.node||Ul.worker||s?null:new td(a.getViewportRoot(),a.root),c=n.useCoarsePointer;(null==c||"auto"===c?Ul.touchEventsSupported:!!c)&&(l=Nu(n.pointerSize,44)),this.handler=new hh(r,a,u,a.root,l),this.animation=new Rp({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return gp(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=gp(e[r].color,1);return(n/=i)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=Ep();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Ep();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ld&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete Nd[t])},t}();function Hd(t,e){var n=new Fd(cu(),t,e);return Nd[n.id]=n,n}var $d=1e-4;function Vd(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function jd(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Du(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function Wd(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function Gd(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return function(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}(t)}function Ud(t,e){var n=Math.max(Gd(t),Gd(e)),i=t+e;return n>20?i:Wd(i,n)}function Xd(t){var e=2*Math.PI;return(t%e+e)%e}function Kd(t){return t>-1e-4&&t<$d}var Yd=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function qd(t){if(t instanceof Date)return t;if(Du(t)){var e=Yd.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Zd(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Qd(t,e){var n=Zd(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Jd(t){var e=parseFloat(t);return e==t&&(0!==e||!Du(t)||t.indexOf("x")<=0)?e:NaN}function tf(){return Math.round(9*Math.random())}function ef(t,e){return 0===e?t:ef(e,t%e)}function nf(t,e){return null==t?e:null==e?t:t*e/ef(t,e)}function rf(t){throw new Error(t)}function of(t,e,n){return(e-t)*n+t}var af="series\0";function sf(t){return t instanceof Array?t:null==t?[]:[t]}function lf(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var uf=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function cf(t){return!Ou(t)||Mu(t)||t instanceof Date?t:t.value}function hf(t){return Ou(t)&&!(t instanceof Array)}function pf(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=qu();xu(e,(function(t,n){Ou(t)||(e[n]=null)}));var s,l,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||yf(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){xu(i,(function(r,o){if(r&&null!=r.id){var a=ff(r.id),s=n.get(a);if(null!=s){var l=t[s];Vu(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){xu(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!yf(n)&&!yf(o)&&df("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){xu(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||yf(i.existing)||i.existing&&null!=e.id&&!df("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){xu(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=qu(),xu(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),xu(s,(function(t){var e=t.newOption;Vu(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),xu(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(Ou(i)){if(r.name=null!=i.name?ff(i.name):n?n.name:af+e,n)r.id=ff(n.id);else if(null!=i.id)r.id=ff(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function df(t,e,n){var i=gf(e[t],null),r=gf(n[t],null);return null!=i&&null!=r&&i===r}function ff(t){return gf(t,"")}function gf(t,e){return null==t?e:Du(t)?t:Au(t)||ku(t)?t+"":e}function vf(t){var e=t.name;return!(!e||!e.indexOf(af))}function yf(t){return t&&null!=t.id&&0===ff(t.id).indexOf("\0_ec_\0")}function mf(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Mu(e.dataIndex)?_u(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Mu(e.name)?_u(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function xf(){var t="__ec_inner_"+_f++;return function(e){return e[t]||(e[t]={})}}var _f=tf();function bf(t,e,n){var i=wf(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=Cf(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function wf(t,e){var n;if(Du(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=qu(),o={},a=!1;return xu(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&vu(e.includeMainTypes,s)<0))a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Sf={useDefault:!0,enableAll:!1,enableNone:!1};function Cf(t,e,n,i){i=i||Sf;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===r||!1===r?(Vu(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Vu(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s)}function Tf(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var Mf="___EC__COMPONENT__CONTAINER___",If="___EC__EXTENDED_CLASS___";function Df(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function kf(t,e){t.$constructor=t,t.extend=function(t){var e,n,i=this;return Iu(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return jl(e,t),e}(i):(e=function(){(t.$constructor||i).apply(this,arguments)},function(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}(e,this)),fu(e.prototype,t),e[If]=!0,e.extend=this.extend,e.superCall=Pf,e.superApply=Ef,e.superClass=i,e}}function Af(t,e){t.extend=e.extend}var Of=Math.round(10*Math.random());function Pf(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Ef(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Bf(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){Vu(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=Df(i);if(r.sub){if(r.sub!==Mf){var o=function(t){var n=e[t.main];n&&n[Mf]||((n=e[t.main]={})[Mf]=!0);return n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Mf]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Df(t),i=[],r=e[n.main];return r&&r[Mf]?xu(r,(function(t,e){e!==Mf&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Df(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return xu(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Df(t),i=e[n.main];return i&&i[Mf]}}function Rf(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&vu(i,s)>=0||r&&vu(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Lf=Rf([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),zf=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Lf(this,t,e)},t}(),Nf=new Qh(50);function Ff(t){if("string"==typeof t){var e=Nf.get(t);return e&&e.image}return t}function Hf(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Nf.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!Vf(e=o.image)&&o.pending.push(a):((e=Zl.loadImage(t,$f,$f)).__zrImageSrc=t,Nf.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function $f(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Vf(t){return t&&t.width&&t.height}var jf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Wf(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=Gf(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Uf(o[a],r);return o.join("\n")}function Gf(t,e,n,i){var r=fu({},i=i||{});r.font=e,n=Nu(n,"..."),r.maxIterations=Nu(i.maxIterations,2);var o=r.minChar=Nu(i.minChar,0);r.cnCharWidth=vd("国",e);var a=r.ascCharWidth=vd("a",e);r.placeholder=Nu(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=vd(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Uf(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=vd(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Xf(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=vd(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function Xf(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}var Kf=function(){},Yf=function(t){this.tokens=[],t&&(this.tokens=t)},qf=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Zf(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=wd(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=tg(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Kf;if(m.styleName=r,m.text=y,m.isLineHolder=!y&&!s,"number"==typeof l.width?m.width=l.width:m.width=a?a[v]:vd(y,c),v||h)u.push(new Yf([m]));else{var x=(u[u.length-1]||(u[0]=new Yf)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=m:(y||!_||s)&&x.push(m)}}}var Qf=bu(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Jf(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Qf[t]}function tg(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var p=t.charAt(h);if("\n"!==p){var d=vd(p,e),f=!i&&!Jf(p);(o.length?c+d>n:r+c+d>n)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=p,s="",c=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var eg="__zr_style_"+Math.round(10*Math.random()),ng={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ig={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ng[eg]=!0;var rg=["z","z2","invisible"],og=["invisible"],ag=function(t){function e(e){return t.call(this,e)||this}var n;return jl(e,t),e.prototype._init=function(e){for(var n=Su(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){sg.copy(t.getBoundingRect()),t.transform&&sg.applyTransform(t.transform);return lg.width=e,lg.height=n,!sg.intersect(lg)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new th(0,0,0,0)),e?th.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new th(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:fu(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Zu(ng,t)},e.prototype.useStyle=function(t){t[eg]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[eg]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,rg)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Su(u),h=0;h<c.length;h++){(d=c[h])in s&&(s[d]=s[d],this.style[d]=u[d])}var p=Su(s);for(h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var f=this.__inHover?og:rg;for(h=0;h<f.length;h++){d=f[h];n&&null!=n[d]?this[d]=n[d]:l&&null!=i[d]&&(this[d]=i[d])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return fu(t,e),t},e.prototype.getAnimationStyleProps=function(){return ig},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),e}(Bd),sg=new th(0,0,0,0),lg=new th(0,0,0,0);const ug=ag;var cg=Math.min,hg=Math.max,pg=Math.sin,dg=Math.cos,fg=2*Math.PI,gg=nc(),vg=nc(),yg=nc();function mg(t,e,n,i,r,o){r[0]=cg(t,n),r[1]=cg(e,i),o[0]=hg(t,n),o[1]=hg(e,i)}var xg=[],_g=[];function bg(t,e,n,i,r,o,a,s,l,u){var c=Fh,h=Lh,p=c(t,n,r,a,xg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(t,n,r,a,xg[d]);l[0]=cg(f,l[0]),u[0]=hg(f,u[0])}p=c(e,i,o,s,_g);for(d=0;d<p;d++){var g=h(e,i,o,s,_g[d]);l[1]=cg(g,l[1]),u[1]=hg(g,u[1])}l[0]=cg(t,l[0]),u[0]=hg(t,u[0]),l[0]=cg(a,l[0]),u[0]=hg(a,u[0]),l[1]=cg(e,l[1]),u[1]=hg(e,u[1]),l[1]=cg(s,l[1]),u[1]=hg(s,u[1])}function wg(t,e,n,i,r,o,a,s){var l=Wh,u=Vh,c=hg(cg(l(t,n,r),1),0),h=hg(cg(l(e,i,o),1),0),p=u(t,n,r,c),d=u(e,i,o,h);a[0]=cg(t,r,p),a[1]=cg(e,o,d),s[0]=hg(t,r,p),s[1]=hg(e,o,d)}function Sg(t,e,n,i,r,o,a,s,l){var u=pc,c=dc,h=Math.abs(r-o);if(h%fg<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(gg[0]=dg(r)*n+t,gg[1]=pg(r)*i+e,vg[0]=dg(o)*n+t,vg[1]=pg(o)*i+e,u(s,gg,vg),c(l,gg,vg),(r%=fg)<0&&(r+=fg),(o%=fg)<0&&(o+=fg),r>o&&!a?o+=fg:r<o&&a&&(r+=fg),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(yg[0]=dg(d)*n+t,yg[1]=pg(d)*i+e,u(s,yg,s),c(l,yg,l))}var Cg={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Tg=[],Mg=[],Ig=[],Dg=[],kg=[],Ag=[],Og=Math.min,Pg=Math.max,Eg=Math.cos,Bg=Math.sin,Rg=Math.abs,Lg=Math.PI,zg=2*Lg,Ng="undefined"!=typeof Float32Array,Fg=[];function Hg(t){return Math.round(t/Lg*1e8)/1e8%2*Lg}var $g=function(){function t(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=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=Rg(n/nd/t)||0,this._uy=Rg(n/nd/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Cg.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Rg(t-this._xi),i=Rg(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Cg.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Cg.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Cg.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Fg[0]=i,Fg[1]=r,function(t,e){var n=Hg(t[0]);n<0&&(n+=zg);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=zg?r=n+zg:e&&n-r>=zg?r=n-zg:!e&&n>r?r=n+(zg-Hg(n-r)):e&&n<r&&(r=n-(zg-Hg(r-n))),t[0]=n,t[1]=r}(Fg,o),i=Fg[0];var a=(r=Fg[1])-i;return this.addData(Cg.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Eg(r)*n+t,this._yi=Bg(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Cg.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Cg.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ng||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();Ng&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ng&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ig[0]=Ig[1]=kg[0]=kg[1]=Number.MAX_VALUE,Dg[0]=Dg[1]=Ag[0]=Ag[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case Cg.M:n=r=e[t++],i=o=e[t++],kg[0]=r,kg[1]=o,Ag[0]=r,Ag[1]=o;break;case Cg.L:mg(n,i,e[t],e[t+1],kg,Ag),n=e[t++],i=e[t++];break;case Cg.C:bg(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],kg,Ag),n=e[t++],i=e[t++];break;case Cg.Q:wg(n,i,e[t++],e[t++],e[t],e[t+1],kg,Ag),n=e[t++],i=e[t++];break;case Cg.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=Eg(p)*c+l,o=Bg(p)*h+u),Sg(l,u,c,h,p,d,f,kg,Ag),n=Eg(d)*c+l,i=Bg(d)*h+u;break;case Cg.R:mg(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],kg,Ag);break;case Cg.Z:n=r,i=o}pc(Ig,Ig,kg),dc(Dg,Dg,Ag)}return 0===t&&(Ig[0]=Ig[1]=Dg[0]=Dg[1]=0),new th(Ig[0],Ig[1],Dg[0]-Ig[0],Dg[1]-Ig[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(p){case Cg.M:r=a=t[h++],o=s=t[h++];break;case Cg.L:var g=t[h++],v=(x=t[h++])-o;(Rg(k=g-r)>n||Rg(v)>i||h===e-1)&&(f=Math.sqrt(k*k+v*v),r=g,o=x);break;case Cg.C:var y=t[h++],m=t[h++],x=(g=t[h++],t[h++]),_=t[h++],b=t[h++];f=$h(r,o,y,m,g,x,_,b,10),r=_,o=b;break;case Cg.Q:f=Uh(r,o,y=t[h++],m=t[h++],g=t[h++],x=t[h++],10),r=g,o=x;break;case Cg.A:var w=t[h++],S=t[h++],C=t[h++],T=t[h++],M=t[h++],I=t[h++],D=I+M;h+=1,d&&(a=Eg(M)*C+w,s=Bg(M)*T+S),f=Pg(C,T)*Og(zg,Math.abs(I)),r=Eg(D)*C+w,o=Bg(D)*T+S;break;case Cg.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case Cg.Z:var k=a-r;v=s-o;f=Math.sqrt(k*k+v*v),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,y=0,m=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_<g;){var b=p[_++],w=1===_;switch(w&&(n=r=p[_],i=o=p[_+1]),b!==Cg.L&&x>0&&(t.lineTo(c,h),x=0),b){case Cg.M:n=r=p[_++],i=o=p[_++],t.moveTo(r,o);break;case Cg.L:a=p[_++],s=p[_++];var S=Rg(a-r),C=Rg(s-o);if(S>d||C>f){if(v){if(y+(K=l[m++])>u){var T=(u-y)/K;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}y+=K}t.lineTo(a,s),r=a,o=s,x=0}else{var M=S*S+C*C;M>x&&(c=a,h=s,x=M)}break;case Cg.C:var I=p[_++],D=p[_++],k=p[_++],A=p[_++],O=p[_++],P=p[_++];if(v){if(y+(K=l[m++])>u){Hh(r,I,k,O,T=(u-y)/K,Tg),Hh(o,D,A,P,T,Mg),t.bezierCurveTo(Tg[1],Mg[1],Tg[2],Mg[2],Tg[3],Mg[3]);break t}y+=K}t.bezierCurveTo(I,D,k,A,O,P),r=O,o=P;break;case Cg.Q:I=p[_++],D=p[_++],k=p[_++],A=p[_++];if(v){if(y+(K=l[m++])>u){Gh(r,I,k,T=(u-y)/K,Tg),Gh(o,D,A,T,Mg),t.quadraticCurveTo(Tg[1],Mg[1],Tg[2],Mg[2]);break t}y+=K}t.quadraticCurveTo(I,D,k,A),r=k,o=A;break;case Cg.A:var E=p[_++],B=p[_++],R=p[_++],L=p[_++],z=p[_++],N=p[_++],F=p[_++],H=!p[_++],$=R>L?R:L,V=Rg(R-L)>.001,j=z+N,W=!1;if(v)y+(K=l[m++])>u&&(j=z+N*(u-y)/K,W=!0),y+=K;if(V&&t.ellipse?t.ellipse(E,B,R,L,F,z,j,H):t.arc(E,B,$,z,j,H),W)break t;w&&(n=Eg(z)*R+E,i=Bg(z)*L+B),r=Eg(j)*R+E,o=Bg(j)*L+B;break;case Cg.R:n=r=p[_],i=o=p[_+1],a=p[_++],s=p[_++];var G=p[_++],U=p[_++];if(v){if(y+(K=l[m++])>u){var X=u-y;t.moveTo(a,s),t.lineTo(a+Og(X,G),s),(X-=G)>0&&t.lineTo(a+G,s+Og(X,U)),(X-=U)>0&&t.lineTo(a+Pg(G-X,0),s+U),(X-=G)>0&&t.lineTo(a,s+Pg(U-X,0));break t}y+=K}t.rect(a,s,G,U);break;case Cg.Z:if(v){var K;if(y+(K=l[m++])>u){T=(u-y)/K;t.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break t}y+=K}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Cg,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Vg=$g;function jg(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function Wg(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=function(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;Oh[0]=l,Oh[1]=u;for(var m=0;m<1;m+=.05)Ph[0]=Lh(t,n,r,a,m),Ph[1]=Lh(e,i,o,s,m),(f=cc(Oh,Ph))<y&&(h=m,y=f);y=1/0;for(var x=0;x<32&&!(v<Dh);x++)p=h-v,d=h+v,Ph[0]=Lh(t,n,r,a,p),Ph[1]=Lh(e,i,o,s,p),f=cc(Ph,Oh),p>=0&&f<y?(h=p,y=f):(Eh[0]=Lh(t,n,r,a,d),Eh[1]=Lh(e,i,o,s,d),g=cc(Eh,Oh),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=Lh(t,n,r,a,h),c[1]=Lh(e,i,o,s,h)),Mh(y)}(t,e,n,i,r,o,a,s,u,c,null);return p<=h/2}function Gg(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Oh[0]=a,Oh[1]=s;for(var p=0;p<1;p+=.05)Ph[0]=Vh(t,n,r,p),Ph[1]=Vh(e,i,o,p),(v=cc(Oh,Ph))<h&&(u=p,h=v);h=1/0;for(var d=0;d<32&&!(c<Dh);d++){var f=u-c,g=u+c;Ph[0]=Vh(t,n,r,f),Ph[1]=Vh(e,i,o,f);var v=cc(Ph,Oh);if(f>=0&&v<h)u=f,h=v;else{Eh[0]=Vh(t,n,r,g),Eh[1]=Vh(e,i,o,g);var y=cc(Eh,Oh);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Vh(t,n,r,u),l[1]=Vh(e,i,o,u)),Mh(h)}(t,e,n,i,r,o,s,l,null);return c<=u/2}var Ug=2*Math.PI;function Xg(t){return(t%=Ug)<0&&(t+=Ug),t}var Kg=2*Math.PI;function Yg(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Kg<1e-4)return!0;if(o){var h=i;i=Xg(r),r=Xg(h)}else i=Xg(i),r=Xg(r);i>r&&(r+=Kg);var p=Math.atan2(l,s);return p<0&&(p+=Kg),p>=i&&p<=r||p+Kg>=i&&p+Kg<=r}function qg(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var Zg=Vg.CMD,Qg=2*Math.PI;var Jg=[-1,-1,-1],tv=[-1,-1];function ev(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c,h=Nh(e,i,o,s,u,Jg);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,v=0;v<h;v++){var y=Jg[v],m=0===y||1===y?.5:1;Lh(t,n,r,a,y)<l||(d<0&&(d=Fh(e,i,o,s,tv),tv[1]<tv[0]&&d>1&&(c=void 0,c=tv[0],tv[0]=tv[1],tv[1]=c),f=Lh(e,i,o,s,tv[0]),d>1&&(g=Lh(e,i,o,s,tv[1]))),2===d?y<tv[0]?p+=f<e?m:-m:y<tv[1]?p+=g<f?m:-m:p+=s<g?m:-m:y<tv[0]?p+=f<e?m:-m:p+=s<f?m:-m)}return p}function nv(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(Bh(o))Rh(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(Bh(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Mh(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Jg);if(0===l)return 0;var u=Wh(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Vh(e,i,o,u),p=0;p<l;p++){var d=0===Jg[p]||1===Jg[p]?.5:1;Vh(t,n,r,Jg[p])<a||(Jg[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}d=0===Jg[0]||1===Jg[0]?.5:1;return Vh(t,n,r,Jg[0])<a?0:o<e?d:-d}function iv(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Jg[0]=-l,Jg[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Qg-1e-4){i=0,r=Qg;var c=o?1:-1;return a>=Jg[0]+t&&a<=Jg[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Qg,r+=Qg);for(var p=0,d=0;d<2;d++){var f=Jg[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1;g<0&&(g=Qg+g),(g>=i&&g<=r||g+Qg>=i&&g+Qg<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function rv(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,d=0,f=0,g=0,v=0;v<c;){var y=u[v++],m=1===v;switch(y===Zg.M&&v>1&&(n||(h+=qg(p,d,f,g,i,r))),m&&(f=p=u[v],g=d=u[v+1]),y){case Zg.M:p=f=u[v++],d=g=u[v++];break;case Zg.L:if(n){if(jg(p,d,u[v],u[v+1],e,i,r))return!0}else h+=qg(p,d,u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Zg.C:if(n){if(Wg(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=ev(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Zg.Q:if(n){if(Gg(p,d,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=nv(p,d,u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Zg.A:var x=u[v++],_=u[v++],b=u[v++],w=u[v++],S=u[v++],C=u[v++];v+=1;var T=!!(1-u[v++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):h+=qg(p,d,o,a,i,r);var M=(i-x)*w/b+x;if(n){if(Yg(x,_,w,S,S+C,T,e,M,r))return!0}else h+=iv(x,_,w,S,S+C,T,M,r);p=Math.cos(S+C)*b+x,d=Math.sin(S+C)*w+_;break;case Zg.R:if(f=p=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(jg(f,g,o,g,e,i,r)||jg(o,g,o,a,e,i,r)||jg(o,a,f,a,e,i,r)||jg(f,a,f,g,e,i,r))return!0}else h+=qg(o,g,o,a,i,r),h+=qg(f,a,f,g,i,r);break;case Zg.Z:if(n){if(jg(p,d,f,g,e,i,r))return!0}else h+=qg(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<1e-4)||(h+=qg(p,d,f,g,i,r)||0),0!==h}var ov=gu({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ng),av={style:gu({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ig.style)},sv=dd.concat(["invisible","culling","z","z2","zlevel","parent"]);const lv=function(t){function e(e){return t.call(this,e)||this}var n;return jl(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<sv.length;++s)r[sv[s]]=this[sv[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Su(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?fu(this.style,a):this.useStyle(a):"shape"===o?fu(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Du(t)){var e=gp(t,0);return e>.5?id:e>.2?"#eee":rd}if(t)return rd}return id},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Du(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===gp(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Vg(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return rv(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return rv(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:fu(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Zu(ov,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=fu({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=fu({},i.shape),fu(s,n.shape)):(s=fu({},r?this.shape:i.shape),fu(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=fu({},this.shape);for(var u={},c=Su(s),h=0;h<c.length;h++){var p=c[h];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return av},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return jl(n,e),n.prototype.getDefaultStyle=function(){return pu(t.style)},n.prototype.getDefaultShape=function(){return pu(t.shape)},n}(e);for(var i in t)"function"==typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),e}(ug);var uv=gu({strokeFirst:!0,font:Xl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ov),cv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Zu(uv,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=md(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ug);cv.prototype.type="tspan";const hv=cv;var pv=gu({x:0,y:0},ng),dv={style:gu({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ig.style)};var fv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.createStyle=function(t){return Zu(pv,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return dv},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new th(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ug);fv.prototype.type="image";const gv=fv;var vv=Math.round;function yv(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(vv(2*i)===vv(2*r)&&(t.x1=t.x2=xv(i,s,!0)),vv(2*o)===vv(2*a)&&(t.y1=t.y2=xv(o,s,!0)),t):t}}function mv(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=xv(i,s,!0),t.y=xv(r,s,!0),t.width=Math.max(xv(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(xv(r+a,s,!1)-t.y,0===a?0:1),t):t}}function xv(t,e,n){if(!e)return t;var i=vv(2*t);return(i+vv(e))%2==0?i/2:(i+(n?1:-1))/2}var _v=function(){this.x=0,this.y=0,this.width=0,this.height=0},bv={},wv=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new _v},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=mv(bv,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(lv);wv.prototype.type="rect";const Sv=wv;var Cv={fill:"#000"},Tv={style:gu({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},ig.style)},Mv=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cv,n.attr(e),n}return jl(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,Pv(t=this.style),xu(t.rich,Pv),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new th(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Cv},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return fu(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Su(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},fu(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return Tv},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Xl,n=t.padding,i=function(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,s=bd(o),l=Nu(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width,p=(n=null==h||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?tg(t,e.font,h,"breakAll"===i,0).lines:[]).length*l,d=Nu(e.height,p);if(p>d&&c){var f=Math.floor(d/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=Gf(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=Uf(n[v],g);var y=d,m=0;for(v=0;v<n.length;v++)m=Math.max(vd(n[v],o),m);null==h&&(h=m);var x=m;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],h+=r[1]+r[3]),u&&(x=h),{lines:n,height:d,outerWidth:x,outerHeight:y,lineHeight:l,calculatedLineHeight:s,contentWidth:m,contentHeight:p,width:h}}(Lv(t),t),r=zv(t),o=!!t.backgroundColor,a=i.outerHeight,s=i.outerWidth,l=i.contentWidth,u=i.lines,c=i.lineHeight,h=this._defaultStyle,p=t.x||0,d=t.y||0,f=t.align||h.align||"left",g=t.verticalAlign||h.verticalAlign||"top",v=p,y=_d(d,i.contentHeight,g);if(r||n){var m=xd(p,s,f),x=_d(d,a,g);r&&this._renderBackground(t,t,m,x,s,a)}y+=c/2,n&&(v=Rv(p,f,n),"top"===g?y+=n[0]:"bottom"===g&&(y-=n[2]));for(var _=0,b=!1,w=(Bv("fill"in t?t.fill:(b=!0,h.fill))),S=(Ev("stroke"in t?t.stroke:o||h.autoStroke&&!b?null:(_=2,h.stroke))),C=t.textShadowBlur>0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=i.calculatedLineHeight,I=0;I<u.length;I++){var D=this._getOrCreateChild(hv),k=D.createStyle();D.useStyle(k),k.text=u[I],k.x=v,k.y=y,f&&(k.textAlign=f),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,C&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=S,k.fill=w,S&&(k.lineWidth=t.lineWidth||_,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=e,Ov(k,t),y+=c,T&&D.setBoundingRect(new th(xd(k.x,t.width,k.textAlign),_d(k.y,M,k.textBaseline),l,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=function(t,e){var n=new qf;if(null!=t&&(t+=""),!t)return n;for(var i,r=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=jf.lastIndex=0;null!=(i=jf.exec(t));){var u=i.index;u>l&&Zf(n,t.substring(l,u),e,s),Zf(n,i[2],e,s,i[1]),l=jf.lastIndex}l<t.length&&Zf(n,t.substring(l,t.length),e,s);var c=[],h=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,h+=n,p=Math.max(p,e)}t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],x=0,_=0,b=0;b<m.tokens.length;b++){var w=(P=m.tokens[b]).styleName&&e.rich[P.styleName]||{},S=P.textPadding=w.padding,C=S?S[1]+S[3]:0,T=P.font=w.font||e.font;P.contentHeight=bd(T);var M=Nu(w.height,P.contentHeight);if(P.innerHeight=M,S&&(M+=S[0]+S[2]),P.height=M,P.lineHeight=Fu(w.lineHeight,e.lineHeight,M),P.align=w&&w.align||e.align,P.verticalAlign=w&&w.verticalAlign||"middle",g&&null!=o&&h+P.lineHeight>o){b>0?(m.tokens=m.tokens.slice(0,b),v(m,_,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var I=w.width,D=null==I||"auto"===I;if("string"==typeof I&&"%"===I.charAt(I.length-1))P.percentWidth=I,c.push(P),P.contentWidth=vd(P.text,T);else{if(D){var k=w.backgroundColor,A=k&&k.image;A&&Vf(A=Ff(A))&&(P.width=Math.max(P.width,A.width*M/A.height))}var O=f&&null!=r?r-_:null;null!=O&&O<P.width?!D||O<C?(P.text="",P.width=P.contentWidth=0):(P.text=Wf(P.text,O-C,T,e.ellipsis,{minChar:e.truncateMinChar}),P.width=P.contentWidth=vd(P.text,T)):P.contentWidth=vd(P.text,T)}P.width+=C,_+=P.width,w&&(x=Math.max(x,P.lineHeight))}v(m,_,x)}for(n.outerWidth=n.width=Nu(r,p),n.outerHeight=n.height=Nu(o,h),n.contentHeight=h,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]),y=0;y<c.length;y++){var P,E=(P=c[y]).percentWidth;P.width=parseInt(E,10)/100*n.width}return n}(Lv(t),t),n=e.width,i=e.outerWidth,r=e.outerHeight,o=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,c=t.verticalAlign||l.verticalAlign,h=xd(a,i,u),p=_d(s,r,c),d=h,f=p;o&&(d+=o[3],f+=o[0]);var g=d+n;zv(t)&&this._renderBackground(t,t,h,p,i,r);for(var v=!!t.backgroundColor,y=0;y<e.lines.length;y++){for(var m=e.lines[y],x=m.tokens,_=x.length,b=m.lineHeight,w=m.width,S=0,C=d,T=g,M=_-1,I=void 0;S<_&&(!(I=x[S]).align||"left"===I.align);)this._placeToken(I,t,b,f,C,"left",v),w-=I.width,C+=I.width,S++;for(;M>=0&&"right"===(I=x[M]).align;)this._placeToken(I,t,b,f,T,"right",v),w-=I.width,T-=I.width,M--;for(C+=(n-(C-d)-(g-T)-w)/2;S<=M;)I=x[S],this._placeToken(I,t,b,f,C+I.width/2,"center",v),C+=I.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&zv(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Rv(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var p=this._getOrCreateChild(hv),d=p.createStyle();p.useStyle(d);var f=this._defaultStyle,g=!1,v=0,y=Bv("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=Ev("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=r,d.y=u,x&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||Xl,d.opacity=Fu(s.opacity,e.opacity,1),Ov(d,s),m&&(d.lineWidth=Fu(s.lineWidth,e.lineWidth,v),d.lineDash=Nu(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=m),y&&(d.fill=y);var _=t.contentWidth,b=t.contentHeight;p.setBoundingRect(new th(xd(d.x,_,d.textAlign),_d(d.y,b,d.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&h){(a=this._getOrCreateChild(Sv)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=Nu(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(gv)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=Nu(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Fu(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(e=[t.fontStyle,t.fontWeight,Av(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&ju(e)||t.textFont||t.font},e}(ug),Iv={left:!0,right:1,center:1},Dv={top:1,bottom:1,middle:1},kv=["fontStyle","fontWeight","fontSize","fontFamily"];function Av(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t}function Ov(t,e){for(var n=0;n<kv.length;n++){var i=kv[n],r=e[i];null!=r&&(t[i]=r)}}function Pv(t){if(t){t.font=Mv.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Iv[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Dv[n]?n:"top",t.padding&&(t.padding=$u(t.padding))}}function Ev(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Bv(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Rv(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Lv(t){var e=t.text;return null!=e&&(e+=""),e}function zv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Nv=Mv;var Fv=xf(),Hv=1,$v={},Vv=xf(),jv=xf(),Wv=["emphasis","blur","select"],Gv=["normal","emphasis","blur","select"],Uv="highlight",Xv="downplay",Kv="select",Yv="unselect",qv="toggleSelect";function Zv(t){return null!=t&&"none"!==t}function Qv(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Jv(t){Qv(t,"emphasis",2)}function ty(t){2===t.hoverState&&Qv(t,"normal",0)}function ey(t){Qv(t,"blur",1)}function ny(t){1===t.hoverState&&Qv(t,"normal",0)}function iy(t){t.selected=!0}function ry(t){t.selected=!1}function oy(t,e,n){e(t,n)}function ay(t,e,n){oy(t,e,n),t.isGroup&&t.traverse((function(t){oy(t,e,n)}))}function sy(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ly(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&vu(n,"select")>=0,o=!1;if(t instanceof lv){var a=Vv(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Zv(s)||Zv(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=fu({},i),(u=fu({},u)).fill=s):!Zv(u.fill)&&Zv(s)?(o=!0,i=fu({},i),(u=fu({},u)).fill=yp(s)):!Zv(u.stroke)&&Zv(l)&&(o||(i=fu({},i),u=fu({},u)),u.stroke=yp(l)),i.style=u}}if(i&&null==i.z2){o||(i=fu({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=vu(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=fu({},n),a=fu({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=fu({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:9)}return n}(this,0,n)}return n}function uy(t){t.stateProxy=ly;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=ly),n&&(n.stateProxy=ly)}function cy(t,e){!yy(t,e)&&!t.__highByOuter&&ay(t,Jv)}function hy(t,e){!yy(t,e)&&!t.__highByOuter&&ay(t,ty)}function py(t,e){t.__highByOuter|=1<<(e||0),ay(t,Jv)}function dy(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ay(t,ty)}function fy(t){ay(t,ny)}function gy(t){ay(t,iy)}function vy(t){ay(t,ry)}function yy(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function my(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=jv(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){ny(t)})),a&&n.push(r)),o.isBlured=!1})),xu(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function xy(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&fy(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&r&&"self"===e||ey(t)})),mu(e))o(t.getData(),e);else if(Ou(e))for(var c=Su(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),jv(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function _y(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){jv(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){ey(t)}))}}}function by(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Fv(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function wy(t){xu(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?gy(e):vy(e)}))}))}function Sy(t){var e=[];return t.eachSeries((function(t){xu(t.getAllData(),(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Cy(t,e,n){ky(t,!0),ay(t,uy),function(t,e,n){var i=Fv(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function Ty(t,e,n,i){i?function(t){ky(t,!1)}(t):Cy(t,e,n)}var My=["emphasis","blur","select"],Iy={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Dy(t,e,n,i){n=n||"itemStyle";for(var r=0;r<My.length;r++){var o=My[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Iy[n]]()}}function ky(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Ay(t){return!(!t||!t.__highDownDispatcher)}function Oy(t){var e=t.type;return e===Kv||e===Yv||e===qv}function Py(t){var e=t.type;return e===Uv||e===Xv}var Ey=Vg.CMD,By=[[],[],[]],Ry=Math.sqrt,Ly=Math.atan2;var zy=Math.sqrt,Ny=Math.sin,Fy=Math.cos,Hy=Math.PI;function $y(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vy(t,e){return(t[0]*e[0]+t[1]*e[1])/($y(t)*$y(e))}function jy(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vy(t,e))}function Wy(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Hy/180),p=Fy(h)*(t-n)/2+Ny(h)*(e-i)/2,d=-1*Ny(h)*(t-n)/2+Fy(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=zy(f),s*=zy(f));var g=(r===o?-1:1)*zy((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(t+n)/2+Fy(h)*v-Ny(h)*y,x=(e+i)/2+Ny(h)*v+Fy(h)*y,_=jy([1,0],[(p-v)/a,(d-y)/s]),b=[(p-v)/a,(d-y)/s],w=[(-1*p-v)/a,(-1*d-y)/s],S=jy(b,w);if(Vy(b,w)<=-1&&(S=Hy),Vy(b,w)>=1&&(S=0),S<0){var C=Math.round(S/Hy*1e6)/1e6;S=2*Hy+C%2*Hy}c.addData(u,m,x,a,s,_,S,h,o)}var Gy=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Uy=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Xy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.applyTransform=function(t){},e}(lv);function Ky(t){return null!=t.setData}function Yy(t,e){var n=function(t){var e=new Vg;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Vg.CMD,l=t.match(Gy);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(Uy)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=i,T=r,M=void 0,I=void 0;switch(h){case"l":i+=d[v++],r+=d[v++],p=s.L,e.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=d[v++],r=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=d[v++],p=s.L,e.addData(p,i,r);break;case"H":i=d[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,e.addData(p,i,r);break;case"V":r=d[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":y=i,m=r,M=e.len(),I=e.data,n===s.C&&(y+=i-I[M-4],m+=r-I[M-3]),p=s.C,C=d[v++],T=d[v++],i=d[v++],r=d[v++],e.addData(p,y,m,C,T,i,r);break;case"s":y=i,m=r,M=e.len(),I=e.data,n===s.C&&(y+=i-I[M-4],m+=r-I[M-3]),p=s.C,C=i+d[v++],T=r+d[v++],i+=d[v++],r+=d[v++],e.addData(p,y,m,C,T,i,r);break;case"Q":C=d[v++],T=d[v++],i=d[v++],r=d[v++],p=s.Q,e.addData(p,C,T,i,r);break;case"q":C=d[v++]+i,T=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,C,T,i,r);break;case"T":y=i,m=r,M=e.len(),I=e.data,n===s.Q&&(y+=i-I[M-4],m+=r-I[M-3]),i=d[v++],r=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,M=e.len(),I=e.data,n===s.Q&&(y+=i-I[M-4],m+=r-I[M-3]),i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Wy(C=i,T=r,i=d[v++],r=d[v++],w,S,x,_,b,p=s.A,e);break;case"a":x=d[v++],_=d[v++],b=d[v++],w=d[v++],S=d[v++],Wy(C=i,T=r,i+=d[v++],r+=d[v++],w,S,x,_,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}(t),i=fu({},e);return i.buildPath=function(t){if(Ky(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Ey.M,h=Ey.C,p=Ey.L,d=Ey.R,f=Ey.A,g=Ey.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=e[4],y=e[5],m=Ry(e[0]*e[0]+e[1]*e[1]),x=Ry(e[2]*e[2]+e[3]*e[3]),_=Ly(-e[1]/x,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=x,l[r++]+=y,l[r++]*=m,l[r++]*=x,l[r++]+=_,l[r++]+=_,o=r+=2;break;case d:s[0]=l[r++],s[1]=l[r++],hc(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],hc(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=By[a];b[0]=l[r++],b[1]=l[r++],hc(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var qy=function(){this.cx=0,this.cy=0,this.r=0},Zy=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new qy},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(lv);Zy.prototype.type="circle";const Qy=Zy;var Jy=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},tm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new Jy},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(lv);tm.prototype.type="ellipse";const em=tm;var nm=Math.PI,im=2*nm,rm=Math.sin,om=Math.cos,am=Math.acos,sm=Math.atan2,lm=Math.abs,um=Math.sqrt,cm=Math.max,hm=Math.min,pm=1e-4;function dm(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/um(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(x<0?-1:1)*um(cm(0,b*b*_-w*w)),C=(w*x-m*S)/_,T=(-w*m-x*S)/_,M=(w*x+m*S)/_,I=(-w*m+x*S)/_,D=C-v,k=T-y,A=M-v,O=I-y;return D*D+k*k>A*A+O*O&&(C=M,T=I),{cx:C,cy:T,x0:-c,y0:-h,x1:C*(r/b-1),y1:T*(r/b-1)}}function fm(t,e){var n,i=cm(e.r,0),r=cm(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=lm(l-s),d=p>im&&p%im;if(d>pm&&(p=d),i>pm)if(p>im-pm)t.moveTo(u+i*om(s),c+i*rm(s)),t.arc(u,c,i,s,l,!h),r>pm&&(t.moveTo(u+r*om(l),c+r*rm(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0,M=void 0,I=void 0,D=void 0,k=void 0,A=i*om(s),O=i*rm(s),P=r*om(l),E=r*rm(l),B=p>pm;if(B){var R=e.cornerRadius;R&&(f=(n=function(t){var e;if(Mu(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(R))[0],g=n[1],v=n[2],y=n[3]);var L=lm(i-r)/2;if(m=hm(L,v),x=hm(L,y),_=hm(L,f),b=hm(L,g),C=w=cm(m,x),T=S=cm(_,b),(w>pm||S>pm)&&(M=i*om(l),I=i*rm(l),D=r*om(s),k=r*rm(s),p<nm)){var z=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<pm))return[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(A,O,D,k,M,I,P,E);if(z){var N=A-z[0],F=O-z[1],H=M-z[0],$=I-z[1],V=1/rm(am((N*H+F*$)/(um(N*N+F*F)*um(H*H+$*$)))/2),j=um(z[0]*z[0]+z[1]*z[1]);C=hm(w,(i-j)/(V+1)),T=hm(S,(r-j)/(V-1))}}}if(B)if(C>pm){var W=hm(v,C),G=hm(y,C),U=dm(D,k,A,O,i,W,h),X=dm(M,I,P,E,i,G,h);t.moveTo(u+U.cx+U.x0,c+U.cy+U.y0),C<w&&W===G?t.arc(u+U.cx,c+U.cy,C,sm(U.y0,U.x0),sm(X.y0,X.x0),!h):(W>0&&t.arc(u+U.cx,c+U.cy,W,sm(U.y0,U.x0),sm(U.y1,U.x1),!h),t.arc(u,c,i,sm(U.cy+U.y1,U.cx+U.x1),sm(X.cy+X.y1,X.cx+X.x1),!h),G>0&&t.arc(u+X.cx,c+X.cy,G,sm(X.y1,X.x1),sm(X.y0,X.x0),!h))}else t.moveTo(u+A,c+O),t.arc(u,c,i,s,l,!h);else t.moveTo(u+A,c+O);if(r>pm&&B)if(T>pm){W=hm(f,T),U=dm(P,E,M,I,r,-(G=hm(g,T)),h),X=dm(A,O,D,k,r,-W,h);t.lineTo(u+U.cx+U.x0,c+U.cy+U.y0),T<S&&W===G?t.arc(u+U.cx,c+U.cy,T,sm(U.y0,U.x0),sm(X.y0,X.x0),!h):(G>0&&t.arc(u+U.cx,c+U.cy,G,sm(U.y0,U.x0),sm(U.y1,U.x1),!h),t.arc(u,c,r,sm(U.cy+U.y1,U.cx+U.x1),sm(X.cy+X.y1,X.cx+X.x1),h),W>0&&t.arc(u+X.cx,c+X.cy,W,sm(X.y1,X.x1),sm(X.y0,X.x0),!h))}else t.lineTo(u+P,c+E),t.arc(u,c,r,l,s,h);else t.lineTo(u+P,c+E)}else t.moveTo(u,c);t.closePath()}}}var gm=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},vm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new gm},e.prototype.buildPath=function(t,e){fm(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(lv);vm.prototype.type="sector";const ym=vm;var mm=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},xm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new mm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(lv);xm.prototype.type="ring";const _m=xm;function bm(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)pc(a,a,t[p]),dc(s,s,t[p]);pc(a,a,i[0]),dc(s,s,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(ic(t[p]));continue}r=t[p-1],o=t[p+1]}oc(u,o,r),ac(u,u,e);var g=lc(f,r),v=lc(f,o),y=g+v;0!==y&&(g/=y,v/=y),ac(c,u,-g),ac(h,u,v);var m=rc([],f,c),x=rc([],f,h);i&&(dc(m,m,a),pc(m,m,s),dc(x,x,a),pc(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var wm=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Sm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultShape=function(){return new wm},e.prototype.buildPath=function(t,e){bm(t,e,!0)},e}(lv);Sm.prototype.type="polygon";const Cm=Sm;var Tm=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Mm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tm},e.prototype.buildPath=function(t,e){bm(t,e,!1)},e}(lv);Mm.prototype.type="polyline";const Im=Mm;var Dm={},km=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Am=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new km},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=yv(Dm,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(lv);Am.prototype.type="line";const Om=Am;var Pm=[],Em=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Bm(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?zh:Lh)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?zh:Lh)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?jh:Vh)(t.x1,t.cpx1,t.x2,e),(n?jh:Vh)(t.y1,t.cpy1,t.y2,e)]}var Rm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Em},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(Gh(n,a,r,c,Pm),a=Pm[1],r=Pm[2],Gh(i,s,o,c,Pm),s=Pm[1],o=Pm[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Hh(n,a,l,r,c,Pm),a=Pm[1],l=Pm[2],r=Pm[3],Hh(i,s,u,o,c,Pm),s=Pm[1],u=Pm[2],o=Pm[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Bm(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Bm(this.shape,t,!0);return sc(e,e)},e}(lv);Rm.prototype.type="bezier-curve";const Lm=Rm;var zm=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Nm=function(t){function e(e){return t.call(this,e)||this}return jl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(lv);Nm.prototype.type="arc";const Fm=Nm;const Hm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return jl(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lv.prototype.getBoundingRect.call(this)},e}(lv);const $m=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const Vm=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return jl(e,t),e}($m);const jm=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return jl(e,t),e}($m);var Wm=[0,0],Gm=[0,0],Um=new Wc,Xm=new Wc;const Km=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Wc;for(n=0;n<2;n++)this._axes[n]=new Wc;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);Wc.sub(i[0],n[1],n[0]),Wc.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return Um.set(1/0,1/0),Xm.set(0,0),!this._intersectCheckOneSide(this,t,Um,Xm,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Um,Xm,i,-1)&&(n=!1,i)||i||Wc.copy(e,n?Um:Xm),n},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Wm),this._getProjMinMaxOnAxis(s,e._corners,Gm),Wm[1]<Gm[0]||Wm[0]>Gm[1]){if(a=!1,r)return a;var u=Math.abs(Gm[0]-Wm[1]),c=Math.abs(Wm[0]-Gm[1]);Math.min(u,c)>i.len()&&(u<c?Wc.scale(i,l,-u*o):Wc.scale(i,l,c*o))}else if(n){u=Math.abs(Gm[0]-Wm[1]),c=Math.abs(Wm[0]-Gm[1]);Math.min(u,c)<n.len()&&(u<c?Wc.scale(n,l,u*o):Wc.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}();var Ym=[];const qm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return jl(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new th(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Ym)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(ug);var Zm=xf();function Qm(t,e,n,i,r,o,a){var s,l=!1;Iu(r)?(a=o,o=r,r=null):Ou(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=function(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=Nu(i.duration,200),u=Nu(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),Iu(c)&&(c=c(n,r)),Iu(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Jm(t,e,n,i,r,o){Qm("update",t,e,n,i,r,o)}function tx(t,e,n,i,r,o){Qm("enter",t,e,n,i,r,o)}function ex(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function nx(t,e,n,i,r,o){ex(t)||Qm("leave",t,e,n,i,r,o)}function ix(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),nx(t,{style:{opacity:0}},e,n,i)}var rx=Math.max,ox=Math.min,ax={};var sx=function(t,e){var n=Yy(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return jl(e,t),e}(Xy)};function lx(t,e){ax[t]=e}function ux(t,e,n,i){var r=function(t,e){return new Xy(Yy(t,e))}(t,e);return n&&("center"===i&&(n=hx(n,r.getBoundingRect())),dx(r,n)),r}function cx(t,e,n){var i=new gv({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(hx(e,r))}}});return i}function hx(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var px=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new lv(e);return a.createPathProxy(),a.buildPath=function(t){if(Ky(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function dx(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function fx(t,e){return yv(t,t,{lineWidth:e}),t}var gx=xv;function vx(t,e,n){return e&&!mu(e)&&(e=fd.getLocalTransform(e)),n&&(e=Vc([],e)),hc([],t,e)}function yx(t){return!t.isGroup}function mx(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){yx(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(yx(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Jm(t,i,n,Fv(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=fu({},t.shape)),e}}function xx(t,e,n){var i=fu({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),gu(r,n),new gv(i)):ux(t.replace("path://",""),i,n,"center")}function _x(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=bx(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=bx(f,g,u,c)/d;if(v<0||v>1)return!1;var y=bx(f,g,h,p)/d;return!(y<0||y>1)}function bx(t,e,n,i){return t*i-n*e}function Sx(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Du(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&xu(Su(l),(function(t){Ju(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Fv(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:gu({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Cx(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Tx(t,e){if(t)if(Mu(t))for(var n=0;n<t.length;n++)Cx(t[n],e);else Cx(t,e)}lx("circle",Qy),lx("ellipse",em),lx("sector",ym),lx("ring",_m),lx("polygon",Cm),lx("polyline",Im),lx("rect",Sv),lx("line",Om),lx("bezierCurve",Lm),lx("arc",Fm);const Mx=Object.freeze(Object.defineProperty({__proto__:null,Arc:Fm,BezierCurve:Lm,BoundingRect:th,Circle:Qy,CompoundPath:Hm,Ellipse:em,Group:Ld,Image:gv,IncrementalDisplayable:qm,Line:Om,LinearGradient:Vm,OrientedBoundingRect:Km,Path:lv,Point:Wc,Polygon:Cm,Polyline:Im,RadialGradient:jm,Rect:Sv,Ring:_m,Sector:ym,Text:Nv,applyTransform:vx,clipPointsByRect:function(t,e){return _u(t,(function(t){var n=t[0];n=rx(n,e.x),n=ox(n,e.x+e.width);var i=t[1];return i=rx(i,e.y),[n,i=ox(i,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=rx(t.x,e.x),i=ox(t.x+t.width,e.x+e.width),r=rx(t.y,e.y),o=ox(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:xx,extendPath:function(t,e){return sx(t,e)},extendShape:function(t){return lv.extend(t)},getShapeClass:function(t){if(ax.hasOwnProperty(t))return ax[t]},getTransform:function(t,e){for(var n=Nc([]);t&&t!==e;)Fc(n,t.getLocalTransform(),n),t=t.parent;return n},groupTransition:mx,initProps:tx,isElementRemoved:ex,lineLineIntersect:_x,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(_x(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:cx,makePath:ux,mergePath:px,registerShape:lx,removeElement:nx,removeElementWithFadeOut:function(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||ix(t,e,n,i)})):ix(t,e,n,i)},resizePath:dx,setTooltipConfig:Sx,subPixelOptimize:gx,subPixelOptimizeLine:fx,subPixelOptimizeRect:function(t){return mv(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=vx(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:Tx,updateProps:Jm},Symbol.toStringTag,{value:"Module"}));var Ix={};function Dx(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Iu(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Wv.length;u++){var c=Wv[u],h=e[c];l[c]=Nu(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function kx(t,e,n,i){n=n||Ix;for(var r=t instanceof Nv,o=!1,a=0;a<Gv.length;a++){if((p=e[Gv[a]])&&p.getShallow("show")){o=!0;break}}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Nv,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Dx(n,e),u=e.normal,c=!!u.getShallow("show"),h=Ox(u,i&&i.normal,n,!1,!r);h.text=l.normal,r||t.setTextConfig(Px(u,n,!1));for(a=0;a<Wv.length;a++){var p,d=Wv[a];if(p=e[d]){var f=s.ensureState(d),g=!!Nu(p.getShallow("show"),c);if(g!==c&&(f.ignore=!g),f.style=Ox(p,i&&i[d],n,!0,!r),f.style.text=l[d],!r)t.ensureState(d).textConfig=Px(p,n,!0)}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(zx(s).setLabelText=function(t){var i=Dx(n,e,t);!function(t,e){for(var n=0;n<Wv.length;n++){var i=Wv[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function Ax(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Wv.length;i++){var r=Wv[i];n[r]=t.getModel([r,e])}return n}function Ox(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||Ix;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Ix).rich;if(n){e=e||{};for(var i=Su(n),r=0;r<i.length;r++){e[i[r]]=1}}t=t.parentModel}return e}(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Lx(o[u]={},c,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var p=e.get("minMargin");null!=p&&(t.margin=p);Lx(t,e,s,n,i,r,!0,!1)}(o,t,n,i,r),e&&fu(o,e),o}function Px(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=Nu(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}var Ex=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Bx=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Rx=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Lx(t,e,n,i,r,o,a,s){n=!r&&n||Ix;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Nu(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var p=Nu(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var d=Nu(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var f=Nu(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=f&&(t.lineDashOffset=f),r||null!=h||s||(h=i&&i.defaultOpacity),null!=h&&(t.opacity=h),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var g=0;g<Ex.length;g++){var v=Ex[g];null!=(m=Nu(e.getShallow(v),n[v]))&&(t[v]=m)}for(g=0;g<Bx.length;g++){v=Bx[g];null!=(m=e.getShallow(v))&&(t[v]=m)}if(null==t.verticalAlign){var y=e.getShallow("baseline");null!=y&&(t.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<Rx.length;g++){var m;v=Rx[g];null!=(m=e.getShallow(v))&&(t[v]=m)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}var zx=xf(),Nx=["textStyle","color"],Fx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Hx=new Nv;const $x=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Nx):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,n=e&&e.getModel("textStyle"),ju([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Fx.length;n++)e[Fx[n]]=this.getShallow(Fx[n]);return Hx.useStyle(e),Hx.update(),Hx.getBoundingRect()},t}();var Vx,jx,Wx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Gx=Rf(Wx),Ux=function(){function t(){}return t.prototype.getLineStyle=function(t){return Gx(this,t)},t}(),Xx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Kx=Rf(Xx),Yx=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Kx(this,t,e)},t}(),qx=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){du(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)(pu(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!Ul.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();kf(qx),Vx=qx,jx=["__\0is_clz",Of++].join("_"),Vx.prototype[jx]=!0,Vx.isInstance=function(t){return!(!t||!t[jx])},yu(qx,Ux),yu(qx,Yx),yu(qx,zf),yu(qx,$x);const Zx=qx;var Qx=Math.round(10*Math.random());function Jx(t){return[t||"",Qx++].join("_")}var t_="ZH",e_="EN",n_=e_,i_={},r_={},o_=Ul.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||n_).toUpperCase().indexOf(t_)>-1?t_:n_;function a_(t,e){t=t.toUpperCase(),r_[t]=new Zx(e),i_[t]=e}a_(e_,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),a_(t_,{time:{month:["一月","二月","三月","四月","五月","å…月","七月","八月","ä¹æœˆ","å月","å一月","å二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期å…"],dayOfWeekAbbr:["æ—¥","一","二","三","å››","五","å…"]},legend:{selector:{all:"全选",inverse:"å选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横å‘选择",lineY:"纵å‘选择",keep:"ä¿æŒé€‰æ‹©",clear:"清除选择"}},dataView:{title:"æ•°æ®è§†å›¾",lang:["æ•°æ®è§†å›¾","å…³é—","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切æ¢ä¸ºæŠ˜çº¿å›¾",bar:"切æ¢ä¸ºæŸ±çŠ¶å›¾",stack:"切æ¢ä¸ºå †å ",tiled:"切æ¢ä¸ºå¹³é“º"}},restore:{title:"还原"},saveAsImage:{title:"ä¿å˜ä¸ºå›¾ç‰‡",lang:["å³é”®å¦å˜ä¸ºå›¾ç‰‡"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"æ ‘å›¾",treemap:"çŸ©å½¢æ ‘å›¾",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"çƒåŠ›å›¾",map:"地图",parallel:"平行åæ ‡å›¾",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"æ¼æ–—图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河æµå›¾",sunburst:"æ—日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}â€çš„图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组æˆã€‚",withName:"第{seriesId}个系列是一个表示{seriesName}çš„{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:"ï¼›",end:"。"}}},data:{allData:"其数æ®æ˜¯â€”—",partialData:"å…¶ä¸ï¼Œå‰{displayCnt}项是——",withName:"{name}çš„æ•°æ®æ˜¯{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var s_=1e3,l_=6e4,u_=36e5,c_=864e5,h_=31536e6,p_={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},d_="{yyyy}-{MM}-{dd}",f_={year:"{yyyy}",month:"{yyyy}-{MM}",day:d_,hour:d_+" "+p_.hour,minute:d_+" "+p_.minute,second:d_+" "+p_.second,millisecond:p_.none},g_=["year","month","day","hour","minute","second","millisecond"],v_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function y_(t,e){return"0000".substr(0,e-(t+="").length)+t}function m_(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function x_(t){return t===m_(t)}function __(t,e,n,i){var r=qd(t),o=r[S_(n)](),a=r[C_(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[T_(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[M_(n)](),h=(c-1)%12+1,p=r[I_(n)](),d=r[D_(n)](),f=r[k_(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof Zx?i:function(t){return r_[t]}(i||o_)||r_[n_],m=y.getModel("time"),x=m.get("month"),_=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,y_(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,y_(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,y_(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,y_(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,y_(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,y_(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,y_(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,y_(f,3)).replace(/{S}/g,f+"")}function b_(t,e){var n=qd(t),i=n[C_(e)]()+1,r=n[T_(e)](),o=n[M_(e)](),a=n[I_(e)](),s=n[D_(e)](),l=0===n[k_(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function w_(t,e,n){var i=Au(t)?qd(t):t;switch(e=e||b_(t,n)){case"year":return i[S_(n)]();case"half-year":return i[C_(n)]()>=6?1:0;case"quarter":return Math.floor((i[C_(n)]()+1)/4);case"month":return i[C_(n)]();case"day":return i[T_(n)]();case"half-day":return i[M_(n)]()/24;case"hour":return i[M_(n)]();case"minute":return i[I_(n)]();case"second":return i[D_(n)]();case"millisecond":return i[k_(n)]()}}function S_(t){return t?"getUTCFullYear":"getFullYear"}function C_(t){return t?"getUTCMonth":"getMonth"}function T_(t){return t?"getUTCDate":"getDate"}function M_(t){return t?"getUTCHours":"getHours"}function I_(t){return t?"getUTCMinutes":"getMinutes"}function D_(t){return t?"getUTCSeconds":"getSeconds"}function k_(t){return t?"getUTCMilliseconds":"getMilliseconds"}function A_(t){return t?"setUTCFullYear":"setFullYear"}function O_(t){return t?"setUTCMonth":"setMonth"}function P_(t){return t?"setUTCDate":"setDate"}function E_(t){return t?"setUTCHours":"setHours"}function B_(t){return t?"setUTCMinutes":"setMinutes"}function R_(t){return t?"setUTCSeconds":"setSeconds"}function L_(t){return t?"setUTCMilliseconds":"setMilliseconds"}function z_(t){if(isNaN(Jd(t)))return Du(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function N_(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var F_=$u;function H_(t,e,n){function i(t){return t&&ju(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?qd(t):t;if(!isNaN(+s))return __(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ku(t)?i(t):Au(t)&&r(t)?t+"":"-";var l=Jd(t);return r(l)?z_(l):ku(t)?i(t):"boolean"==typeof t?t+"":"-"}var $_=["a","b","c","d","e","f","g"],V_=function(t,e){return"{"+t+(null==e?"":e)+"}"};function j_(t,e,n){Mu(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=$_[o];t=t.replace(V_(a),V_(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(V_($_[l],s),n?Mc(u):u)}return t}function W_(t,e){return e=e||"transparent",Du(t)?t:Ou(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function G_(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var U_=xu,X_=["left","right","top","bottom","width","height"],K_=[["width","left","right"],["height","top","bottom"]];function Y_(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,p=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.x+p.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}function q_(t,e,n){n=F_(n||0);var i=e.width,r=e.height,o=jd(t.left,i),a=jd(t.top,r),s=jd(t.right,i),l=jd(t.bottom,r),u=jd(t.width,i),c=jd(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new th(o+n[3],a+n[0],u,c);return f.margin=n,f}function Z_(t){var e=t.layoutMode||t.constructor.layoutMode;return Ou(e)?e:e?{type:e}:null}function Q_(t,e,n){var i=n&&n.ignoreSize;!Mu(i)&&(i=[i,i]);var r=a(K_[0],0),o=a(K_[1],1);function a(n,r){var o={},a=0,u={},c=0;if(U_(n,(function(e){u[e]=t[e]})),U_(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h<n.length;h++){var p=n[h];if(!s(o,p)&&s(t,p)){o[p]=t[p];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){U_(t,(function(t){e[t]=n[t]}))}u(K_[0],t,r),u(K_[1],t,o)}function J_(t){return function(t,e){return e&&t&&U_(X_,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}({},t)}Tu(Y_,"vertical"),Tu(Y_,"horizontal");var tb=xf(),eb=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Jx("ec_cpt_model"),r}var n;return jl(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Z_(this),i=n?J_(t):{};du(t,e.getTheme().get(this.mainType)),du(t,this.getDefaultOption()),n&&Q_(t,i,n)},e.prototype.mergeOption=function(t,e){du(this.option,t,!0);var n=Z_(this);n&&Q_(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[If])}(t))return t.defaultOption;var e=tb(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=du(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Cf(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(Zx);Af(eb,Zx),Bf(eb),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Df(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Df(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(eb),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return xu(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return xu(t,(function(t){vu(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),xu(s,(function(t){vu(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);vu(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(xu(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),xu(h.successor,p?f:d)}xu(u,(function(){throw new Error("")}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(eb,(function(t){var e=[];xu(eb.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=_u(e,(function(t){return Df(t).main})),"dataset"!==t&&vu(e,"dataset")<=0&&e.unshift("dataset");return e}));const nb=eb;var ib="";"undefined"!=typeof navigator&&(ib=navigator.platform||"");var rb="rgba(0, 0, 0, 0.2)";const ob={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:rb,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:rb,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:rb,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:rb,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:rb,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:rb,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ib.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var ab=qu(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sb="original",lb="arrayRows",ub="objectRows",cb="keyedColumns",hb="typedArray",pb="unknown",db="column",fb="row",gb=1,vb=2,yb=3,mb=xf();function xb(t,e,n){var i={},r=_b(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=mb(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;xu(t=t.slice(),(function(e,n){var r=Ou(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return xu(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=p.valueWayDim;d(i[n],a,r),d(l,a,r),p.valueWayDim+=r}else if(o===e)d(i[n],0,r),d(s,0,r);else{a=p.categoryWayDim;d(i[n],a,r),d(l,a,r),p.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function _b(t){if(!t.get("data",!0))return Cf(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Sf).models[0]}function bb(t,e){return function(t,e,n,i,r,o){var a,s,l,u=5;if(Eu(t))return yb;if(i){var c=i[o];Ou(c)?(s=c.name,l=c.type):Du(c)&&(s=c)}if(null!=l)return"ordinal"===l?gb:yb;if(e===lb){var h=t;if(n===fb){for(var p=h[o],d=0;d<(p||[]).length&&d<u;d++)if(null!=(a=x(p[r+d])))return a}else for(d=0;d<h.length&&d<u;d++){var f=h[r+d];if(f&&null!=(a=x(f[o])))return a}}else if(e===ub){var g=t;if(!s)return yb;for(d=0;d<g.length&&d<u;d++){if((y=g[d])&&null!=(a=x(y[s])))return a}}else if(e===cb){if(!s)return yb;if(!(p=t[s])||Eu(p))return yb;for(d=0;d<p.length&&d<u;d++)if(null!=(a=x(p[d])))return a}else if(e===sb){var v=t;for(d=0;d<v.length&&d<u;d++){var y,m=cf(y=v[d]);if(!Mu(m))return yb;if(null!=(a=x(m[o])))return a}}function x(t){var e=Du(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?vb:yb:e&&"-"!==t?gb:void 0}return yb}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var wb=qu();var Sb=xf();xf();var Cb,Tb,Mb,Ib=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=sf(this.get("color",!0)),r=this.get("colorLayer",!0);return function(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if(c=c||n,!c||!c.length)return;var h=c[l];r&&(u[r]=h);return s.paletteIdx=(l+1)%c.length,h}(this,Sb,i,r,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=Sb)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();var Db="\0_ec_inner",kb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Zx(i),this._locale=new Zx(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Pb(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Pb(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Mb(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&xu(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=qu(),s=e&&e.replaceMergeMainTypeMap;mb(this).datasetMap=qu(),xu(t,(function(t,e){null!=t&&(nb.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?pu(t):du(n[e],t,!0))})),s&&s.each((function(t,e){nb.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),nb.topologicalTravel(o,nb.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=wb.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,sf(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=pf(a,o,l);(function(t,e,n){xu(t,(function(t){var i=t.newOption;Ou(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,nb),n[e]=null,i.set(e,null),r.set(e,0);var c,h=[],p=[],d=0;xu(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=nb.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=fu({componentIndex:n},t.keyInfo);fu(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,i.set(e,p),r.set(e,d),"series"===e&&Cb(this)}),this),this._seriesIndices||Cb(this)},e.prototype.getOption=function(){var t=pu(this.option);return xu(t,(function(e,n){if(nb.hasClass(n)){for(var i=sf(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!yf(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[Db],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],xu(sf(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Ab("id",r,a):null!=o?Ab("name",o,a):wu(a,(function(t){return!!t})),Ob(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):wu(this._componentsMap.get(s),(function(t){return!!t}));return o=Ob(u,t),t.filter?wu(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Iu(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=Du(t)?i.get(t):Ou(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=gf(t,null);return wu(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return wu(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return wu(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Tb(this),xu(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){xu(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Tb(this),xu(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return xu(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Tb(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Tb(this);var n=[];xu(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=qu(n)},e.prototype.restoreData=function(t){Cb(this);var e=this._componentsMap,n=[];e.each((function(t,e){nb.hasClass(e)&&n.push(e)})),nb.topologicalTravel(n,nb.getAllClassMainTypes(),(function(n){xu(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(Cb=function(t){var e=t._seriesIndices=[];xu(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=qu(e)},Tb=function(t){},void(Mb=function(t,e){t.option={},t.option[Db]=1,t._componentsMap=qu({series:[]}),t._componentsCount=qu();var n,i,r,o=e.aria;Ou(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,xu(i,(function(t,e){"colorLayer"===e&&r||nb.hasClass(e)||("object"==typeof t?n[e]=n[e]?du(n[e],t,!1):pu(t):null==n[e]&&(n[e]=t))})),du(e,ob,!1),t._mergeOption(e,null)})),e}(Zx);function Ab(t,e,n){if(Mu(e)){var i=qu();return xu(e,(function(t){null!=t&&(null!=gf(t,null)&&i.set(t,!0))})),wu(n,(function(e){return e&&i.get(e[t])}))}var r=gf(e,null);return wu(n,(function(e){return e&&null!=r&&e[t]===r}))}function Ob(t,e){return e.hasOwnProperty("subType")?wu(t,(function(t){return t&&t.subType===e.subType})):t}function Pb(t){var e=qu();return t&&xu(sf(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}yu(kb,Ib);const Eb=kb;var Bb=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const Rb=function(t){xu(Bb,(function(e){this[e]=Cu(t[e],t)}),this)};var Lb={};const zb=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];xu(Lb,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){xu(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Lb[t]=e},t.get=function(t){return Lb[t]},t}();var Nb=/^(min|max)?(.+)$/;function Fb(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return xu(t,(function(t,e){var n=e.match(Nb);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const Hb=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(xu(sf(t.series),(function(t){t&&t.data&&Eu(t.data)&&Gu(t.data)})),xu(sf(t.dataset),(function(t){t&&t.source&&Eu(t.source)&&Gu(t.source)}))),t=pu(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t);c&&Mu(u)&&xu(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}));function p(t){xu(e,(function(e){e(t,n)}))}return p(r),xu(l,(function(t){return p(t)})),xu(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],pu(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=pu(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)Fb(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=_u(s,(function(t){return pu(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();var $b=xu,Vb=Ou,jb=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=jb.length;n<i;n++){var r=jb[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?du(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?du(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Gb(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,gu(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function Ub(t){Gb(t,"itemStyle"),Gb(t,"lineStyle"),Gb(t,"areaStyle"),Gb(t,"label"),Gb(t,"labelLine"),Gb(t,"upperLabel"),Gb(t,"edgeLabel")}function Xb(t,e){var n=Vb(t)&&t[e],i=Vb(n)&&n.textStyle;if(i)for(var r=0,o=uf.length;r<o;r++){var a=uf[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Kb(t){t&&(Ub(t),Xb(t,"label"),t.emphasis&&Xb(t.emphasis,"label"))}function Yb(t){return Mu(t)?t:t?[t]:[]}function qb(t){return(Mu(t)?t[0]:t)||{}}function Zb(t,e){$b(Yb(t.series),(function(t){Vb(t)&&function(t){if(Vb(t)){Wb(t),Ub(t),Xb(t,"label"),Xb(t,"upperLabel"),Xb(t,"edgeLabel"),t.emphasis&&(Xb(t.emphasis,"label"),Xb(t.emphasis,"upperLabel"),Xb(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wb(e),Kb(e));var n=t.markLine;n&&(Wb(n),Kb(n));var i=t.markArea;i&&Kb(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!Eu(o))for(var a=0;a<o.length;a++)Kb(o[a]);xu(t.categories,(function(t){Ub(t)}))}if(r&&!Eu(r))for(a=0;a<r.length;a++)Kb(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Kb(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)Mu(l[a])?(Kb(l[a][0]),Kb(l[a][1])):Kb(l[a])}"gauge"===t.type?(Xb(t,"axisLabel"),Xb(t,"title"),Xb(t,"detail")):"treemap"===t.type?(Gb(t.breadcrumb,"itemStyle"),xu(t.levels,(function(t){Ub(t)}))):"tree"===t.type&&Ub(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),$b(n,(function(e){$b(Yb(t[e]),(function(t){t&&(Xb(t,"axisLabel"),Xb(t.axisPointer,"label"))}))})),$b(Yb(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Xb(e,"axisLabel"),Xb(e&&e.axisPointer,"label")})),$b(Yb(t.calendar),(function(t){Gb(t,"itemStyle"),Xb(t,"dayLabel"),Xb(t,"monthLabel"),Xb(t,"yearLabel")})),$b(Yb(t.radar),(function(t){Xb(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),$b(Yb(t.geo),(function(t){Vb(t)&&(Kb(t),$b(Yb(t.regions),(function(t){Kb(t)})))})),$b(Yb(t.timeline),(function(t){Kb(t),Gb(t,"label"),Gb(t,"itemStyle"),Gb(t,"controlStyle",!0);var e=t.data;Mu(e)&&xu(e,(function(t){Ou(t)&&(Gb(t,"label"),Gb(t,"itemStyle"))}))})),$b(Yb(t.toolbox),(function(t){Gb(t,"iconStyle"),$b(t.feature,(function(t){Gb(t,"iconStyle")}))})),Xb(qb(t.axisPointer),"label"),Xb(qb(t.tooltip).axisPointer,"label")}function Qb(t){t&&xu(Jb,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Jb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ew=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function nw(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<ew.length;n++){var i=ew[n][1],r=ew[n][0];null!=e[i]&&(e[r]=e[i])}}function iw(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function rw(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function ow(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ow(t[n].children,e)}function aw(t,e){Zb(t,e),t.series=sf(t.series),xu(t.series,(function(t){if(Ou(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),iw(t.label),(r=t.data)&&!Eu(r))for(var n=0;n<r.length;n++)iw(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(nw(t),nw(t.backgroundStyle),nw(t.emphasis),(r=t.data)&&!Eu(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(nw(r[n]),nw(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),rw(t),ow(t.data,rw)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&gu(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Qb(t)}})),t.dataRange&&(t.visualMap=t.dataRange),xu(tw,(function(e){var n=t[e];n&&(Mu(n)||(n=[n]),xu(n,(function(t){Qb(t)})))}))}function sw(t){xu(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,p,d=a.get(e.stackedDimension,c);if(isNaN(d))return r;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&d>=0&&y>0||"samesign"===l&&d<=0&&y<0){d=Ud(d,y),f=y;break}}}return i[0]=d,i[1]=f,i}))}))}var lw,uw,cw,hw,pw,dw=function(t){this.data=t.data||(t.sourceFormat===cb?{}:[]),this.sourceFormat=t.sourceFormat||pb,this.seriesLayoutBy=t.seriesLayoutBy||db,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&bb(this,n)===gb&&(i.type="ordinal")}};function fw(t){return t instanceof dw}function gw(t,e,n){n=n||yw(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:mw(r),startIndex:a,dimensionsDetectedCount:o};if(e===lb){var s=t;"auto"===i||null==i?xw((function(t){null!=t&&"-"!==t&&(Du(t)?null==a&&(a=1):a=0)}),n,s,10):a=Au(i)?i:i?1:0,r||1!==a||(r=[],xw((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===fb?s.length:s[0]?s[0].length:null}else if(e===ub)r||(r=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return Su(e)}(t));else if(e===cb)r||(r=[],xu(t,(function(t,e){r.push(e)})));else if(e===sb){var l=cf(t[0]);o=Mu(l)&&l.length||1}return{startIndex:a,dimensionsDefine:mw(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new dw({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:pu(e)})}function vw(t){return new dw({data:t,sourceFormat:Eu(t)?hb:sb})}function yw(t){var e=pb;if(Eu(t))e=hb;else if(Mu(t)){0===t.length&&(e=lb);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Mu(r)||Eu(r)){e=lb;break}if(Ou(r)){e=ub;break}}}}else if(Ou(t))for(var o in t)if(Ju(t,o)&&mu(t[o])){e=cb;break}return e}function mw(t){if(t){var e=qu();return _u(t,(function(t,n){var i={name:(t=Ou(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function xw(t,e,n,i){if(e===fb)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function _w(t){var e=t.sourceFormat;return e===ub||e===cb}var bw=function(){function t(t,e){var n=fw(t)?t:vw(t);this._source=n;var i=this._data=n.data;n.sourceFormat===hb&&(this._offset=0,this._dimSize=e,this._data=i),pw(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;pw=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(fu(t,hw[Ow(a,s)]),a===hb)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=Cw(a,s);t.getItem=Cu(c,null,r,l,u);var h=Iw(a,s);t.count=Cu(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],p=0;p<c;p++){var d=r[p*o+a];h[t+p]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[lb+"_"+db]={pure:!0,appendData:r},t[lb+"_"+fb]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ub]={pure:!0,appendData:r},t[cb]={pure:!0,appendData:function(t){var e=this._data;xu(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[sb]={appendData:r},t[hb]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},hw=t}(),t}(),ww=function(t,e,n,i){return t[i]},Sw=((lw={})[lb+"_"+db]=function(t,e,n,i){return t[i+e]},lw[lb+"_"+fb]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},lw[ub]=ww,lw[cb]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},lw[sb]=ww,lw);function Cw(t,e){return Sw[Ow(t,e)]}var Tw=function(t,e,n){return t.length},Mw=((uw={})[lb+"_"+db]=function(t,e,n){return Math.max(0,t.length-e)},uw[lb+"_"+fb]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},uw[ub]=Tw,uw[cb]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},uw[sb]=Tw,uw);function Iw(t,e){return Mw[Ow(t,e)]}var Dw=function(t,e,n){return t[e]},kw=((cw={})[lb]=Dw,cw[ub]=function(t,e,n){return t[n]},cw[cb]=Dw,cw[sb]=function(t,e,n){var i=cf(t);return i instanceof Array?i[e]:i},cw[hb]=Dw,cw);function Aw(t){return kw[t]}function Ow(t,e){return t===lb?t+"_"+e:t}function Pw(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Aw(o)(i,a,s)}var l=i;return o===sb&&(l=cf(i)),l}}}var Ew=/\{@(.+?)\}/g,Bw=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);(o&&(s.value=o.interpolatedValue),null!=i&&Mu(s.value)&&(s.value=s.value[i]),r)||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return Iu(r)?(s.status=e,s.dimensionIndex=i,r(s)):Du(r)?j_(r,s).replace(Ew,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Pw(a,t,r);if(o&&Mu(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Pw(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Rw(t){var e,n;return Ou(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Lw(t){return new zw(t)}var zw=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||p<d)){var f=this._progress;if(Mu(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,d,l,u);else this._doProgress(f,p,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){Nw.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Nw.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Mu(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Nw=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function Fw(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Au(t)||null==t||"-"===t||(t=+qd(t)),null==t||""===t?NaN:Number(t))}qu({number:function(t){return parseFloat(t)},time:function(t){return+qd(t)},trim:function(t){return Du(t)?ju(t):t}});var Hw=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Au(t)?t:Jd(t),i=Au(e)?e:Jd(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Du(t),s=Du(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),$w=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Fw(t,e)},t}();function Vw(t){if(!Kw(t.sourceFormat)){rf("")}return t.data}function jw(t){var e=t.sourceFormat,n=t.data;if(!Kw(e)){rf("")}if(e===lb){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===ub){for(i=[],r=0,o=n.length;r<o;r++)i.push(fu({},n[r]));return i}}function Ww(t,e,n){if(null!=n)return Au(n)||!isNaN(n)&&!Ju(e,n)?t[n]:Ju(e,n)?e[n]:void 0}function Gw(t){return pu(t)}var Uw=qu();function Xw(t,e,n,i){e.length||rf(""),Ou(t)||rf("");var r=t.type,o=Uw.get(r);o||rf("");var a=_u(e,(function(t){return function(t,e){var n=new $w,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==db&&rf("");var a=[],s={},l=t.dimensionsDefine;if(l)xu(l,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(Ju(s,n)&&rf(""),s[n]=i)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Cw(r,db);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=Cu(Vw,null,t)),n.cloneRawData=Cu(jw,null,t);var h=Iw(r,db);n.count=Cu(h,null,i,o,a);var p=Aw(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Cu(Ww,null,a,s),n.cloneAllDimensionInfo=Cu(Gw,null,a),n}(t,o)}));return _u(sf(o.transform({upstream:a[0],upstreamList:a,config:pu(t.config)})),(function(t,n){var i;Ou(t)||rf(""),t.data||rf(""),Kw(yw(t.data))||rf("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:db,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:db,sourceHeader:0,dimensions:t.dimensions};return gw(t.data,i,null)}))}function Kw(t){return t===lb||t===ub}var Yw,qw="undefined",Zw=typeof Uint32Array===qw?Array:Uint32Array,Qw=typeof Uint16Array===qw?Array:Uint16Array,Jw=typeof Int32Array===qw?Array:Int32Array,tS=typeof Float64Array===qw?Array:Float64Array,eS={float:tS,int:Jw,ordinal:Array,number:Array,time:tS};function nS(t){return t>65535?Zw:Qw}function iS(t,e,n,i,r){var o=eS[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}var rS=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=qu()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Yw[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],_w(i),this._dimensions=_u(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new eS[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){iS(n,l,(d=i[l]).type,s,!0)}for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<r;p++){var d=i[p],f=Yw.arrayRows.call(this,t[h]||u,d.property,h,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=_u(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),iS(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;p<e;p++){h=i.getItem(p,h);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=e-i[this.getRawIndex(l)],h=Math.abs(c);h<=n&&((h<o||h===o&&c>=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=nS(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(nS(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a){h=e(u[l][p],c)}else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Su(t),r=i.length;if(!r)return this;var o=e.count(),a=new(nS(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++){((x=f[g])>=u&&x<=c||isNaN(x))&&(a[s++]=d),d++}p=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],y=t[i[1]][0],m=t[i[1]][1];for(g=0;g<n;g++){var x=f[g],_=v[g];(x>=u&&x<=c||isNaN(x))&&(_>=y&&_<=m||isNaN(_))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((x=h[i[0]][b])>=u&&x<=c||isNaN(x))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var C=i[S];((x=h[C][b])<t[C][0]||x>t[C][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],y=i[f];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(nS(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,y=d;y<f;y++){var m=a[T=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=f-d;var x=p,_=Math.min(p+u,s),b=p-1,w=a[c];n=-1,r=x;var S=-1,C=0;for(y=x;y<_;y++){var T;m=a[T=this.getRawIndex(y)];isNaN(m)?(C++,S<0&&(S=T)):(i=Math.abs((b-g)*(m-w)-(b-y)*(v-w)))>n&&(n=i,r=T)}C>0&&C<_-x&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(nS(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,r,o=new t,a=this._chunks,s=e&&bu(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=pu(this._extent),t._rawExtent=pu(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Fw(t[i],this._dimensions[i])}Yw={arrayRows:t,objectRows:function(t,e,n,i){return Fw(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Fw(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),oS=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(aS(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=Eu(a=o.get("data",!0))?hb:sb,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=Nu(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Nu(c.sourceHeader,h.sourceHeader),f=Nu(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||f?[gw(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{t=[gw(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){1!==t.length&&sS("")}var o,a=[],s=[];return xu(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||sS(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e){var n=sf(t),i=n.length;i||rf("");for(var r=0,o=i;r<o;r++)e=Xw(n[r],e),r!==o-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new dw({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:pu(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];aS(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new rS).initData(new bw(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(aS(t)){var e=_b(t);return e?[e.getSourceManager()]:[]}return _u(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Cf(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Sf).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(aS(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function aS(t){return"series"===t.mainType}function sS(t){throw new Error(t)}var lS="line-height:1";function uS(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Mc(i+"")+"px;color:"+Mc(n)+";font-weight:"+Mc(r+""),valueStyle:"font-size:"+Mc(a+"")+"px;color:"+Mc(o)+";font-weight:"+Mc(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var cS=[0,10,20,30],hS=["","\n","\n\n","\n\n\n"];function pS(t,e){return e.type=t,e}function dS(t){return"section"===t.type}function fS(t){return dS(t)?vS:yS}function gS(t){if(dS(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return xu(t.blocks,(function(t){var n=gS(t);n>=e&&(e=n+ +(i&&(!n||dS(t)&&!t.noHeader)))})),e}return 0}function vS(t,e,n,i){var r,o=e.noHeader,a=(r=gS(e),{html:cS[r],richText:hS[r]}),s=[],l=e.blocks||[];Vu(!l||Mu(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Ju(c,u)){var h=new Hw(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}xu(l,(function(n,r){var o=e.valueFormatter,l=fS(n)(o?fu(fu({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):xS(s.join(""),o?n:a.html);if(o)return p;var d=H_(e.header,"ordinal",t.useUTC),f=uS(i,t.renderMode).nameStyle;return"richText"===t.renderMode?_S(t,d,f)+a.richText+p:xS('<div style="'+f+";"+lS+';">'+Mc(d)+"</div>"+p,n)}function yS(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return _u(t=Mu(t)?t:[t],(function(t,e){return H_(t,Mu(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":H_(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,y=uS(i,r),m=y.nameStyle,x=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":_S(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Mu(e)?e.join(" "):e,o)}(t,f,g,v,x)):xS((s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Mc(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Mu(t)?t:[t],'<span style="'+o+";"+i+'">'+_u(t,(function(t){return Mc(t)})).join(" ")+"</span>"}(f,g,v,x)),n)}}function mS(t,e,n,i,r,o){if(t)return fS(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function xS(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+lS+';">'+t+'<div style="clear:both"></div></div>'}function _S(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function bS(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var wS=function(){function t(){this.richTextStyles={},this._nextStyleNameId=tf()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=Du(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Mc(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Mc(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return Du(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Mu(e)?xu(e,(function(t){return fu(n,t)})):fu(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function SS(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=Mu(h),d=function(t,e){return W_(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||p&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=bu(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(pS("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?xu(i,(function(t){c(Pw(o,n,t),t)})):xu(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Pw(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var v=vf(o),y=v&&o.name||"",m=l.getName(a),x=s?y:m;return pS("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[pS("nameValue",{markerType:"item",markerColor:d,name:x,noName:!ju(x),value:e,valueType:n,dataIndex:a})].concat(i||[])})}var CS=xf();function TS(t,e){return t.getName(e)||t.getId(e)}var MS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return jl(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Lw({count:DS,reset:kS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(CS(this).sourceManager=new oS(this)).prepareSource();var i=this.getInitialData(t,n);OS(i,this),this.dataTask.context.data=i,CS(this).dataBeforeProcessed=i,IS(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Z_(this),i=n?J_(t):{},r=this.subType;nb.hasClass(r)&&(r+="Series"),du(t,e.getTheme().get(this.subType)),du(t,this.getDefaultOption()),lf(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Q_(t,i,n)},e.prototype.mergeOption=function(t,e){t=du(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Z_(this);n&&Q_(this.option,t,n);var i=CS(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);OS(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,CS(this).dataBeforeProcessed=r,IS(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!Eu(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&lf(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=ES(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return CS(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=ES(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}CS(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return qu(t)},e.prototype.getSourceManager=function(){return CS(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return CS(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return SS({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ul.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Ib.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=TS(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=Su(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[TS(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){Ou(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=TS(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=TS(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return nb.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(nb);function IS(t){var e=t.name;vf(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return xu(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function DS(t){return t.model.getRawData().count()}function kS(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),AS}function AS(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function OS(t,e){xu(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,Tu(PS,e))}))}function PS(t,e){var n=ES(t);return n&&n.setOutputEnd((e||this).count()),e}function ES(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}yu(MS,Bw),yu(MS,Ib),Af(MS,nb);const BS=MS;var RS=function(){function t(){this.group=new Ld,this.uid=Jx("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();kf(RS),Bf(RS);const LS=RS;function zS(){var t=xf();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var NS=xf(),FS=zS(),HS=function(){function t(){this.group=new Ld,this.uid=Jx("viewChart"),this.renderTask=Lw({plan:jS,reset:WS}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&VS(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&VS(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Tx(this.group,t)},t.markUpdateMethod=function(t,e){NS(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function $S(t,e,n){t&&Ay(t)&&("emphasis"===e?py:dy)(t,n)}function VS(t,e,n){var i=mf(t,e),r=e&&null!=e.highlightKey?function(t){var e=$v[t];return null==e&&Hv<=32&&(e=$v[t]=Hv++),e}(e.highlightKey):null;null!=i?xu(sf(i),(function(e){$S(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){$S(t,n,r)}))}function jS(t){return FS(t.model)}function WS(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&NS(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),GS[l]}kf(HS),Bf(HS);var GS={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const US=HS;var XS="\0__throttleOriginMethod",KS="\0__throttleRate",YS="\0__throttleType";function qS(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=(new Date).getTime(),o=this,a=t;var d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function ZS(t,e,n,i){var r=t[e];if(r){var o=r[XS]||r,a=r[YS];if(r[KS]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=qS(o,n,"debounce"===i))[XS]=o,r[YS]=i,r[KS]=n}return r}}function QS(t,e){var n=t[e];n&&n[XS]&&(n.clear&&n.clear(),t[e]=n[XS])}var JS=xf(),tC={itemStyle:Rf(Xx,!0),lineStyle:Rf(Wx,!0)},eC={lineStyle:"stroke",itemStyle:"fill"};function nC(t,e){var n=t.visualStyleMapper||tC[e];return n||tC.itemStyle}function iC(t,e){var n=t.visualDrawType||eC[e];return n||"fill"}var rC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=nC(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=iC(t,i),l=o[s],u=Iu(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Iu(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||Iu(o.stroke)?h:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=fu({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},oC=new Zx,aC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=nC(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){oC.option=n[i];var a=r(oC);fu(t.ensureUniqueItemVisual(e,"style"),a),oC.option.decal&&(t.setItemVisual(e,"decal",oC.option.decal),oC.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},sC={performRawSeries:!0,overallReset:function(t){var e=qu();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),JS(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=JS(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=iC(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}},lC=Math.PI;var uC=function(){function t(t,e,n,i){this._stageTaskMap=qu(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=qu();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;xu(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});Vu(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}xu(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(d)})),c.perform(d)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=qu(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Lw({plan:fC,reset:gC,count:mC}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Lw({reset:cC});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=qu(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Lw({reset:hC,onDirty:dC})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}Vu(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,xu(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Iu(t)&&(t={overallReset:t,seriesType:xC(t)}),t.uid=Jx("stageHandler"),e&&(t.visualType=e),t},t}();function cC(t){t.overallReset(t.ecModel,t.api,t.payload)}function hC(t){return t.overallProgress&&pC}function pC(){this.agent.dirty(),this.getDownstream().dirty()}function dC(){this.agent&&this.agent.dirty()}function fC(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gC(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=sf(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?_u(e,(function(t,e){return yC(e)})):vC}var vC=yC(0);function yC(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function mC(t){return t.data.count()}function xC(t){_C=null;try{t(bC,wC)}catch(e){}return _C}var _C,bC={},wC={};function SC(t,e){for(var n in e.prototype)t[n]=tc}SC(bC,Eb),SC(wC,Rb),bC.eachSeriesByType=bC.eachRawSeriesByType=function(t){_C=t},bC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(_C=t.subType)};const CC=uC;var TC=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const MC={color:TC,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],TC]};var IC="#B9B8CE",DC="#100C2A",kC=function(){return{axisLine:{lineStyle:{color:IC}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},AC=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],OC={darkMode:!0,color:AC,backgroundColor:DC,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:IC}},textStyle:{color:IC},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:IC}},dataZoom:{borderColor:"#71708A",textStyle:{color:IC},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:IC}},timeline:{lineStyle:{color:IC},label:{color:IC},controlStyle:{color:IC,borderColor:IC}},calendar:{itemStyle:{color:DC},dayLabel:{color:IC},monthLabel:{color:IC},yearLabel:{color:IC}},timeAxis:kC(),logAxis:kC(),valueAxis:kC(),categoryAxis:kC(),line:{symbol:"circle"},graph:{color:AC},gauge:{title:{color:IC},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:IC},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};OC.categoryAxis.splitLine.show=!1;const PC=OC;var EC=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Du(t)){var r=Df(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};xu(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),BC=["symbol","symbolSize","symbolRotate","symbolOffset"],RC=BC.concat(["symbolKeepAspect"]),LC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<BC.length;a++){var s=BC[a],l=t.get(s);Iu(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(fu({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Su(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},zC={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<RC.length;i++){var r=RC[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function NC(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=mf(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Mu(u)?l.getName(u[0]):l.getName(u),selected:Du(i)?i:fu({},i)})}}))}function FC(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var HC=Math.round(9*Math.random()),$C="function"==typeof Object.defineProperty,VC=function(){function t(){this._id="__ec_inner_"+HC++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return $C?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();const jC=VC;var WC=lv.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),GC=lv.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),UC=lv.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),XC=lv.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),KC={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},YC={};xu({line:Om,rect:Sv,roundRect:Sv,square:Sv,circle:Qy,diamond:GC,pin:UC,arrow:XC,triangle:WC},(function(t,e){YC[e]=new t}));var qC=lv.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Sd(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=YC[i];r||(r=YC[i="rect"]),KC[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function ZC(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function QC(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?cx(t.slice(8),new th(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?ux(t.slice(7),{},new th(e,n,i,r),a?"center":"cover"):new qC({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=ZC,o&&s.setColor(o),s}function JC(t,e){if(null!=t)return Mu(t)||(t=[t,t]),[jd(t[0],e[0])||0,jd(Nu(t[1],t[0]),e[1])||0]}function tT(t){return isFinite(t)}function eT(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=tT(a)?a:.5,s=tT(s)?s:.5,l=l>=0&&tT(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=tT(i)?i:0,r=tT(r)?r:1,o=tT(o)?o:0,a=tT(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function nT(t){return parseInt(t,10)}function iT(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||nT(s[i])||nT(t.style[i]))-(nT(s[o])||0)-(nT(s[a])||0)|0}function rT(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:Au(e)?[e]:Mu(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=_u(r,(function(t){return t/a})),o/=a)}return[r,o]}var oT=new Vg(!0);function aT(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function sT(t){return"string"==typeof t&&"none"!==t}function lT(t){var e=t.fill;return null!=e&&"none"!==e}function uT(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function cT(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function hT(t,e,n){var i=Hf(e.image,e.__image,n);if(Vf(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ec),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var pT=["shadowBlur","shadowOffsetX","shadowOffsetY"],dT=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fT(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){yT(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?ng.opacity:a}(i||e.blend!==n.blend)&&(o||(yT(t,r),o=!0),t.globalCompositeOperation=e.blend||ng.blend);for(var s=0;s<pT.length;s++){var l=pT[s];(i||e[l]!==n[l])&&(o||(yT(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(yT(t,r),o=!0),t.shadowColor=e.shadowColor||ng.shadowColor),o}function gT(t,e,n,i,r){var o=mT(e,r.inHover),a=i?null:n&&mT(n,r.inHover)||{};if(o===a)return!1;var s=fT(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(yT(t,r),s=!0),sT(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(yT(t,r),s=!0),sT(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(yT(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(yT(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<dT.length;u++){var c=dT[u],h=c[0];(i||o[h]!==a[h])&&(s||(yT(t,r),s=!0),t[h]=o[h]||c[1])}return s}function vT(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function yT(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function mT(t,e){return e&&t.__hoverStyle||t.style}function xT(t,e){_T(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function _T(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}(o,a)||(a&&a.length&&(yT(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(yT(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),vT(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c,h,p=e instanceof lv&&e.autoBatch&&function(t){var e=lT(t),n=aT(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);s||(c=r,h=u.transform,c&&h?c[0]!==h[0]||c[1]!==h[1]||c[2]!==h[2]||c[3]!==h[3]||c[4]!==h[4]||c[5]!==h[5]:c||h)?(yT(t,n),vT(t,e)):p||yT(t,n);var d=mT(e,n.inHover);e instanceof lv?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),gT(t,e,u,l,n),p&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=aT(n),a=lT(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||oT,h=e.__dirty;if(!i){var p=n.fill,d=n.stroke,f=a&&!!p.colorStops,g=o&&!!d.colorStops,v=a&&!!p.image,y=o&&!!d.image,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0;(f||g)&&(w=e.getBoundingRect()),f&&(m=h?eT(t,p,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=h?eT(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=h||!e.__canvasFillPattern?hT(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(b=h||!e.__canvasStrokePattern?hT(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=x:y&&(b?t.strokeStyle=b:o=!1)}var S,C,T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(S=(r=rT(e))[0],C=r[1]);var M=!0;(u||4&h)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=C),i||(n.strokeFirst?(o&&cT(t,n),a&&uT(t,n)):(a&&uT(t,n),o&&cT(t,n))),S&&t.setLineDash([])}(t,e,d,p),p&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):e instanceof hv?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),gT(t,e,u,l,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Xl,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=rT(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(aT(n)&&t.strokeText(r,n.x,n.y),lT(n)&&t.fillText(r,n.x,n.y)):(lT(n)&&t.fillText(r,n.x,n.y),aT(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,d)):e instanceof gv?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){fT(t,mT(e,r.inHover),n&&mT(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=Hf(n.image,e.__image,e,e.onload);if(i&&Vf(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,d)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),_T(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),_T(t,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),p&&i&&yT(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}var bT=new jC,wT=new Qh(100),ST=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function CT(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&bT.delete(t);var o=bT.get(t);if(o)return o;var a=gu(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<ST.length;++l){var u=a[ST[l]];if(null!=u&&!Mu(u)&&!Du(u)&&!Au(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(r?"-svg":"");var c=wT.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,p=MT(a.dashArrayX),d=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Au(t)){var e=Math.ceil(t);return[e,e]}var n=_u(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),f=TT(a.symbol),g=(_=p,_u(_,(function(t){return IT(t)}))),v=IT(d),y=!r&&Zl.createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=g.length;e<n;++e)t=nf(t,g[e]);var i=1;for(e=0,n=f.length;e<n;++e)i=nf(i,f[e].length);t*=i;var r=v*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var _;y&&(y.width=x.width*n,y.height=x.height*n,h=y.getContext("2d"));(function(){h&&(h.clearRect(0,0,y.width,y.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(t<=0)return;var o=-v,s=0,l=0,u=0;for(;o<x.height;){if(s%2==0){for(var c=l/2%f.length,g=0,_=0,b=0;g<2*x.width;){var w=0;for(e=0;e<p[u].length;++e)w+=p[u][e];if(w<=0)break;if(_%2==0){var S=.5*(1-a.symbolSize),C=g+p[u][_]*S,T=o+d[s]*S,M=p[u][_]*a.symbolSize,I=d[s]*a.symbolSize,D=b/2%f[c].length;k(C,T,M,I,f[c][D])}g+=p[u][_],++b,++_===p[u].length&&(_=0)}++u===p.length&&(u=0)}o+=d[s],++l,++s===d.length&&(s=0)}function k(t,e,o,s,l){var u=r?1:n,c=QC(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(c);p&&m.children.push(p)}else xT(h,c)}})(),s&&wT.put(e,y||m);t.image=y,t.svgElement=m,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,bT.set(t,s),t.dirty=!1,s}function TT(t){if(!t||0===t.length)return[["rect"]];if(Du(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Du(t[n])){e=!1;break}if(e)return TT([t]);var i=[];for(n=0;n<t.length;++n)Du(t[n])?i.push([t[n]]):i.push(t[n]);return i}function MT(t){if(!t||0===t.length)return[[0,0]];if(Au(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!Au(t[n])){e=!1;break}if(e)return MT([t]);var i=[];for(n=0;n<t.length;++n)if(Au(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=_u(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function IT(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}const DT=new vc;var kT={};var AT=2e3,OT=4500,PT={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:AT,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:OT,ARIA:6e3,DECAL:7e3}},ET="__flagInMainProcess",BT="__pendingUpdate",RT="__needsUpdateStatus",LT=/^[a-zA-Z0-9_]+$/,zT="__connectUpdateStatus";function NT(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return HT(this,t,e);this.id}}function FT(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return HT(this,t,e)}}function HT(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),vc.prototype[e].apply(t,n)}var $T,VT,jT,WT,GT,UT,XT,KT,YT,qT,ZT,QT,JT,tM,eM,nM,iM,rM,oM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e}(vc),aM=oM.prototype;aM.on=FT("on"),aM.off=FT("off");var sM=function(t){function e(e,n,i){var r=t.call(this,new EC)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Du(n)&&(n=gM[n]),r._dom=e;i.ssr;var o=r._zr=Hd(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Nu(i.useDirtyRect,!1),useCoarsePointer:Nu(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=qS(Cu(o.flush,o),17),(n=pu(n))&&aw(n,!0),r._theme=n,r._locale=function(t){if(Du(t)){var e=i_[t.toUpperCase()]||{};return t===t_||t===e_?pu(e):du(pu(e),pu(i_[n_]),!1)}return du(pu(t),pu(i_[n_]),!1)}(i.locale||o_),r._coordSysMgr=new zb;var a=r._api=eM(r);function s(t,e){return t.__prio-e.__prio}return yh(fM,s),yh(pM,s),r._scheduler=new CC(r,a,pM,fM),r._messageCenter=new oM,r._initEvents(),r.resize=Cu(r.resize,r),o.animation.on("frame",r._onframe,r),qT(o,r),ZT(o,r),Gu(r),r}return jl(e,t),e.prototype._onframe=function(){if(!this._disposed){rM(this);var t=this._scheduler;if(this[BT]){var e=this[BT].silent;this[ET]=!0;try{$T(this),WT.update.call(this,null,this[BT].updateParams)}catch(a){throw this[ET]=!1,this[BT]=null,a}this._zr.flush(),this[ET]=!1,this[BT]=null,KT.call(this,e),YT.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),UT(this,i),t.performVisualTasks(i),tM(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[ET])if(this._disposed)this.id;else{var i,r,o;if(Ou(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[ET]=!0,!this._model||e){var a=new Hb(this._api),s=this._theme,l=this._model=new Eb;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},dM);var u={seriesTransition:o,optionChanged:!0};if(n)this[BT]={silent:i,updateParams:u},this[ET]=!1,this.getZr().wakeUp();else{try{$T(this),WT.update.call(this,null,u)}catch(c){throw this[BT]=null,this[ET]=!1,c}this._ssr||this._zr.flush(),this[BT]=null,this[ET]=!1,KT.call(this,i),YT.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ul.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ul.svgSupported){var t=this._zr;return xu(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;xu(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return xu(i,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(mM[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();xu(yM,(function(o,h){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(pu(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),c.push({dom:p,left:d.left,top:d.top})}}));var p=(l*=h)-(a*=h),d=(u*=h)-(s*=h),f=Zl.createCanvas(),g=Hd(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),e){var v="";return xu(c,(function(t){var e=t.left-a,n=t.top-s;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Sv({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),xu(c,(function(t){var e=new gv({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e){return GT(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return GT(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return xu(bf(this._model,t),(function(t,i){i.indexOf("Models")>=0&&xu(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;this.id},e.prototype.getVisual=function(t,e){var n=bf(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}(i,r,e):function(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n,i=this;xu(uM,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&FC(o,(function(t){var e=Fv(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=fu({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),xu(hM,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),xu(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(NC("map","selectchanged",e,i,t),NC("pie","selectchanged",e,i,t)):"select"===t.fromAction?(NC("map","selected",e,i,t),NC("pie","selected",e,i,t)):"unselect"===t.fromAction&&(NC("map","unselected",e,i,t),NC("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Tf(this.getDom(),_M,"");var t=this,e=t._api,n=t._model;xu(t._componentsViews,(function(t){t.dispose(n,e)})),xu(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete yM[t.id]}},e.prototype.resize=function(t){if(!this[ET])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[BT]&&(null==i&&(i=this[BT].silent),n=!0,this[BT]=null),this[ET]=!0;try{n&&$T(this),WT.update.call(this,{type:"resize",animation:fu({duration:0},t&&t.animation)})}catch(r){throw this[ET]=!1,r}this[ET]=!1,KT.call(this,i),YT.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(Ou(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),vM[t]){var n=vM[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=fu({},t);return e.type=hM[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(Ou(e)||(e={silent:!!e}),cM[t.type]&&this._model)if(this[ET])this._pendingActions.push(t);else{var n=e.silent;XT.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&Ul.browser.weChat&&this._throttledZrFlush(),KT.call(this,n),YT.call(this,n)}},e.prototype.updateLabelLayout=function(){DT.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return i(t,n,r,-1/0),!0}))}}function i(t,e,n,r){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Math.max(i(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(o&&(o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function r(t,e){e.eachRendered((function(t){if(!ex(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function o(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ex(t))return;if(t instanceof lv&&function(t){var e=Vv(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}$T=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),VT(t,!0),VT(t,!1),e.plan()},VT=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=Df(t.type);(c=new(e?LS.getClass(h.main,h.sub):US.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},jT=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,u=n.excludeSeriesId;null!=u&&(l=qu(),xu(sf(u),(function(t){var e=gf(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!(l&&null!=l.get(e.id)))if(Py(n))if(e instanceof BS)n.type!==Uv||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=mf(r,e);o=(Mu(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=Fv(a);xy(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&xy(i,c,h,n)}}}(e,n,t._api);else{var i=by(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Uv&&r&&!n.notBlur&&_y(e.mainType,e.componentIndex,t._api),o&&xu(o,(function(t){n.type===Uv?py(t):dy(t)}))}else Oy(n)&&e instanceof BS&&(!function(t,e){if(Oy(e)){var n=e.dataType,i=mf(t.getData(n),e);Mu(i)||(i=[i]),t[e.type===qv?"toggleSelect":e.type===Kv?"select":"unselect"](i,n)}}(e,n,t._api),wy(e),iM(t))}),t),o&&o.eachComponent(s,(function(e){l&&null!=l.get(e.id)||c(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else xu([].concat(t._componentsViews).concat(t._chartsViews),c);function c(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},WT={prepareAndUpdate:function(t){$T(this),WT.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),UT(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),QT(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),DT.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=qu();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),tM(this,i,r,e,{},a),DT.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),US.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),QT(this,n,this._api,e,{}),DT.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),US.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),DT.trigger("afterupdate",i,this._api))},updateLayout:function(t){WT.update.call(this,t)}},GT=function(t,e,n,i){if(t._disposed)t.id;else for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=bf(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},UT=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},XT=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=cM[r],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&Df(l[0]);this[ET]=!0;var h=[t],p=!1;t.batch&&(p=!0,h=_u(t.batch,(function(e){return(e=gu(fu({},e),t)).batch=null,e})));var d,f=[],g=Oy(t),v=Py(t);if(v&&my(this._api),xu(h,(function(e){if((d=(d=a.action(e,n._model,n._api))||fu({},e)).type=s.event||d.type,f.push(d),v){var i=wf(t),r=i.queryOptionMap,o=i.mainTypeSpecified?r.keys()[0]:"series";jT(n,u,e,o),iM(n)}else g?(jT(n,u,e,"series"),iM(n)):c&&jT(n,u,e,c.main,c.sub)})),"none"!==u&&!v&&!g&&!c)try{this[BT]?($T(this),WT.update.call(this,t),this[BT]=null):WT[u].call(this,t)}catch(x){throw this[ET]=!1,x}if(d=p?{type:s.event||r,escapeConnect:o,batch:f}:f[0],this[ET]=!1,!e){var y=this._messageCenter;if(y.trigger(d.type,d),g){var m={type:"selectchanged",escapeConnect:o,selected:Sy(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(m.type,m)}}},KT=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();XT.call(this,n,t)}},YT=function(t){!t&&this.trigger("updated")},qT=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[BT]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},ZT=function(t,e){t.on("mouseover",(function(t){var n=FC(t.target,Ay);n&&(!function(t,e,n){var i=Fv(t),r=by(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&_y(i.componentMainType,i.componentIndex,n),xu(o,(function(t){return cy(t,e)}))):(xy(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&_y(i.componentMainType,i.componentIndex,n),cy(t,e))}(n,t,e._api),iM(e))})).on("mouseout",(function(t){var n=FC(t.target,Ay);n&&(!function(t,e,n){my(n);var i=Fv(t),r=by(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?xu(r,(function(t){return hy(t,e)})):hy(t,e)}(n,t,e._api),iM(e))})).on("click",(function(t){var n=FC(t.target,(function(t){return null!=Fv(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=Fv(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},QT=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);yh(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),xu(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}(e),JT(t,e,n,i,r),xu(t._chartsViews,(function(t){t.__alive=!1})),tM(t,e,n,i,r),xu(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},JT=function(t,e,i,a,s,l){xu(l||t._componentsViews,(function(t){var s=t.__model;r(s,t),t.render(s,e,i,a),n(s,t),o(s,t)}))},tM=function(t,e,i,a,s,l){var u=t._scheduler;s=fu(s||{},{updatedSeries:e.getSeries()}),DT.trigger("series:beforeupdate",e,i,s);var c=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,a),r(e,n),l&&l.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(c=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),wy(e)})),u.unfinished=c||u.unfinished,DT.trigger("series:layoutlabels",e,i,s),DT.trigger("series:transition",e,i,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),o(e,i)})),function(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!Ul.node&&!Ul.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),DT.trigger("series:afterupdate",e,i,s)},iM=function(t){t[RT]=!0,t.getZr().wakeUp()},rM=function(t){t[RT]&&(t.getZr().storage.traverse((function(t){ex(t)||e(t)})),t[RT]=!1)},eM=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return jl(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){py(e,n),iM(t)},n.prototype.leaveEmphasis=function(e,n){dy(e,n),iM(t)},n.prototype.enterBlur=function(e){!function(t){ay(t,ey)}(e),iM(t)},n.prototype.leaveBlur=function(e){fy(e),iM(t)},n.prototype.enterSelect=function(e){gy(e),iM(t)},n.prototype.leaveSelect=function(e){vy(e),iM(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Rb))(t)},nM=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][zT]=e}}xu(hM,(function(n,i){t._messageCenter.on(i,(function(n){if(mM[t.group]&&0!==t[zT]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];xu(yM,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),xu(r,(function(t){1!==t[zT]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(vc),lM=sM.prototype;lM.on=NT("on"),lM.off=NT("off"),lM.one=function(t,e,n){var i=this;this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var uM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var cM={},hM={},pM=[],dM=[],fM=[],gM={},vM={},yM={},mM={},xM=+new Date-0,_M="_echarts_instance_";function bM(t,e,n){var i=!(n&&n.ssr);if(i){var r=function(t){return yM[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,_M)]}(t);if(r)return r}var o=new sM(t,e,n);return o.id="ec_"+xM++,yM[o.id]=o,i&&Tf(t,_M,o.id),nM(o),DT.trigger("afterinit",o),o}function wM(t,e){gM[t]=e}function SM(t){vu(dM,t)<0&&dM.push(t)}function CM(t,e){kM(pM,t,e,2e3)}function TM(t,e){DT.on(t,e)}function MM(t,e,n){Iu(e)&&(n=e,e="");var i=Ou(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,hM[e]||(Vu(LT.test(i)&<.test(e)),cM[i]||(cM[i]={action:n,actionInfo:t}),hM[e]=i)}function IM(t,e){kM(fM,t,e,3e3,"visual")}var DM=[];function kM(t,e,n,i,r){if((Iu(e)||Ou(e))&&(n=e,e=i),!(vu(DM,n)>=0)){DM.push(n);var o=CC.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function AM(t,e){vM[t]=e}var OM=function(t){var e=(t=pu(t)).type;e||rf("");var n=e.split(":");2!==n.length&&rf("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Uw.set(e,t)};function PM(t){return null==t?0:t.length||1}function EM(t){return t}IM(AT,rC),IM(OT,aC),IM(OT,sC),IM(AT,LC),IM(OT,zC),IM(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=CT(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=CT(r,e)}}))})),SM(aw),CM(900,(function(t){var e=qu();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(sw)})),AM("default",(function(t,e){gu(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ld,i=new Sv({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Nv({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Sv({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Fm({shape:{startAngle:-lC/2,endAngle:-lC/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*lC/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*lC/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),MM({type:Uv,event:Uv,update:Uv},tc),MM({type:Xv,event:Xv,update:Xv},tc),MM({type:Kv,event:Kv,update:Kv},tc),MM({type:Yv,event:Yv,update:Yv},tc),MM({type:qv,event:qv,update:qv},tc),wM("light",MC),wM("dark",PC);const BM=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||EM,this._newKeyGetter=i||EM,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=PM(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=PM(l),h=PM(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=PM(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=PM(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();var RM=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function LM(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}const zM=function(t){this.otherDims={},null!=t&&fu(this,t)};var NM=xf(),FM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},HM=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=jM(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Nu(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=_w(this.source),n=!WM(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=FM[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function $M(t){return t instanceof HM}function VM(t){for(var e=qu(),n=0;n<(t||[]).length;n++){var i=t[n],r=Ou(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function jM(t){var e=NM(t);return e.dimNameMap||(e.dimNameMap=VM(t.dimensionsDefine))}function WM(t){return t>30}var GM,UM,XM,KM,YM,qM,ZM,QM=Ou,JM=_u,tI="undefined"==typeof Int32Array?Array:Int32Array,eI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nI=["_approximateExtent"],iI=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;$M(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=Du(c)?new zM({name:c}):c instanceof zM?c:new zM(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),i&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=qu();xu(o,(function(t){f.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(Au(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof rS&&(i=t),!i){var o=this.dimensions,a=fw(t)||mu(t)?new bw(t,o.length):t;i=new rS;var s=JM(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function(t,e){var n={},i=n.encode={},r=qu(),o=[],a=[],s={};xu(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;LM(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),LM(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}ab.each((function(t,e){var n=LM(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=_u(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new RM(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&ZM(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==hb&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===sb&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&hf(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=gf(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=gf(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)ZM(this,a);GM(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){QM(t)?fu(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=XM(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return UM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return Mu(t)?i.getValues(JM(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){Iu(t)&&(n=e,e=t,t=[]);var i=n||this,r=JM(KM(t),this._getStoreDimIndex,this);this._store.each(r,i?Cu(e,i):e)},t.prototype.filterSelf=function(t,e,n){Iu(t)&&(n=e,e=t,t=[]);var i=n||this,r=JM(KM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?Cu(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={};return xu(Su(t),(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){Iu(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=JM(KM(t),this._getStoreDimIndex,this),a=qM(this);return a._store=this._store.map(o,r?Cu(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=JM(KM(t),this._getStoreDimIndex,this);this._store.modify(o,r?Cu(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=qM(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=qM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Zx(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new BM(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return UM(t,e)}),(function(t){return UM(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},QM(t)?fu(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(Mu(r=this.getVisual(e))?r=r.slice():QM(r)&&(r=fu({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,QM(e)?fu(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){QM(t)?fu(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?fu(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=Fv(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=Fv(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){xu(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:JM(this.dimensions,this._getDimInfo,this),this.hostModel)),YM(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];Iu(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Hu(arguments)))})},t.internalField=(GM=function(t){var e=t._invertedIndicesMap;xu(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new tI(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},XM=function(t,e,n){return gf(t._getCategory(e,n),null)},UM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=XM(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},KM=function(t){return Mu(t)||(t=null!=t?[t]:[]),t},qM=function(e){var n=new t(e._schema?e._schema:JM(e.dimensions,e._getDimInfo,e),e.hostModel);return YM(n,e),n},YM=function(t,e){xu(eI.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,xu(nI,(function(n){t[n]=pu(e[n])})),t._calculationInfo=fu({},e._calculationInfo)},void(ZM=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=XM(t,r,e)),null==s&&null!=o&&(i[e]=s=XM(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const rI=iI;function oI(t,e){fw(t)||(t=vw(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=qu(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return xu(e,(function(t){var e;Ou(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&WM(a),l=i===t.dimensionsDefine,u=l?jM(t):VM(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=qu(c),p=new Jw(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=i[t],r=Ou(n)?n:{name:n},a=new zM,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each((function(t,e){var n=sf(t).slice();if(1===n.length&&!Du(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);xu(n,(function(t,n){var r=Du(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))}))}}));var g=0;function v(t,e,n){null!=ab.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}xu(n,(function(t){var e,n,i,r;if(Du(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=fu({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=sf(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}xu(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v(gu(a,r),e,o),null==a.name&&n){var s=n[o];!Ou(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&gu(a.otherDims,i)}))}}));var y=e.generateCoord,m=e.generateCoordCount,x=null!=m;m=y?m||1:0;var _=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)xu(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=aI(_,r,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||bb(t,w)!==gb&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return function(t){for(var e=qu(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new HM({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function aI(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var sI=function(t){this.coordSysDims=[],this.axisMap=qu(),this.categoryAxisMap=qu(),this.coordSysName=t};var lI={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Sf).models[0],o=t.getReferringComponents("yAxis",Sf).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),uI(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),uI(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Sf).models[0];e.coordSysDims=["single"],n.set("single",r),uI(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Sf).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),uI(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),uI(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();xu(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),uI(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function uI(t){return"category"===t.get("type")}function cI(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!$M(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,p=!(!t||!t.get("stack"));if(xu(i,(function(t,e){Du(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;xu(i,(function(t){t.coordDim===d&&g++}));var v={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function hI(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function pI(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=vw(t)):o=(i=r.getSource()).sourceFormat===sb;var a=function(t){var e=t.get("coordinateSystem"),n=new sI(e),i=lI[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=zb.get(i);return e&&e.coordSysDims&&(n=_u(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=Iu(l)?l:l?Tu(xb,s,e):null,c=oI(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&xu(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=cI(e,{schema:c,store:p}),f=new rI(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if(t.sourceFormat===sb){return!Mu(cf(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var dI=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Bf(dI);const fI=dI;var gI=0;function vI(t){return Ou(t)&&null!=t.value?t.value:t+""}const yI=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gI}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&_u(i,vI);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Du(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=qu(this.categories))},t}();function mI(t){return"interval"===t.type||"log"===t.type}function xI(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=Qd(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=bI(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),wI(t,0,e),wI(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Wd(Math.ceil(t[0]/a)*a,s),Wd(Math.floor(t[1]/a)*a,s)],t),r}function _I(t){var e=Math.pow(10,Zd(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Wd(n*e)}function bI(t){return Gd(t)+2}function wI(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function SI(t,e){return t>=e[0]&&t<=e[1]}function CI(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function TI(t,e){return t*(e[1]-e[0])+e[0]}var MI=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new yI({})),Mu(i)&&(i=new yI({categories:_u(i,(function(t){return Ou(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return jl(e,t),e.prototype.parse=function(t){return null==t?NaN:Du(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return SI(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return CI(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(TI(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(fI);fI.registerClass(MI);const II=MI;var DI=Wd,kI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return jl(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return SI(t,this._extent)},e.prototype.normalize=function(t){return CI(t,this._extent)},e.prototype.scale=function(t){return TI(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=bI(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:DI(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=DI(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:DI(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,l=[],u=(o.value-a.value)/t;s<t-1;){var c=DI(a.value+(s+1)*u);c>i[0]&&c<i[1]&&l.push(c),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Gd(t.value)||0:"auto"===n&&(n=this._intervalPrecision),z_(DI(t.value,n,!0))},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=xI(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=DI(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=DI(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(fI);fI.registerClass(kI);const AI=kI;var OI="undefined"!=typeof Float32Array,PI=OI?Float32Array:Array;function EI(t){return Mu(t)?OI?new Float32Array(t):t:new PI(t)}function BI(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function RI(t){return t.dim+t.index}function LI(t){var e=function(t){var e={};xu(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return xu(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),c=Math.abs(u[1]-u[0]);i=s?l/c*s:l}else{var h=t.getData();i=Math.abs(o[1]-o[0])/h.count()}var p=jd(t.get("barWidth"),i),d=jd(t.get("barMaxWidth"),i),f=jd(t.get("barMinWidth")||(function(t){return t.pipelineContext&&t.pipelineContext.large}(t)?.5:1),i),g=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:d,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:RI(r),stackId:BI(t)})})),function(t){var e={};xu(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)}));var n={};return xu(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Su(i).length;o=Math.max(35-4*a,15)+"%"}var s=jd(o,r),l=jd(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),xu(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--}else{var i=h;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p,d=0;xu(i,(function(t,e){t.width||(t.width=h),p=t,d+=t.width*(1+l)})),p&&(d-=p.width*l);var f=-d/2;xu(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}(n)}var zI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return jl(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return __(t.value,f_[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(m_(this._minLevelUnit))]||f_.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if(Du(n))o=n;else if(Iu(n))o=n(t.value,e,{level:t.level});else{var a=fu({},p_);if(t.level>0)for(var s=0;s<g_.length;++s)a[g_[s]]="{primary|"+a[g_[s]]+"}";var l=n?!1===n.inherit?n:gu(n,a):a,u=b_(t.value,r);if(l[u])o=l[u];else if(l.inherit){for(s=v_.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(Mu(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return __(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r=1e4,o=v_,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u<n&&u<=i[1];)s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,r,o){var a=[],l=!r.length;if(!function(t,e,n,i){var r=qd(e),o=qd(n),a=function(t){return w_(r,t,i)===w_(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}(m_(t),i[0],i[1],n)){l&&(r=[{value:WI(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var c=r[u].value,h=r[u+1].value;if(c!==h){var p=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/c_/365)),d=S_(n),f=A_(n);break;case"half-year":case"quarter":case"month":p=HI(e),d=C_(n),f=O_(n);break;case"week":case"half-week":case"day":p=FI(e),d=T_(n),f=P_(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=$I(e),d=M_(n),f=E_(n);break;case"minute":p=VI(e,!0),d=I_(n),f=B_(n);break;case"second":p=VI(e,!1),d=D_(n),f=R_(n);break;case"millisecond":p=jI(e),d=k_(n),f=L_(n)}s(p,c,h,d,f,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-p})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,p=0,d=0;d<o.length&&a++<r;++d){var f=m_(o[d]);if(x_(o[d]))if(l(o[d],u[u.length-1]||[],c),f!==(o[d+1]?m_(o[d+1]):null)){if(c.length){p=h,c.sort((function(t,e){return t.value-e.value}));for(var g=[],v=0;v<c.length;++v){var y=c[v].value;0!==v&&c[v-1].value===y||(g.push(c[v]),y>=i[0]&&y<=i[1]&&h++)}var m=(i[1]-i[0])/e;if(h>1.5*m&&p>m/1.5)break;if(u.push(g),h>m||t===o[d])break}c=[]}}var x=wu(_u(u,(function(t){return wu(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(d=0;d<x.length;++d)for(var w=x[d],S=0;S<w.length;++S)_.push({value:w[S].value,level:b-d});_.sort((function(t,e){return t.value-e.value}));var C=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||C.push(_[d]);return C}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(r)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=c_,e[1]+=c_),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-c_}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=NI.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(NI,this._approxInterval,0,o),o-1);this._interval=NI[a][1],this._minLevelUnit=NI[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Au(t)?t:+qd(t)},e.prototype.contain=function(t){return SI(this.parse(t),this._extent)},e.prototype.normalize=function(t){return CI(this.parse(t),this._extent)},e.prototype.scale=function(t){return TI(t,this._extent)},e.type="time",e}(AI),NI=[["second",s_],["minute",l_],["hour",u_],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",h_/2],["year",h_]];function FI(t,e){return(t/=c_)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function HI(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function $I(t){return(t/=u_)>12?12:t>6?6:t>3.5?4:t>2?2:1}function VI(t,e){return(t/=e?l_:s_)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function jI(t){return Qd(t,!0)}function WI(t,e,n){var i=new Date(t);switch(m_(e)){case"year":case"month":i[O_(n)](0);case"day":i[P_(n)](1);case"hour":i[E_(n)](0);case"minute":i[B_(n)](0);case"second":i[R_(n)](0),i[L_(n)](0)}return i.getTime()}fI.registerClass(zI);const GI=zI;var UI=fI.prototype,XI=AI.prototype,KI=Wd,YI=Math.floor,qI=Math.ceil,ZI=Math.pow,QI=Math.log,JI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new AI,e._interval=0,e}return jl(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return _u(XI.getTicks.call(this,t),(function(t){var e=t.value,r=Wd(ZI(this.base,e));return r=e===n[0]&&this._fixMin?eD(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?eD(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=QI(this.base);t=QI(Math.max(0,t))/n,e=QI(Math.max(0,e))/n,XI.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=UI.getExtent.call(this);e[0]=ZI(t,e[0]),e[1]=ZI(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=eD(e[0],n[0])),this._fixMax&&(e[1]=eD(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=QI(t[0])/QI(e),t[1]=QI(t[1])/QI(e),UI.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i,r=(i=n,Math.pow(10,Zd(i)));for(t/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[Wd(qI(e[0]/r)*r),Wd(YI(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){XI.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return SI(t=QI(t)/QI(this.base),this._extent)},e.prototype.normalize=function(t){return CI(t=QI(t)/QI(this.base),this._extent)},e.prototype.scale=function(t){return t=TI(t,this._extent),ZI(this.base,t)},e.type="log",e}(fI),tD=JI.prototype;function eD(t,e){return KI(t,Gd(e))}tD.getMinorTicks=XI.getMinorTicks,tD.getLabel=XI.getLabel,fI.registerClass(JI);const nD=JI;var iD=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=e.get("min",!0);null==r&&(r=e.get("startValue",!0));var o=this._modelMinRaw=r;Iu(o)?this._modelMinNum=aD(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=aD(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(Iu(a)?this._modelMaxNum=aD(t,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=aD(t,a)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Mu(s)?s:[s||0,s||0];"boolean"==typeof l[0]||"boolean"==typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[wd(l[0],1),wd(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Lu(a)||Lu(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,p=this._determinedMax;return null!=h&&(a=h,l=!0),null!=p&&(s=p,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[oD[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[rD[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),rD={min:"_determinedMin",max:"_determinedMax"},oD={min:"_dataMin",max:"_dataMax"};function aD(t,e){return null==e?null:Lu(e)?NaN:t.parse(e)}function sD(t,e){var n=t.type,i=function(t,e,n){var i=t.rawExtentInfo;return i||(i=new iD(t,e,n),t.rawExtentInfo=i,i)}(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=function(t,e){var n=[];return e.eachSeriesByType(t,(function(t){(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type})(t)&&n.push(t)})),n}("bar",a),l=!1;if(xu(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=LI(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[RI(e)];return null!=i&&null!=n?i[BI(n)]:i}}(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;xu(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;xu(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return e+=h*(l/u),t-=h*(s/u),{min:t,max:e}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function lD(t,e){var n=e,i=sD(t,n),r=i.extent,o=n.get("splitNumber");t instanceof nD&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function uD(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):Du(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):Iu(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(cD(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function cD(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function hD(t){var e=t.get("interval");return null==e?"auto":e}function pD(t){return"category"===t.type&&0===hD(t.getLabelModel())}function dD(t,e){var n={};return xu(t.mapDimensionsAll(e),(function(e){n[function(t,e){return hI(t,e)?t.getCalculationInfo("stackResultDimension"):e}(t,e)]=!0})),Su(n)}var fD=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),gD=[],vD={registerPreprocessor:SM,registerProcessor:CM,registerPostInit:function(t){TM("afterinit",t)},registerPostUpdate:function(t){TM("afterupdate",t)},registerUpdateLifecycle:TM,registerAction:MM,registerCoordinateSystem:function(t,e){zb.register(t,e)},registerLayout:function(t,e){kM(fM,t,e,1e3,"layout")},registerVisual:IM,registerTransform:OM,registerLoading:AM,registerMap:function(t,e,n){var i=kT["registerMap"];i&&i(t,e,n)},registerImpl:function(t,e){kT[t]=e},PRIORITY:PT,ComponentModel:nb,ComponentView:LS,SeriesModel:BS,ChartView:US,registerComponentModel:function(t){nb.registerClass(t)},registerComponentView:function(t){LS.registerClass(t)},registerSeriesModel:function(t){BS.registerClass(t)},registerChartView:function(t){US.registerClass(t)},registerSubTypeDefaulter:function(t,e){nb.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,zd[t]=n}};function yD(t){Mu(t)?xu(t,(function(t){yD(t)})):vu(gD,t)>=0||(gD.push(t),Iu(t)&&(t={install:t}),t.install(vD))}var mD=xf();function xD(t,e){var n=_u(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function _D(t){var e=t.getLabelModel().get("customValues");if(e){var n=uD(t);return{labels:xD(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=wD(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=uD(t);return{labels:_u(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function bD(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:xD(t,n)}:"category"===t.type?function(t,e){var n,i,r=SD(t,"ticks"),o=hD(e),a=CD(r,o);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);if(Iu(o))n=ID(t,o,!0);else if("auto"===o){var s=wD(t,t.getLabelModel());i=s.labelCategoryInterval,n=_u(s.labels,(function(t){return t.tickValue}))}else n=MD(t,i=o,!0);return TD(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:_u(t.scale.getTicks(),(function(t){return t.value}))}}function wD(t,e){var n,i,r=SD(t,"labels"),o=hD(e),a=CD(r,o);return a||(Iu(o)?n=ID(t,o):(i="auto"===o?function(t){var e=mD(t).autoInterval;return null!=e?e:mD(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=MD(t,i)),TD(r,o,{labels:n,labelCategoryInterval:i}))}function SD(t,e){return mD(t)[e]||(mD(t)[e]=[])}function CD(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function TD(t,e,n){return t.push({key:e,value:n}),n}function MD(t,e,n){var i=uD(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=pD(t),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&f-l!==o[1]&&g(o[1]),s}function ID(t,e,n){var i=t.scale,r=uD(t),o=[];return xu(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var DD=[0,1],kD=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&AD(n=n.slice(),i.count()),Vd(t,DD,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&AD(n=n.slice(),i.count());var r=Vd(t,n,DD,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=_u(bD(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,i){var r=e.length;if(!t.onBand||n||!r)return;var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;xu(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var c=s[0]>s[1];h(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift());i&&h(s[0],e[0].coord)&&e.unshift({coord:s[0]});h(s[1],o.coord)&&(i?o.coord=s[1]:e.pop());i&&h(o.coord,s[1])&&e.push({coord:s[1]});function h(t,e){return t=Wd(t),e=Wd(e),c?t>e:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),_u(this.scale.getMinorTicks(t),(function(t){return _u(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return _D(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=uD(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,d=0;l<=o[1];l+=s){var f,g,v=md(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,p=Math.max(p,f,7),d=Math.max(d,g,7)}var y=p/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=mD(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function AD(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const OD=kD;const PD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return jl(e,t),e.prototype.getInitialData=function(t){return pI(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ld,n=QC("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=QC(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(BS);function ED(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Pw(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Pw(t,e,n[a]));return o.join(" ")}}var BD=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return jl(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=QC(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=RD,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){py(this.childAt(0))},e.prototype.downplay=function(){dy(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o,a=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=a!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,l,h)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):Jm(d,p,s,n),Zm(o=d).oldStyle=o.style}if(this._updateCommon(t,n,l,i,r),u){var d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,tx(d,p,s,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=Ax(v),p=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=JC(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),d&&f.attr("cursor",d);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof gv){var w=f.style;f.useStyle(fu({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(fu({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),C=this._z2;null!=S?null==C&&(this._z2=f.z2,f.z2+=S):null!=C&&(f.z2=C,this._z2=null);var T=r&&r.useNameLabel;kx(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return T?t.getName(e):ED(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var I=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),Ty(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Fv(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&nx(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();nx(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Mu(n=t.getItemVisual(e,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},e}(Ld);function RD(t,e){this.parent.drift(t,e)}const LD=BD;function zD(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ND(t){return null==t||Ou(t)||(t={isIgnore:t}),t||{}}function FD(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ax(e),cursorStyle:e.get("cursor")}}var HD=function(){function t(t){this.group=new Ld,this._SymbolCtor=t||LD}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ND(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=FD(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(zD(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(zD(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):Jm(p,v,i)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=FD(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ND(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(zD(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Tx(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();const $D=HD;function VD(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:Au(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=_u(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return hI(e,h[0])&&(p=!0,h[0]=d),hI(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function jD(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var WD=Math.min,GD=Math.max;function UD(t,e){return isNaN(t)||isNaN(e)}function XD(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,v=0;v<i;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(UD(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===m&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],x=(y=e[2*g])-u,_=(m=e[2*g+1])-c;var C=v+1;if(l)for(;UD(w,S)&&C<i;)C++,w=e[2*(b+=o)],S=e[2*b+1];var T=.5,M=0,I=0,D=void 0,k=void 0;if(C>=i||UD(w,S))d=y,f=m;else{M=w-u,I=S-c;var A=y-u,O=w-y,P=m-c,E=S-m,B=void 0,R=void 0;if("x"===s){var L=M>0?1:-1;d=y-L*(B=Math.abs(A))*a,f=m,D=y+L*(R=Math.abs(O))*a,k=m}else if("y"===s){var z=I>0?1:-1;d=y,f=m-z*(B=Math.abs(P))*a,D=y,k=m+z*(R=Math.abs(E))*a}else B=Math.sqrt(A*A+P*P),d=y-M*a*(1-(T=(R=Math.sqrt(O*O+E*E))/(R+B))),f=m-I*a*(1-T),k=m+I*a*T,D=WD(D=y+M*a*T,GD(w,y)),k=WD(k,GD(S,m)),D=GD(D,WD(w,y)),f=m-(I=(k=GD(k,WD(S,m)))-m)*B/R,d=WD(d=y-(M=D-y)*B/R,GD(u,y)),f=WD(f,GD(c,m)),D=y+(M=y-(d=GD(d,WD(u,y))))*R/B,k=m+(I=m-(f=GD(f,WD(c,m))))*R/B}t.bezierCurveTo(h,p,d,f,y,m),h=D,p=k}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var KD=function(){this.smooth=0,this.smoothConstraint=!0},YD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return jl(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new KD},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&UD(n[2*r-2],n[2*r-1]);r--);for(;i<r&&UD(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=XD(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=Vg.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var y=a?Nh(n,u,h,d,t,s):Nh(i,c,p,f,t,s);if(y>0)for(var m=0;m<y;m++){var x=s[m];if(x<=1&&x>=0){v=a?Lh(i,c,p,f,x):Lh(n,u,h,d,x);return a?[t,v]:[v,t]}}n=d,i=f}}},e}(lv),qD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e}(KD),ZD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return jl(e,t),e.prototype.getDefaultShape=function(){return new qD},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&UD(n[2*o-2],n[2*o-1]);o--);for(;r<o&&UD(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=XD(t,n,r,o,o,1,e.smooth,a,e.connectNulls);XD(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(lv);function QD(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function JD(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function tk(t,e){var n=JD(t),i=n[0],r=n[1],o=JD(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function ek(t){return Au(t)?t:t?.5:0}function nk(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+c[o])/2,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function ik(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=hp(e[r]),s=hp(e[o]),l=i-r,u=fp([tp(op(a[0],s[0],l)),tp(op(a[1],s[1],l)),tp(op(a[2],s[2],l)),ep(op(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function rk(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*LD.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return xu(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function ok(t,e){return[t[2*e],t[2*e+1]]}function ak(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Wv.length;e++)if(t.get([Wv[e],"endLabel","show"]))return!0;return!1}function sk(t,e,n,i){if(function(t,e){return t.type===e}(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=ak(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=function(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Sv({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Iu(r)?function(t){r(t,h)}:null;tx(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return function(t,e,n){var i=t.getArea(),r=Wd(i.r0,1),o=Wd(i.r,1),a=new ym({shape:{cx:Wd(t.cx,1),cy:Wd(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,tx(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}(e,n,i)}var lk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.init=function(){var t=new Ld,e=new $D;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===r.type,h=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,v=!e.ssr&&t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),x=VD(r,a,m),_=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=EI(2*i),o=0;o<i;o++){var a=jD(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!c&&rk(t,a,r),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),b||p.remove(),o.add(g);var T,M=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(T=r.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var I=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=_u(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=ik(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";xu(p,(function(t){t.offset=(t.coord-f)/v})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var y=new Vm(0,0,0,0,p,!0);return y[r]=f,y[r+"2"]=g,y}}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===r.type&&M===this._step){y&&!f?f=this._newPolygon(u,_):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,W_(I));var D=g.getClipPath();if(D)tx(D,{shape:sk(this,r,!1,t).shape},t);else g.setClipPath(sk(this,r,!0,t));b&&p.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),QD(this._stackedOnPoints,_)&&QD(this._points,u)||(v?this._doUpdateAnimation(a,_,r,n,M,m,w):(M&&(u=nk(u,r,M,w),_&&(_=nk(_,r,M,w))),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&p.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,T),M&&(u=nk(u,r,M,w),_&&(_=nk(_,r,M,w))),d=this._newPolyline(u),y?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,W_(I)),g.setClipPath(sk(this,r,!0,t));var k=t.getModel("emphasis"),A=k.get("focus"),O=k.get("blurScope"),P=k.get("disabled");(d.useStyle(gu(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Dy(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1);Fv(d).seriesIndex=t.seriesIndex,Ty(d,A,O,P);var E=ek(t.get("smooth")),B=t.get("smoothMonotone");if(d.setShape({smooth:E,smoothMonotone:B,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),L=0;f.useStyle(gu(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(L=ek(R.get("smooth"))),f.setShape({smooth:E,stackedOnSmooth:L,smoothMonotone:B,connectNulls:w}),Dy(f,t,"areaStyle"),Fv(f).seriesIndex=t.seriesIndex,Ty(f,A,O,P)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=M,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Fv(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=mf(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new LD(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else US.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=mf(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else US.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;sy(this._polyline,t),e&&sy(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new YD({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new ZD({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");Iu(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=Iu(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var y=n;i?(p=y.x,d=y.x+y.width,f=t.x):(p=y.y+y.height,d=y.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var x=Iu(u)?u(o):l*m+c,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(ak(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Nv({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(kx(o,Ax(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?function(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Mu(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}(r,n):ED(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,x=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,C=S[1]-S[0],T=void 0;if(C>=1){if(C>1&&!h){var M=ok(u,S[0]);s.attr({x:M[0]+x,y:M[1]+_}),r&&(T=c.getRawValue(S[0]))}else{(M=l.getPointOn(m,b))&&s.attr({x:M[0]+x,y:M[1]+_});var I=c.getRawValue(S[0]),D=c.getRawValue(S[1]);r&&(T=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(Au(i))return Wd(f=of(n||0,i,r),o?Math.max(Gd(n||0),Gd(i)):e);if(Du(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,d=l[c],f=of(p,d,r);a[c]=Wd(f,o?Math.max(Gd(p),Gd(d)):e)}}return a}(n,p,I,D,w.t))}i.lastFrameIndex=S[0]}else{var k=1===t||i.lastFrameIndex>0?S[0]:0;M=ok(u,k);r&&(T=c.getRawValue(k)),s.attr({x:M[0]+x,y:M[1]+_})}if(r){var A=zx(s);"function"==typeof A.setLabelText&&A.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],u=[],c=[],h=[],p=[],d=[],f=[],g=VD(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],m=0;m<s.length;m++){var x=s[m],_=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=2*x.idx,w=2*x.idx1;var S=v[b],C=v[b+1],T=y[w],M=y[w+1];(isNaN(S)||isNaN(C))&&(S=T,C=M),l.push(S,C),u.push(T,M),c.push(n[b],n[b+1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,D=g.dataDimsForPoint,k=r.dataToPoint([e.get(D[0],I),e.get(D[1],I)]);w=2*I,l.push(k[0],k[1]),u.push(y[w],y[w+1]);var A=jD(g,r,e,I);c.push(A[0],A[1]),h.push(i[w],i[w+1]),f.push(e.getRawIndex(I));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort((function(t,e){return f[t]-f[e]}));var O=l.length,P=EI(O),E=EI(O),B=EI(O),R=EI(O),L=[];for(m=0;m<d.length;m++){var z=d[m],N=2*m,F=2*z;P[N]=l[F],P[N+1]=l[F+1],E[N]=u[F],E[N+1]=u[F+1],B[N]=c[F],B[N+1]=c[F+1],R[N]=h[F],R[N+1]=h[F+1],L[m]=p[z]}return{current:P,next:E,stackedOnCurrent:B,stackedOnNext:R,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(h=nk(c.current,n,r,a),p=nk(c.stackedOnCurrent,n,r,a),d=nk(c.next,n,r,a),f=nk(c.stackedOnNext,n,r,a)),tk(h,d)>3e3||l&&tk(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Jm(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),Jm(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){if("="===y[m].cmd){var x=t.getItemGraphicEl(y[m].idx1);x&&v.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(US);const uk=lk;var ck={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);o>e&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},hk=function(t){return Math.round(t.length/2)};function pk(t){var e;t.registerChartView(uk),t.registerSeriesModel(PD),t.registerLayout((e=!0,{seriesType:"line",plan:zS(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=_u(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");hI(n,a[0])&&(a[0]=l),hI(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&EI(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&e.setLayout("points",r)}}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p));var d=void 0;Du(r)?d=ck[r]:Iu(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,hk))}}}}}("line"))}const dk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(nb);var fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Sf).models[0]},e.type="cartesian2dAxis",e}(nb);yu(fk,fD);var gk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},vk=du({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},gk),yk=du({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},gk);const mk={category:vk,value:yk,time:du({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yk),log:gu({logBase:10},yk)};var xk={value:1,category:1,time:1,log:1};function _k(t,e,n,i){xu(xk,(function(r,o){var a=du(du({},mk[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return jl(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Z_(this),i=n?J_(t):{};du(t,e.getTheme().get(o+"Axis")),du(t,this.getDefaultOption()),t.type=bk(t),n&&Q_(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=yI.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",bk)}function bk(t){return t.type||(t.data?"category":"value")}var wk=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return _u(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),wu(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}();var Sk=["x","y"];function Ck(t){return"interval"===t.type||"time"===t.type}var Tk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Sk,e}return jl(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(Ck(t)&&Ck(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=Vc([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new th(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return hc(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return hc(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new th(i,r,o,a)},e}(wk);const Mk=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return jl(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(OD);function Ik(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[p[l]]:h[0],"x"===u?f[p[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),zu(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Dk(t){return"cartesian2d"===t.get("coordinateSystem")}function kk(t){var e={xAxisModel:null,yAxisModel:null};return xu(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Sf).models[0];e[i]=o})),e}var Ak=Math.log;var Ok=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Sk,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Su(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;mI(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(lD(l,s),mI(l)&&(e=a))}r.length&&(e||lD((e=r.pop()).scale,e.model),xu(r,(function(t){!function(t,e,n){var i=AI.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=sD(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var p=Ak(t.base);u=[Ak(u[0])/p,Ak(u[1])/p]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(t),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=_I(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=_I(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=_I(f));var y=f*a;(g=Wd((v=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,v=Wd(y)):v>0&&u[1]<=0&&(v=0,g=-Wd(y))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,v+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,v-f)}(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};xu(n.x,(function(t){Ek(n,"y",t,r)})),xu(n.y,(function(t){Ek(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=q_(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){xu(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(xu(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof II?n.count():(i=n.getTicks()).length;var a,s,l,u,c,h,p,d=t.getLabelModel(),f=uD(t),g=1;r>40&&(g=Math.ceil(r/40));for(var v=0;v<r;v+=g){var y=f(i?i[v]:{value:o[0]+v},v),m=(s=d.getTextRect(y),l=void 0,u=void 0,c=void 0,h=void 0,p=void 0,l=(d.get("rotate")||0)*Math.PI/180,u=s.width,c=s.height,h=u*Math.abs(Math.cos(l))+Math.abs(c*Math.sin(l)),p=u*Math.abs(Math.sin(l))+Math.abs(c*Math.cos(l)),new th(s.x,s.y,h,p));a?a.union(m):a=m}return a}}(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),xu(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Ou(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Sf).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Sf).models[0],a=t.gridModel,s=this._coordsList;if(i)vu(s,e=i.coordinateSystem)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Pk(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Mk(e,function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new II({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new GI({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(fI.getClass(e)||AI)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,xu(a.x,(function(e,n){xu(a.y,(function(r,o){var a="x"+n+"y"+o,s=new Tk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){xu(dD(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}xu(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Dk(t)){var i=kk(t),r=i.xAxisModel,o=i.yAxisModel;if(!Pk(r,e)||!Pk(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return xu(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);vu(e,r)<0&&e.push(r),vu(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Dk(t)){var e=kk(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=Sk,t}();function Pk(t,e){return t.getCoordSysModel()===e}function Ek(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Bk(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Bk(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Bk(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}const Rk=Ok;var Lk=Math.PI,zk=function(){function t(t,e){this.group=new Ld,this.opt=e,this.axisModel=t,gu(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ld({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Nk[t]},t.prototype.add=function(t){Nk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Xd(e-t);return Kd(o)?(r=n>0?"top":"bottom",i="center"):Kd(o-Lk)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<Lk?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Nk={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(hc(s,s,a),hc(l,l,a));var c=fu({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Om({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});fx(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=e.get(["axisLine","symbol"]);if(null!=p){var d=e.get(["axisLine","symbolSize"]);Du(p)&&(p=[p,p]),(Du(d)||Au(d))&&(d=[d,d]);var f=JC(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];xu([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var r=QC(p[i],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=Vk(r.getTicksCoords(),e.transform,l,gu(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)t.add(u[c]);return u}(n,i,e,t),o=function(t,e,n,i){var r=n.axis,o=zu(i.axisLabelShow,n.get(["axisLabel","show"]));if(!o||r.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),u=(zu(i.labelRotate,a.get("rotate"))||0)*Lk/180,c=zk.innerTextLayout(i.rotation,u,i.labelDirection),h=n.getCategories&&n.getCategories(!0),p=[],d=zk.isLabelSilent(n),f=n.get("triggerEvent");return xu(l,(function(o,u){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,v=o.formattedLabel,y=o.rawLabel,m=a;if(h&&h[g]){var x=h[g];Ou(x)&&x.textStyle&&(m=new Zx(x.textStyle,a,n.ecModel))}var _=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),b=r.dataToCoord(g),w=m.getShallow("align",!0)||c.textAlign,S=Nu(m.getShallow("alignMinLabel",!0),w),C=Nu(m.getShallow("alignMaxLabel",!0),w),T=m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,M=Nu(m.getShallow("verticalAlignMinLabel",!0),T),I=Nu(m.getShallow("verticalAlignMaxLabel",!0),T),D=new Nv({x:b,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(o.level||0),style:Ox(m,{text:v,align:0===u?S:u===l.length-1?C:w,verticalAlign:0===u?M:u===l.length-1?I:T,fill:Iu(_)?_("category"===r.type?y:"value"===r.type?g+"":g,u):_})});if(D.anid="label_"+g,f){var k=zk.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=y,k.tickIndex=u,"category"===r.type&&(k.dataIndex=g),Fv(D).eventData=k}e.add(D),D.updateTransform(),p.push(D),t.add(D),D.decomposeTransform()})),p}(n,i,e,t);(function(t,e,n){if(pD(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],p=n[n.length-2];!1===i?(Fk(o),Fk(u)):Hk(o,a)&&(i?(Fk(a),Fk(c)):(Fk(o),Fk(u)));!1===r?(Fk(s),Fk(h)):Hk(l,s)&&(r?(Fk(l),Fk(p)):(Fk(s),Fk(h)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),u=gu(s.getLineStyle(),gu(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=Vk(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)t.add(h[p])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"]))&&function(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new th(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Km(f.localRect,f.transform)),h||(h=new Km(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}(function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Km(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}(_u(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}))))},axisName:function(t,e,n,i){var r=zu(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),p=h[0]>h[1]?-1:1,d=["start"===s?h[0]-p*c:"end"===s?h[1]+p*c:(h[0]+h[1])/2,$k(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*Lk/180),$k(s)?o=zk.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=Xd(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;Kd(a-Lk/2)?(o=l?"bottom":"top",r="center"):Kd(a-1.5*Lk)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Lk&&a>Lk/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=zu(t.nameTruncateMaxWidth,v.maxWidth,a),x=new Nv({x:d[0],y:d[1],rotation:o.rotation,silent:zk.isLabelSilent(e),style:Ox(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Sx({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=zk.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,Fv(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Fk(t){t&&(t.ignore=!0)}function Hk(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Nc([]);return $c(r,r,-t.rotation),n.applyTransform(Fc([],r,t.getLocalTransform())),i.applyTransform(Fc([],r,e.getLocalTransform())),n.intersect(i)}}function $k(t){return"middle"===t||"center"===t}function Vk(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(hc(a,a,e),hc(s,s,e));var c=new Om({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});fx(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}const jk=zk;function Wk(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];xu(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Kk(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(xu(n.getAxes(),Tu(d,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&xu(p.baseAxes,Tu(d,!h||"cross",c)),h&&xu(p.otherAxes,Tu(d,"cross",!1))}}function d(i,s,c){var h=c.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||i||Xk(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};xu(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=pu(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&gu(l,c.textStyle)}}return t.model.getModel("axisPointer",new Zx(s,n,i))}(c,u,r,e,i,s):h;var d=h.get("snap"),f=h.get("triggerEmphasis"),g=Kk(c.model),v=s||d||"category"===c.type,y=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:v,snap:d,useHandle:Xk(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(Gk(o[i+"AxisId"],n.id)||Gk(o[i+"AxisIndex"],n.componentIndex)||Gk(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=m){var x=a[m]||(a[m]={axesInfo:{}});x.axesInfo[g]=y,x.mapper=o[m].mapper,y.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&xu(t.coordSysAxesInfo[Kk(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function Gk(t,e){return"all"===t||Mu(t)&&vu(t,e)>=0||t===e}function Uk(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Kk(t)]}function Xk(t){return!!t.get(["handle","show"])}function Kk(t){return t.type+"||"+t.id}var Yk={};const qk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=Uk(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Xk(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Uk(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){Yk[t]=e},e.getAxisPointerClass=function(t){return t&&Yk[t]},e.type="axis",e}(LS);var Zk=xf();var Qk=["axisLine","axisTickLabel","axisName"],Jk=["splitArea","splitLine","minorSplitLine"],tA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return jl(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ld,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Ik(a,e),l=new jk(e,fu({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(mI(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));xu(Qk,l.add,l),this._axisGroup.add(l.getGroup()),xu(Jk,(function(t){e.get([t,"show"])&&eA[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||mx(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){Zk(this).splitAreaColors=null},e.type="cartesianAxis",e}(qk),eA={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Mu(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),c=0,h=r.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=r.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=c++%s.length,m=h[g].tickValue,x=new Om({anid:null!=m?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:gu({stroke:s[y]},f),silent:!0});fx(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],c=[],h=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,c[0]=f,c[1]=a.y+a.height):(u[0]=a.x,u[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new Om({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,silent:!0});fx(g.shape,h.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=Zk(t).splitAreaColors,p=qu(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=Mu(s)?s:[s],f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),x=void 0,_=void 0,b=void 0,w=void 0;r.isHorizontal()?(x=v,_=l.y,b=m-x,w=l.height,v=x+b):(x=l.x,_=v,b=l.width,v=_+(w=m-_));var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new Sv({anid:null!=S?"area_"+S:null,shape:{x:x,y:_,width:b,height:w},style:gu({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Zk(t).splitAreaColors=p}}}(t,e,n,i)}},nA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.type="xAxis",e}(tA),iA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=nA.type,e}return jl(e,t),e.type="yAxis",e}(tA),rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return jl(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Sv({shape:t.coordinateSystem.getRect(),style:gu({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(LS),oA={offset:0};function aA(t){t.registerComponentView(rA),t.registerComponentModel(dk),t.registerCoordinateSystem("cartesian2d",Rk),_k(t,"x",fk,oA),_k(t,"y",fk,oA),t.registerComponentView(nA),t.registerComponentView(iA),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}var sA=xf(),lA=pu,uA=Cu;function cA(t,e,n,i){hA(sA(n).lastProp,i)||(sA(n).lastProp=i,e?Jm(n,i,t):(n.stopAnimation(),n.attr(i)))}function hA(t,e){if(Ou(t)&&Ou(e)){var n=!0;return xu(e,(function(e,i){n=n&&hA(t[i],e)})),!!n}return t===e}function pA(t,e){t[e.get(["label","show"])?"show":"hide"]()}function dA(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fA(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}function gA(t,e,n,i,r){var o=vA(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=F_(a.get("padding")||0),l=a.getFont(),u=md(o,l),c=r.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Ox(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function vA(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:cD(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};xu(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),Du(a)?o=a.replace("{value}",o):Iu(a)&&(o=a(s))}return o}function yA(t,e,n){var i=[1,0,0,1,0,0];return $c(i,i,n.rotation),Hc(i,i,n.position),vx([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var mA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jl(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=xA(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=function(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}(i),h=_A[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}!function(t,e,n,i,r,o){var a=jk.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),gA(e,i,r,o,{position:yA(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,Ik(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Ik(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=yA(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=xA(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=Tu(cA,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ld,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);fA(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Uk(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=sA(t).pointerEl=new Mx[r.type](lA(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=sA(t).labelEl=new Nv(lA(e.label));t.add(r),pA(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=sA(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=sA(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),pA(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=xx(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Bc(t.event)},onmousedown:uA(this._onHandleDragMove,this,0,0),drift:uA(this._onHandleDragMove,this),ondragend:uA(this._onHandleDragEnd,this)}),i.add(r)),fA(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");Mu(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ZS(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){cA(this._axisPointerModel,!e&&this._moveAnimation,this._handle,dA(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(dA(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(dA(i)),sA(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),QS(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}());function xA(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var _A={line:function(t,e,n){var i,r,o;return{type:"Line",subPixelOptimize:!0,shape:(i=[e,n[0]],r=[e,n[1]],o=bA(t),{x1:i[o=o||0],y1:i[1-o],x2:r[o],y2:r[1-o]})}},shadow:function(t,e,n){var i,r,o,a=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(i=[e-a/2,n[0]],r=[a,s],o=bA(t),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function bA(t){return"x"===t.dim?0:1}const wA=mA;const SA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(nb);var CA=xf(),TA=xu;function MA(t,e,n){if(!Ul.node){var i=e.getZr();CA(i).records||(CA(i).records={}),function(t,e){if(CA(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);TA(CA(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}CA(t).initialized=!0,n("click",Tu(DA,"click")),n("mousemove",Tu(DA,"mousemove")),n("globalout",IA)}(i,e),(CA(i).records[t]||(CA(i).records[t]={})).handler=n}}function IA(t,e,n){t.handler("leave",null,n)}function DA(t,e,n,i){e.handler(t,n,i)}function kA(t,e){if(!Ul.node){var n=e.getZr();(CA(n).records||{})[t]&&(CA(n).records[t]=null)}}const AA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";MA("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){kA("axisPointer",e)},e.prototype.dispose=function(t,e){kA("axisPointer",e)},e.type="axisPointer",e}(LS);function OA(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=mf(o,t);if(null==a||a<0||Mu(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(_u(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var PA=xf();function EA(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Cu(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){NA(r)&&(r=OA({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=NA(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||NA(r),p={},d={},f={list:[],map:{}},g={showPointer:Tu(RA,d),showTooltip:Tu(LA,f)};xu(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);xu(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&BA(t,a,g,!1,p)}}))}));var v={};return xu(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&xu(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,zA(e),zA(t)))),v[t.key]=o}}))})),xu(v,(function(t,e){BA(c[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];xu(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,c,p),function(t,e,n,i){if(NA(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=PA(i)[r]||{},a=PA(i)[r]={};xu(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&xu(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];xu(o,(function(t,e){!a[e]&&l.push(t)})),xu(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function BA(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return xu(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,r=u,o.length=0),xu(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&fu(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function RA(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function LA(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=Kk(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function zA(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function NA(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function FA(t){qk.registerAxisPointerClass("CartesianAxisPointer",wA),t.registerComponentModel(SA),t.registerComponentView(AA),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Mu(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Wk(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},EA)}function HA(t){yD(aA),yD(FA)}const $A=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(nb);function VA(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function jA(t){if(Ul.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var WA=jA(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function GA(t,e){if(!t)return e;e=N_(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var UA=GA(jA(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),XA=GA(WA,"transform"),KA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ul.transform3dSupported?"will-change:transform;":"");function YA(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!Ul.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=Ul.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+XA+":"+a+";":[["top",0],["left",0],[WA,a]]}function qA(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=bS(t,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=Ul.transformSupported?","+XA+i:",left"+i+",top"+i),UA+":"+r}(r,n)),o&&i.push("background-color:"+o),xu(["width","color","radius"],(function(e){var n="border-"+e,r=N_(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),xu(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=h&&i.push("padding:"+F_(h).join("px ")+"px"),i.join(";")+";"}function ZA(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){wc(bc,e,i,r,!0)&&wc(t,n,bc[0],bc[1])}(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const QA=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ul.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&(Du(r)?document.querySelector(r):Bu(r)?r:Iu(r)&&r(t.getDom()));ZA(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler;Ec(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=KA+qA(t,!this._firstShow,this._longHide)+YA(r[0],r[1],!0)+"border-color:"+W_(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Du(r)&&"item"===n.get("trigger")&&!VA(n)&&(a=function(t,e,n){if(!Du(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=W_(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=XA+":";vu(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),Du(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Mu(t)||(t=[t]);for(var s=0;s<t.length;s++)Bu(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(ZA(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;xu(YA(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Ul.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Cu(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();function JA(t){return Math.max(0,t)}function tO(t){var e=JA(t.shadowBlur||0),n=JA(t.shadowOffsetX||0),i=JA(t.shadowOffsetY||0);return{left:JA(e-n),right:JA(e+n),top:JA(e-i),bottom:JA(e+i)}}function eO(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const nO=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),eO(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;Ou(t)&&rf(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Nv({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:bS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),xu(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),xu(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=tO(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;eO(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=JA(r.borderWidth||0),a=tO(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Cu(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var iO=new Sv({shape:{x:-1,y:-1,width:2,height:2}}),rO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.prototype.init=function(t,e){if(!Ul.node&&e.getDom()){var n,i=t.getComponent("tooltip"),r=this._renderMode="auto"===(n=i.get("renderMode"))?Ul.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===r?new nO(e):new QA(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!Ul.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?ZS(this,"_updatePosition",50,"fixRate"):QS(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");MA("itemTooltip",this._api,Cu((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!Ul.node&&n.getDom()){var r=aO(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=wf(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=Cf(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=Fv(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=iO;l.x=i.x,l.y=i.y,l.update(),Fv(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=OA(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(aO(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===oO([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===Fv(n).ssrType)return;this._lastDataByCoordSys=null,FC(n,(function(t){return null!=Fv(t).dataIndex?(r=t,!0):null!=Fv(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Cu(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=oO([e.tooltipOption],i),a=this._renderMode,s=[],l=pS("section",{blocks:[],noHeader:!0}),u=[],c=new wS;xu(t,(function(t){xu(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=vA(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=pS("section",{header:o,noHeader:!ju(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),xu(t.seriesDataIndices,(function(l){var p=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,f=p.getDataParams(d);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=cD(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",W_(f.color),a);var g=Rw(p.formatTooltip(d,!0,null)),v=g.frag;if(v){var y=oO([p],i).get("valueFormatter");h.blocks.push(y?fu({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=mS(l,c,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Fv(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=oO([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new wS;g.marker=v.makeTooltipMarker("item",W_(g.color),h);var y=Rw(s.formatTooltip(l,!1,u)),m=d.get("order"),x=d.get("valueFormatter"),_=y.frag,b=_?mS(x?fu({valueFormatter:x},_):_,v,h,m,i.get("useUTC"),d.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Fv(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(Du(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=pu(o)).content=Mc(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=oO(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),p=Math.random()+"",d=new wS;this._showOrMove(c,(function(){var n=pu(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,p,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if(Du(c)){var d=t.ecModel.get("useUTC"),f=Mu(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=__(f.axisValue,h,d)),h=j_(h,n,!0)}else if(Iu(c)){var g=Cu((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Mu(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Mu(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Iu(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),Mu(e))n=jd(e[0],s),i=jd(e[1],l);else if(Ou(e)){var d=e;d.width=u[0],d.height=u[1];var f=q_(d,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(Du(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+u+a>r?e-=u+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=sO(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=sO(h)?u[1]/2:"bottom"===h?u[1]:0),VA(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&xu(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&xu(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&xu(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&xu(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!Ul.node&&e.getDom()&&(QS(this,"_updatePosition"),this._tooltipContent.dispose(),kA("itemTooltip",e))},e.type="tooltip",e}(LS);function oO(t,e,n){var i,r=e.ecModel;n?(i=new Zx(n,r,r),i=new Zx(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Zx&&(a=a.get("tooltip",!0)),Du(a)&&(a={formatter:a}),a&&(i=new Zx(a,i,r)))}return i}function aO(t,e){return t.dispatchAction||Cu(e.dispatchAction,e)}function sO(t){return"center"===t||"middle"===t}const lO=rO;function uO(t){yD(FA),t.registerComponentModel($A),t.registerComponentView(lO),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},tc),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},tc)}var cO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return jl(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(nb),hO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return jl(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=Nu(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Nv({style:Ox(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Nv({style:Ox(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){G_(p,"_"+t.get("target"))})),d&&h.on("click",(function(){G_(d,"_"+t.get("subtarget"))})),Fv(l).eventData=Fv(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=q_(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var x=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new Sv({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(LS);function pO(t){t.registerComponentModel(cO),t.registerComponentView(hO)}function dO(t,e,n){var i=Zl.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}const fO=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||nd,"string"==typeof e?r=dO(e,n,i):Ou(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(Qu(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return jl(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=dO("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new th(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new th(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new th(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var p=t.width*t.height,d=c.width*c.height,f=l.width*l.height-p-d;f<i&&(i=f,r=u)}}if(s&&(o[r].union(t),n=!0),!n)(e=new th(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){if(d=t[c]){var h=d.shouldBePainted(n,i,!0,!0);(f=d.__isRendered&&(1&d.__dirty||!h)?d.getPrevPaintRect():null)&&u(f);var p=h&&(1&d.__dirty||!d.__isRendered)?d.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d,f;h=(d=e[c])&&d.shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered)(f=d.getPrevPaintRect())&&u(f)}do{r=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(r=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;if(Ru(e))a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||eT(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o;else null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=hT(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&xu(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(vc);var gO=1e5,vO=314159,yO=.01;var mO=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=fu({},n||{}),this.dpr=n.devicePixelRatio||nd,this._singleCanvas=r,this.root=t,t.style&&(Qu(t),t.innerHTML=""),this.storage=e;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(r){var s=t,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new fO(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=vO,o.push(vO),this._domRoot=t}else{this._width=iT(t,0,n),this._height=iT(t,1,n);var h=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(gO)),i||(i=n.ctx).save(),_T(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(gO)},t.prototype.paintOne=function(t,e){xT(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;wh((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(vO).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=r[a],h=l.ctx,d=o&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===f&&(f=l.__startIndex);var x=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g)if(Date.now()-v>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),x(w),h.restore()}else h.save(),x(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},p=this,d=0;d<r.length;d++)h(d);return Ul.wxa&&xu(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(_T(a,t,r,o),t.setPrevPaintRect(s))}else _T(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=vO);var n=this._layers[t];return n||((n=new fO("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?du(n,this._layerConfig[t],!0):this._layerConfig[t-yO]&&du(n,this._layerConfig[t-yO],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var i,r,o=null,a=0;for(r=0;r<t.length;r++){var s,l=(s=t[r]).zlevel,u=void 0;i!==l&&(i=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?yO:0),this._needsManuallyCompositing),u.__builtin__||hu("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,xu(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?du(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+yO)du(this._layers[r],n[t],!0)}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(vu(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=iT(r,0,i),e=iT(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(vO).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new fO("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];_T(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const xO=mO;function _O(t){t.registerPainter("canvas",xO)}export{ei as $,we as A,ne as B,Zn as C,ln as D,xn as E,In as F,yD as G,pO as H,Gi as I,uO as J,HA as K,Ci as L,pk as M,Dn as N,_O as O,Oo as P,ki as Q,Ol as R,mn as S,El as T,Fl as U,Ui as V,mo as W,kl as X,zl as Y,Bl as Z,ni as _,Tn as a,bM as a0,Vm as a1,Ki as a2,Pl as a3,Hl as a4,Nl as a5,$l as a6,Rl as a7,Ll as a8,yi as b,ri as c,ci as d,wn as e,Mn as f,oi as g,kn as h,Nn as i,An as j,ui as k,ai as l,hi as m,ii as n,li as o,te as p,ze as q,Mo as r,Qn as s,me as t,Ne as u,ae as v,Xe as w,oe as x,xe as y,Ce as z};