realchart 1.4.12 → 1.4.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ie/index.ie.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
- * RealChart v1.4.12
3
+ * RealChart v1.4.13
4
4
  * Copyright (C) 2023-2026 WooriTech Inc.
5
5
  * All Rights Reserved.
6
6
  */
7
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RealChart=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={},r=function(t){return t&&t.Math===Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o={},s=function(t){try{return!!t()}catch(t){return!0}},a=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=l,c=Function.prototype.call,p=u?c.bind(c):function(){return c.apply(c,arguments)},h={},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,_=d&&!f.call({1:2},1);h.f=_?function(t){var e=d(this,t);return!!e&&e.enumerable}:f;var y,g,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=l,b=Function.prototype,x=b.call,w=m&&b.bind.bind(x,x),S=m?w:function(t){return function(){return x.apply(t,arguments)}},P=S,A=P({}.toString),O=P("".slice),C=function(t){return O(A(t),8,-1)},E=s,V=C,T=Object,k=S("".split),L=E((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"===V(t)?k(t,""):T(t)}:T,N=function(t){return null==t},M=N,j=TypeError,R=function(t){if(M(t))throw new j("Can't call method on "+t);return t},B=L,D=R,I=function(t){return B(D(t))},G="object"==typeof document&&document.all,F=void 0===G&&void 0!==G?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},z=F,$=function(t){return"object"==typeof t?null!==t:z(t)},H=n,W=F,U=function(t,e){return arguments.length<2?(i=H[t],W(i)?i:void 0):H[t]&&H[t][e];var i},Y=S({}.isPrototypeOf),X=n.navigator,q=X&&X.userAgent,Z=q?String(q):"",K=n,J=Z,Q=K.process,tt=K.Deno,et=Q&&Q.versions||tt&&tt.version,it=et&&et.v8;it&&(g=(y=it.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!g&&J&&(!(y=J.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=J.match(/Chrome\/(\d+)/))&&(g=+y[1]);var rt=g,nt=rt,ot=s,st=n.String,at=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!st(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),lt=at&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=U,ct=F,pt=Y,ht=Object,ft=lt?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ct(e)&&pt(e.prototype,ht(t))},dt=String,_t=function(t){try{return dt(t)}catch(t){return"Object"}},yt=F,gt=_t,vt=TypeError,mt=function(t){if(yt(t))return t;throw new vt(gt(t)+" is not a function")},bt=mt,xt=N,wt=function(t,e){var i=t[e];return xt(i)?void 0:bt(i)},St=p,Pt=F,At=$,Ot=TypeError,Ct={exports:{}},Et=n,Vt=Object.defineProperty,Tt=function(t,e){try{Vt(Et,t,{value:e,configurable:!0,writable:!0})}catch(i){Et[t]=e}return e},kt=n,Lt=Tt,Nt="__core-js_shared__",Mt=Ct.exports=kt[Nt]||Lt(Nt,{});(Mt.versions||(Mt.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jt=Ct.exports,Rt=jt,Bt=function(t,e){return Rt[t]||(Rt[t]=e||{})},Dt=R,It=Object,Gt=function(t){return It(Dt(t))},Ft=Gt,zt=S({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return zt(Ft(t),e)},Ht=S,Wt=0,Ut=Math.random(),Yt=Ht(1.1.toString),Xt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Yt(++Wt+Ut,36)},qt=Bt,Zt=$t,Kt=Xt,Jt=at,Qt=lt,te=n.Symbol,ee=qt("wks"),ie=Qt?te.for||te:te&&te.withoutSetter||Kt,re=function(t){return Zt(ee,t)||(ee[t]=Jt&&Zt(te,t)?te[t]:ie("Symbol."+t)),ee[t]},ne=p,oe=$,se=ft,ae=wt,le=function(t,e){var i,r;if("string"===e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;if(Pt(i=t.valueOf)&&!At(r=St(i,t)))return r;if("string"!==e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;throw new Ot("Can't convert object to primitive value")},ue=TypeError,ce=re("toPrimitive"),pe=function(t,e){if(!oe(t)||se(t))return t;var i,r=ae(t,ce);if(r){if(void 0===e&&(e="default"),i=ne(r,t,e),!oe(i)||se(i))return i;throw new ue("Can't convert object to primitive value")}return void 0===e&&(e="number"),le(t,e)},he=pe,fe=ft,de=function(t){var e=he(t,"string");return fe(e)?e:e+""},_e=$,ye=n.document,ge=_e(ye)&&_e(ye.createElement),ve=function(t){return ge?ye.createElement(t):{}},me=ve,be=!a&&!s((function(){return 7!==Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a})),xe=a,we=p,Se=h,Pe=v,Ae=I,Oe=de,Ce=$t,Ee=be,Ve=Object.getOwnPropertyDescriptor;o.f=xe?Ve:function(t,e){if(t=Ae(t),e=Oe(e),Ee)try{return Ve(t,e)}catch(t){}if(Ce(t,e))return Pe(!we(Se.f,t,e),t[e])};var Te={},ke=a&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Le=$,Ne=String,Me=TypeError,je=function(t){if(Le(t))return t;throw new Me(Ne(t)+" is not an object")},Re=a,Be=be,De=ke,Ie=je,Ge=de,Fe=TypeError,ze=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,He="enumerable",We="configurable",Ue="writable";Te.f=Re?De?function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),"function"==typeof t&&"prototype"===e&&"value"in i&&Ue in i&&!i[Ue]){var r=$e(t,e);r&&r[Ue]&&(t[e]=i.value,i={configurable:We in i?i[We]:r[We],enumerable:He in i?i[He]:r[He],writable:!1})}return ze(t,e,i)}:ze:function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),Be)try{return ze(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new Fe("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var Ye=Te,Xe=v,qe=a?function(t,e,i){return Ye.f(t,e,Xe(1,i))}:function(t,e,i){return t[e]=i,t},Ze={exports:{}},Ke=a,Je=$t,Qe=Function.prototype,ti=Ke&&Object.getOwnPropertyDescriptor,ei=Je(Qe,"name"),ii={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Ke||Ke&&ti(Qe,"name").configurable)},ri=F,ni=jt,oi=S(Function.toString);ri(ni.inspectSource)||(ni.inspectSource=function(t){return oi(t)});var si,ai,li,ui=ni.inspectSource,ci=F,pi=n.WeakMap,hi=ci(pi)&&/native code/.test(String(pi)),fi=Xt,di=Bt("keys"),_i=function(t){return di[t]||(di[t]=fi(t))},yi={},gi=hi,vi=n,mi=$,bi=qe,xi=$t,wi=jt,Si=_i,Pi=yi,Ai="Object already initialized",Oi=vi.TypeError,Ci=vi.WeakMap;if(gi||wi.state){var Ei=wi.state||(wi.state=new Ci);Ei.get=Ei.get,Ei.has=Ei.has,Ei.set=Ei.set,si=function(t,e){if(Ei.has(t))throw new Oi(Ai);return e.facade=t,Ei.set(t,e),e},ai=function(t){return Ei.get(t)||{}},li=function(t){return Ei.has(t)}}else{var Vi=Si("state");Pi[Vi]=!0,si=function(t,e){if(xi(t,Vi))throw new Oi(Ai);return e.facade=t,bi(t,Vi,e),e},ai=function(t){return xi(t,Vi)?t[Vi]:{}},li=function(t){return xi(t,Vi)}}var Ti={set:si,get:ai,has:li,enforce:function(t){return li(t)?ai(t):si(t,{})},getterFor:function(t){return function(e){var i;if(!mi(e)||(i=ai(e)).type!==t)throw new Oi("Incompatible receiver, "+t+" required");return i}}},ki=S,Li=s,Ni=F,Mi=$t,ji=a,Ri=ii.CONFIGURABLE,Bi=ui,Di=Ti.enforce,Ii=Ti.get,Gi=String,Fi=Object.defineProperty,zi=ki("".slice),$i=ki("".replace),Hi=ki([].join),Wi=ji&&!Li((function(){return 8!==Fi((function(){}),"length",{value:8}).length})),Ui=String(String).split("String"),Yi=Ze.exports=function(t,e,i){"Symbol("===zi(Gi(e),0,7)&&(e="["+$i(Gi(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!Mi(t,"name")||Ri&&t.name!==e)&&(ji?Fi(t,"name",{value:e,configurable:!0}):t.name=e),Wi&&i&&Mi(i,"arity")&&t.length!==i.arity&&Fi(t,"length",{value:i.arity});try{i&&Mi(i,"constructor")&&i.constructor?ji&&Fi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Di(t);return Mi(r,"source")||(r.source=Hi(Ui,"string"==typeof e?e:"")),t};Function.prototype.toString=Yi((function(){return Ni(this)&&Ii(this).source||Bi(this)}),"toString");var Xi=Ze.exports,qi=F,Zi=Te,Ki=Xi,Ji=Tt,Qi=function(t,e,i,r){r||(r={});var n=r.enumerable,o=void 0!==r.name?r.name:e;if(qi(i)&&Ki(i,o,r),r.global)n?t[e]=i:Ji(e,i);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=i:Zi.f(t,e,{value:i,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},tr={},er=Math.ceil,ir=Math.floor,rr=Math.trunc||function(t){var e=+t;return(e>0?ir:er)(e)},nr=rr,or=function(t){var e=+t;return e!=e||0===e?0:nr(e)},sr=or,ar=Math.max,lr=Math.min,ur=function(t,e){var i=sr(t);return i<0?ar(i+e,0):lr(i,e)},cr=or,pr=Math.min,hr=function(t){var e=cr(t);return e>0?pr(e,9007199254740991):0},fr=hr,dr=function(t){return fr(t.length)},_r=I,yr=ur,gr=dr,vr=function(t){return function(e,i,r){var n=_r(e),o=gr(n);if(0===o)return!t&&-1;var s,a=yr(r,o);if(t&&i!=i){for(;o>a;)if((s=n[a++])!=s)return!0}else for(;o>a;a++)if((t||a in n)&&n[a]===i)return t||a||0;return!t&&-1}},mr={includes:vr(!0),indexOf:vr(!1)},br=$t,xr=I,wr=mr.indexOf,Sr=yi,Pr=S([].push),Ar=function(t,e){var i,r=xr(t),n=0,o=[];for(i in r)!br(Sr,i)&&br(r,i)&&Pr(o,i);for(;e.length>n;)br(r,i=e[n++])&&(~wr(o,i)||Pr(o,i));return o},Or=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cr=Ar,Er=Or.concat("length","prototype");tr.f=Object.getOwnPropertyNames||function(t){return Cr(t,Er)};var Vr={};Vr.f=Object.getOwnPropertySymbols;var Tr=U,kr=tr,Lr=Vr,Nr=je,Mr=S([].concat),jr=Tr("Reflect","ownKeys")||function(t){var e=kr.f(Nr(t)),i=Lr.f;return i?Mr(e,i(t)):e},Rr=$t,Br=jr,Dr=o,Ir=Te,Gr=function(t,e,i){for(var r=Br(e),n=Ir.f,o=Dr.f,s=0;s<r.length;s++){var a=r[s];Rr(t,a)||i&&Rr(i,a)||n(t,a,o(e,a))}},Fr=s,zr=F,$r=/#|\.prototype\./,Hr=function(t,e){var i=Ur[Wr(t)];return i===Xr||i!==Yr&&(zr(e)?Fr(e):!!e)},Wr=Hr.normalize=function(t){return String(t).replace($r,".").toLowerCase()},Ur=Hr.data={},Yr=Hr.NATIVE="N",Xr=Hr.POLYFILL="P",qr=Hr,Zr=n,Kr=o.f,Jr=qe,Qr=Qi,tn=Tt,en=Gr,rn=qr,nn=function(t,e){var i,r,n,o,s,a=t.target,l=t.global,u=t.stat;if(i=l?Zr:u?Zr[a]||tn(a,{}):Zr[a]&&Zr[a].prototype)for(r in e){if(o=e[r],n=t.dontCallGetSet?(s=Kr(i,r))&&s.value:i[r],!rn(l?r:a+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof o==typeof n)continue;en(o,n)}(t.sham||n&&n.sham)&&Jr(o,"sham",!0),Qr(i,r,o,t)}},on=C,sn=Array.isArray||function(t){return"Array"===on(t)},an=TypeError,ln=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},un=a,cn=Te,pn=v,hn=function(t,e,i){un?cn.f(t,e,pn(0,i)):t[e]=i},fn={};fn[re("toStringTag")]="z";var dn="[object z]"===String(fn),_n=dn,yn=F,gn=C,vn=re("toStringTag"),mn=Object,bn="Arguments"===gn(function(){return arguments}()),xn=_n?gn:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=mn(t),vn))?i:bn?gn(e):"Object"===(r=gn(e))&&yn(e.callee)?"Arguments":r},wn=S,Sn=s,Pn=F,An=xn,On=ui,Cn=function(){},En=U("Reflect","construct"),Vn=/^\s*(?:class|function)\b/,Tn=wn(Vn.exec),kn=!Vn.test(Cn),Ln=function(t){if(!Pn(t))return!1;try{return En(Cn,[],t),!0}catch(t){return!1}},Nn=function(t){if(!Pn(t))return!1;switch(An(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kn||!!Tn(Vn,On(t))}catch(t){return!0}};Nn.sham=!0;var Mn=!En||Sn((function(){var t;return Ln(Ln.call)||!Ln(Object)||!Ln((function(){t=!0}))||t}))?Nn:Ln,jn=sn,Rn=Mn,Bn=$,Dn=re("species"),In=Array,Gn=function(t){var e;return jn(t)&&(e=t.constructor,(Rn(e)&&(e===In||jn(e.prototype))||Bn(e)&&null===(e=e[Dn]))&&(e=void 0)),void 0===e?In:e},Fn=function(t,e){return new(Gn(t))(0===e?0:e)},zn=s,$n=rt,Hn=re("species"),Wn=function(t){return $n>=51||!zn((function(){var e=[];return(e.constructor={})[Hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Un=nn,Yn=s,Xn=sn,qn=$,Zn=Gt,Kn=dr,Jn=ln,Qn=hn,to=Fn,eo=Wn,io=rt,ro=re("isConcatSpreadable"),no=io>=51||!Yn((function(){var t=[];return t[ro]=!1,t.concat()[0]!==t})),oo=function(t){if(!qn(t))return!1;var e=t[ro];return void 0!==e?!!e:Xn(t)};Un({target:"Array",proto:!0,arity:1,forced:!no||!eo("concat")},{concat:function(t){var e,i,r,n,o,s=Zn(this),a=to(s,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(oo(o=-1===e?s:arguments[e]))for(n=Kn(o),Jn(l+n),i=0;i<n;i++,l++)i in o&&Qn(a,l,o[i]);else Jn(l+1),Qn(a,l++,o);return a.length=l,a}});var so=xn,ao=dn?{}.toString:function(){return"[object "+so(this)+"]"};dn||Qi(Object.prototype,"toString",ao,{unsafe:!0});var lo=xn,uo=String,co=function(t){if("Symbol"===lo(t))throw new TypeError("Cannot convert a Symbol value to a string");return uo(t)},po={},ho=Ar,fo=Or,_o=Object.keys||function(t){return ho(t,fo)},yo=a,go=ke,vo=Te,mo=je,bo=I,xo=_o;po.f=yo&&!go?Object.defineProperties:function(t,e){mo(t);for(var i,r=bo(e),n=xo(e),o=n.length,s=0;o>s;)vo.f(t,i=n[s++],r[i]);return t};var wo,So=U("document","documentElement"),Po=je,Ao=po,Oo=Or,Co=yi,Eo=So,Vo=ve,To="prototype",ko="script",Lo=_i("IE_PROTO"),No=function(){},Mo=function(t){return"<"+ko+">"+t+"</"+ko+">"},jo=function(t){t.write(Mo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ro=function(){try{wo=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Ro="undefined"!=typeof document?document.domain&&wo?jo(wo):(e=Vo("iframe"),i="java"+ko+":",e.style.display="none",Eo.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(Mo("document.F=Object")),t.close(),t.F):jo(wo);for(var r=Oo.length;r--;)delete Ro[To][Oo[r]];return Ro()};Co[Lo]=!0;var Bo=Object.create||function(t,e){var i;return null!==t?(No[To]=Po(t),i=new No,No[To]=null,i[Lo]=t):i=Ro(),void 0===e?i:Ao.f(i,e)},Do={},Io=S([].slice),Go=C,Fo=I,zo=tr.f,$o=Io,Ho="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Do.f=function(t){return Ho&&"Window"===Go(t)?function(t){try{return zo(t)}catch(t){return $o(Ho)}}(t):zo(Fo(t))};var Wo=Xi,Uo=Te,Yo=function(t,e,i){return i.get&&Wo(i.get,e,{getter:!0}),i.set&&Wo(i.set,e,{setter:!0}),Uo.f(t,e,i)},Xo={},qo=re;Xo.f=qo;var Zo=n,Ko=Zo,Jo=$t,Qo=Xo,ts=Te.f,es=function(t){var e=Ko.Symbol||(Ko.Symbol={});Jo(e,t)||ts(e,t,{value:Qo.f(t)})},is=p,rs=U,ns=re,os=Qi,ss=function(){var t=rs("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,r=ns("toPrimitive");e&&!e[r]&&os(e,r,(function(t){return is(i,this)}),{arity:1})},as=Te.f,ls=$t,us=re("toStringTag"),cs=function(t,e,i){t&&!i&&(t=t.prototype),t&&!ls(t,us)&&as(t,us,{configurable:!0,value:e})},ps=C,hs=S,fs=function(t){if("Function"===ps(t))return hs(t)},ds=mt,_s=l,ys=fs(fs.bind),gs=function(t,e){return ds(t),void 0===e?t:_s?ys(t,e):function(){return t.apply(e,arguments)}},vs=gs,ms=L,bs=Gt,xs=dr,ws=Fn,Ss=S([].push),Ps=function(t){var e=1===t,i=2===t,r=3===t,n=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,p){for(var h,f,d=bs(l),_=ms(d),y=xs(_),g=vs(u,c),v=0,m=p||ws,b=e?m(l,y):i||s?m(l,0):void 0;y>v;v++)if((a||v in _)&&(f=g(h=_[v],v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Ss(b,h)}else switch(t){case 4:return!1;case 7:Ss(b,h)}return o?-1:r||n?n:b}},As={forEach:Ps(0),map:Ps(1),filter:Ps(2),some:Ps(3),every:Ps(4),find:Ps(5),findIndex:Ps(6),filterReject:Ps(7)},Os=nn,Cs=n,Es=p,Vs=S,Ts=a,ks=at,Ls=s,Ns=$t,Ms=Y,js=je,Rs=I,Bs=de,Ds=co,Is=v,Gs=Bo,Fs=_o,zs=tr,$s=Do,Hs=Vr,Ws=o,Us=Te,Ys=po,Xs=h,qs=Qi,Zs=Yo,Ks=Bt,Js=yi,Qs=Xt,ta=re,ea=Xo,ia=es,ra=ss,na=cs,oa=Ti,sa=As.forEach,aa=_i("hidden"),la="Symbol",ua="prototype",ca=oa.set,pa=oa.getterFor(la),ha=Object[ua],fa=Cs.Symbol,da=fa&&fa[ua],_a=Cs.RangeError,ya=Cs.TypeError,ga=Cs.QObject,va=Ws.f,ma=Us.f,ba=$s.f,xa=Xs.f,wa=Vs([].push),Sa=Ks("symbols"),Pa=Ks("op-symbols"),Aa=Ks("wks"),Oa=!ga||!ga[ua]||!ga[ua].findChild,Ca=function(t,e,i){var r=va(ha,e);r&&delete ha[e],ma(t,e,i),r&&t!==ha&&ma(ha,e,r)},Ea=Ts&&Ls((function(){return 7!==Gs(ma({},"a",{get:function(){return ma(this,"a",{value:7}).a}})).a}))?Ca:ma,Va=function(t,e){var i=Sa[t]=Gs(da);return ca(i,{type:la,tag:t,description:e}),Ts||(i.description=e),i},Ta=function(t,e,i){t===ha&&Ta(Pa,e,i),js(t);var r=Bs(e);return js(i),Ns(Sa,r)?(i.enumerable?(Ns(t,aa)&&t[aa][r]&&(t[aa][r]=!1),i=Gs(i,{enumerable:Is(0,!1)})):(Ns(t,aa)||ma(t,aa,Is(1,Gs(null))),t[aa][r]=!0),Ea(t,r,i)):ma(t,r,i)},ka=function(t,e){js(t);var i=Rs(e),r=Fs(i).concat(ja(i));return sa(r,(function(e){Ts&&!Es(La,i,e)||Ta(t,e,i[e])})),t},La=function(t){var e=Bs(t),i=Es(xa,this,e);return!(this===ha&&Ns(Sa,e)&&!Ns(Pa,e))&&(!(i||!Ns(this,e)||!Ns(Sa,e)||Ns(this,aa)&&this[aa][e])||i)},Na=function(t,e){var i=Rs(t),r=Bs(e);if(i!==ha||!Ns(Sa,r)||Ns(Pa,r)){var n=va(i,r);return!n||!Ns(Sa,r)||Ns(i,aa)&&i[aa][r]||(n.enumerable=!0),n}},Ma=function(t){var e=ba(Rs(t)),i=[];return sa(e,(function(t){Ns(Sa,t)||Ns(Js,t)||wa(i,t)})),i},ja=function(t){var e=t===ha,i=ba(e?Pa:Rs(t)),r=[];return sa(i,(function(t){!Ns(Sa,t)||e&&!Ns(ha,t)||wa(r,Sa[t])})),r};ks||(fa=function(){if(Ms(da,this))throw new ya("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ds(arguments[0]):void 0,e=Qs(t),i=function(t){var r=void 0===this?Cs:this;r===ha&&Es(i,Pa,t),Ns(r,aa)&&Ns(r[aa],e)&&(r[aa][e]=!1);var n=Is(1,t);try{Ea(r,e,n)}catch(t){if(!(t instanceof _a))throw t;Ca(r,e,n)}};return Ts&&Oa&&Ea(ha,e,{configurable:!0,set:i}),Va(e,t)},qs(da=fa[ua],"toString",(function(){return pa(this).tag})),qs(fa,"withoutSetter",(function(t){return Va(Qs(t),t)})),Xs.f=La,Us.f=Ta,Ys.f=ka,Ws.f=Na,zs.f=$s.f=Ma,Hs.f=ja,ea.f=function(t){return Va(ta(t),t)},Ts&&(Zs(da,"description",{configurable:!0,get:function(){return pa(this).description}}),qs(ha,"propertyIsEnumerable",La,{unsafe:!0}))),Os({global:!0,constructor:!0,wrap:!0,forced:!ks,sham:!ks},{Symbol:fa}),sa(Fs(Aa),(function(t){ia(t)})),Os({target:la,stat:!0,forced:!ks},{useSetter:function(){Oa=!0},useSimple:function(){Oa=!1}}),Os({target:"Object",stat:!0,forced:!ks,sham:!Ts},{create:function(t,e){return void 0===e?Gs(t):ka(Gs(t),e)},defineProperty:Ta,defineProperties:ka,getOwnPropertyDescriptor:Na}),Os({target:"Object",stat:!0,forced:!ks},{getOwnPropertyNames:Ma}),ra(),na(fa,la),Js[aa]=!0;var Ra=at&&!!Symbol.for&&!!Symbol.keyFor,Ba=nn,Da=U,Ia=$t,Ga=co,Fa=Bt,za=Ra,$a=Fa("string-to-symbol-registry"),Ha=Fa("symbol-to-string-registry");Ba({target:"Symbol",stat:!0,forced:!za},{for:function(t){var e=Ga(t);if(Ia($a,e))return $a[e];var i=Da("Symbol")(e);return $a[e]=i,Ha[i]=e,i}});var Wa=nn,Ua=$t,Ya=ft,Xa=_t,qa=Ra,Za=Bt("symbol-to-string-registry");Wa({target:"Symbol",stat:!0,forced:!qa},{keyFor:function(t){if(!Ya(t))throw new TypeError(Xa(t)+" is not a symbol");if(Ua(Za,t))return Za[t]}});var Ka=l,Ja=Function.prototype,Qa=Ja.apply,tl=Ja.call,el="object"==typeof Reflect&&Reflect.apply||(Ka?tl.bind(Qa):function(){return tl.apply(Qa,arguments)}),il=$,rl=Ti.get,nl=S,ol=$t,sl=SyntaxError,al=parseInt,ll=String.fromCharCode,ul=nl("".charAt),cl=nl("".slice),pl=nl(/./.exec),hl={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},fl=/^[\da-f]{4}$/i,dl=/^[\u0000-\u001F]$/,_l=!s((function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})),yl=nn,gl=U,vl=el,ml=p,bl=S,xl=s,wl=sn,Sl=F,Pl=function(t){if(!il(t))return!1;var e=rl(t);return!!e&&"RawJSON"===e.type},Al=ft,Ol=C,Cl=co,El=Io,Vl=function(t,e){for(var i=!0,r="";e<t.length;){var n=ul(t,e);if("\\"===n){var o=cl(t,e,e+2);if(ol(hl,o))r+=hl[o],e+=2;else{if("\\u"!==o)throw new sl('Unknown escape sequence: "'+o+'"');var s=cl(t,e+=2,e+4);if(!pl(fl,s))throw new sl("Bad Unicode escape at: "+e);r+=ll(al(s,16)),e+=4}}else{if('"'===n){i=!1,e++;break}if(pl(dl,n))throw new sl("Bad control character in string literal at: "+e);r+=n,e++}}if(i)throw new sl("Unterminated string at: "+e);return{value:r,end:e}},Tl=Xt,kl=at,Ll=_l,Nl=String,Ml=gl("JSON","stringify"),jl=bl(/./.exec),Rl=bl("".charAt),Bl=bl("".charCodeAt),Dl=bl("".replace),Il=bl("".slice),Gl=bl([].push),Fl=bl(1.1.toString),zl=/[\uD800-\uDFFF]/g,$l=/^[\uD800-\uDBFF]$/,Hl=/^[\uDC00-\uDFFF]$/,Wl=Tl(),Ul=Wl.length,Yl=!kl||xl((function(){var t=gl("Symbol")("stringify detection");return"[null]"!==Ml([t])||"{}"!==Ml({a:t})||"{}"!==Ml(Object(t))})),Xl=xl((function(){return'"\\udf06\\ud834"'!==Ml("\udf06\ud834")||'"\\udead"'!==Ml("\udead")})),ql=Yl?function(t,e){var i=El(arguments),r=Kl(e);if(Sl(r)||void 0!==t&&!Al(t))return i[1]=function(t,e){if(Sl(r)&&(e=ml(r,this,Nl(t),e)),!Al(e))return e},vl(Ml,null,i)}:Ml,Zl=function(t,e,i){var r=Rl(i,e-1),n=Rl(i,e+1);return jl($l,t)&&!jl(Hl,n)||jl(Hl,t)&&!jl($l,r)?"\\u"+Fl(Bl(t,0),16):t},Kl=function(t){if(Sl(t))return t;if(wl(t)){for(var e=t.length,i=[],r=0;r<e;r++){var n=t[r];"string"==typeof n?Gl(i,n):"number"!=typeof n&&"Number"!==Ol(n)&&"String"!==Ol(n)||Gl(i,Cl(n))}var o=i.length,s=!0;return function(t,e){if(s)return s=!1,e;if(wl(this))return e;for(var r=0;r<o;r++)if(i[r]===t)return e}}};Ml&&yl({target:"JSON",stat:!0,arity:3,forced:Yl||Xl||!Ll},{stringify:function(t,e,i){var r=Kl(e),n=[],o=ql(t,(function(t,e){var i=Sl(r)?ml(r,this,Nl(t),e):e;return!Ll&&Pl(i)?Wl+(Gl(n,i.rawJSON)-1):i}),i);if("string"!=typeof o)return o;if(Xl&&(o=Dl(o,zl,Zl)),Ll)return o;for(var s="",a=o.length,l=0;l<a;l++){var u=Rl(o,l);if('"'===u){var c=Vl(o,++l).end-1,p=Il(o,l,c);s+=Il(p,0,Ul)===Wl?n[Il(p,Ul)]:'"'+p+'"',l=c}else s+=u}return s}});var Jl=Vr,Ql=Gt;nn({target:"Object",stat:!0,forced:!at||s((function(){Jl.f(1)}))},{getOwnPropertySymbols:function(t){var e=Jl.f;return e?e(Ql(t)):[]}});var tu=n,eu=es,iu=Te.f,ru=o.f,nu=tu.Symbol;if(eu("asyncDispose"),nu){var ou=ru(nu,"asyncDispose");ou.enumerable&&ou.configurable&&ou.writable&&iu(nu,"asyncDispose",{value:ou.value,enumerable:!1,configurable:!1,writable:!1})}es("asyncIterator");var su=nn,au=a,lu=S,uu=$t,cu=F,pu=Y,hu=co,fu=Yo,du=Gr,_u=n.Symbol,yu=_u&&_u.prototype;if(au&&cu(_u)&&(!("description"in yu)||void 0!==_u().description)){var gu={},vu=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:hu(arguments[0]),e=pu(yu,this)?new _u(t):void 0===t?_u():_u(t);return""===t&&(gu[e]=!0),e};du(vu,_u),vu.prototype=yu,yu.constructor=vu;var mu="Symbol(description detection)"===String(_u("description detection")),bu=lu(yu.valueOf),xu=lu(yu.toString),wu=/^Symbol\((.*)\)[^)]+$/,Su=lu("".replace),Pu=lu("".slice);fu(yu,"description",{configurable:!0,get:function(){var t=bu(this);if(uu(gu,t))return"";var e=xu(t),i=mu?Pu(e,7,-1):Su(e,wu,"$1");return""===i?void 0:i}}),su({global:!0,constructor:!0,forced:!0},{Symbol:vu})}var Au=n,Ou=es,Cu=Te.f,Eu=o.f,Vu=Au.Symbol;if(Ou("dispose"),Vu){var Tu=Eu(Vu,"dispose");Tu.enumerable&&Tu.configurable&&Tu.writable&&Cu(Vu,"dispose",{value:Tu.value,enumerable:!1,configurable:!1,writable:!1})}es("hasInstance"),es("isConcatSpreadable"),es("iterator"),es("match"),es("matchAll"),es("replace"),es("search"),es("species"),es("split");var ku=ss;es("toPrimitive"),ku();var Lu=U,Nu=cs;es("toStringTag"),Nu(Lu("Symbol"),"Symbol"),es("unscopables"),cs(n.JSON,"JSON",!0),cs(Math,"Math",!0);var Mu=n,ju=cs;nn({global:!0},{Reflect:{}}),ju(Mu.Reflect,"Reflect",!0),Zo.Symbol;var Ru=re,Bu=Bo,Du=Te.f,Iu=Ru("unscopables"),Gu=Array.prototype;void 0===Gu[Iu]&&Du(Gu,Iu,{configurable:!0,value:Bu(null)});var Fu,zu,$u,Hu=function(t){Gu[Iu][t]=!0},Wu={},Uu=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Yu=$t,Xu=F,qu=Gt,Zu=Uu,Ku=_i("IE_PROTO"),Ju=Object,Qu=Ju.prototype,tc=Zu?Ju.getPrototypeOf:function(t){var e=qu(t);if(Yu(e,Ku))return e[Ku];var i=e.constructor;return Xu(i)&&e instanceof i?i.prototype:e instanceof Ju?Qu:null},ec=s,ic=F,rc=$,nc=tc,oc=Qi,sc=re("iterator"),ac=!1;[].keys&&("next"in($u=[].keys())?(zu=nc(nc($u)))!==Object.prototype&&(Fu=zu):ac=!0);var lc=!rc(Fu)||ec((function(){var t={};return Fu[sc].call(t)!==t}));lc&&(Fu={}),ic(Fu[sc])||oc(Fu,sc,(function(){return this}));var uc={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:ac},cc=uc.IteratorPrototype,pc=Bo,hc=v,fc=cs,dc=Wu,_c=function(){return this},yc=function(t,e,i,r){var n=e+" Iterator";return t.prototype=pc(cc,{next:hc(+!r,i)}),fc(t,n,!1),dc[n]=_c,t},gc=S,vc=mt,mc=$,bc=function(t){return mc(t)||null===t},xc=bc,wc=String,Sc=TypeError,Pc=function(t,e,i){try{return gc(vc(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},Ac=$,Oc=R,Cc=function(t){if(xc(t))return t;throw new Sc("Can't set "+wc(t)+" as a prototype")},Ec=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Pc(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,r){return Oc(i),Cc(r),Ac(i)?(e?t(i,r):i.__proto__=r,i):i}}():void 0),Vc=nn,Tc=p,kc=F,Lc=yc,Nc=tc,Mc=Ec,jc=cs,Rc=qe,Bc=Qi,Dc=Wu,Ic=ii.PROPER,Gc=ii.CONFIGURABLE,Fc=uc.IteratorPrototype,zc=uc.BUGGY_SAFARI_ITERATORS,$c=re("iterator"),Hc="keys",Wc="values",Uc="entries",Yc=function(){return this},Xc=function(t,e,i,r,n,o,s){Lc(i,e,r);var a,l,u,c=function(t){if(t===n&&_)return _;if(!zc&&t&&t in f)return f[t];switch(t){case Hc:case Wc:case Uc:return function(){return new i(this,t)}}return function(){return new i(this)}},p=e+" Iterator",h=!1,f=t.prototype,d=f[$c]||f["@@iterator"]||n&&f[n],_=!zc&&d||c(n),y="Array"===e&&f.entries||d;if(y&&(a=Nc(y.call(new t)))!==Object.prototype&&a.next&&(Nc(a)!==Fc&&(Mc?Mc(a,Fc):kc(a[$c])||Bc(a,$c,Yc)),jc(a,p,!0)),Ic&&n===Wc&&d&&d.name!==Wc&&(Gc?Rc(f,"name",Wc):(h=!0,_=function(){return Tc(d,this)})),n)if(l={values:c(Wc),keys:o?_:c(Hc),entries:c(Uc)},s)for(u in l)(zc||h||!(u in f))&&Bc(f,u,l[u]);else Vc({target:e,proto:!0,forced:zc||h},l);return f[$c]!==_&&Bc(f,$c,_,{name:n}),Dc[e]=_,l},qc=function(t,e){return{value:t,done:e}},Zc=I,Kc=Hu,Jc=Wu,Qc=Ti,tp=Te.f,ep=Xc,ip=qc,rp=a,np="Array Iterator",op=Qc.set,sp=Qc.getterFor(np);ep(Array,"Array",(function(t,e){op(this,{type:np,target:Zc(t),index:0,kind:e})}),(function(){var t=sp(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,ip(void 0,!0);switch(t.kind){case"keys":return ip(i,!1);case"values":return ip(e[i],!1)}return ip([i,e[i]],!1)}),"values");var ap=Jc.Arguments=Jc.Array;if(Kc("keys"),Kc("values"),Kc("entries"),rp&&"values"!==ap.name)try{tp(ap,"name",{value:"values"})}catch(t){}var lp={exports:{}},up=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),cp=s,pp=$,hp=C,fp=up,dp=Object.isExtensible,_p=cp((function(){dp(1)}))||fp?function(t){return!!pp(t)&&((!fp||"ArrayBuffer"!==hp(t))&&(!dp||dp(t)))}:dp,yp=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),gp=nn,vp=S,mp=yi,bp=$,xp=$t,wp=Te.f,Sp=tr,Pp=Do,Ap=_p,Op=yp,Cp=!1,Ep=Xt("meta"),Vp=0,Tp=function(t){wp(t,Ep,{value:{objectID:"O"+Vp++,weakData:{}}})},kp=lp.exports={enable:function(){kp.enable=function(){},Cp=!0;var t=Sp.f,e=vp([].splice),i={};i[Ep]=1,t(i).length&&(Sp.f=function(i){for(var r=t(i),n=0,o=r.length;n<o;n++)if(r[n]===Ep){e(r,n,1);break}return r},gp({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Pp.f}))},fastKey:function(t,e){if(!bp(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!xp(t,Ep)){if(!Ap(t))return"F";if(!e)return"E";Tp(t)}return t[Ep].objectID},getWeakData:function(t,e){if(!xp(t,Ep)){if(!Ap(t))return!0;if(!e)return!1;Tp(t)}return t[Ep].weakData},onFreeze:function(t){return Op&&Cp&&Ap(t)&&!xp(t,Ep)&&Tp(t),t}};mp[Ep]=!0;var Lp=lp.exports,Np=Wu,Mp=re("iterator"),jp=Array.prototype,Rp=function(t){return void 0!==t&&(Np.Array===t||jp[Mp]===t)},Bp=xn,Dp=wt,Ip=N,Gp=Wu,Fp=re("iterator"),zp=function(t){if(!Ip(t))return Dp(t,Fp)||Dp(t,"@@iterator")||Gp[Bp(t)]},$p=p,Hp=mt,Wp=je,Up=_t,Yp=zp,Xp=TypeError,qp=function(t,e){var i=arguments.length<2?Yp(t):e;if(Hp(i))return Wp($p(i,t));throw new Xp(Up(t)+" is not iterable")},Zp=p,Kp=je,Jp=wt,Qp=function(t,e,i){var r,n;Kp(t);try{if(!(r=Jp(t,"return"))){if("throw"===e)throw i;return i}r=Zp(r,t)}catch(t){n=!0,r=t}if("throw"===e)throw i;if(n)throw r;return Kp(r),i},th=gs,eh=p,ih=je,rh=_t,nh=Rp,oh=dr,sh=Y,ah=qp,lh=zp,uh=Qp,ch=TypeError,ph=function(t,e){this.stopped=t,this.result=e},hh=ph.prototype,fh=function(t,e,i){var r,n,o,s,a,l,u,c=i&&i.that,p=!(!i||!i.AS_ENTRIES),h=!(!i||!i.IS_RECORD),f=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),_=th(e,c),y=function(t){return r&&uh(r,"normal"),new ph(!0,t)},g=function(t){return p?(ih(t),d?_(t[0],t[1],y):_(t[0],t[1])):d?_(t,y):_(t)};if(h)r=t.iterator;else if(f)r=t;else{if(!(n=lh(t)))throw new ch(rh(t)+" is not iterable");if(nh(n)){for(o=0,s=oh(t);s>o;o++)if((a=g(t[o]))&&sh(hh,a))return a;return new ph(!1)}r=ah(t,n)}for(l=h?t.next:r.next;!(u=eh(l,r)).done;){try{a=g(u.value)}catch(t){uh(r,"throw",t)}if("object"==typeof a&&a&&sh(hh,a))return a}return new ph(!1)},dh=Y,_h=TypeError,yh=function(t,e){if(dh(e,t))return t;throw new _h("Incorrect invocation")},gh=re("iterator"),vh=!1;try{var mh=0,bh={next:function(){return{done:!!mh++}},return:function(){vh=!0}};bh[gh]=function(){return this},Array.from(bh,(function(){throw 2}))}catch(t){}var xh=function(t,e){try{if(!e&&!vh)return!1}catch(t){return!1}var i=!1;try{var r={};r[gh]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i},wh=F,Sh=$,Ph=Ec,Ah=function(t,e,i){var r,n;return Ph&&wh(r=e.constructor)&&r!==i&&Sh(n=r.prototype)&&n!==i.prototype&&Ph(t,n),t},Oh=nn,Ch=n,Eh=S,Vh=qr,Th=Qi,kh=Lp,Lh=fh,Nh=yh,Mh=F,jh=N,Rh=$,Bh=s,Dh=xh,Ih=cs,Gh=Ah,Fh=Qi,zh=function(t,e,i){for(var r in e)Fh(t,r,e[r],i);return t},$h=U,Hh=Yo,Wh=a,Uh=re("species"),Yh=function(t){var e=$h(t);Wh&&e&&!e[Uh]&&Hh(e,Uh,{configurable:!0,get:function(){return this}})},Xh=Bo,qh=Yo,Zh=zh,Kh=gs,Jh=yh,Qh=N,tf=fh,ef=Xc,rf=qc,nf=Yh,of=a,sf=Lp.fastKey,af=Ti.set,lf=Ti.getterFor,uf={getConstructor:function(t,e,i,r){var n=t((function(t,n){Jh(t,o),af(t,{type:e,index:Xh(null),first:null,last:null,size:0}),of||(t.size=0),Qh(n)||tf(n,t[r],{that:t,AS_ENTRIES:i})})),o=n.prototype,s=lf(e),a=function(t,e,i){var r,n,o=s(t),a=l(t,e);return a?a.value=i:(o.last=a={index:n=sf(e,!0),key:e,value:i,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),of?o.size++:t.size++,"F"!==n&&(o.index[n]=a)),t},l=function(t,e){var i,r=s(t),n=sf(e);if("F"!==n)return r.index[n];for(i=r.first;i;i=i.next)if(i.key===e)return i};return Zh(o,{clear:function(){for(var t=s(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Xh(null),of?t.size=0:this.size=0},delete:function(t){var e=this,i=s(e),r=l(e,t);if(r){var n=r.next,o=r.previous;delete i.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),i.first===r&&(i.first=n),i.last===r&&(i.last=o),of?i.size--:e.size--}return!!r},forEach:function(t){for(var e,i=s(this),r=Kh(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),Zh(o,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),of&&qh(o,"size",{configurable:!0,get:function(){return s(this).size}}),n},setStrong:function(t,e,i){var r=e+" Iterator",n=lf(e),o=lf(r);ef(t,e,(function(t,e){af(this,{type:r,target:t,state:n(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?rf("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=null,rf(void 0,!0))}),i?"entries":"values",!i,!0),nf(e)}};(function(t,e,i){var r=-1!==t.indexOf("Map"),n=-1!==t.indexOf("Weak"),o=r?"set":"add",s=Ch[t],a=s&&s.prototype,l=s,u={},c=function(t){var e=Eh(a[t]);Th(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return n&&!Rh(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:function(t,i){return e(this,0===t?0:t,i),this})};if(Vh(t,!Mh(s)||!(n||a.forEach&&!Bh((function(){(new s).entries().next()})))))l=i.getConstructor(e,t,r,o),kh.enable();else if(Vh(t,!0)){var p=new l,h=p[o](n?{}:-0,1)!==p,f=Bh((function(){p.has(1)})),d=Dh((function(t){new s(t)})),_=!n&&Bh((function(){for(var t=new s,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){Nh(t,a);var i=Gh(new s,t,l);return jh(e)||Lh(e,i[o],{that:i,AS_ENTRIES:r}),i}))).prototype=a,a.constructor=l),(f||_)&&(c("delete"),c("has"),r&&c("get")),(_||h)&&c(o),n&&a.clear&&delete a.clear}u[t]=l,Oh({global:!0,constructor:!0,forced:l!==s},u),Ih(l,t),n||i.setStrong(l,t,r)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),uf);var cf=S,pf=Map.prototype,hf={Map:Map,set:cf(pf.set),get:cf(pf.get),has:cf(pf.has),remove:cf(pf.delete),proto:pf},ff=nn,df=mt,_f=R,yf=fh,gf=s,vf=hf.Map,mf=hf.has,bf=hf.get,xf=hf.set,wf=S([].push);ff({target:"Map",stat:!0,forced:gf((function(){return 1!==vf.groupBy("ab",(function(t){return t})).get("a").length}))},{groupBy:function(t,e){_f(t),df(e);var i=new vf,r=0;return yf(t,(function(t){var n=e(t,r++);mf(i,n)?wf(bf(i,n),t):xf(i,n,[t])})),i}});var Sf=S,Pf=or,Af=co,Of=R,Cf=Sf("".charAt),Ef=Sf("".charCodeAt),Vf=Sf("".slice),Tf=function(t){return function(e,i){var r,n,o=Af(Of(e)),s=Pf(i),a=o.length;return s<0||s>=a?t?"":void 0:(r=Ef(o,s))<55296||r>56319||s+1===a||(n=Ef(o,s+1))<56320||n>57343?t?Cf(o,s):r:t?Vf(o,s,s+2):n-56320+(r-55296<<10)+65536}},kf={codeAt:Tf(!1),charAt:Tf(!0)},Lf=kf.charAt,Nf=co,Mf=Ti,jf=Xc,Rf=qc,Bf="String Iterator",Df=Mf.set,If=Mf.getterFor(Bf);jf(String,"String",(function(t){Df(this,{type:Bf,string:Nf(t),index:0})}),(function(){var t,e=If(this),i=e.string,r=e.index;return r>=i.length?Rf(void 0,!0):(t=Lf(i,r),e.index+=t.length,Rf(t,!1))})),Zo.Map;var Gf=je,Ff=Qp,zf=gs,$f=p,Hf=Gt,Wf=function(t,e,i,r){try{return r?e(Gf(i)[0],i[1]):e(i)}catch(e){Ff(t,"throw",e)}},Uf=Rp,Yf=Mn,Xf=dr,qf=hn,Zf=qp,Kf=zp,Jf=Array,Qf=function(t){var e=Hf(t),i=Yf(this),r=arguments.length,n=r>1?arguments[1]:void 0,o=void 0!==n;o&&(n=zf(n,r>2?arguments[2]:void 0));var s,a,l,u,c,p,h=Kf(e),f=0;if(!h||this===Jf&&Uf(h))for(s=Xf(e),a=i?new this(s):Jf(s);s>f;f++)p=o?n(e[f],f):e[f],qf(a,f,p);else for(a=i?new this:[],c=(u=Zf(e,h)).next;!(l=$f(c,u)).done;f++)p=o?Wf(u,n,[l.value,f],!0):l.value,qf(a,f,p);return a.length=f,a};nn({target:"Array",stat:!0,forced:!xh((function(t){Array.from(t)}))},{from:Qf}),nn({target:"Array",stat:!0},{isArray:sn});var td=Mn,ed=hn,id=Array;nn({target:"Array",stat:!0,forced:s((function(){function t(){}return!(id.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,i=new(td(this)?this:id)(e);e>t;)ed(i,t,arguments[t++]);return i.length=e,i}});var rd=Gt,nd=dr,od=or,sd=Hu;nn({target:"Array",proto:!0},{at:function(t){var e=rd(this),i=nd(e),r=od(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:e[n]}}),sd("at");var ad=_t,ld=TypeError,ud=function(t,e){if(!delete t[e])throw new ld("Cannot delete property "+ad(e)+" of "+ad(t))},cd=Gt,pd=ur,hd=dr,fd=ud,dd=Math.min,_d=[].copyWithin||function(t,e){var i=cd(this),r=hd(i),n=pd(t,r),o=pd(e,r),s=arguments.length>2?arguments[2]:void 0,a=dd((void 0===s?r:pd(s,r))-o,r-n),l=1;for(o<n&&n<o+a&&(l=-1,o+=a-1,n+=a-1);a-- >0;)o in i?i[n]=i[o]:fd(i,n),n+=l,o+=l;return i},yd=Hu;nn({target:"Array",proto:!0},{copyWithin:_d}),yd("copyWithin");var gd=s,vd=function(t,e){var i=[][t];return!!i&&gd((function(){i.call(null,e||function(){return 1},1)}))},md=As.every;nn({target:"Array",proto:!0,forced:!vd("every")},{every:function(t){return md(this,t,arguments.length>1?arguments[1]:void 0)}});var bd=Gt,xd=ur,wd=dr,Sd=function(t){for(var e=bd(this),i=wd(e),r=arguments.length,n=xd(r>1?arguments[1]:void 0,i),o=r>2?arguments[2]:void 0,s=void 0===o?i:xd(o,i);s>n;)e[n++]=t;return e},Pd=Hu;nn({target:"Array",proto:!0},{fill:Sd}),Pd("fill");var Ad=As.filter;nn({target:"Array",proto:!0,forced:!Wn("filter")},{filter:function(t){return Ad(this,t,arguments.length>1?arguments[1]:void 0)}});var Od=nn,Cd=As.find,Ed=Hu,Vd="find",Td=!0;Vd in[]&&Array(1)[Vd]((function(){Td=!1})),Od({target:"Array",proto:!0,forced:Td},{find:function(t){return Cd(this,t,arguments.length>1?arguments[1]:void 0)}}),Ed(Vd);var kd=nn,Ld=As.findIndex,Nd=Hu,Md="findIndex",jd=!0;Md in[]&&Array(1)[Md]((function(){jd=!1})),kd({target:"Array",proto:!0,forced:jd},{findIndex:function(t){return Ld(this,t,arguments.length>1?arguments[1]:void 0)}}),Nd(Md);var Rd=gs,Bd=L,Dd=Gt,Id=dr,Gd=function(t){var e=1===t;return function(i,r,n){for(var o,s=Dd(i),a=Bd(s),l=Id(a),u=Rd(r,n);l-- >0;)if(u(o=a[l],l,s))switch(t){case 0:return o;case 1:return l}return e?-1:void 0}},Fd={findLast:Gd(0),findLastIndex:Gd(1)},zd=Fd.findLast,$d=Hu;nn({target:"Array",proto:!0},{findLast:function(t){return zd(this,t,arguments.length>1?arguments[1]:void 0)}}),$d("findLast");var Hd=Fd.findLastIndex,Wd=Hu;nn({target:"Array",proto:!0},{findLastIndex:function(t){return Hd(this,t,arguments.length>1?arguments[1]:void 0)}}),Wd("findLastIndex");var Ud=sn,Yd=dr,Xd=ln,qd=gs,Zd=function(t,e,i,r,n,o,s,a){for(var l,u,c=n,p=0,h=!!s&&qd(s,a);p<r;)p in i&&(l=h?h(i[p],p,e):i[p],o>0&&Ud(l)?(u=Yd(l),c=Zd(t,e,l,u,c,o-1)-1):(Xd(c+1),t[c]=l),c++),p++;return c},Kd=Zd,Jd=Kd,Qd=Gt,t_=dr,e_=or,i_=Fn;nn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Qd(this),i=t_(e),r=i_(e,0);return r.length=Jd(r,e,e,i,0,void 0===t?1:e_(t)),r}});var r_=Kd,n_=mt,o_=Gt,s_=dr,a_=Fn;nn({target:"Array",proto:!0},{flatMap:function(t){var e,i=o_(this),r=s_(i);return n_(t),(e=a_(i,0)).length=r_(e,i,i,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var l_=As.forEach,u_=vd("forEach")?[].forEach:function(t){return l_(this,t,arguments.length>1?arguments[1]:void 0)};nn({target:"Array",proto:!0,forced:[].forEach!==u_},{forEach:u_});var c_=mr.includes,p_=Hu;nn({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return c_(this,t,arguments.length>1?arguments[1]:void 0)}}),p_("includes");var h_=nn,f_=mr.indexOf,d_=vd,__=fs([].indexOf),y_=!!__&&1/__([1],1,-0)<0;h_({target:"Array",proto:!0,forced:y_||!d_("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return y_?__(this,t,e)||0:f_(this,t,e)}});var g_,v_,m_=n,b_=jt,x_=F,w_=tc,S_=Qi,P_="USE_FUNCTION_CONSTRUCTOR",A_=re("asyncIterator"),O_=m_.AsyncIterator,C_=b_.AsyncIteratorPrototype;if(C_)g_=C_;else if(x_(O_))g_=O_.prototype;else if(b_[P_]||m_[P_])try{v_=w_(w_(w_(Function("return async function*(){}()")()))),w_(v_)===Object.prototype&&(g_=v_)}catch(t){}g_||(g_={}),x_(g_[A_])||S_(g_,A_,(function(){return this}));var E_=p,V_=je,T_=Bo,k_=wt,L_=zh,N_=Ti,M_=Qp,j_=g_,R_=qc,B_=U("Promise"),D_="AsyncFromSyncIterator",I_=N_.set,G_=N_.getterFor(D_),F_=function(t,e,i,r,n){var o=t.done;B_.resolve(t.value).then((function(t){e(R_(t,o))}),(function(t){if(!o&&n)try{M_(r,"throw",t)}catch(e){t=e}i(t)}))},z_=function(t){t.type=D_,I_(this,t)};z_.prototype=L_(T_(j_),{next:function(){var t=G_(this);return new B_((function(e,i){var r=V_(E_(t.next,t.iterator));F_(r,e,i,t.iterator,!0)}))},return:function(){var t=G_(this).iterator;return new B_((function(e,i){var r=k_(t,"return");if(void 0===r)return e(R_(void 0,!0));var n=V_(E_(r,t));F_(n,e,i,t)}))}});var $_=z_,H_=function(t){return{iterator:t,next:t.next,done:!1}},W_=p,U_=$_,Y_=je,X_=qp,q_=H_,Z_=wt,K_=re("asyncIterator"),J_=n,Q_=function(t,e){var i=J_[t],r=i&&i.prototype;return r&&r[e]},ty=p,ey=U,iy=wt,ry=p,ny=mt,oy=je,sy=$,ay=ln,ly=U,uy=H_,cy=function(t,e,i,r){try{var n=iy(t,"return");if(n)return ey("Promise").resolve(ty(n,t)).then((function(){e(i)}),(function(t){r(t)}))}catch(t){return r(t)}e(i)},py=function(t){var e=0===t,i=1===t,r=2===t,n=3===t;return function(t,o,s){oy(t);var a=void 0!==o;!a&&e||ny(o);var l=uy(t),u=ly("Promise"),c=l.iterator,p=l.next,h=0;return new u((function(t,l){var f=function(t){cy(c,l,t,l)},d=function(){try{if(a)try{ay(h)}catch(t){f(t)}u.resolve(oy(ry(p,c))).then((function(p){try{if(oy(p).done)e?(s.length=h,t(s)):t(!n&&(r||void 0));else{var _=p.value;try{if(a){var y=o(_,h),g=function(o){if(i)d();else if(r)o?d():cy(c,t,!1,l);else if(e)try{s[h++]=o,d()}catch(t){f(t)}else o?cy(c,t,n||_,l):d()};sy(y)?u.resolve(y).then(g,f):g(y)}else s[h++]=_,d()}catch(t){f(t)}}}catch(t){l(t)}}),l)}catch(t){l(t)}};d()}))}},hy={toArray:py(0),forEach:py(1),every:py(2),some:py(3),find:py(4)},fy=gs,dy=S,_y=Gt,yy=Mn,gy=function(t,e){var i=arguments.length<2?Z_(t,K_):e;return i?Y_(W_(i,t)):new U_(q_(X_(t)))},vy=qp,my=H_,by=zp,xy=wt,wy=U,Sy=Q_,Py=$_,Ay=hy.toArray,Oy=re("asyncIterator"),Cy=dy(Sy("Array","values")),Ey=dy(Cy([]).next),Vy=function(){return new Ty(this)},Ty=function(t){this.iterator=Cy(t)};Ty.prototype.next=function(){return Ey(this.iterator)};var ky=nn,Ly=function(t){var e=this,i=arguments.length,r=i>1?arguments[1]:void 0,n=i>2?arguments[2]:void 0;return new(wy("Promise"))((function(i){var o=_y(t);void 0!==r&&(r=fy(r,n));var s=xy(o,Oy),a=s?void 0:by(o)||Vy,l=yy(e)?new e:[],u=s?gy(o,s):new Py(my(vy(o,a)));i(Ay(u,r,l))}))},Ny=s,My=Array.fromAsync,jy=!My||Ny((function(){var t=0;return My.call((function(){return t++,[]}),{length:0}),1!==t}));ky({target:"Array",stat:!0,forced:jy},{fromAsync:Ly});var Ry=nn,By=L,Dy=I,Iy=vd,Gy=S([].join);Ry({target:"Array",proto:!0,forced:By!==Object||!Iy("join",",")},{join:function(t){return Gy(Dy(this),void 0===t?",":t)}});var Fy=el,zy=I,$y=or,Hy=dr,Wy=vd,Uy=Math.min,Yy=[].lastIndexOf,Xy=!!Yy&&1/[1].lastIndexOf(1,-0)<0,qy=Wy("lastIndexOf"),Zy=Xy||!qy?function(t){if(Xy)return Fy(Yy,this,arguments)||0;var e=zy(this),i=Hy(e);if(0===i)return-1;var r=i-1;for(arguments.length>1&&(r=Uy(r,$y(arguments[1]))),r<0&&(r=i+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:Yy;nn({target:"Array",proto:!0,forced:Zy!==[].lastIndexOf},{lastIndexOf:Zy});var Ky=As.map;nn({target:"Array",proto:!0,forced:!Wn("map")},{map:function(t){return Ky(this,t,arguments.length>1?arguments[1]:void 0)}});var Jy=a,Qy=sn,tg=TypeError,eg=Object.getOwnPropertyDescriptor,ig=Jy&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Qy(t)&&!eg(t,"length").writable)throw new tg("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rg=Gt,ng=dr,og=ig,sg=ln;nn({target:"Array",proto:!0,arity:1,forced:s((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=rg(this),i=ng(e),r=arguments.length;sg(i+r);for(var n=0;n<r;n++)e[i]=arguments[n],i++;return og(e,i),i}});var ag=mt,lg=Gt,ug=L,cg=dr,pg=TypeError,hg="Reduce of empty array with no initial value",fg=function(t){return function(e,i,r,n){var o=lg(e),s=ug(o),a=cg(o);if(ag(i),0===a&&r<2)throw new pg(hg);var l=t?a-1:0,u=t?-1:1;if(r<2)for(;;){if(l in s){n=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new pg(hg)}for(;t?l>=0:a>l;l+=u)l in s&&(n=i(n,s[l],l,o));return n}},dg={left:fg(!1),right:fg(!0)},_g=n,yg=Z,gg=C,vg=function(t){return yg.slice(0,t.length)===t},mg=vg("Bun/")?"BUN":vg("Cloudflare-Workers")?"CLOUDFLARE":vg("Deno/")?"DENO":vg("Node.js/")?"NODE":_g.Bun&&"string"==typeof Bun.version?"BUN":_g.Deno&&"object"==typeof Deno.version?"DENO":"process"===gg(_g.process)?"NODE":_g.window&&_g.document?"BROWSER":"REST",bg="NODE"===mg,xg=dg.left;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduce")},{reduce:function(t){var e=arguments.length;return xg(this,t,e,e>1?arguments[1]:void 0)}});var wg=dg.right;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduceRight")},{reduceRight:function(t){return wg(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Sg=nn,Pg=sn,Ag=S([].reverse),Og=[1,2];Sg({target:"Array",proto:!0,forced:String(Og)===String(Og.reverse())},{reverse:function(){return Pg(this)&&(this.length=this.length),Ag(this)}});var Cg=nn,Eg=sn,Vg=Mn,Tg=$,kg=ur,Lg=dr,Ng=I,Mg=hn,jg=re,Rg=Io,Bg=Wn("slice"),Dg=jg("species"),Ig=Array,Gg=Math.max;Cg({target:"Array",proto:!0,forced:!Bg},{slice:function(t,e){var i,r,n,o=Ng(this),s=Lg(o),a=kg(t,s),l=kg(void 0===e?s:e,s);if(Eg(o)&&(i=o.constructor,(Vg(i)&&(i===Ig||Eg(i.prototype))||Tg(i)&&null===(i=i[Dg]))&&(i=void 0),i===Ig||void 0===i))return Rg(o,a,l);for(r=new(void 0===i?Ig:i)(Gg(l-a,0)),n=0;a<l;a++,n++)a in o&&Mg(r,n,o[a]);return r.length=n,r}});var Fg=As.some;nn({target:"Array",proto:!0,forced:!vd("some")},{some:function(t){return Fg(this,t,arguments.length>1?arguments[1]:void 0)}});var zg=Io,$g=Math.floor,Hg=function(t,e){var i=t.length;if(i<8)for(var r,n,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}else for(var s=$g(i/2),a=Hg(zg(t,0,s),e),l=Hg(zg(t,s),e),u=a.length,c=l.length,p=0,h=0;p<u||h<c;)t[p+h]=p<u&&h<c?e(a[p],l[h])<=0?a[p++]:l[h++]:p<u?a[p++]:l[h++];return t},Wg=Hg,Ug=Z.match(/firefox\/(\d+)/i),Yg=!!Ug&&+Ug[1],Xg=/MSIE|Trident/.test(Z),qg=Z.match(/AppleWebKit\/(\d+)\./),Zg=!!qg&&+qg[1],Kg=nn,Jg=S,Qg=mt,tv=Gt,ev=dr,iv=ud,rv=co,nv=s,ov=Wg,sv=vd,av=Yg,lv=Xg,uv=rt,cv=Zg,pv=[],hv=Jg(pv.sort),fv=Jg(pv.push),dv=nv((function(){pv.sort(void 0)})),_v=nv((function(){pv.sort(null)})),yv=sv("sort"),gv=!nv((function(){if(uv)return uv<70;if(!(av&&av>3)){if(lv)return!0;if(cv)return cv<603;var t,e,i,r,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(r=0;r<47;r++)pv.push({k:e+r,v:i})}for(pv.sort((function(t,e){return e.v-t.v})),r=0;r<pv.length;r++)e=pv[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));Kg({target:"Array",proto:!0,forced:dv||!_v||!yv||!gv},{sort:function(t){void 0!==t&&Qg(t);var e=tv(this);if(gv)return void 0===t?hv(e):hv(e,t);var i,r,n=[],o=ev(e);for(r=0;r<o;r++)r in e&&fv(n,e[r]);for(ov(n,function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:rv(e)>rv(i)?1:-1}}(t)),i=ev(n),r=0;r<i;)e[r]=n[r++];for(;r<o;)iv(e,r++);return e}}),Yh("Array");var vv=nn,mv=Gt,bv=ur,xv=or,wv=dr,Sv=ig,Pv=ln,Av=Fn,Ov=hn,Cv=ud,Ev=Wn("splice"),Vv=Math.max,Tv=Math.min;vv({target:"Array",proto:!0,forced:!Ev},{splice:function(t,e){var i,r,n,o,s,a,l=mv(this),u=wv(l),c=bv(t,u),p=arguments.length;for(0===p?i=r=0:1===p?(i=0,r=u-c):(i=p-2,r=Tv(Vv(xv(e),0),u-c)),Pv(u+i-r),n=Av(l,r),o=0;o<r;o++)(s=c+o)in l&&Ov(n,o,l[s]);if(n.length=r,i<r){for(o=c;o<u-r;o++)a=o+i,(s=o+r)in l?l[a]=l[s]:Cv(l,a);for(o=u;o>u-r+i;o--)Cv(l,o-1)}else if(i>r)for(o=u-r;o>c;o--)a=o+i-1,(s=o+r-1)in l?l[a]=l[s]:Cv(l,a);for(o=0;o<i;o++)l[o+c]=arguments[o+2];return Sv(l,u-r+i),n}});var kv=dr,Lv=function(t,e){for(var i=kv(t),r=new e(i),n=0;n<i;n++)r[n]=t[i-n-1];return r},Nv=I,Mv=Hu,jv=Array;nn({target:"Array",proto:!0},{toReversed:function(){return Lv(Nv(this),jv)}}),Mv("toReversed");var Rv=dr,Bv=nn,Dv=mt,Iv=I,Gv=function(t,e,i){for(var r=0,n=arguments.length>2?i:Rv(e),o=new t(n);n>r;)o[r]=e[r++];return o},Fv=Hu,zv=Array,$v=S(Q_("Array","sort"));Bv({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&Dv(t);var e=Iv(this),i=Gv(zv,e);return $v(i,t)}}),Fv("toSorted");var Hv=nn,Wv=Hu,Uv=ln,Yv=dr,Xv=ur,qv=I,Zv=or,Kv=Array,Jv=Math.max,Qv=Math.min;Hv({target:"Array",proto:!0},{toSpliced:function(t,e){var i,r,n,o,s=qv(this),a=Yv(s),l=Xv(t,a),u=arguments.length,c=0;for(0===u?i=r=0:1===u?(i=0,r=a-l):(i=u-2,r=Qv(Jv(Zv(e),0),a-l)),n=Uv(a+i-r),o=Kv(n);c<l;c++)o[c]=s[c];for(;c<l+i;c++)o[c]=arguments[c-l+2];for(;c<n;c++)o[c]=s[c+r-i];return o}}),Wv("toSpliced"),Hu("flat"),Hu("flatMap");var tm=Gt,em=dr,im=ig,rm=ud,nm=ln;nn({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=tm(this),i=em(e),r=arguments.length;if(r){nm(i+r);for(var n=i;n--;){var o=n+r;n in e?e[o]=e[n]:rm(e,o)}for(var s=0;s<r;s++)e[s]=arguments[s]}return im(e,i+r)}});var om=dr,sm=or,am=RangeError,lm=function(t,e,i,r){var n=om(t),o=sm(i),s=o<0?n+o:o;if(s>=n||s<0)throw new am("Incorrect index");for(var a=new e(n),l=0;l<n;l++)a[l]=l===s?r:t[l];return a},um=I,cm=Array;nn({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(t){return 4!==t}}()},{with:function(t,e){return lm(um(this),cm,t,e)}});var pm,hm,fm,dm,_m=Mn,ym=_t,gm=TypeError,vm=je,mm=function(t){if(_m(t))return t;throw new gm(ym(t)+" is not a constructor")},bm=N,xm=re("species"),wm=function(t,e){var i,r=vm(t).constructor;return void 0===r||bm(i=vm(r)[xm])?e:mm(i)},Sm=TypeError,Pm=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),Am=n,Om=el,Cm=gs,Em=F,Vm=$t,Tm=s,km=So,Lm=Io,Nm=ve,Mm=function(t,e){if(t<e)throw new Sm("Not enough arguments");return t},jm=Pm,Rm=bg,Bm=Am.setImmediate,Dm=Am.clearImmediate,Im=Am.process,Gm=Am.Dispatch,Fm=Am.Function,zm=Am.MessageChannel,$m=Am.String,Hm=0,Wm={},Um="onreadystatechange";Tm((function(){pm=Am.location}));var Ym=function(t){if(Vm(Wm,t)){var e=Wm[t];delete Wm[t],e()}},Xm=function(t){return function(){Ym(t)}},qm=function(t){Ym(t.data)},Zm=function(t){Am.postMessage($m(t),pm.protocol+"//"+pm.host)};Bm&&Dm||(Bm=function(t){Mm(arguments.length,1);var e=Em(t)?t:Fm(t),i=Lm(arguments,1);return Wm[++Hm]=function(){Om(e,void 0,i)},hm(Hm),Hm},Dm=function(t){delete Wm[t]},Rm?hm=function(t){Im.nextTick(Xm(t))}:Gm&&Gm.now?hm=function(t){Gm.now(Xm(t))}:zm&&!jm?(dm=(fm=new zm).port2,fm.port1.onmessage=qm,hm=Cm(dm.postMessage,dm)):Am.addEventListener&&Em(Am.postMessage)&&!Am.importScripts&&pm&&"file:"!==pm.protocol&&!Tm(Zm)?(hm=Zm,Am.addEventListener("message",qm,!1)):hm=Um in Nm("script")?function(t){km.appendChild(Nm("script"))[Um]=function(){km.removeChild(this),Ym(t)}}:function(t){setTimeout(Xm(t),0)});var Km={set:Bm,clear:Dm},Jm=n,Qm=a,tb=Object.getOwnPropertyDescriptor,eb=function(){this.head=null,this.tail=null};eb.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ib,rb,nb,ob,sb,ab=eb,lb=/ipad|iphone|ipod/i.test(Z)&&"undefined"!=typeof Pebble,ub=/web0s(?!.*chrome)/i.test(Z),cb=n,pb=function(t){if(!Qm)return Jm[t];var e=tb(Jm,t);return e&&e.value},hb=gs,fb=Km.set,db=ab,_b=Pm,yb=lb,gb=ub,vb=bg,mb=cb.MutationObserver||cb.WebKitMutationObserver,bb=cb.document,xb=cb.process,wb=cb.Promise,Sb=pb("queueMicrotask");if(!Sb){var Pb=new db,Ab=function(){var t,e;for(vb&&(t=xb.domain)&&t.exit();e=Pb.get();)try{e()}catch(t){throw Pb.head&&ib(),t}t&&t.enter()};_b||vb||gb||!mb||!bb?!yb&&wb&&wb.resolve?((ob=wb.resolve(void 0)).constructor=wb,sb=hb(ob.then,ob),ib=function(){sb(Ab)}):vb?ib=function(){xb.nextTick(Ab)}:(fb=hb(fb,cb),ib=function(){fb(Ab)}):(rb=!0,nb=bb.createTextNode(""),new mb(Ab).observe(nb,{characterData:!0}),ib=function(){nb.data=rb=!rb}),Sb=function(t){Pb.head||ib(),Pb.add(t)}}var Ob=Sb,Cb=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Eb=n.Promise,Vb=n,Tb=Eb,kb=F,Lb=qr,Nb=ui,Mb=re,jb=mg,Rb=rt;Tb&&Tb.prototype;var Bb=Mb("species"),Db=!1,Ib=kb(Vb.PromiseRejectionEvent),Gb=Lb("Promise",(function(){var t=Nb(Tb),e=t!==String(Tb);if(!e&&66===Rb)return!0;if(!Rb||Rb<51||!/native code/.test(t)){var i=new Tb((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((i.constructor={})[Bb]=r,!(Db=i.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==jb&&"DENO"!==jb||Ib)})),Fb={CONSTRUCTOR:Gb,REJECTION_EVENT:Ib,SUBCLASSING:Db},zb={},$b=mt,Hb=TypeError,Wb=function(t){var e,i;this.promise=new t((function(t,r){if(void 0!==e||void 0!==i)throw new Hb("Bad Promise constructor");e=t,i=r})),this.resolve=$b(e),this.reject=$b(i)};zb.f=function(t){return new Wb(t)};var Ub,Yb,Xb,qb,Zb=nn,Kb=bg,Jb=n,Qb=Zo,tx=p,ex=Qi,ix=Ec,rx=cs,nx=Yh,ox=mt,sx=F,ax=$,lx=yh,ux=wm,cx=Km.set,px=Ob,hx=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},fx=Cb,dx=ab,_x=Ti,yx=Eb,gx=zb,vx="Promise",mx=Fb.CONSTRUCTOR,bx=Fb.REJECTION_EVENT,xx=Fb.SUBCLASSING,wx=_x.getterFor(vx),Sx=_x.set,Px=yx&&yx.prototype,Ax=yx,Ox=Px,Cx=Jb.TypeError,Ex=Jb.document,Vx=Jb.process,Tx=gx.f,kx=Tx,Lx=!!(Ex&&Ex.createEvent&&Jb.dispatchEvent),Nx="unhandledrejection",Mx=function(t){var e;return!(!ax(t)||!sx(e=t.then))&&e},jx=function(t,e){var i,r,n,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&Gx(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),n=!0)),i===t.promise?u(new Cx("Promise-chain cycle")):(r=Mx(i))?tx(r,i,l,u):l(i)):u(o)}catch(t){c&&!n&&c.exit(),u(t)}},Rx=function(t,e){t.notified||(t.notified=!0,px((function(){for(var i,r=t.reactions;i=r.get();)jx(i,t);t.notified=!1,e&&!t.rejection&&Dx(t)})))},Bx=function(t,e,i){var r,n;Lx?((r=Ex.createEvent("Event")).promise=e,r.reason=i,r.initEvent(t,!1,!0),Jb.dispatchEvent(r)):r={promise:e,reason:i},!bx&&(n=Jb["on"+t])?n(r):t===Nx&&hx("Unhandled promise rejection",i)},Dx=function(t){tx(cx,Jb,(function(){var e,i=t.facade,r=t.value;if(Ix(t)&&(e=fx((function(){Kb?Vx.emit("unhandledRejection",r,i):Bx(Nx,i,r)})),t.rejection=Kb||Ix(t)?2:1,e.error))throw e.value}))},Ix=function(t){return 1!==t.rejection&&!t.parent},Gx=function(t){tx(cx,Jb,(function(){var e=t.facade;Kb?Vx.emit("rejectionHandled",e):Bx("rejectionhandled",e,t.value)}))},Fx=function(t,e,i){return function(r){t(e,r,i)}},zx=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,Rx(t,!0))},$x=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new Cx("Promise can't be resolved itself");var r=Mx(e);r?px((function(){var i={done:!1};try{tx(r,e,Fx($x,i,t),Fx(zx,i,t))}catch(e){zx(i,e,t)}})):(t.value=e,t.state=1,Rx(t,!1))}catch(e){zx({done:!1},e,t)}}};if(mx&&(Ox=(Ax=function(t){lx(this,Ox),ox(t),tx(Ub,this);var e=wx(this);try{t(Fx($x,e),Fx(zx,e))}catch(t){zx(e,t)}}).prototype,(Ub=function(t){Sx(this,{type:vx,done:!1,notified:!1,parent:!1,reactions:new dx,rejection:!1,state:0,value:null})}).prototype=ex(Ox,"then",(function(t,e){var i=wx(this),r=Tx(ux(this,Ax));return i.parent=!0,r.ok=!sx(t)||t,r.fail=sx(e)&&e,r.domain=Kb?Vx.domain:void 0,0===i.state?i.reactions.add(r):px((function(){jx(r,i)})),r.promise})),Yb=function(){var t=new Ub,e=wx(t);this.promise=t,this.resolve=Fx($x,e),this.reject=Fx(zx,e)},gx.f=Tx=function(t){return t===Ax||t===Xb?new Yb(t):kx(t)},sx(yx)&&Px!==Object.prototype)){qb=Px.then,xx||ex(Px,"then",(function(t,e){var i=this;return new Ax((function(t,e){tx(qb,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete Px.constructor}catch(t){}ix&&ix(Px,Ox)}Zb({global:!0,constructor:!0,wrap:!0,forced:mx},{Promise:Ax}),Xb=Qb.Promise,rx(Ax,vx,!1),nx(vx);var Hx=Eb,Wx=Fb.CONSTRUCTOR||!xh((function(t){Hx.all(t).then(void 0,(function(){}))})),Ux=p,Yx=mt,Xx=zb,qx=Cb,Zx=fh;nn({target:"Promise",stat:!0,forced:Wx},{all:function(t){var e=this,i=Xx.f(e),r=i.resolve,n=i.reject,o=qx((function(){var i=Yx(e.resolve),o=[],s=0,a=1;Zx(t,(function(t){var l=s++,u=!1;a++,Ux(i,e,t).then((function(t){u||(u=!0,o[l]=t,--a||r(o))}),n)})),--a||r(o)}));return o.error&&n(o.value),i.promise}});var Kx=nn,Jx=Fb.CONSTRUCTOR,Qx=Eb,tw=U,ew=F,iw=Qi,rw=Qx&&Qx.prototype;if(Kx({target:"Promise",proto:!0,forced:Jx,real:!0},{catch:function(t){return this.then(void 0,t)}}),ew(Qx)){var nw=tw("Promise").prototype.catch;rw.catch!==nw&&iw(rw,"catch",nw,{unsafe:!0})}var ow=p,sw=mt,aw=zb,lw=Cb,uw=fh;nn({target:"Promise",stat:!0,forced:Wx},{race:function(t){var e=this,i=aw.f(e),r=i.reject,n=lw((function(){var n=sw(e.resolve);uw(t,(function(t){ow(n,e,t).then(i.resolve,r)}))}));return n.error&&r(n.value),i.promise}});var cw=zb;nn({target:"Promise",stat:!0,forced:Fb.CONSTRUCTOR},{reject:function(t){var e=cw.f(this);return(0,e.reject)(t),e.promise}});var pw=je,hw=$,fw=zb,dw=nn,_w=Fb.CONSTRUCTOR,yw=function(t,e){if(pw(t),hw(e)&&e.constructor===t)return e;var i=fw.f(t);return(0,i.resolve)(e),i.promise};U("Promise"),dw({target:"Promise",stat:!0,forced:_w},{resolve:function(t){return yw(this,t)}}),Zo.Array;var gw=a,vw=S,mw=p,bw=s,xw=_o,ww=Vr,Sw=h,Pw=Gt,Aw=L,Ow=Object.assign,Cw=Object.defineProperty,Ew=vw([].concat),Vw=!Ow||bw((function(){if(gw&&1!==Ow({b:1},Ow(Cw({},"a",{enumerable:!0,get:function(){Cw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!==Ow({},t)[i]||xw(Ow({},e)).join("")!==r}))?function(t,e){for(var i=Pw(t),r=arguments.length,n=1,o=ww.f,s=Sw.f;r>n;)for(var a,l=Aw(arguments[n++]),u=o?Ew(xw(l),o(l)):xw(l),c=u.length,p=0;c>p;)a=u[p++],gw&&!mw(s,l,a)||(i[a]=l[a]);return i}:Ow,Tw=Vw;nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tw},{assign:Tw}),nn({target:"Object",stat:!0,sham:!a},{create:Bo});var kw=nn,Lw=a,Nw=Te.f;kw({target:"Object",stat:!0,forced:Object.defineProperty!==Nw,sham:!Lw},{defineProperty:Nw});var Mw=nn,jw=a,Rw=po.f;Mw({target:"Object",stat:!0,forced:Object.defineProperties!==Rw,sham:!jw},{defineProperties:Rw});var Bw=a,Dw=s,Iw=S,Gw=tc,Fw=_o,zw=I,$w=Iw(h.f),Hw=Iw([].push),Ww=Bw&&Dw((function(){var t=Object.create(null);return t[2]=2,!$w(t,2)})),Uw=function(t){return function(e){for(var i,r=zw(e),n=Fw(r),o=Ww&&null===Gw(r),s=n.length,a=0,l=[];s>a;)i=n[a++],Bw&&!(o?i in r:$w(r,i))||Hw(l,t?[i,r[i]]:r[i]);return l}},Yw={entries:Uw(!0),values:Uw(!1)},Xw=Yw.entries;nn({target:"Object",stat:!0},{entries:function(t){return Xw(t)}});var qw=nn,Zw=yp,Kw=s,Jw=$,Qw=Lp.onFreeze,tS=Object.freeze;qw({target:"Object",stat:!0,forced:Kw((function(){tS(1)})),sham:!Zw},{freeze:function(t){return tS&&Jw(t)?tS(Qw(t)):t}});var eS=fh,iS=hn;nn({target:"Object",stat:!0},{fromEntries:function(t){var e={};return eS(t,(function(t,i){iS(e,t,i)}),{AS_ENTRIES:!0}),e}});var rS=nn,nS=s,oS=I,sS=o.f,aS=a;rS({target:"Object",stat:!0,forced:!aS||nS((function(){sS(1)})),sham:!aS},{getOwnPropertyDescriptor:function(t,e){return sS(oS(t),e)}});var lS=jr,uS=I,cS=o,pS=hn;nn({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,i,r=uS(t),n=cS.f,o=lS(r),s={},a=0;o.length>a;)void 0!==(i=n(r,e=o[a++]))&&pS(s,e,i);return s}});var hS=nn,fS=s,dS=Do.f;hS({target:"Object",stat:!0,forced:fS((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:dS});var _S=Gt,yS=tc,gS=Uu;nn({target:"Object",stat:!0,forced:s((function(){yS(1)})),sham:!gS},{getPrototypeOf:function(t){return yS(_S(t))}});var vS=nn,mS=hn,bS=U,xS=S,wS=mt,SS=R,PS=de,AS=fh,OS=s,CS=Object.groupBy,ES=bS("Object","create"),VS=xS([].push);vS({target:"Object",stat:!0,forced:!CS||OS((function(){return 1!==CS("ab",(function(t){return t})).a.length}))},{groupBy:function(t,e){SS(t),wS(e);var i=ES(null),r=0;return AS(t,(function(t){var n=PS(e(t,r++));n in i?VS(i[n],t):mS(i,n,[t])})),i}}),nn({target:"Object",stat:!0},{hasOwn:$t});var TS=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};nn({target:"Object",stat:!0},{is:TS});var kS=_p;nn({target:"Object",stat:!0,forced:Object.isExtensible!==kS},{isExtensible:kS});var LS=nn,NS=s,MS=$,jS=C,RS=up,BS=Object.isFrozen;LS({target:"Object",stat:!0,forced:RS||NS((function(){BS(1)}))},{isFrozen:function(t){return!MS(t)||(!(!RS||"ArrayBuffer"!==jS(t))||!!BS&&BS(t))}});var DS=nn,IS=s,GS=$,FS=C,zS=up,$S=Object.isSealed;DS({target:"Object",stat:!0,forced:zS||IS((function(){$S(1)}))},{isSealed:function(t){return!GS(t)||(!(!zS||"ArrayBuffer"!==FS(t))||!!$S&&$S(t))}});var HS=Gt,WS=_o;nn({target:"Object",stat:!0,forced:s((function(){WS(1)}))},{keys:function(t){return WS(HS(t))}});var US=nn,YS=$,XS=Lp.onFreeze,qS=yp,ZS=s,KS=Object.preventExtensions;US({target:"Object",stat:!0,forced:ZS((function(){KS(1)})),sham:!qS},{preventExtensions:function(t){return KS&&YS(t)?KS(XS(t)):t}});var JS=a,QS=Yo,tP=$,eP=bc,iP=Gt,rP=R,nP=Object.getPrototypeOf,oP=Object.setPrototypeOf,sP=Object.prototype,aP="__proto__";if(JS&&nP&&oP&&!(aP in sP))try{QS(sP,aP,{configurable:!0,get:function(){return nP(iP(this))},set:function(t){var e=rP(this);eP(t)&&tP(e)&&oP(e,t)}})}catch(t){}var lP=nn,uP=$,cP=Lp.onFreeze,pP=yp,hP=s,fP=Object.seal;lP({target:"Object",stat:!0,forced:hP((function(){fP(1)})),sham:!pP},{seal:function(t){return fP&&uP(t)?fP(cP(t)):t}}),nn({target:"Object",stat:!0},{setPrototypeOf:Ec});var dP=Yw.values;nn({target:"Object",stat:!0},{values:function(t){return dP(t)}});var _P=n,yP=Zg,gP=!s((function(){if(!(yP&&yP<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete _P[t]}})),vP=mt,mP=Gt,bP=Te;a&&nn({target:"Object",proto:!0,forced:gP},{__defineGetter__:function(t,e){bP.f(mP(this),t,{get:vP(e),enumerable:!0,configurable:!0})}});var xP=mt,wP=Gt,SP=Te;a&&nn({target:"Object",proto:!0,forced:gP},{__defineSetter__:function(t,e){SP.f(wP(this),t,{set:xP(e),enumerable:!0,configurable:!0})}});var PP=nn,AP=a,OP=gP,CP=Gt,EP=de,VP=tc,TP=o.f;AP&&PP({target:"Object",proto:!0,forced:OP},{__lookupGetter__:function(t){var e,i=CP(this),r=EP(t);do{if(e=TP(i,r))return e.get}while(i=VP(i))}});var kP=nn,LP=a,NP=gP,MP=Gt,jP=de,RP=tc,BP=o.f;LP&&kP({target:"Object",proto:!0,forced:NP},{__lookupSetter__:function(t){var e,i=MP(this),r=jP(t);do{if(e=BP(i,r))return e.set}while(i=RP(i))}}),Zo.Object;var DP=S(1.1.valueOf),IP="\t\n\v\f\r                 \u2028\u2029\ufeff",GP=R,FP=co,zP=IP,$P=S("".replace),HP=RegExp("^["+zP+"]+"),WP=RegExp("(^|[^"+zP+"])["+zP+"]+$"),UP=function(t){return function(e){var i=FP(GP(e));return 1&t&&(i=$P(i,HP,"")),2&t&&(i=$P(i,WP,"$1")),i}},YP={start:UP(1),end:UP(2),trim:UP(3)},XP=nn,qP=a,ZP=n,KP=Zo,JP=S,QP=qr,tA=$t,eA=Ah,iA=Y,rA=ft,nA=pe,oA=s,sA=tr.f,aA=o.f,lA=Te.f,uA=DP,cA=YP.trim,pA="Number",hA=ZP[pA];KP[pA];var fA=hA.prototype,dA=ZP.TypeError,_A=JP("".slice),yA=JP("".charCodeAt),gA=function(t){var e,i,r,n,o,s,a,l,u=nA(t,"number");if(rA(u))throw new dA("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=cA(u),43===(e=yA(u,0))||45===e){if(88===(i=yA(u,2))||120===i)return NaN}else if(48===e){switch(yA(u,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+u}for(s=(o=_A(u,2)).length,a=0;a<s;a++)if((l=yA(o,a))<48||l>n)return NaN;return parseInt(o,r)}return+u},vA=QP(pA,!hA(" 0o1")||!hA("0b1")||hA("+0x1")),mA=function(t){var e,i=arguments.length<1?0:hA(function(t){var e=nA(t,"number");return"bigint"==typeof e?e:gA(e)}(t));return iA(fA,e=this)&&oA((function(){uA(e)}))?eA(Object(i),this,mA):i};mA.prototype=fA,vA&&(fA.constructor=mA),XP({global:!0,constructor:!0,wrap:!0,forced:vA},{Number:mA});vA&&function(t,e){for(var i,r=qP?sA(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)tA(e,i=r[n])&&!tA(t,i)&&lA(t,i,aA(e,i))}(KP[pA],hA),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var bA=n.isFinite;nn({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&bA(t)}});var xA=$,wA=Math.floor,SA=Number.isInteger||function(t){return!xA(t)&&isFinite(t)&&wA(t)===t};nn({target:"Number",stat:!0},{isInteger:SA}),nn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var PA=nn,AA=SA,OA=Math.abs;PA({target:"Number",stat:!0},{isSafeInteger:function(t){return AA(t)&&OA(t)<=9007199254740991}}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var CA=n,EA=s,VA=co,TA=YP.trim,kA=IP,LA=S("".charAt),NA=CA.parseFloat,MA=CA.Symbol,jA=MA&&MA.iterator,RA=1/NA(kA+"-0")!=-1/0||jA&&!EA((function(){NA(Object(jA))}))?function(t){var e=TA(VA(t)),i=NA(e);return 0===i&&"-"===LA(e,0)?-0:i}:NA;nn({target:"Number",stat:!0,forced:Number.parseFloat!==RA},{parseFloat:RA});var BA=n,DA=s,IA=S,GA=co,FA=YP.trim,zA=IP,$A=BA.parseInt,HA=BA.Symbol,WA=HA&&HA.iterator,UA=/^[+-]?0x/i,YA=IA(UA.exec),XA=8!==$A(zA+"08")||22!==$A(zA+"0x16")||WA&&!DA((function(){$A(Object(WA))}))?function(t,e){var i=FA(GA(t));return $A(i,e>>>0||(YA(UA,i)?16:10))}:$A;nn({target:"Number",stat:!0,forced:Number.parseInt!==XA},{parseInt:XA});var qA=or,ZA=co,KA=R,JA=RangeError,QA=function(t){var e=ZA(KA(this)),i="",r=qA(t);if(r<0||r===1/0)throw new JA("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i},tO=Math.log,eO=Math.LOG10E,iO=Math.log10||function(t){return tO(t)*eO},rO=nn,nO=S,oO=or,sO=DP,aO=QA,lO=iO,uO=s,cO=RangeError,pO=String,hO=isFinite,fO=Math.abs,dO=Math.floor,_O=Math.pow,yO=Math.round,gO=nO(1.1.toExponential),vO=nO(aO),mO=nO("".slice),bO="-6.9000e-11"===gO(-69e-12,4)&&"1.25e+0"===gO(1.255,2)&&"1.235e+4"===gO(12345,3)&&"3e+1"===gO(25,0);rO({target:"Number",proto:!0,forced:!bO||!(uO((function(){gO(1,1/0)}))&&uO((function(){gO(1,-1/0)})))||!!uO((function(){gO(1/0,1/0),gO(NaN,1/0)}))},{toExponential:function(t){var e=sO(this);if(void 0===t)return gO(e);var i=oO(t);if(!hO(e))return String(e);if(i<0||i>20)throw new cO("Incorrect fraction digits");if(bO)return gO(e,i);var r,n,o,s,a="";if(e<0&&(a="-",e=-e),0===e)n=0,r=vO("0",i+1);else{var l=lO(e);n=dO(l);var u=_O(10,n-i),c=yO(e/u);2*e>=(2*c+1)*u&&(c+=1),c>=_O(10,i+1)&&(c/=10,n+=1),r=pO(c)}return 0!==i&&(r=mO(r,0,1)+"."+mO(r,1)),0===n?(o="+",s="0"):(o=n>0?"+":"-",s=pO(fO(n))),a+(r+="e"+o+s)}});var xO=nn,wO=S,SO=or,PO=DP,AO=QA,OO=s,CO=RangeError,EO=String,VO=Math.floor,TO=wO(AO),kO=wO("".slice),LO=wO(1.1.toFixed),NO=function(t,e,i){return 0===e?i:e%2==1?NO(t,e-1,i*t):NO(t*t,e/2,i)},MO=function(t,e,i){for(var r=-1,n=i;++r<6;)n+=e*t[r],t[r]=n%1e7,n=VO(n/1e7)},jO=function(t,e){for(var i=6,r=0;--i>=0;)r+=t[i],t[i]=VO(r/e),r=r%e*1e7},RO=function(t){for(var e=6,i="";--e>=0;)if(""!==i||0===e||0!==t[e]){var r=EO(t[e]);i=""===i?r:i+TO("0",7-r.length)+r}return i};xO({target:"Number",proto:!0,forced:OO((function(){return"0.000"!==LO(8e-5,3)||"1"!==LO(.9,0)||"1.25"!==LO(1.255,2)||"1000000000000000128"!==LO(0xde0b6b3a7640080,0)}))||!OO((function(){LO({})}))},{toFixed:function(t){var e,i,r,n,o=PO(this),s=SO(t),a=[0,0,0,0,0,0],l="",u="0";if(s<0||s>20)throw new CO("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return EO(o);if(o<0&&(l="-",o=-o),o>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*NO(2,69,1))-69)<0?o*NO(2,-e,1):o/NO(2,e,1),i*=4503599627370496,(e=52-e)>0){for(MO(a,0,i),r=s;r>=7;)MO(a,1e7,0),r-=7;for(MO(a,NO(10,r,1),0),r=e-1;r>=23;)jO(a,1<<23),r-=23;jO(a,1<<r),MO(a,1,1),jO(a,2),u=RO(a)}else MO(a,0,i),MO(a,1<<-e,0),u=RO(a)+TO("0",s);return u=s>0?l+((n=u.length)<=s?"0."+TO("0",s-n)+u:kO(u,0,n-s)+"."+kO(u,n-s)):l+u}});var BO=nn,DO=s,IO=DP,GO=S(1.1.toPrecision);BO({target:"Number",proto:!0,forced:DO((function(){return"1"!==GO(1,void 0)}))||!DO((function(){GO({})}))},{toPrecision:function(t){return void 0===t?GO(IO(this)):GO(IO(this),t)}}),Zo.Number;var FO,zO,$O=je,HO=function(){var t=$O(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},WO=s,UO=n.RegExp,YO=WO((function(){var t=UO("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),XO=YO||WO((function(){return!UO("a","y").sticky})),qO={BROKEN_CARET:YO||WO((function(){var t=UO("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:XO,UNSUPPORTED_Y:YO},ZO=s,KO=n.RegExp,JO=ZO((function(){var t=KO(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),QO=s,tC=n.RegExp,eC=QO((function(){var t=tC("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),iC=p,rC=S,nC=co,oC=HO,sC=qO,aC=Bo,lC=Ti.get,uC=JO,cC=eC,pC=Bt("native-string-replace",String.prototype.replace),hC=RegExp.prototype.exec,fC=hC,dC=rC("".charAt),_C=rC("".indexOf),yC=rC("".replace),gC=rC("".slice),vC=(zO=/b*/g,iC(hC,FO=/a/,"a"),iC(hC,zO,"a"),0!==FO.lastIndex||0!==zO.lastIndex),mC=sC.BROKEN_CARET,bC=void 0!==/()??/.exec("")[1];(vC||bC||mC||uC||cC)&&(fC=function(t){var e,i,r,n,o,s,a,l=this,u=lC(l),c=nC(t),p=u.raw;if(p)return p.lastIndex=l.lastIndex,e=iC(fC,p,c),l.lastIndex=p.lastIndex,e;var h=u.groups,f=mC&&l.sticky,d=iC(oC,l),_=l.source,y=0,g=c;if(f&&(d=yC(d,"y",""),-1===_C(d,"g")&&(d+="g"),g=gC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==dC(c,l.lastIndex-1))&&(_="(?: "+_+")",g=" "+g,y++),i=new RegExp("^(?:"+_+")",d)),bC&&(i=new RegExp("^"+_+"$(?!\\s)",d)),vC&&(r=l.lastIndex),n=iC(hC,f?i:l,g),f?n?(n.input=gC(n.input,y),n[0]=gC(n[0],y),n.index=l.lastIndex,l.lastIndex+=n[0].length):l.lastIndex=0:vC&&n&&(l.lastIndex=l.global?n.index+n[0].length:r),bC&&n&&n.length>1&&iC(pC,n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n&&h)for(n.groups=s=aC(null),o=0;o<h.length;o++)s[(a=h[o])[0]]=n[a[1]];return n});var xC=fC;nn({target:"RegExp",proto:!0,forced:/./.exec!==xC},{exec:xC});var wC=nn,SC=S,PC=ur,AC=RangeError,OC=String.fromCharCode,CC=String.fromCodePoint,EC=SC([].join);wC({target:"String",stat:!0,arity:1,forced:!!CC&&1!==CC.length},{fromCodePoint:function(t){for(var e,i=[],r=arguments.length,n=0;r>n;){if(e=+arguments[n++],PC(e,1114111)!==e)throw new AC(e+" is not a valid code point");i[n]=e<65536?OC(e):OC(55296+((e-=65536)>>10),e%1024+56320)}return EC(i,"")}});var VC=nn,TC=S,kC=I,LC=Gt,NC=co,MC=dr,jC=TC([].push),RC=TC([].join);VC({target:"String",stat:!0},{raw:function(t){var e=kC(LC(t).raw),i=MC(e);if(!i)return"";for(var r=arguments.length,n=[],o=0;;){if(jC(n,NC(e[o++])),o===i)return RC(n,"");o<r&&jC(n,NC(arguments[o]))}}});var BC=kf.codeAt;nn({target:"String",proto:!0},{codePointAt:function(t){return BC(this,t)}});var DC=nn,IC=R,GC=or,FC=co,zC=s,$C=S("".charAt);DC({target:"String",proto:!0,forced:zC((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=FC(IC(this)),i=e.length,r=GC(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:$C(e,n)}});var HC=$,WC=C,UC=re("match"),YC=function(t){var e;return HC(t)&&(void 0!==(e=t[UC])?!!e:"RegExp"===WC(t))},XC=YC,qC=TypeError,ZC=function(t){if(XC(t))throw new qC("The method doesn't accept regular expressions");return t},KC=re("match"),JC=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[KC]=!1,"/./"[t](e)}catch(t){}}return!1},QC=nn,tE=fs,eE=o.f,iE=hr,rE=co,nE=ZC,oE=R,sE=JC,aE=tE("".slice),lE=Math.min,uE=sE("endsWith"),cE=!uE&&!!function(){var t=eE(String.prototype,"endsWith");return t&&!t.writable}();QC({target:"String",proto:!0,forced:!cE&&!uE},{endsWith:function(t){var e=rE(oE(this));nE(t);var i=arguments.length>1?arguments[1]:void 0,r=e.length,n=void 0===i?r:lE(iE(i),r),o=rE(t);return aE(e,n-o.length,n)===o}});var pE=nn,hE=ZC,fE=R,dE=co,_E=JC,yE=S("".indexOf);pE({target:"String",proto:!0,forced:!_E("includes")},{includes:function(t){return!!~yE(dE(fE(this)),dE(hE(t)),arguments.length>1?arguments[1]:void 0)}});var gE=nn,vE=R,mE=co,bE=S("".charCodeAt);gE({target:"String",proto:!0},{isWellFormed:function(){for(var t=mE(vE(this)),e=t.length,i=0;i<e;i++){var r=bE(t,i);if(55296==(63488&r)&&(r>=56320||++i>=e||56320!=(64512&bE(t,i))))return!1}return!0}});var xE=p,wE=Qi,SE=xC,PE=s,AE=re,OE=qe,CE=AE("species"),EE=RegExp.prototype,VE=function(t,e,i,r){var n=AE(t),o=!PE((function(){var e={};return e[n]=function(){return 7},7!==""[t](e)})),s=o&&!PE((function(){var e=!1,i=/a/;if("split"===t){var r={};r[CE]=function(){return i},(i={constructor:r,flags:""})[n]=/./[n]}return i.exec=function(){return e=!0,null},i[n](""),!e}));if(!o||!s||i){var a=/./[n],l=e(n,""[t],(function(t,e,i,r,n){var s=e.exec;return s===SE||s===EE.exec?o&&!n?{done:!0,value:xE(a,e,i,r)}:{done:!0,value:xE(t,i,e,r)}:{done:!1}}));wE(String.prototype,t,l[0]),wE(EE,n,l[1])}r&&OE(EE[n],"sham",!0)},TE=kf.charAt,kE=function(t,e,i){return e+(i?TE(t,e).length:1)},LE=s,NE=n.RegExp,ME=!LE((function(){var t=!0;try{NE(".","d")}catch(e){t=!1}var e={},i="",r=t?"dgimsy":"gimsy",n=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)n(s,o[s]);return Object.getOwnPropertyDescriptor(NE.prototype,"flags").get.call(e)!==r||i!==r})),jE=p,RE=$t,BE=Y,DE={correct:ME},IE=HO,GE=RegExp.prototype,FE=DE.correct?function(t){return t.flags}:function(t){return DE.correct||!BE(GE,t)||RE(t,"flags")?t.flags:jE(IE,t)},zE=p,$E=je,HE=F,WE=C,UE=xC,YE=TypeError,XE=function(t,e){var i=t.exec;if(HE(i)){var r=zE(i,t,e);return null!==r&&$E(r),r}if("RegExp"===WE(t))return zE(UE,t,e);throw new YE("RegExp#exec called on incompatible receiver")},qE=p,ZE=VE,KE=je,JE=$,QE=hr,tV=co,eV=R,iV=wt,rV=kE,nV=FE,oV=XE,sV=S("".indexOf);ZE("match",(function(t,e,i){return[function(e){var i=eV(this),r=JE(e)?iV(e,t):void 0;return r?qE(r,e,i):new RegExp(e)[t](tV(i))},function(t){var r=KE(this),n=tV(t),o=i(e,r,n);if(o.done)return o.value;var s=tV(nV(r));if(-1===sV(s,"g"))return oV(r,n);var a=-1!==sV(s,"u");r.lastIndex=0;for(var l,u=[],c=0;null!==(l=oV(r,n));){var p=tV(l[0]);u[c]=p,""===p&&(r.lastIndex=rV(n,QE(r.lastIndex),a)),c++}return 0===c?null:u}]}));var aV=nn,lV=p,uV=fs,cV=yc,pV=qc,hV=R,fV=hr,dV=co,_V=je,yV=$,gV=YC,vV=FE,mV=wt,bV=Qi,xV=s,wV=wm,SV=kE,PV=XE,AV=Ti,OV=re("matchAll"),CV="RegExp String",EV=CV+" Iterator",VV=AV.set,TV=AV.getterFor(EV),kV=RegExp.prototype,LV=TypeError,NV=uV("".indexOf),MV=uV("".matchAll),jV=!!MV&&!xV((function(){MV("a",/./)})),RV=cV((function(t,e,i,r){VV(this,{type:EV,regexp:t,string:e,global:i,unicode:r,done:!1})}),CV,(function(){var t=TV(this);if(t.done)return pV(void 0,!0);var e=t.regexp,i=t.string,r=PV(e,i);return null===r?(t.done=!0,pV(void 0,!0)):t.global?(""===dV(r[0])&&(e.lastIndex=SV(i,fV(e.lastIndex),t.unicode)),pV(r,!1)):(t.done=!0,pV(r,!1))})),BV=function(t){var e,i,r,n=_V(this),o=dV(t),s=wV(n,RegExp),a=dV(vV(n));return e=new s(s===RegExp?n.source:n,a),i=!!~NV(a,"g"),r=!!~NV(a,"u"),e.lastIndex=fV(n.lastIndex),new RV(e,o,i,r)};aV({target:"String",proto:!0,forced:jV},{matchAll:function(t){var e,i,r,n=hV(this);if(yV(t)){if(gV(t)&&(e=dV(hV(vV(t))),!~NV(e,"g")))throw new LV("`.matchAll` does not allow non-global regexes");if(jV)return MV(n,t);if(r=mV(t,OV))return lV(r,t,n)}else if(jV)return MV(n,t);return i=dV(n),new RegExp(t,"g")[OV](i)}}),OV in kV||bV(kV,OV,BV);var DV=S,IV=hr,GV=co,FV=R,zV=DV(QA),$V=DV("".slice),HV=Math.ceil,WV=function(t){return function(e,i,r){var n,o,s=GV(FV(e)),a=IV(i),l=s.length,u=void 0===r?" ":GV(r);return a<=l||""===u?s:((o=zV(u,HV((n=a-l)/u.length))).length>n&&(o=$V(o,0,n)),t?s+o:o+s)}},UV={start:WV(!1),end:WV(!0)},YV=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Z),XV=UV.end;nn({target:"String",proto:!0,forced:YV},{padEnd:function(t){return XV(this,t,arguments.length>1?arguments[1]:void 0)}});var qV=UV.start;nn({target:"String",proto:!0,forced:YV},{padStart:function(t){return qV(this,t,arguments.length>1?arguments[1]:void 0)}}),nn({target:"String",proto:!0},{repeat:QA});var ZV=S,KV=Gt,JV=Math.floor,QV=ZV("".charAt),tT=ZV("".replace),eT=ZV("".slice),iT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rT=/\$([$&'`]|\d{1,2})/g,nT=function(t,e,i,r,n,o){var s=i+t.length,a=r.length,l=rT;return void 0!==n&&(n=KV(n),l=iT),tT(o,l,(function(o,l){var u;switch(QV(l,0)){case"$":return"$";case"&":return t;case"`":return eT(e,0,i);case"'":return eT(e,s);case"<":u=n[eT(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>a){var p=JV(c/10);return 0===p?o:p<=a?void 0===r[p-1]?QV(l,1):r[p-1]+QV(l,1):o}u=r[c-1]}return void 0===u?"":u}))},oT=el,sT=p,aT=S,lT=VE,uT=s,cT=je,pT=F,hT=$,fT=or,dT=hr,_T=co,yT=R,gT=kE,vT=wt,mT=nT,bT=FE,xT=XE,wT=re("replace"),ST=Math.max,PT=Math.min,AT=aT([].concat),OT=aT([].push),CT=aT("".indexOf),ET=aT("".slice),VT="$0"==="a".replace(/./,"$0"),TT=!!/./[wT]&&""===/./[wT]("a","$0");lT("replace",(function(t,e,i){var r=TT?"$":"$0";return[function(t,i){var r=yT(this),n=hT(t)?vT(t,wT):void 0;return n?sT(n,t,r,i):sT(e,_T(r),t,i)},function(t,n){var o=cT(this),s=_T(t);if("string"==typeof n&&-1===CT(n,r)&&-1===CT(n,"$<")){var a=i(e,o,s,n);if(a.done)return a.value}var l=pT(n);l||(n=_T(n));var u,c=_T(bT(o)),p=-1!==CT(c,"g");p&&(u=-1!==CT(c,"u"),o.lastIndex=0);for(var h,f=[];null!==(h=xT(o,s))&&(OT(f,h),p);){""===_T(h[0])&&(o.lastIndex=gT(s,dT(o.lastIndex),u))}for(var d,_="",y=0,g=0;g<f.length;g++){for(var v,m=_T((h=f[g])[0]),b=ST(PT(fT(h.index),s.length),0),x=[],w=1;w<h.length;w++)OT(x,void 0===(d=h[w])?d:String(d));var S=h.groups;if(l){var P=AT([m],x,b,s);void 0!==S&&OT(P,S),v=_T(oT(n,void 0,P))}else v=mT(m,s,b,x,S,n);b>=y&&(_+=ET(s,y,b)+v,y=b+m.length)}return _+ET(s,y)}]}),!!uT((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!VT||TT);var kT=nn,LT=p,NT=S,MT=R,jT=F,RT=$,BT=YC,DT=co,IT=wt,GT=FE,FT=nT,zT=re("replace"),$T=TypeError,HT=NT("".indexOf);NT("".replace);var WT=NT("".slice),UT=Math.max;kT({target:"String",proto:!0},{replaceAll:function(t,e){var i,r,n,o,s,a,l,u,c,p=MT(this),h=0,f="";if(RT(t)){if(BT(t)&&(i=DT(MT(GT(t))),!~HT(i,"g")))throw new $T("`.replaceAll` does not allow non-global regexes");if(r=IT(t,zT))return LT(r,t,p,e)}for(n=DT(p),o=DT(t),(s=jT(e))||(e=DT(e)),a=o.length,l=UT(1,a),u=HT(n,o);-1!==u;)c=s?DT(e(o,u,n)):FT(o,n,u,[],void 0,e),f+=WT(n,h,u)+c,h=u+a,u=u+l>n.length?-1:HT(n,o,u+l);return h<n.length&&(f+=WT(n,h)),f}});var YT=p,XT=je,qT=$,ZT=R,KT=TS,JT=co,QT=wt,tk=XE;VE("search",(function(t,e,i){return[function(e){var i=ZT(this),r=qT(e)?QT(e,t):void 0;return r?YT(r,e,i):new RegExp(e)[t](JT(i))},function(t){var r=XT(this),n=JT(t),o=i(e,r,n);if(o.done)return o.value;var s=r.lastIndex;KT(s,0)||(r.lastIndex=0);var a=tk(r,n);return KT(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var ek=p,ik=S,rk=VE,nk=je,ok=$,sk=R,ak=wm,lk=kE,uk=hr,ck=co,pk=wt,hk=XE,fk=s,dk=qO.UNSUPPORTED_Y,_k=Math.min,yk=ik([].push),gk=ik("".slice),vk=!fk((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),mk="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;rk("split",(function(t,e,i){var r="0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:ek(e,this,t,i)}:e;return[function(e,i){var n=sk(this),o=ok(e)?pk(e,t):void 0;return o?ek(o,e,n,i):ek(r,ck(n),e,i)},function(t,n){var o=nk(this),s=ck(t);if(!mk){var a=i(r,o,s,n,r!==e);if(a.done)return a.value}var l=ak(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(dk?"g":"y"),p=new l(dk?"^(?:"+o.source+")":o,c),h=void 0===n?4294967295:n>>>0;if(0===h)return[];if(0===s.length)return null===hk(p,s)?[s]:[];for(var f=0,d=0,_=[];d<s.length;){p.lastIndex=dk?0:d;var y,g=hk(p,dk?gk(s,d):s);if(null===g||(y=_k(uk(p.lastIndex+(dk?d:0)),s.length))===f)d=lk(s,d,u);else{if(yk(_,gk(s,f,d)),_.length===h)return _;for(var v=1;v<=g.length-1;v++)if(yk(_,g[v]),_.length===h)return _;d=f=y}}return yk(_,gk(s,f)),_}]}),mk||!vk,dk);var bk=nn,xk=fs,wk=o.f,Sk=hr,Pk=co,Ak=ZC,Ok=R,Ck=JC,Ek=xk("".slice),Vk=Math.min,Tk=Ck("startsWith"),kk=!Tk&&!!function(){var t=wk(String.prototype,"startsWith");return t&&!t.writable}();bk({target:"String",proto:!0,forced:!kk&&!Tk},{startsWith:function(t){var e=Pk(Ok(this));Ak(t);var i=Sk(Vk(arguments.length>1?arguments[1]:void 0,e.length)),r=Pk(t);return Ek(e,i,i+r.length)===r}});var Lk=nn,Nk=R,Mk=or,jk=co,Rk=S("".slice),Bk=Math.max,Dk=Math.min;Lk({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var i,r,n=jk(Nk(this)),o=n.length,s=Mk(t);return s===1/0&&(s=0),s<0&&(s=Bk(o+s,0)),(i=void 0===e?o:Mk(e))<=0||i===1/0||s>=(r=Dk(s+i,o))?"":Rk(n,s,r)}});var Ik=nn,Gk=p,Fk=S,zk=R,$k=co,Hk=s,Wk=Array,Uk=Fk("".charAt),Yk=Fk("".charCodeAt),Xk=Fk([].join),qk="".toWellFormed,Zk=qk&&Hk((function(){return"1"!==Gk(qk,1)}));Ik({target:"String",proto:!0,forced:Zk},{toWellFormed:function(){var t=$k(zk(this));if(Zk)return Gk(qk,t);for(var e=t.length,i=Wk(e),r=0;r<e;r++){var n=Yk(t,r);55296!=(63488&n)?i[r]=Uk(t,r):n>=56320||r+1>=e||56320!=(64512&Yk(t,r+1))?i[r]="�":(i[r]=Uk(t,r),i[++r]=Uk(t,r))}return Xk(i,"")}});var Kk=ii.PROPER,Jk=s,Qk=IP,tL=function(t){return Jk((function(){return!!Qk[t]()||"​…᠎"!=="​…᠎"[t]()||Kk&&Qk[t].name!==t}))},eL=YP.trim;nn({target:"String",proto:!0,forced:tL("trim")},{trim:function(){return eL(this)}});var iL=YP.start,rL=tL("trimStart")?function(){return iL(this)}:"".trimStart;nn({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==rL},{trimLeft:rL});nn({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==rL},{trimStart:rL});var nL=YP.end,oL=tL("trimEnd")?function(){return nL(this)}:"".trimEnd;nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==oL},{trimRight:oL});nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==oL},{trimEnd:oL});var sL=R,aL=co,lL=/"/g,uL=S("".replace),cL=function(t,e,i,r){var n=aL(sL(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+uL(aL(r),lL,"&quot;")+'"'),o+">"+n+"</"+e+">"},pL=s,hL=function(t){return pL((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},fL=cL;nn({target:"String",proto:!0,forced:hL("anchor")},{anchor:function(t){return fL(this,"a","name",t)}});var dL=cL;nn({target:"String",proto:!0,forced:hL("big")},{big:function(){return dL(this,"big","","")}});var _L=cL;nn({target:"String",proto:!0,forced:hL("blink")},{blink:function(){return _L(this,"blink","","")}});var yL=cL;nn({target:"String",proto:!0,forced:hL("bold")},{bold:function(){return yL(this,"b","","")}});var gL=cL;nn({target:"String",proto:!0,forced:hL("fixed")},{fixed:function(){return gL(this,"tt","","")}});var vL=cL;nn({target:"String",proto:!0,forced:hL("fontcolor")},{fontcolor:function(t){return vL(this,"font","color",t)}});var mL=cL;nn({target:"String",proto:!0,forced:hL("fontsize")},{fontsize:function(t){return mL(this,"font","size",t)}});var bL=cL;nn({target:"String",proto:!0,forced:hL("italics")},{italics:function(){return bL(this,"i","","")}});var xL=cL;nn({target:"String",proto:!0,forced:hL("link")},{link:function(t){return xL(this,"a","href",t)}});var wL=cL;nn({target:"String",proto:!0,forced:hL("small")},{small:function(){return wL(this,"small","","")}});var SL=cL;nn({target:"String",proto:!0,forced:hL("strike")},{strike:function(){return SL(this,"strike","","")}});var PL=cL;nn({target:"String",proto:!0,forced:hL("sub")},{sub:function(){return PL(this,"sub","","")}});var AL=cL;nn({target:"String",proto:!0,forced:hL("sup")},{sup:function(){return AL(this,"sup","","")}}),Zo.String;var OL=Math.log,CL=Math.log1p||function(t){var e=+t;return e>-1e-8&&e<1e-8?e-e*e/2:OL(1+e)},EL=nn,VL=CL,TL=Math.acosh,kL=Math.log,LL=Math.sqrt,NL=Math.LN2;EL({target:"Math",stat:!0,forced:!TL||710!==Math.floor(TL(Number.MAX_VALUE))||TL(1/0)!==1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?kL(e)+NL:VL(e-1+LL(e-1)*LL(e+1))}});var ML=nn,jL=Math.asinh,RL=Math.log,BL=Math.sqrt;ML({target:"Math",stat:!0,forced:!(jL&&1/jL(0)>0)},{asinh:function t(e){var i=+e;return isFinite(i)&&0!==i?i<0?-t(-i):RL(i+BL(i*i+1)):i}});var DL=nn,IL=Math.atanh,GL=Math.log;DL({target:"Math",stat:!0,forced:!(IL&&1/IL(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:GL((1+e)/(1-e))/2}});var FL=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1},zL=nn,$L=FL,HL=Math.abs,WL=Math.pow;zL({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return $L(e)*WL(HL(e),1/3)}});var UL=nn,YL=Math.floor,XL=Math.log,qL=Math.LOG2E;UL({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-YL(XL(e+.5)*qL):32}});var ZL=Math.expm1,KL=Math.exp,JL=!ZL||ZL(10)>22025.465794806718||ZL(10)<22025.465794806718||-2e-17!==ZL(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:KL(e)-1}:ZL,QL=nn,tN=JL,eN=Math.cosh,iN=Math.abs,rN=Math.E;QL({target:"Math",stat:!0,forced:!eN||eN(710)===1/0},{cosh:function(t){var e=tN(iN(t)-1)+1;return(e+1/(e*rN*rN))*(rN/2)}});var nN=JL;nn({target:"Math",stat:!0,forced:nN!==Math.expm1},{expm1:nN});var oN=4503599627370496,sN=FL,aN=function(t){return t+oN-oN},lN=Math.abs,uN=function(t,e,i,r){var n=+t,o=lN(n),s=sN(n);if(o<r)return s*aN(o/r/e)*r*e;var a=(1+e/2220446049250313e-31)*o,l=a-(a-o);return l>i||l!=l?s*(1/0):s*l},cN=uN;nn({target:"Math",stat:!0},{fround:Math.fround||function(t){return cN(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}});var pN=uN;nn({target:"Math",stat:!0},{f16round:function(t){return pN(t,.0009765625,65504,6103515625e-14)}});var hN=nn,fN=Math.hypot,dN=Math.abs,_N=Math.sqrt;hN({target:"Math",stat:!0,arity:2,forced:!!fN&&fN(1/0,NaN)!==1/0},{hypot:function(t,e){for(var i,r,n=0,o=0,s=arguments.length,a=0;o<s;)a<(i=dN(arguments[o++]))?(n=n*(r=a/i)*r+1,a=i):n+=i>0?(r=i/a)*r:i;return a===1/0?1/0:a*_N(n)}});var yN=nn,gN=s,vN=Math.imul;yN({target:"Math",stat:!0,forced:gN((function(){return-5!==vN(4294967295,5)||2!==vN.length}))},{imul:function(t,e){var i=65535,r=+t,n=+e,o=i&r,s=i&n;return 0|o*s+((i&r>>>16)*s+o*(i&n>>>16)<<16>>>0)}}),nn({target:"Math",stat:!0},{log10:iO}),nn({target:"Math",stat:!0},{log1p:CL});var mN=Math.log,bN=Math.LN2;nn({target:"Math",stat:!0},{log2:Math.log2||function(t){return mN(t)/bN}}),nn({target:"Math",stat:!0},{sign:FL});var xN=nn,wN=s,SN=JL,PN=Math.abs,AN=Math.exp,ON=Math.E;xN({target:"Math",stat:!0,forced:wN((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return PN(e)<1?(SN(e)-SN(-e))/2:(AN(e-1)-AN(-e-1))*(ON/2)}});var CN=nn,EN=S,VN=fh,TN=RangeError,kN=TypeError,LN=1/0,NN=Math.abs,MN=Math.pow,jN=EN([].push),RN=MN(2,1023),BN=MN(2,53)-1,DN=Number.MAX_VALUE,IN=MN(2,971),GN={},FN={},zN={},$N={},HN={},WN=function(t,e){var i=t+e;return{hi:i,lo:e-(i-t)}};CN({target:"Math",stat:!0},{sumPrecise:function(t){var e=[],i=0,r=$N;switch(VN(t,(function(t){if(++i>=BN)throw new TN("Maximum allowed index exceeded");if("number"!=typeof t)throw new kN("Value is not a number");r!==GN&&(t!=t?r=GN:t===LN?r=r===FN?GN:zN:t===-1/0?r=r===zN?GN:FN:0===t&&1/t!==LN||r!==$N&&r!==HN||(r=HN,jN(e,t)))})),r){case GN:return NaN;case FN:return-1/0;case zN:return LN;case $N:return-0}for(var n,o,s,a,l,u,c=[],p=0,h=0;h<e.length;h++){n=e[h];for(var f=0,d=0;d<c.length;d++){if(o=c[d],NN(n)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo,NN(a)===LN){var _=a===LN?1:-1;p+=_,NN(n=n-_*RN-_*RN)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo}0!==l&&(c[f++]=l),n=a}c.length=f,0!==n&&jN(c,n)}var y=c.length-1;if(a=0,l=0,0!==p){var g=y>=0?c[y]:0;if(y--,NN(p)>1||p>0&&g>0||p<0&&g<0)return p>0?LN:-1/0;if(a=(s=WN(p*RN,g/2)).hi,l=s.lo,l*=2,NN(2*a)===LN)return a>0?a===RN&&l===-IN/2&&y>=0&&c[y]<0?DN:LN:a===-RN&&l===IN/2&&y>=0&&c[y]>0?-DN:-1/0;0!==l&&(c[++y]=l,l=0),a*=2}for(;y>=0&&(a=(s=WN(a,c[y--])).hi,0===(l=s.lo)););return y>=0&&(l<0&&c[y]<0||l>0&&c[y]>0)&&(o=2*l)===(n=a+o)-a&&(a=n),a}});var UN,YN,XN,qN,ZN=nn,KN=JL,JN=Math.exp;ZN({target:"Math",stat:!0},{tanh:function(t){var e=+t,i=KN(e),r=KN(-e);return i===1/0?1:r===1/0?-1:(i-r)/(JN(e)+JN(-e))}}),nn({target:"Math",stat:!0},{trunc:rr}),Zo.Math,function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof t&&t||{}),UN=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),r=0;r<e.length;r++)i.appendChild(t(e[r])?e[r]:document.createTextNode(e[r]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(UN(arguments))},function(t,e){var i,r=function(){var t=!0,i=function(e,i,r,n){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!n,get:r}):e.__defineGetter__(i,r)};try{i({},"support")}catch(e){t=!1}return function(t,r){var n=this,o=[],s={},a=0,l=0,u=function(t){i(n,t,(function(){return p(),o[t]}),!1)},c=function(){if(a>=l)for(;l<a;++l)u(l)},p=function(){var e,i,n=arguments,l=/\s+/;if(n.length)for(i=0;i<n.length;++i)if(l.test(n[i]))throw(e=new SyntaxError('String "'+n[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[r]?(""+t[r].baseVal).replace(/^\s+|\s+$/g,"").split(l):(""+t[r]).replace(/^\s+|\s+$/g,"").split(l))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,c()};return p(),i(n,"length",(function(){return p(),a})),n.toLocaleString=n.toString=function(){return p(),o.join(" ")},n.item=function(t){return p(),o[t]},n.contains=function(t){return p(),!!s[t]},n.add=function(){p.apply(n,e=arguments);for(var e,i,l=0,u=e.length;l<u;++l)s[i=e[l]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c())},n.remove=function(){p.apply(n,e=arguments);for(var e,i={},l=0,u=[];l<e.length;++l)i[e[l]]=!0,delete s[e[l]];for(l=0;l<o.length;++l)i[o[l]]||u.push(o[l]);o=u,a=u.length>>>0,"object"==typeof t[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c()},n.toggle=function(t,i){return p.apply(n,[t]),e!==i?i?(n.add(t),!0):(n.remove(t),!1):s[t]?(n.remove(t),!1):(n.add(t),!0)},n.forEach=Array.prototype.forEach,n}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=r),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var r=!this.contains(t);return this[r?"add":"remove"](t),r}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,r=0;r<i;r++)e.call(this,t[r])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,r=0;r<i;r++)e.call(this,t[r])}}}(),function(t){var e=!0,i=function(t,i,r,n){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!n,get:r}):t.__defineGetter__(i,r)};try{i({},"support")}catch(t){e=!1}var n=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,l="__defineGetter__DEFINE_PROPERTY"+o;if(a[l])return t;if(a[l]=!0,!1===e){for(var u,c=n.mirror||document.createElement("div"),p=c.childNodes,h=p.length,f=0;f<h;++f)if(p[f]._R===a){u=p[f];break}u||(u=c.appendChild(document.createElement("div"))),t=DOMTokenList.call(u,a,s)}else t=new r(a,s);return i(a,o,(function(){return t})),delete a[l],t}),!0)};n(t.Element,"classList","className"),n(t.HTMLElement,"classList","className"),n(t.HTMLLinkElement,"relList","rel"),n(t.HTMLAnchorElement,"relList","rel"),n(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof t&&t||{}),XN={},function(t){function e(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=p}function i(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(i,r,n){var o=new e;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof i||isNaN(i)?void 0!==i&&Object.getOwnPropertyNames(i).forEach((function(e){if("auto"!=i[e]){if(("number"==typeof o[e]||"duration"==e)&&("number"!=typeof i[e]||isNaN(i[e])))return;if("fill"==e&&-1==u.indexOf(i[e]))return;if("direction"==e&&-1==c.indexOf(i[e]))return;if("playbackRate"==e&&1!==i[e]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[e]=i[e]}})):o.duration=i,o}function n(t,e,i,r){return t<0||t>1||i<0||i>1?p:function(n){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(n<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=r/i),s*n}if(n>=1){var a=0;return i<1?a=(r-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(n-1)}for(var l=0,u=1;l<u;){var c=(l+u)/2,p=o(t,i,c);if(Math.abs(n-p)<1e-5)return o(e,r,c);p<n?l=c:u=c}return o(e,r,c)}}function o(t,e){return function(i){if(i>=1)return 1;var r=1/t;return(i+=e*r)-i%r}}function s(t){y||(y=document.createElement("div").style),y.animationTimingFunction="",y.animationTimingFunction=t;var e=y.animationTimingFunction;if(""==e&&i())throw new TypeError(t+" is not a valid value for easing");return e}function a(t){if("linear"==t)return p;var e=v.exec(t);if(e)return n.apply(this,e.slice(1).map(Number));var i=m.exec(t);if(i)return o(Number(i[1]),d);var r=b.exec(t);return r?o(Number(r[1]),{start:h,middle:f,end:d}[r[2]]):_[t]||p}function l(t,e,i){if(null==e)return x;var r=i.delay+t+i.endDelay;return e<Math.min(i.delay,r)?w:e>=Math.min(i.delay+t,r)?S:P}var u="backwards|forwards|both|none".split("|"),c="reverse|alternate|alternate-reverse".split("|"),p=function(t){return t};e.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=a(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var h=1,f=.5,d=0,_={ease:n(.25,.1,.25,1),"ease-in":n(.42,0,1,1),"ease-out":n(0,0,.58,1),"ease-in-out":n(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,f),"step-end":o(1,d)},y=null,g="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",v=new RegExp("cubic-bezier\\("+g+","+g+","+g+","+g+"\\)"),m=/steps\(\s*(\d+)\s*\)/,b=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,w=1,S=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=r,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return r(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var r=l(t,e,i),n=function(t,e,i,r,n){switch(r){case w:return"backwards"==e||"both"==e?0:null;case P:return i-n;case S:return"forwards"==e||"both"==e?t:null;case x:return null}}(t,i.fill,e,r,i.delay);if(null===n)return null;var o=function(t,e,i,r,n){var o=n;return 0===t?e!==w&&(o+=i):o+=r/t,o}(i.duration,r,i.iterations,n,i.iterationStart),s=function(t,e,i,r,n,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==S||0===r||0===n&&0!==o||(s=1),s}(o,i.iterationStart,r,i.iterations,n,i.duration),a=function(t,e,i,r){return t===S&&e===1/0?1/0:1===i?Math.floor(r)-1:Math.floor(r)}(r,i.iterations,s,o),u=function(t,e,i){var r=t;if("normal"!==t&&"reverse"!==t){var n=e;"alternate-reverse"===t&&(n+=1),r="normal",n!==1/0&&n%2!=0&&(r="reverse")}return"normal"===r?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=a}(YN={}),function(t){function e(t,e){return t in a&&a[t][e]||e}function i(t,i,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var s=n[t];if(s)for(var a in o.style[t]=i,s){var l=s[a],u=o.style[l];r[l]=e(l,u)}else r[t]=e(t,i)}}function r(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var r=t[i];Array.isArray(r)||(r=[r]);for(var n,o=r.length,s=0;s<o;s++)(n={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(n.easing=t.easing),"composite"in t&&(n.composite=t.composite),n[i]=r[s],e.push(n)}return e.sort((function(t,e){return t.offset-e.offset})),e}var n={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},a={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=r,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=r(e));for(var n=e.map((function(e){var r={};for(var n in e){var o=e[n];if("offset"==n){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==n){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==n?t.normalizeEasing(o):""+o;i(n,o,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),o=!0,s=-1/0,a=0;a<n.length;a++){var l=n[a].offset;if(null!=l){if(l<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=l}else o=!1}return n=n.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,i=n[0].offset,r=1;r<t;r++){var o=n[r].offset;if(null!=o){for(var s=1;s<r-e;s++)n[e+s].offset=i+(o-i)*s/(r-e);e=r,i=o}}}(),n}}(YN),function(t){var e={};t.isDeprecated=function(t,i,r,n){var o=n?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,i,r,n){var o=n?"are":"is";if(t.isDeprecated(e,i,r,n))throw new Error(e+" "+o+" no longer supported. "+r)}}(YN),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e){e.convertEffectInput=function(i){var r=function(t){for(var e={},i=0;i<t.length;i++)for(var r in t[i])if("offset"!=r&&"easing"!=r&&"composite"!=r){var n={offset:t[i].offset,easing:t[i].easing,value:t[i][r]};e[r]=e[r]||[],e[r].push(n)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),n=function(i){var r=[];for(var n in i)for(var o=i[n],s=0;s<o.length-1;s++){var a=s,l=s+1,u=o[a].offset,c=o[l].offset,p=u,h=c;0==s&&(p=-1/0,0==c&&(l=a)),s==o.length-2&&(h=1/0,1==u&&(a=l)),r.push({applyFrom:p,applyTo:h,startOffset:o[a].offset,endOffset:o[l].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:n,interpolation:e.propertyInterpolation(n,o[a].value,o[l].value)})}return r.sort((function(t,e){return t.startOffset-e.startOffset})),r}(r);return function(t,i){if(null!=i)n.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(r){var n=i-r.startOffset,o=r.endOffset-r.startOffset,s=0==o?0:r.easingFunction(n/o);e.apply(t,r.property,r.interpolation(s))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(YN,XN),function(t,e){function i(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function r(t,e,i){n[i]=n[i]||[],n[i].push([t,e])}var n={};e.addPropertiesHandler=function(t,e,n){for(var o=0;o<n.length;o++)r(t,e,i(n[o]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(r,s,a){var l=r;/-/.test(r)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=i(r)),"initial"!=s&&"initial"!=a||("initial"==s&&(s=o[l]),"initial"==a&&(a=o[l]));for(var u=s==a?[]:n[l],c=0;u&&c<u.length;c++){var p=u[c][0](s),h=u[c][0](a);if(void 0!==p&&void 0!==h){var f=u[c][1](p,h);if(f){var d=e.Interpolation.apply(null,f);return function(t){return 0==t?s:1==t?a:d(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:s}))}}(YN,XN),function(t,e){e.KeyframeEffect=function(i,r,n,o){var s,a=function(e){var i=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(i,r,e)};return r._totalDuration=e.delay+i+e.endDelay,r}(t.normalizeTimingInput(n)),l=e.convertEffectInput(r),u=function(){l(i,s)};return u._update=function(t){return null!==(s=a(t))},u._clear=function(){l(i,null)},u._hasSameTarget=function(t){return i===t},u._target=i,u._totalDuration=a._totalDuration,u._id=o,u}}(YN,XN),function(t){function e(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(n in t||(t[n]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[n])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function r(t){if(!t._webAnimationsPatchedStyle){var r=new i(t);try{e(t,"style",{get:function(){return r}})}catch(r){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var n="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},a={removeProperty:1,setProperty:1};for(var l in i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)i.prototype[l]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(l,l in a);for(var u in document.documentElement.style)u in o||u in s||function(t){e(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(u);t.apply=function(e,i,n){r(e),e.style._set(t.propertyName(i),n)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(XN),function(t){window.Element.prototype.animate=function(e,i){var r="";return i&&i.id&&(r=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,r))}}(XN),function(t){function e(t,i,r){if("number"==typeof t&&"number"==typeof i)return t*(1-r)+i*r;if("boolean"==typeof t&&"boolean"==typeof i)return r<.5?t:i;if(t.length==i.length){for(var n=[],o=0;o<t.length;o++)n.push(e(t[o],i[o],r));return n}throw"Mismatched interpolation arguments "+t+":"+i}t.Interpolation=function(t,i,r){return function(n){return r(e(t,i,n))}}}(XN),function(t){var e=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var n=0;n<4;n++)for(var o=0;o<4;o++)i[r][n]+=e[r][o]*t[o][n];return i}return function(e,i,r,n,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var l=0;l<3;l++)s[3][a]+=e[l]*s[l][a];var u=n[0],c=n[1],p=n[2],h=n[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(c*c+p*p),f[0][1]=2*(u*c-p*h),f[0][2]=2*(u*p+c*h),f[1][0]=2*(u*c+p*h),f[1][1]=1-2*(u*u+p*p),f[1][2]=2*(c*p-u*h),f[2][0]=2*(u*p-c*h),f[2][1]=2*(c*p+u*h),f[2][2]=1-2*(u*u+c*c),s=t(s,f);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],s=t(s,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],s=t(s,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],s=t(s,d)),a=0;a<3;a++)for(l=0;l<3;l++)s[a][l]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=e,t.quat=function(e,i,r){var n=t.dot(e,i);n=function(t,e,i){return Math.max(Math.min(t,i),e)}(n,-1,1);var o=[];if(1===n)o=e;else for(var s=Math.acos(n),a=1*Math.sin(r*s)/Math.sqrt(1-n*n),l=0;l<4;l++)o.push(e[l]*(Math.cos(r*s)-n*a)+i[l]*a);return o}}(XN),function(t,e){t.sequenceNumber=0;var i=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new i(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(YN,XN),function(t,e){function i(t){var e=l;l=[],t<d.currentTime&&(t=d.currentTime),d._animations.sort(r),d._animations=s(t,!0,d._animations)[0],e.forEach((function(e){e[1](t)})),o()}function r(t,e){return t._sequenceNumber-e._sequenceNumber}function n(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){h.forEach((function(t){t()})),h.length=0}function s(t,i,r){f=!0,p=!1,e.timeline.currentTime=t,c=!1;var n=[],o=[],s=[],a=[];return r.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(n.push(e._effect),e._unmarkTarget()),e._needsTick&&(c=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)})),h.push.apply(h,n),h.push.apply(h,o),c&&requestAnimationFrame((function(){})),f=!1,[s,a]}var a=window.requestAnimationFrame,l=[],u=0;window.requestAnimationFrame=function(t){var e=u++;return 0==l.length&&a(i),l.push([e,t]),e},window.cancelAnimationFrame=function(t){l.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},n.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var r=new e.Animation(i);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var c=!1,p=!1;e.restart=function(){return c||(c=!0,requestAnimationFrame((function(){})),p=!0),p},e.applyDirtiedAnimation=function(t){if(!f){t._markTarget();var i=t._targetAnimations();i.sort(r),s(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=d._animations.indexOf(t);-1!==e&&d._animations.splice(e,1)})),o()}};var h=[],f=!1,d=new n;e.timeline=d}(YN,XN),function(t){function e(t,e){for(var i=0,r=0;r<t.length;r++)i+=t[r]*e[r];return i}function i(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function r(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function n(t){switch(t.t){case"rotatex":var e=r(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=r(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=r(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],n=t.d[1],o=t.d[2],s=(e=r(t.d[3]),i*i+n*n+o*o);if(0===s)i=1,n=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,n/=a,o/=a}var l=Math.sin(e/2),u=l*Math.cos(e/2),c=l*l;return[1-2*(n*n+o*o)*c,2*(i*n*c+o*u),2*(i*o*c-n*u),0,2*(i*n*c-o*u),1-2*(i*i+o*o)*c,2*(n*o*c+i*u),0,2*(i*o*c+n*u),2*(n*o*c-i*u),1-2*(i*i+n*n)*c,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=r(t.d[0]),h=r(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=r(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=r(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function o(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(n).reduce(i)}var s=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function i(t){var e=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function n(t,e,i,r){return[i*t[0]+r*e[0],i*t[1]+r*e[1],i*t[2]+r*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],l=0;l<4;l++)a.push(s[l].slice());for(l=0;l<3;l++)a[l][3]=0;if(0===t(a))return null;var u,c=[];s[0][3]||s[1][3]||s[2][3]?(c.push(s[0][3]),c.push(s[1][3]),c.push(s[2][3]),c.push(s[3][3]),u=function(t,e){for(var i=[],r=0;r<4;r++){for(var n=0,o=0;o<4;o++)n+=t[o]*e[o][r];i.push(n)}return i}(c,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),r=e[0][0],n=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],l=e[1][2],u=e[2][0],c=e[2][1],p=e[2][2],h=[[(a*p-l*c)*i,(o*c-n*p)*i,(n*l-o*a)*i,0],[(l*u-s*p)*i,(r*p-o*u)*i,(o*s-r*l)*i,0],[(s*c-a*u)*i,(u*n-r*c)*i,(r*a-n*s)*i,0]],f=[],d=0;d<3;d++){for(var _=0,y=0;y<3;y++)_+=e[3][y]*h[y][d];f.push(_)}return f.push(1),h.push(f),h}(a)))):u=[0,0,0,1];var p=s[3].slice(0,3),h=[];h.push(s[0].slice(0,3));var f=[];f.push(r(h[0])),h[0]=i(h[0]);var d=[];h.push(s[1].slice(0,3)),d.push(e(h[0],h[1])),h[1]=n(h[1],h[0],1,-d[0]),f.push(r(h[1])),h[1]=i(h[1]),d[0]/=f[1],h.push(s[2].slice(0,3)),d.push(e(h[0],h[2])),h[2]=n(h[2],h[0],1,-d[1]),d.push(e(h[1],h[2])),h[2]=n(h[2],h[1],1,-d[2]),f.push(r(h[2])),h[2]=i(h[2]),d[1]/=f[2],d[2]/=f[2];var _=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(h[1],h[2]);if(e(h[0],_)<0)for(l=0;l<3;l++)f[l]*=-1,h[l][0]*=-1,h[l][1]*=-1,h[l][2]*=-1;var y,g,v=h[0][0]+h[1][1]+h[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(h[2][1]-h[1][2])*y,(h[0][2]-h[2][0])*y,(h[1][0]-h[0][1])*y,.25/y]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?g=[.25*(y=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/y,(h[0][2]+h[2][0])/y,(h[2][1]-h[1][2])/y]:h[1][1]>h[2][2]?(y=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),g=[(h[0][1]+h[1][0])/y,.25*y,(h[1][2]+h[2][1])/y,(h[0][2]-h[2][0])/y]):(y=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),g=[(h[0][2]+h[2][0])/y,(h[1][2]+h[2][1])/y,.25*y,(h[1][0]-h[0][1])/y]),[p,f,d,g,u]}}();t.dot=e,t.makeMatrixDecomposition=function(t){return[s(o(t))]},t.transformListToMatrix=o}(XN),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function r(t,e,i,r,n){for(var o=[],s=[],a=[],l=function(t,e){for(var i=t,r=e;i&&r;)i>r?i%=r:r%=i;return t*e/(i+r)}(r.length,n.length),u=0;u<l;u++){var c=e(r[u%r.length],n[u%n.length]);if(!c)return;o.push(c[0]),s.push(c[1]),a.push(c[2])}return[o,s,function(e){var r=e.map((function(t,e){return a[e](t)})).join(i);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,r,n){t=i.bind(null,t);for(var o=[];;){var s=t(n);if(!s)return[o,n];if(o.push(s[0]),!(s=e(r,n=s[1]))||""==s[1])return[o,n];n=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=i);r++)if("("==e[r])i++;else if(")"==e[r]&&(0==--i&&r++,i<=0))break;var n=t(e.substr(0,r));return null==n?void 0:[n,e.substr(r)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var r=[],n=0;n<e.length;n++){var o=t.consumeTrimmed(e[n],i);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),i=o[1]}if(""==i)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,i){for(var r=[],n=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var l=i[a](t[s],e[s++]);r.push(l[0]),n.push(l[1]),o.push(l[2])}else!function(t){r.push(!1),n.push(!1),o.push((function(){return i[t]}))}(a);return[r,n,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(XN),function(t){function e(e){var i={inset:!1,lengths:[],color:null},r=t.consumeRepeated((function(e){var r=t.consumeToken(/^inset/i,e);return r?(i.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(i.lengths.push(r[0]),r):(r=t.consumeColor(e))?(i.color=r[0],r):void 0}),/^/,e);if(r&&r[0].length)return[i,r[1]]}var i=function(e,i,r,n){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],l=0;l<r.length||l<n.length;l++){var u=r[l]||o(n[l].inset),c=n[l]||o(r[l].inset);s.push(u),a.push(c)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var r,n=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var l=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(l[0]),s[0].push(l[1]),n.push(l[2])}if(e.color&&i.color){var u=t.mergeColors(e.color,i.color);o[1]=u[0],s[1]=u[1],r=u[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<n.length;o++)i+=n[o](t[0][o])+" ";return r&&(i+=r(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var r=t.consumeRepeated(e,/^,/,i);if(r&&""==r[1])return r[0]}),i,["box-shadow","text-shadow"])}(XN),function(t){function e(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function i(t,e,i){return Math.min(e,Math.max(t,i))}function r(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function n(t,r){return function(n,o){return[n,o,function(n){return e(i(t,r,n))}]}}function o(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],n=0;n<e.length;n++){var o=r(e[n]);if(void 0===o)return;i.push(o)}return i}}t.clamp=i,t.addPropertiesHandler(o,(function(t,i){if(t.length==i.length)return[t,i,function(t){return t.map(e).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(r,n(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(r,n(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(r,(function(t,e){if(0!=t)return n(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,function(t){return Math.round(i(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=r,t.parseNumberList=o,t.mergeNumbers=function(t,i){return[t,i,e]},t.numberToString=e}(XN),function(t){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(XN),function(t){function e(t){t=t.trim(),n.fillStyle="#000",n.fillStyle=t;var e=n.fillStyle;if(n.fillStyle="#fff",n.fillStyle=t,e==n.fillStyle){n.fillRect(0,0,1,1);var i=n.getImageData(0,0,1,1).data;n.clearRect(0,0,1,1);var r=i[3]/255;return[i[0]*r,i[1]*r,i[2]*r,r]}}function i(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var n=r.getContext("2d");t.addPropertiesHandler(e,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,e),t.mergeColors=i}(XN),function(t){function e(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=n();return")"!==o?NaN:(e(),t)}function r(){for(var t=i();"*"===o||"/"===o;){var r=o;e();var n=i();"*"===r?t*=n:t/=n}return t}function n(){for(var t=r();"+"===o||"-"===o;){var i=o;e();var n=r();"+"===i?t+=n:t-=n}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),n()}function i(t,i){if("0"==(i=i.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(i)){i=i.replace(/calc\(/g,"(");var r={};i=i.replace(t,(function(t){return r[t]=null,"U"+t}));for(var n="U("+t.source+")",o=i.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+n,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var l in r){var u=e(i.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(n,"g"),"*0"));if(!isFinite(u))return;r[l]=u}return r}}}function r(t,e){return n(t,e,!0)}function n(e,i,r){var n,o=[];for(n in e)o.push(n);for(n in i)o.indexOf(n)<0&&o.push(n);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,n){return 1==e.length&&r&&(i=Math.max(i,0)),t.numberToString(i)+o[n]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),a=i.bind(null,new RegExp(o+"|%","g")),l=i.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=a,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,a),t.parseAngle=l,t.mergeDimensions=n;var u=t.consumeParenthesised.bind(null,s),c=t.consumeRepeated.bind(void 0,u,/^/),p=t.consumeRepeated.bind(void 0,c,/^,/);t.consumeSizePairList=p;var h=t.mergeNestedRepeated.bind(void 0,r," "),f=t.mergeNestedRepeated.bind(void 0,h,",");t.mergeNonNegativeSizePair=h,t.addPropertiesHandler((function(t){var e=p(t);if(e&&""==e[1])return e[0]}),f,["background-size"]),t.addPropertiesHandler(a,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(a,n,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(XN),function(t){function e(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function i(i){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,e,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],i);if(r&&4==r[0].length)return r[0]}var r=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(r){var n=r?e:i;if("auto"==n)return"auto";var o=t.mergeDimensions(n,n);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=i,t.mergeBoxes=r,t.addPropertiesHandler(i,r,["clip"])}(XN),function(t){function e(t){return function(e){var i=0;return t.map((function(t){return t===l?e[i++]:t}))}}function i(t){return t}function r(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,r=/\s*(\w+)\(([^)]*)\)/g,n=[],o=0;i=r.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=p[s];if(!a)return;var l=i[2].split(","),h=a[0];if(h.length<l.length)return;for(var f=[],d=0;d<h.length;d++){var _,y=l[d],g=h[d];if(void 0===(_=y?{A:function(e){return"0"==e.trim()?c:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:c,n:f[0],t:u}[g]))return;f.push(_)}if(n.push({t:s,d:f}),r.lastIndex==e.length)return n}}function n(t){return t.toFixed(6).replace(".000000","")}function o(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var r=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var o=t.makeMatrixDecomposition(i)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var i=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(n).join(",")}])}function s(t){return t.replace(/[xy]/,"")}function a(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var l=null,u={px:0},c={deg:0},p={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],i],matrix3d:["NNNNNNNNNNNNNNNN",i],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",e([l,l,1]),i],scalex:["N",e([l,1,1]),e([l,1])],scaley:["N",e([1,l,1]),e([1,l])],scalez:["N",e([1,1,l])],scale3d:["NNN",i],skew:["Aa",null,i],skewx:["A",null,e([l,c])],skewy:["A",null,e([c,l])],translate:["Tt",e([l,l,u]),i],translatex:["T",e([l,u,u]),e([l,u])],translatey:["T",e([u,l,u]),e([u,l])],translatez:["L",e([u,u,l])],translate3d:["TTL",i]};t.addPropertiesHandler(r,(function(e,i){var r=t.makeMatrixDecomposition&&!0,n=!1;if(!e.length||!i.length){e.length||(n=!0,e=i,i=[]);for(var l=0;l<e.length;l++){var u=e[l].t,c=e[l].d,h="scale"==u.substr(0,5)?1:0;i.push({t:u,d:c.map((function(t){if("number"==typeof t)return h;var e={};for(var i in t)e[i]=h;return e}))})}}var f=[],d=[],_=[];if(e.length!=i.length){if(!r)return;f=[(w=o(e,i))[0]],d=[w[1]],_=[["matrix",[w[2]]]]}else for(l=0;l<e.length;l++){var y=e[l].t,g=i[l].t,v=e[l].d,m=i[l].d,b=p[y],x=p[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!r)return;var w=o([e[l]],[i[l]]);f.push(w[0]),d.push(w[1]),_.push(["matrix",[w[2]]])}else{if(y==g)u=y;else if(b[2]&&x[2]&&s(y)==s(g))u=s(y),v=b[2](v),m=x[2](m);else{if(!b[1]||!x[1]||a(y)!=a(g)){if(!r)return;f=[(w=o(e,i))[0]],d=[w[1]],_=[["matrix",[w[2]]]];break}u=a(y),v=b[1](v),m=x[1](m)}for(var S=[],P=[],A=[],O=0;O<v.length;O++)w=("number"==typeof v[O]?t.mergeNumbers:t.mergeDimensions)(v[O],m[O]),S[O]=w[0],P[O]=w[1],A.push(w[2]);f.push(S),d.push(P),_.push([u,A])}}if(n){var C=f;f=d,d=C}return[f,d,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return _[e][1][i](t)})).join(",");return"matrix"==_[e][0]&&16==i.split(",").length&&(_[e][0]="matrix3d"),_[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(r(e));return"matrix("+n(i[0])+" "+n(i[1])+" "+n(i[4])+" "+n(i[5])+" "+n(i[12])+" "+n(i[13])+")"}}(XN),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(XN),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var n=t.consumeRepeated(i,/^/,r);if(n&&""==n[1]){var s=n[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function n(r){var n=t.consumeRepeated(i,/^/,r);if(n){for(var s=n[0],a=[{"%":50},{"%":50}],l=0,u=!1,c=0;c<s.length;c++){var p=s[c];"string"==typeof p?(u=/bottom|right/.test(p),a[l={left:0,right:0,center:l,top:1,bottom:1}[p]]=o[p],"center"==p&&l++):(u&&((p=e(p))["%"]=(p["%"]||0)+100),a[l]=p,l++,u=!1)}return[a,n[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(r.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(r.bind(null,2),s,["perspective-origin"]),t.consumePosition=n,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(n,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(XN),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),n=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler((function(r){var n=t.consumeToken(/^circle/,r);if(n&&n[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],n[1]));var o=t.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,r);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],n,")"]):void 0}),["shape-outside"])}(XN),function(t){function e(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(i[t]=e),r[e]=t}))}var i={},r={};e("transform",["webkitTransform","msTransform"]),e("transformOrigin",["webkitTransformOrigin"]),e("perspective",["webkitPerspective"]),e("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return i[t]||t},t.unprefixedPropertyName=function(t){return r[t]||t}}(XN)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(r,n){var o=i.call(this,r,n);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var l=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else l.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,r=!1;try{var n="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[n,n]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==n}catch(t){}finally{i&&i.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(YN),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){var t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,r=e.parentNode,n=t(i),o=n[0],s=n[1],a=t(r),l=a[0],u=a[1],c={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(c=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:o+l+c.x,y:s+u+c.y,width:c.width,height:c.height}}}(this):this.getBoundingClientRect()}}(),qN=CanvasRenderingContext2D.prototype.measureText,CanvasRenderingContext2D.prototype.measureText=function(t){var e=qN.call(this,t);if(void 0!==e.actualBoundingBoxAscent)return e;var i=this.font||"10px sans-serif",r=parseFloat(i);isNaN(r)&&(r=10);var n=.75*r,o=.25*r,s=.8*r;return e.actualBoundingBoxAscent=n,e.actualBoundingBoxDescent=o,e.fontBoundingBoxAscent=s,e};var QN={},tM={},eM={},iM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RcDebug=t.getCallback=t.checkEnum=t.enumValues=t.incv=t.copyObj=t.pickProp4=t.pickProp3=t.pickProp=t.pickNum3=t.pickNum=t.distance=t.absv=t.maxv=t.minv=t.log10=t.pow10=t.sin=t.cos=t.round=t.ceil=t.floor=t.assignObj=t.isNone=t.isBoolean=t.isNumber=t.isStringL=t.isString=t.isFunc=t.isArrayEx=t.isArray=t.isObject=t.hasOwnProperty=t.SVGNS=void 0,t.SVGNS="http://www.w3.org/2000/svg",t.hasOwnProperty=Object.prototype.hasOwnProperty;t.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},t.isArray=Array.isArray;t.isArrayEx=function(t,e){return Array.isArray(t)&&t.length>=e};t.isFunc=function(t){return"function"==typeof t};t.isString=function(t){return"string"==typeof t};t.isStringL=function(t){return"string"==typeof t&&t.length>0};t.isNumber=function(t){return"number"==typeof t};t.isBoolean=function(t){return"boolean"==typeof t};t.isNone=function(t){return null==t||isNaN(t)},t.assignObj=Object.assign,t.floor=Math.floor,t.ceil=Math.ceil,t.round=Math.round,t.cos=Math.cos,t.sin=Math.sin;t.pow10=function(t){return Math.pow(10,t)},t.log10=Math.log10,t.minv=Math.min,t.maxv=Math.max,t.absv=Math.abs;t.distance=function(t,e,i,r){return Math.sqrt(Math.pow(t-i,2)+Math.pow(e-r,2))};t.pickNum=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t};t.pickNum3=function(t,e,i){var r=parseFloat(t);return isNaN(r)?(r=parseFloat(e),isNaN(r)?parseFloat(i):r):r};t.pickProp=function(t,e){return void 0!==t?t:e};t.pickProp3=function(t,e,i){return void 0!==t?t:void 0!==e?e:i};t.pickProp4=function(t,e,i,r){return void 0!==t?t:void 0!==e?e:null!=i?i:r};t.copyObj=function(e){return e&&(0,t.assignObj)({},e)};t.incv=function(t,e,i){return t+(e-t)*i};t.enumValues=function(t){return Object.keys(t).map((function(e){return t[e]}))};t.checkEnum=function(t,e,i){for(var r=Object.keys(t),n=r.length-1;n>=0;n--)if(t[r[n]]===e)return e;return i};t.getCallback=function(t){return"function"==typeof t?t:null};var e=function(){function t(){}return t.debug=function(){this._debugging},t._debugging=!1,t}();t.RcDebug=e}(iM);var rM={},nM={},oM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.$_registerLocale=t.$_setLocale=t.locale=t.Locales=void 0;var e=iM;t.Locales={},t.Locales.ko={dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},t.Locales.en={dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"};var i="ko";t.locale=t.Locales[i]||t.Locales[i="ko"];t.$_setLocale=function(e){return e&&(t.locale=t.Locales[i=e.substring(0,2)]),t.locale||(t.locale=t.Locales[i="ko"])};t.$_registerLocale=function(i,r){i&&(0,e.isObject)(r)&&(t.locale=t.Locales[i.substring(0,2)]=Object.assign(t.Locales.ko,t.Locales.en,r))}}(oM),function(e){var i,r=t&&t.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},i(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 r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e._TextOrientation=e._WritingMode=e._SeriesLoadAnimation=e._PaletteMode=e._TextOverflow=e.buildValueRanges=e._AlignBase=e.throwFormat2=e.throwFormat=e.throwError=e.formatMessage2=e.formatMessage=e.ZERO_SIDES=e.AlertError=e.checkNull=e.assert=e.AssertionError=e.RtAbortError=e.getCssProp=e.CAMEL2KEBAB=e.STROKE=e.FILL=e._ChartTextOverflow=e._ChartTextEffect=e._VerticalAlign=e._Align=e.sizeToCssEx=e.sizeToCss=e.NUMBER_FORMAT=e.NUMBER_SYMBOLS=e.RAD_DEG=e.DEG_RAD=e.ORG_ANGLE=e.PI_2=e.PI=e.ELLIPSIS=e.ZWSP=e.ONE_CHAR=e._undef=void 0,e.fixAngle=function(t){return t>e.PI_2?t%e.PI_2:t},e.fixnum=function(t){return parseFloat(t.toPrecision(12))},e.fixpos=function(t){return Math.floor(1e6*t)/1e6},e.toStr=function(t){return null==t?null:String(t)},e.pixel=function(t){return t+"px"},e.dimStr=function(t){return null!=t?"number"==typeof t?"".concat(t,"px"):t:null},e.isNull=function(t){return null==t||Number.isNaN(t)||""===t},e.pad2=function(t){return t<10?"0"+t:String(t)},e.pad3=function(t){return t<10?"00"+t:t<100?"0"+t:String(t)},e.newObject=function(t,e){var i={};return i[t]=e,i},e.utc=function(t,e,i,r,n,o,s){void 0===e&&(e=0);void 0===i&&(i=1);void 0===r&&(r=0);void 0===n&&(n=0);void 0===o&&(o=0);void 0===s&&(s=0);return new Date(Date.UTC(t,e,i,r,n,o,s))},e.isValidPercentSize=function(t){return!isNaN(t)||!("string"!=typeof t||!t.trimEnd().endsWith("%")||isNaN(parseFloat(t)))},e.parsePercentSize=a,e.parsePercentSize2=function(t,e){return a(t,!0)||a(e,!1)},e.getPercent=function(t){return t&&!t.fixed?t.size:NaN},e.calcPercent=function(t,e,i){void 0===i&&(i=NaN);return t?t.fixed?t.size:t.size*e/100:i},e.calcPercentF=function(t,e){return t.fixed?t.size:t.size*e/100};var n=iM,o=oM;e._undef=void 0,e.ONE_CHAR="①".charCodeAt(0),e.ZWSP="​",e.ELLIPSIS="…",e.PI=Math.PI,e.PI_2=2*e.PI,e.ORG_ANGLE=-e.PI/2,e.DEG_RAD=2*e.PI/360,e.RAD_DEG=360/e.PI/2,e.NUMBER_SYMBOLS="k,M,G,T,P,E",e.NUMBER_FORMAT="#,##0.#";var s="%".charCodeAt(0);e.sizeToCss=function(t){return t.fixed?t.size+"px":t.size+"%"};function a(t,i,r){var n,a=!1;if(null==t){if(i)return null;n=r||0,a=!0}else if("string"==typeof t){var l=t.trim();if(0===l.length?n=NaN:l.charCodeAt(l.length-1)===s?n=1===l.length?NaN:parseFloat(l):(n=parseFloat(l),a=!0),isNaN(n)){if(i)return null;(0,e.throwFormat)(o.locale.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(i)return null;n=r||0,a=!0}else a=!0;return{size:n,fixed:a}}e.sizeToCssEx=function(t){return t?t.fixed?t.size+"px":t.size+"%":""},e._Align={LEFT:"left",CENTER:"center",RIGHT:"right"},e._VerticalAlign={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},e._ChartTextEffect={NONE:"none",OUTLINE:"outline",BACKGROUND:"background"},e._ChartTextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e.FILL="fill",e.STROKE="stroke",e.CAMEL2KEBAB={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"};e.getCssProp=function(t){var i=e.CAMEL2KEBAB[t];if(!i){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return e.CAMEL2KEBAB[t]=r,r}return i};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.check=function(t){if(t instanceof e)return!0;throw t},e}(Error);e.RtAbortError=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.AssertionError=u;e.assert=function(t,e){if(!t)throw new u(e)};e.checkNull=function(t,e){if(!t)throw new Error(e||t+" is null.")};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.AlertError=c,e.ZERO_SIDES=Object.freeze({left:0,right:0,top:0,bottom:0,horz:0,vert:0});e.formatMessage=function(t,e){return t.replace("%1",e)};e.formatMessage2=function(t,e,i){return t.replace("%1",e).replace("%2",i)};e.throwError=function(t){throw new Error(t)};e.throwFormat=function(t,i){throw new Error((0,e.formatMessage)(t,i))};e.throwFormat2=function(t,i,r){throw new Error((0,e.formatMessage2)(t,i,r))},e._AlignBase={CHART:"chart",BODY:"body",PARENT:"parent"};e.buildValueRanges=function(t,i,r,o,s,a,l){var u,c;if(void 0===o&&(o=!0),void 0===s&&(s=!0),void 0===a&&(a=!1),o&&(i=-Number.MAX_VALUE,r=Number.MAX_VALUE),(0,n.isArray)(t))u=[],t.forEach((function(t){if((0,n.isObject)(t)&&(0,n.isString)(t.color)){var o={fromValue:(0,n.pickNum)(t.fromValue,c?c.toValue:i),toValue:(0,n.pickNum)(t.toValue,r),color:t.color,style:t.style?(0,n.assignObj)({},t.style):e._undef};o.fromValue<o.toValue&&(u.push(o),c=o)}})),u=u.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=i&&t.fromValue<r})),s&&u.forEach((function(t){t.fromValue=(0,n.maxv)(t.fromValue,i),t.toValue=(0,n.minv)(t.toValue,r)}));else if((0,n.isObject)(t)&&(0,n.isArray)(t.colors)&&t.colors.length>0){var p=t.colors,h=(0,n.isArray)(t.styles)?t.styles:null;if(u=[],(0,n.isArray)(t.steps)&&t.steps.length>0){var f=(0,n.isArray)(t.steps)?t.steps:null;i<f[0]&&f.unshift(i),r>f[f.length-1]&&f.push(r);for(var d=0;d<f.length-1;d++)u.push({fromValue:f[d],toValue:f[d+1],color:p[(0,n.minv)(d,p.length-1)],style:h?h[(0,n.minv)(d,h.length-1)]:e._undef})}else{var _=(0,n.pickNum)(t.fromValue,i),y=(0,n.pickNum)(t.toValue,r),g=(y-_)/p.length;for(d=0;_<y;)u.push({fromValue:_,toValue:_+=g,color:p[(0,n.minv)(d,p.length-1)],style:h?h[(0,n.minv)(d,h.length-1)]:e._undef}),d++}}if(a&&u&&u.length>0){d=0;for(var v=i;d<u.length;)u[d].fromValue>v&&u.splice(d,0,{fromValue:v,toValue:u[d].fromValue,color:l}),v=u[d].toValue,d++;u[d-1].toValue<r&&u.push({fromValue:u[d-1].toValue,toValue:r,color:l})}return u},e._TextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e._PaletteMode={NORMAL:"normal",SHUFFLE:"shuffle",RANDOM:"random"},e._SeriesLoadAnimation={DEFAULT:"default",REVEAL:"reveal",GROW:"grow",SPREAD:"spread",FADEIN:"fadein"},e._WritingMode={HORIZONTAL_TB:"horizontal-tb",VERTICAL_LR:"vertical-lr",VERTICAL_RL:"vertical-rl",VERTICAL:"vertical"},e._TextOrientation={MIXED:"mixed",UPRIGHT:"upright"}}(nM);var sM=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},aM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},lM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rM,"__esModule",{value:!0}),rM.Utils=rM.isIE=void 0;var uM=iM,cM=nM,pM=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){}),rM.isIE="undefined"!=typeof window&&"undefined"!=typeof document&&!!document.documentMode&&!!window.MSInputMethodContext;var hM=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,aM([],sM(t),!1))},t.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.warn.apply(console,aM([],sM(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),r=e.getDate(),n=[0,31,59,90,120,151,181,212,243,273,304,334][i]+r;return i>1&&t.isLeapYear(e.getFullYear())&&n++,n},t.incMonth=function(e,i){var r=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate((0,uM.minv)(r,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var r=t.getMonth(),n=t.getFullYear(),o=new Date(n,r,1).getDay(),s=new Date(n,r+1,0).getDate(),a=t.getDate()+o-1,l=e+Math.ceil((s+o-7)/7),u=e+Math.floor(a/7);return i||u<2+e?u:u===l?e+5:u},t.weekOfYear=function(t,e){var i=t.getFullYear(),r=new Date(i,0,1).getDay(),n=this.dateOfYear(t)+r-1;return e+Math.floor(n/7)},t.isObject=function(t){return t&&"object"==typeof t&&!(0,uM.isArray)(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!(0,uM.isArray)(t))return(0,uM.assignObj)({},t)},t.checkArray=function(t){return(0,uM.isArray)(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?(0,uM.isArray)(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return(0,uM.isArray)(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=e,n=e+t;r<n;r++)i.push(r);return i},t.isValueArray=function(t){if((0,uM.isArray)(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return(0,uM.isArray)(t)?t:null!=t?[t]:null},t.copyArray=function(t){return(0,uM.isArray)(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,r=e.length;i<r;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-pM},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=(0,uM.maxv)(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=(0,uM.maxv)(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r=t.length,n=0;n<r;n++)if(null!=(i=t[n]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var r=0;r<i;++r)if(t[r]!==e[r])return!1;return!0},t.parseTuples=function(t){if((0,uM.isArray)(t)){var e=[],i=-1/0;return t.forEach((function(r,n){(0,uM.isArray)(r)?!isNaN(r[0])&&!isNaN(r[1])&&r[0]>i&&(e.push([+r[0],+r[1]]),i=r[0]):isNaN(r)||n!==t.length-1||e.push([1/0,+r])})),e.length>0?e:void 0}if(!isNaN(t))return[[1/0,+t]]},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.isDate=function(t){return t.getTime&&"[object Date]"===Object.prototype.toString.call(t)},t.deepClone=function(t){var e,i;if(null==t||"object"!=typeof t)return t;if(this.isDate(t))return new Date(t);var r=(0,uM.isArray)(t)?[]:{};try{for(var n=lM(Object.keys(t)),o=n.next();!o.done;o=n.next()){var s=o.value;r[s]=this.deepClone(t[s])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}return r},t.getArray=function(t,e){for(var i=[],r=0;r<t;r++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=0;r<t;r++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var r=+new Date;i(),t.log(e,+new Date-r+"ms")},t.clamp=function(t,e,i){return(0,uM.maxv)(e,(0,uM.minv)(i,t))},t.makeIntArray=function(t,e){for(var i=new Array((0,uM.maxv)(0,e-t)),r=t;r<e;r++)i[r-t]=r;return i},t.shuffle=function(t){for(var e=t.length;e;){var i=Math.floor(Math.random()*e),r=t[--e];t[e]=t[i],t[i]=r}return t},t.isAnimation=function(t){return"[object Animation]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var r=(0,uM.absv)(t);if(r>=1e3)for(var n=e.length;n>0;){var o=Math.pow(1e3,n--);if(o<=Math.pow(10,Math.log(r)*Math.LOG10E)&&(i||10*r%o==0))return{value:t/o,symbol:e[n]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.randomLike=function(t){return(2654435761*(123456789^t)>>>16)/65536},t.diffAngle=function(t,e){var i=(0,uM.absv)(t-e);return(0,uM.minv)(i,cM.PI_2-i)},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}();rM.Utils=hM;var fM,dM={},_M={},yM=t&&t.__extends||(fM=function(t,e){return fM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},fM(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 i(){this.constructor=t}fM(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),gM=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},vM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},mM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_M,"__esModule",{value:!0}),_M.EventProvider=_M.RcObject=void 0;var bM=0,xM=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(bM++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this._doDestroy(),this.$_destroyed=!0),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orphaned",{get:function(){return this.$_destroying||this.$_destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}();_M.RcObject=xM;var wM=function(t){function e(){var e=t.apply(this,vM([],gM(arguments),!1))||this;return e._listeners=[],e}return yM(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,r=Array.prototype.slice.call(arguments,0);r[0]=this;try{for(var n=mM(this._listeners),o=n.next();!o.done;o=n.next()){var s=o.value,a=s[t];if(a){var l=a.apply(s,r);if(void 0!==l)return l}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(xM);_M.EventProvider=wM;var SM=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(dM,"__esModule",{value:!0}),dM.ChartDataCollection=dM.DataObject=void 0;var PM=iM,AM=oM,OM=nM,CM=function(t){return t&&"object"==typeof t},EM=function(t){function e(e,i){var r=t.call(this)||this;return r._rows=[],r.$_buildOptions(e||{}),(0,PM.isArray)(i)&&i.forEach((function(t){return r._rows.push(r.$_readRow(t))})),r}return SM(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=(0,PM.isArray)(i)?i.slice():(0,PM.isString)(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var r=0;r<e.length;r++)this._fieldMap[e[r]]=r},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if((0,PM.isArray)(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else CM(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var r=this._rows[t],n=r[e];i!==n&&(r[e]=i,this._rows[t]=r,this._fireEvent("onDataValueChanged",t,e,i,n),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var r=this._rows,n=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>r.length)&&(i=r.length);for(var o=e;o<i;o++)n.push(r[o][t]);return n},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&(0,OM.throwFormat)(AM.locale.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(_M.EventProvider);dM.DataObject=EM;var VM=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],r=void 0;(0,PM.isArray)(i)?r=new EM({},i):CM(i)&&(0,PM.isArray)(i.values)&&(r=new EM(i.options,i.values)),this._map[e]=r}},t}();dM.ChartDataCollection=VM;var TM={},kM={},LM={},NM={};Object.defineProperty(NM,"__esModule",{value:!0}),NM.NumberFormatter=void 0;var MM=iM,jM="0".charCodeAt(0),RM="#".charCodeAt(0),BM=",".charCodeAt(0),DM="s".charCodeAt(0),IM="a".charCodeAt(0),GM=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1},this._options2=Object.assign({},this._options),this._options2.useGrouping=!1}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.toNum=function(t){return+t.toLocaleString(void 0,this._options2)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},r=t.indexOf(".");if(r>=0){for(var n=r+1;n<e&&t.charCodeAt(n)===jM;)i.minimumFractionDigits++,n++;for(i.maximumFractionDigits=i.minimumFractionDigits;n<e&&t.charCodeAt(n)===RM;)i.maximumFractionDigits++,n++;r-=1}else r=e-1;for(var o=r;o>=0&&t.charCodeAt(o)===jM;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===BM){i.useGrouping=!0;break}}for(o=r;o>=0;){if(t.charCodeAt(o--)===DM){i.signDisplay="always";break}}if(!i.signDisplay)for(o=r;o>=0;){if(t.charCodeAt(o--)===IM){i.signDisplay="never";break}}return i.minimumIntegerDigits=(0,MM.maxv)(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}();NM.NumberFormatter=GM;var FM={},zM={};Object.defineProperty(zM,"__esModule",{value:!0}),zM.DatetimeFormatter=void 0;var $M=oM,HM=nM,WM=rM,UM=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],YM=[".","/","-",":"],XM="Z".charCodeAt(0),qM="z".charCodeAt(0),ZM="A".charCodeAt(0),KM="a".charCodeAt(0),JM="y".charCodeAt(0),QM="M".charCodeAt(0),tj="m".charCodeAt(0),ej="W".charCodeAt(0),ij="w".charCodeAt(0),rj="d".charCodeAt(0),nj="H".charCodeAt(0),oj="h".charCodeAt(0),sj="S".charCodeAt(0),aj="s".charCodeAt(0),lj=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter($M.locale.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||$M.locale.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,r="",n=0,o=i.length;n<o;n++){var s=i[n],a=s.length;switch(s.charCodeAt(0)){case JM:r+=a>2?t.getFullYear():(0,HM.pad2)(t.getFullYear()%100);break;case QM:r+=a>1?(0,HM.pad2)(t.getMonth()+1):t.getMonth()+1;break;case rj:r+=a>1?(0,HM.pad2)(t.getDate()):t.getDate();break;case ej:r+=a>1?(0,HM.pad2)(WM.Utils.weekOfYear(t,e)+1):WM.Utils.weekOfMonth(t,e,!0)+1;break;case ij:r+=a>1?WM.Utils.long_week_days[t.getDay()]:WM.Utils.week_days[t.getDay()];break;case nj:r+=a>1?(0,HM.pad2)(t.getHours()):t.getHours();break;case oj:if(this._hasAmPm){var l=t.getHours();0==l?l=12:l>12&&(l-=12),r+=a>1?(0,HM.pad2)(l):l}else r+=a>1?(0,HM.pad2)(t.getHours()):t.getHours();break;case tj:r+=a>1?(0,HM.pad2)(t.getMinutes()):t.getMinutes();break;case aj:r+=a>1?(0,HM.pad2)(t.getSeconds()):t.getSeconds();break;case KM:case ZM:t.getHours()<12?r+=$M.locale.am:r+=$M.locale.pm;break;case sj:var u=t.getMilliseconds();r+=3==a?(0,HM.pad3)(u):2==a?(0,HM.pad2)(u):u.toString().substring(0,a);break;default:r+=s}}return r},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),r=i.length,n=0;n<r;){var o=i.charAt(n);if(YM.indexOf(o)>=0)e.push(o),n++;else{for(var s=n++;n<r&&i.charAt(n)==o;)n++;if(o=i.substring(s,n),UM.indexOf(o)<0){var a=o.charCodeAt(0);(a>=ZM&&a<=XM||a>=KM&&a<=qM)&&(0,HM.throwFormat)($M.locale.invalidDateFormat,t)}e.push(o)}if(n<r&&WM.Utils.isWhiteSpace(o=i.charAt(n)))for(e.push(o);n<r&&WM.Utils.isWhiteSpace(i.charAt(n));)n++}return e},t.prototype.parse=function(t){t&&(this._format=t||$M.locale.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}();zM.DatetimeFormatter=lj;var uj={},cj={};Object.defineProperty(cj,"__esModule",{value:!0}),cj.Color=void 0;var pj=rM,hj=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(pj.Utils.startsWith(t,"rgb(")&&pj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):pj.Utils.startsWith(t,"rgba(")&&pj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):pj.Utils.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,r){return new t(e).getContrast(i,r)},t.interpolate=function(e,i,r){var n=new t(e),o=new t(i),s=1-r,a=Math.round(n.r*r+o.r*s),l=Math.round(n.g*r+o.g*s),u=Math.round(n.b*r+o.b*s),c=n.a*r+o.a*(1-r);return c<1?"rgba(".concat(a,",").concat(l,",").concat(u,",").concat(c,")"):"rgb(".concat(a,",").concat(l,",").concat(u,")")},t.toColor=function(e){return pj.isIE?new t(e).toString():e},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t.BLACK="#000",t.WHITE="#fff",t}();cj.Color=hj;var fj={},dj={};Object.defineProperty(dj,"__esModule",{value:!0}),dj.Dom=void 0;var _j=iM;"undefined"==typeof Element||Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var yj=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setAttrs=function(t,e){for(var i in e)t.setAttribute(i,e[i])},t.setStyles=function(t,e){return e&&Object.assign(t.style,e),t},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t.hasFill=function(t){var e=window.getComputedStyle(t).fill;return e&&"none"!==e},t.setVisible=function(t,e,i){return void 0===i&&(i=""),t.style.display=e?i:"none",e},t.isHidden=function(t){return"none"===t.style.display},t.setClipPath=function(e,i){var r=null;"string"==typeof i?r=i:t.isSVGClipPathElement(i)&&(r=i.id||null),r?e.setAttribute("clip-path","url(#".concat(r,")")):e.removeAttribute("clip-path")},t.createClipRect=function(t,e){var i=t.createElementNS(_j.SVGNS,"clipPath");return i.id=e,i.append(t.createElementNS(_j.SVGNS,"rect")),i},t.setRect=function(t,e){return this.setBounds(t,e.x,e.y,e.width,e.height)},t.setBounds=function(t,e,i,r,n){return t.setAttribute("x",e),t.setAttribute("y",i),t.setAttribute("width",r),t.setAttribute("height",n),t},t.isSVGElement=function(e){return t.isElement(e)&&e.namespaceURI===_j.SVGNS},t.isSVGClipPathElement=function(e){return t.isSVGElement(e)&&"clipPath"===e.tagName},t.setBoolData=function(t,e,i){i?t.dataset[e]="1":delete t.dataset[e]},t.isHoverAt=function(t){return t.matches(":hover")},t.instanceOf=function(e,i){return t.isElement(e)&&e.tagName===i.toUpperCase()},t.isElement=function(t){return t&&1===t.nodeType},t}();dj.Dom=yj;var gj,vj={},mj={};Object.defineProperty(mj,"__esModule",{value:!0}),mj.globalRealChartInfo=mj.LicType=void 0,function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(gj||(mj.LicType=gj={})),mj.globalRealChartInfo={name:"RealChart",version:"1.4.12",license:"enterprise",code:null},Object.defineProperty(vj,"__esModule",{value:!0}),vj.$_lc=vj.Cryptor=void 0;var bj=mj,xj=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,r=t.PAD,n=e.split(""),o=[],s=n.length;n[--s]==r;);for(var a=0;a<s;){var l=i.indexOf(n[a++])<<18;a<=s&&(l|=i.indexOf(n[a++])<<12),a<=s&&(l|=i.indexOf(n[a++])<<6),a<=s&&(l|=i.indexOf(n[a++])),o.push(l>>>16&255),o.push(l>>>8&255),o.push(255&l)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),wj=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var r=e.s2[255&t];t>>=8;var n=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(n>>16)+((65535&o)+(65535&n)>>16)<<16|(65535&o)+(65535&n)&65535;return((s=(s>>16^r>>16)<<16|65535&(65535&s^65535&r))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[0]),s=r(s,r(n(o,i),i.p[1])),o=r(o,r(n(s,i),i.p[2])),s=r(s,r(n(o,i),i.p[3])),o=r(o,r(n(s,i),i.p[4])),s=r(s,r(n(o,i),i.p[5])),o=r(o,r(n(s,i),i.p[6])),s=r(s,r(n(o,i),i.p[7])),o=r(o,r(n(s,i),i.p[8])),s=r(s,r(n(o,i),i.p[9])),o=r(o,r(n(s,i),i.p[10])),s=r(s,r(n(o,i),i.p[11])),o=r(o,r(n(s,i),i.p[12])),s=r(s,r(n(o,i),i.p[13])),o=r(o,r(n(s,i),i.p[14])),s=r(s,r(n(o,i),i.p[15])),o=r(o,r(n(s,i),i.p[16])),e.right=o,e.left=r(s,i.p[17])},t._decryptBlock=function(e,i){var r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[17]),s=r(s,r(n(o,i),i.p[16])),o=r(o,r(n(s,i),i.p[15])),s=r(s,r(n(o,i),i.p[14])),o=r(o,r(n(s,i),i.p[13])),s=r(s,r(n(o,i),i.p[12])),o=r(o,r(n(s,i),i.p[11])),s=r(s,r(n(o,i),i.p[10])),o=r(o,r(n(s,i),i.p[9])),s=r(s,r(n(o,i),i.p[8])),o=r(o,r(n(s,i),i.p[7])),s=r(s,r(n(o,i),i.p[6])),o=r(o,r(n(s,i),i.p[5])),s=r(s,r(n(o,i),i.p[4])),o=r(o,r(n(s,i),i.p[3])),s=r(s,r(n(o,i),i.p[2])),o=r(o,r(n(s,i),i.p[1])),e.right=o,e.left=r(s,i.p[0])},t._init=function(e){var i,r,n,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,l=0,u=0,c={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,r=o.length;for(i=0;i<4;i++)u=u*t.POW8|o[l++%r];return(e>>16^u>>16)<<16|65535&(65535&e^65535&u)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,n=p.p.length;i<n;)a(c,p),p.p[i++]=c.left,p.p[i++]=c.right;for(i=0;i<4;i++)for(r=0,n=p["s"+i].length;r<n;)a(c,p),p["s"+i][r++]=c.left,p["s"+i][r++]=c.right;return p},t.decrypt=function(e,i){for(var r=t._decryptBlock,n=t._init(i),o=[],s=xj.decode(e),a=s.length>>3,l=0,u={left:null,right:null},c=0;c<a;c++){u.left=s[l]*t.POW24|s[l+1]*t.POW16|s[l+2]*t.POW8|s[l+3],u.right=s[l+4]*t.POW24|s[l+5]*t.POW16|s[l+6]*t.POW8|s[l+7],r(u,n);var p=u.left,h=u.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(h>>24&255),o.push(h>>16&255),o.push(h>>8&255),o.push(255&h),l+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[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],s1:[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],s2:[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],s3:[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],k:[202,218,204,100]},t}();vj.Cryptor=wj;var Sj=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var r=t.split(","),n=0,o=r.length;n<o;n++){var s=r[n];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=wj.decrypt(t,"dkdl"+this._getLDKey(wj.kb.k)).split(";"),r=0,n=i.length;r<n;r++){var o=i[r].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}();vj.$_lc=function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=bj.globalRealChartInfo.code||window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var r=Sj.decrypt(t);if("RealChart"!==r.name||"RealChart"!==bj.globalRealChartInfo.name)throw new Error(i);try{var n=r.server.toLowerCase(),o=location.pathname.toLowerCase();if(bj.globalRealChartInfo.license!=bj.LicType.Developer&&!Sj.includedDomains(n,e.toLowerCase(),o))throw new Error(i);var s=r.lic.toLowerCase();if(!Object.values(bj.LicType).includes(s))throw new Error(i);if(bj.globalRealChartInfo.license=r.lic,s==bj.LicType.Evaluation||s==bj.LicType.Limited){var a=r.expire.split(".").map((function(t){return parseInt(t)})),l=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>l)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}return!0};var Pj={},Aj=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Pj,"__esModule",{value:!0}),Pj.createDomAnimation=Pj.DomAnimation=Pj.RcAnimation=Pj.createAnimation=void 0;var Oj=iM,Cj=nM,Ej={inOutSine:function(t){return-((0,Oj.cos)(Cj.PI*t)-1)/2}};Pj.createAnimation=function(t,e,i,r,n,o){var s=(0,Cj.newObject)(e,null!=i?i:"initial"),a=(0,Cj.newObject)(e,r),l=t.animate([s,a],{duration:n,fill:"none"});return o&&(l?l.addEventListener("finish",o):setTimeout(o,0)),l};var Vj=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date-e._started-e.delay,i=(0,Oj.minv)(1,(0,Oj.maxv)(0,(0,Cj.fixnum)(t/e.duration)));e._easing&&(i=e._easing(i));try{e._timer&&e._canUpdate()&&!1!==e._doUpdate(i)||e._stop(!0)}finally{t>=e.duration?e._stop(!1):e._started&&e._timer&&(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return t&&(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.stop=function(){this._stop(!0)},t.prototype._start=function(e,i,r){var n=this;void 0===i&&(i=0),void 0===r&&(r=null),this._started&&this._stop(!0),this.duration=(0,Oj.pickNum)(e,t.DURATION),this.delay=i||0,this._easing=Ej[r],this._doStart(),this._started=+new Date,this._timer=setTimeout((function(){return n._stop(!1)}),1.2*this.duration),this._handler()},t.prototype._stop=function(t){var e;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(e=this.endHandler)||void 0===e||e.call(this,this,t))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}();Pj.RcAnimation=Vj;var Tj=function(t){function e(e){var i=t.call(this)||this;return i.props=e,e.duration>0&&(i.duration=e.duration),i.endHandler=function(t,e){var r,n;null===(n=(r=i.props).endHandler)||void 0===n||n.call(r,i,e),i.props.dom=null,i.props=null},i}return Aj(e,t),e.prototype._canUpdate=function(){return this.props.dom&&!!this.props.dom.parentElement},e.prototype._doUpdate=function(t){return!1!==this.props.update(this.props,t)},e}(Vj);Pj.DomAnimation=Tj;Pj.createDomAnimation=function(t){return new Tj(t).start()};var kj={},Lj=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},Nj=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(kj,"__esModule",{value:!0}),kj.PathBuilder=void 0;var Mj=iM,jj=function(t){return isNaN(t)?0:t},Rj=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.reset=function(t,e){return this._path=[],this.move(t,e),this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.push=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.forEach((function(e){(0,Mj.isNumber)(e)||(0,Mj.isString)(e)?t._path.push(e):t._path.push(e.x,e.y)})),this},t.prototype.move=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,r,n,o){return this._path.push("C",t,e,i,r,n,o),this},t.prototype.quad=function(t,e,i,r){return(0,Mj.isNumber)(t)?this._path.push("Q",t,e,i,r):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,r){return this._path.push("M",t,e,"l",i,0,"l",0,r,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if((0,Mj.isNumber)(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",jj(t[i]),jj(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",jj(t[i].x),jj(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return(0,Mj.isNumber)(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,Nj([],Lj(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,Nj([],Lj(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i," ").concat(e," a ").concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0 a ").concat(i," ").concat(i," 0 1 0 ").concat(2*-i," 0")),this},t.prototype.donut=function(t,e,i,r){return this._path.push("M ".concat(t-i," ").concat(e," a ").concat(i," ").concat(i," 0 1 1 ").concat(2*i," 0 a ").concat(i," ").concat(i," 0 1 1 ").concat(2*-i," 0 Z")),this._path.push("M ".concat(t-r," ").concat(e," a ").concat(r," ").concat(r," 0 1 0 ").concat(2*r," 0 a ").concat(r," ").concat(r," 0 1 0 ").concat(2*-r," 0 Z")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var r=[];t<this._path.length&&r.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)r.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return r},t.prototype.spline=function(t,e,i){var r=e;if(i<0&&(i=t.length-1),1!==Math.abs(i-e)){var n=.35,o={x:0,y:0},s={x:0,y:0},a={x:0,y:0},l={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},u={x:0,y:0},c=Math.sqrt(l.x*l.x+l.y*l.y);if(0!==c){l.x/=c,l.y/=c;var p=t[r+1].px-t[r].px,h=t[r].px,f=t[r].py;for(++r;r!=i;r++){a.x=-l.x,a.y=-l.y,l.x=t[r+1].px-t[r].px,l.y=t[r+1].py-t[r].py,c=Math.sqrt(l.x*l.x+l.y*l.y),l.x/=c,l.y/=c,l.x<a.x?(u.x=a.x-l.x,u.y=a.y-l.y):(u.x=l.x-a.x,u.y=l.y-a.y);var d=Math.sqrt(u.x*u.x+u.y*u.y);u.x/=d,u.y/=d,a.y*l.y>=0&&(u={x:1,y:0}),o.x=-u.x*p*n,o.y=-u.y*p*n;var _=h+s.x,y=f+s.y,g=t[r].px+o.x,v=t[r].py+o.y;this.curve(_,y,g,v,t[r].px,t[r].py),p=t[r+1].px-t[r].px,s.x=u.x*p*n,s.y=u.y*p*n,h=t[r].px,f=t[r].py}this.curve(h+s.x,f+s.y,t[r].px,t[r].py,t[r].px,t[r].py)}else this.line(t[i].px,t[i].py)}else this.line(t[r+1].px,t[r+1].py)},t.prototype.closedSpline=function(t,e){var i=t.length;if(i<3)this.line(t[1].px,t[1].py);else for(var r=.17,n=e?function(e){return t[(e+i)%i]}:function(e){return e<0?t[0]:e>=i?t[i-1]:t[e]},o=0,s=i-(e?0:1);o<s;o++){var a=n(o-1),l=n(o),u=n(o+1),c=n(o+2),p=l.px+(u.px-a.px)*r,h=l.py+(u.py-a.py)*r,f=u.px-(c.px-l.px)*r,d=u.py-(c.py-l.py)*r;this.curve(p,h,f,d,u.px,u.py)}},t}();kj.PathBuilder=Rj;var Bj=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Dj=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ij=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},Gj=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(fj,"__esModule",{value:!0}),fj.DragTracker=fj.ClipDonutElement=fj.ClipCircleElement=fj.ClipPathElement=fj.PathElement=fj.ClipRectElement=fj.ClipElement=fj.LayerElement=fj.RcHtmlElement=fj.RcElement=fj.RcControl=void 0;var Fj=_M,zj=nM,$j=dj,Hj=oM,Wj=iM,Uj=rM,Yj=vj,Xj=mj,qj=Pj,Zj=kj,Kj={position:"relative",width:"100%",height:"100%",boxSizing:"border-box","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"},Jj=function(t){function e(i,r,n){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o._wSave=NaN,o._hSave=NaN,o.loaded=!1,o._windowResizeHandler=function(t){o._domResized()},o._domResizeHandler=function(t){o._domResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleLeave(o.toOffset(t))},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},(0,Yj.$_lc)(),!i&&$j.Dom.instanceOf(r,"div")&&(i=r.ownerDocument),o._initControl(i||document,r,n||e.CLASS_NAME),"undefined"!=typeof window&&window.ResizeObserver&&(o._resizeObserver=new ResizeObserver(o._domResizeHandler)),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Bj(e,t),e.prototype._doDestroy=function(){this._requestTimer&&(window.requestAnimationFrame?cancelAnimationFrame(this._requestTimer):clearTimeout(this._requestTimer)),this._unresigterEventHandlers(this._dom),$j.Dom.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.win=function(){return this._dom.ownerDocument.defaultView},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.canvasCtx=function(){return this._canvas.getContext("2d")},e.prototype.setData=function(t,e,i){(0,zj.isNull)(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.addClip=function(t){return this._defs.appendChild(t.dom),t},e.prototype.clearDefs=function(){$j.Dom.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(Qj.ASSET_KEY)},e.prototype.clearClipDefs=function(){Array.from(this._defs.getElementsByTagNameNS(Wj.SVGNS,"clipPath")).forEach((function(t){return t.remove()}))},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(Qj.TEMP_KEY)},e.prototype.appendDom=function(t){return t&&this._htmlRoot.append(t),t},e.prototype.appendSvg=function(t){return t&&this._htmlRoot.append(t.dom),t},e.prototype.addElement=function(t){return t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.setResizeDelay=function(t){this._resizeDelay=t},e.prototype.getBounds=function(){return this._bounds},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,r,n){return void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=0),this.addClip(new nR(this.doc(),t,e,i,r,n,n))},e.prototype.clipCircle=function(){return this.addClip(new aR(this.doc()))},e.prototype.clipDonut=function(){return this.addClip(new lR(this.doc()))},e.prototype.clipPath=function(){return this.addClip(new sR(this.doc()))},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){var e,i;if((0,Wj.isString)(t))try{for(var r=Dj(Array.from(this._defs.children)),n=r.next();!n.done;n=r.next()){var o=n.value;if($j.Dom.isElement(o)&&o.id===t){t=o;break}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}$j.Dom.isElement(t)&&t.parentNode===this._defs&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var r=this._container.getBoundingClientRect(),n=t.getBounds();return{x:e-n.x+r.x,y:i-n.y+r.y}},e.prototype.svgToElement=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e-n.left+r.left,y:i-n.top+r.top}},e.prototype.elementToSvg=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e+n.left-r.left,y:i+n.top-r.top}},e.prototype.getIEColor=function(t){return!t||t.startsWith("#")||t.startsWith("rgb")||(this._tester.style.color=t,t=getComputedStyle(this._tester).color),t},e.prototype.getRootDistance=function(){var t=this._svg.getBoundingClientRect(),e=this._root.getBounds();return{x:e.x-t.x,y:e.y-t.y}},e.prototype._setTesting=function(){this._testing=!0,Qj.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i,r){r?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){var e;window.addEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.observe(t),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler,!0),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler,!0)},e.prototype._unresigterEventHandlers=function(t){var e,i;window.removeEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.unobserve(t),null===(i=this._resizeObserver)||void 0===i||i.disconnect(),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){var r=t.defaultView;e instanceof r.HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof r.HTMLDivElement||(0,zj.throwFormat)(Hj.locale.invalidOuterDiv,e),t=this._container.ownerDocument;var n=this._dom=t.createElement("div");(0,Wj.assignObj)(n.style,Kj),n.className=i,this._container.appendChild(n);var o=this._svg=t.createElementNS(Wj.SVGNS,"svg");o.classList.add("rct-svg"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=t.createElement("desc");s.textContent="Created by RealChart v"+Xj.globalRealChartInfo.version,o.appendChild(s);var a=this._defs=t.createElementNS(Wj.SVGNS,"defs");this._initDefs(t,a),o.appendChild(a),n.appendChild(o),this._root=new iR(this),o.appendChild(this._root._dom),this._htmlRoot=t.createElement("div"),n.appendChild(this._htmlRoot),(0,Wj.assignObj)(this._htmlRoot.style,{position:"absolute",overflow:"visible"}),this._tester=t.createElement("div"),n.appendChild(this._tester),Uj.isIE&&(this._canvas=t.createElement("canvas"))}},e.prototype._initDefs=function(t,i){var r=t.createElementNS(Wj.SVGNS,"filter");r.setAttribute("id",e.SHADOW_FILTER);var n=t.createElementNS(Wj.SVGNS,"feGaussianBlur");n.setAttribute("stdDeviation","1.5"),n.setAttribute("in","SourceAlpha"),r.appendChild(n);var o=t.createElementNS(Wj.SVGNS,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),r.appendChild(o);var s=t.createElementNS(Wj.SVGNS,"feFlood");s.setAttribute("flood-color","#000"),r.appendChild(s);var a=t.createElementNS(Wj.SVGNS,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),r.appendChild(a);var l=t.createElementNS(Wj.SVGNS,"feMerge"),u=t.createElementNS(Wj.SVGNS,"feMergeNode"),c=t.createElementNS(Wj.SVGNS,"feMergeNode");c.setAttribute("in","SourceGraphic"),l.appendChild(u),l.appendChild(c),r.appendChild(l),i.appendChild(r)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;this.orphaned||(window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):this._requestTimer=setTimeout((function(){t.$_render()}),0))},e.prototype.updateNow=function(){this.$_render()},e.prototype._canOverflowRender=function(){return!1},e.prototype.$_render=function(){if(!this.orphaned)if(this._bounds=this._dom.getBoundingClientRect(),+new Date<=this._toAnimation)this.$_requestRender();else{Uj.Utils.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,r=this._svg.clientHeight,n=this._canvas;!n||n.width===i&&n.height==r||(n.width=i,n.height=r,n.style.width=(0,zj.pixel)(i),n.style.height=(0,zj.pixel)(r)),(0,Wj.assignObj)(this._htmlRoot.style,{left:(0,zj.pixel)(e.left-t.left),top:(0,zj.pixel)(e.top-t.top)});var o=this._container.firstElementChild;o.removeAttribute("style"),(0,Wj.assignObj)(o.style,Kj),this._doRenderBackground(o,this._root,i,r);var s=this._padding=$j.Dom.getPadding(this._root.dom);this._doRender({x:s.left,y:s.top,width:i-s.left-s.right,height:r-s.top-s.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),Uj.Utils.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,r){},e.prototype._domResized=function(){var t=this,e=this.width(),i=this.height(),r=this._resizeDelay;if(e!==this._wSave||i!==this._hSave){var n=!isNaN(this._wSave)&&!isNaN(this._hSave);this._wSave=e,this._hSave=i,this._resizeTimer&&clearTimeout(this._resizeTimer),r>0?this._resizeTimer=setTimeout((function(){n&&t.invalidateLayout(),t._resizeTimer=null}),r):this.invalidateLayout()}},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(Fj.RcObject);fj.RcControl=Jj;var Qj=function(t){function e(e,i,r){void 0===r&&(r=zj._undef);var n=t.call(this)||this;return n._visible=!0,n._scaleX=1,n._scaleY=1,n._rotation=0,n._styles={},n._styleDirty=!1,n._dom=e.createElementNS(Wj.SVGNS,r||"g"),(n._styleName=i||"")&&n.setAttr("class",n._styleName),n}return Bj(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"win",{get:function(){return this._dom.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,isNaN(t)?this.removeAttr("width"):this.setAttr("width",t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,isNaN(t)?this.removeAttr("height"):this.setAttr("height",t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tright",{get:function(){return this._tx+this._dom.getBBox().width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tbottom",{get:function(){return this._ty+this._dom.getBBox().height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=t?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS(Wj.SVGNS,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var r=t.createElementNS(Wj.SVGNS,e);return this._dom.insertBefore(r,i),r},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.removeAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return(0,zj.isNull)(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,r){return this.trans(t,e),this.resize(i,r),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.getBBoxEx=function(){var t=this._dom.getBBox();return Uj.isIE&&(t={x:t.x,y:t.y,width:t.width,height:t.height}),t.x+=this._tx,t.y+=this._ty,t},e.prototype.inflateBBox=function(t,e){var i=this._dom.getBBox();return Uj.isIE&&(i={x:i.x,y:i.y,width:i.width,height:i.height}),i.x+=this._tx,i.y+=this._ty,i.x-=t,i.width+=2*t,i.y-=e,i.height+=2*e,i},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.setPosY=function(t){this._y=t},e.prototype.isDomAnimating=function(){return this._ani instanceof qj.DomAnimation||!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t,e){return void 0===e&&(e=NaN),e=isNaN(e)?t:e,this._scaleX===t&&this._scaleY===e||(this._scaleX=t,this._scaleY=e,this._updateTransform()),this},e.prototype.trans=function(t,e){return t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,t===this._tx&&e===this._ty||(this._tx=t,this._ty=e,this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.$_cleanMove=function(t,e){var i;this._updateTransform(),e&&(null===(i=this.control)||void 0===i||i.invalidateLayout()),t===this._moveAni&&(this._moveAni=null)},e.prototype.transEx=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._moveAni=this._dom.animate([{transform:"translate(".concat(this._tx||0,"px,").concat(this._ty||0,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});this._tx=t,this._ty=e,o?(o.addEventListener("finish",(function(){n.$_cleanMove(o,r)})),o.addEventListener("cancel",(function(){n.$_cleanMove(o,r)}))):this.$_cleanMove(o,r)}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transEx2=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._rotation||0,s="translate(".concat(this._tx||0,"px, ").concat(this._ty||0,"px)")+(o?" rotate(".concat(o,"deg)"):""),a="translate(".concat(t,"px, ").concat(e,"px)")+(o?" rotate(".concat(o,"deg)"):"");this._dom.style.transformOrigin="".concat(this._originX||0,"px ").concat(this._originY||0,"px");var l=this._moveAni=this._dom.animate([{transform:s},{transform:a}],{duration:i,fill:"none"});this._tx=t,this._ty=e,l?(l.addEventListener("finish",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)})),l.addEventListener("cancel",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)}))):(this._dom.style.transformOrigin="",this.$_cleanMove(l,r))}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transX=function(t){return t!==this._tx&&Uj.Utils.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&Uj.Utils.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.shiftY=function(t){return this.transY(this._ty+t)},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var r=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),r=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),r=!0),r},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.containsClass=function(t){return this._dom.classList.contains(t)},e.prototype.addClass=function(t){var e;return(e=this._dom.classList).add.apply(e,Gj([],Ij(t.split(" ").filter((function(t){return t.length>0}))),!1)),this},e.prototype.removeClass=function(t){return this._dom.classList.remove(t),this},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||"",this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){void 0!==this._saveStyle&&(this._dom.setAttribute("style",this._saveStyle),this._dom.style.display=this._visible?"":"none",delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty((0,zj.getCssProp)(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty((0,zj.getCssProp)(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,r=!1;if(t){var n=this.dom.style;try{for(var o=Dj(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(n.removeProperty((0,zj.getCssProp)(a)),delete this._styles[a],r=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}r&&(this._styleDirty=!0)}return r},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if((0,Wj.isString)(t))t&&this._dom.classList.add(t);else if((0,Wj.isObject)(t)){var e=this.dom.style;for(var i in t)e.setProperty((0,zj.getCssProp)(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var r in t){var n=t[r];this._styles[r]!==n&&(this._styles[r]=n,"rx"==r&&this._dom.setAttribute(r,n),i[r]=n,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){(0,Wj.isString)(t)?(this._resetClass(),t&&this.addClass(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){(0,Wj.isString)(t)?t&&this.addClass(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){(0,Wj.isString)(t)?t&&this.addClass(t):(0,Wj.isObject)(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,(0,Wj.pickProp)(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.getData=function(t){return this.dom.getAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.getData(t)},e.prototype.stopAni=function(){return this._ani&&(this._ani.stop(),this._ani=null),this},e.prototype.removeLater=function(t,e){var i=this;return this._parent&&(t>0?this._ani=(0,qj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Wj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,r){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,i._ani=null,!r&&i.remove(),null==e||e(i)},from:(0,Wj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.remove()),this},e.prototype.hide=function(t){var e=this;return this._parent&&(t>0?this._ani=(0,qj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Wj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,i){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,e._ani=null,!i&&e.setVis(!1)},from:(0,Wj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.setVis(!1)),this},e.prototype.isClip=function(t){return t&&t._dom.parentElement},e.prototype.clipRect=function(t,e,i,r,n){void 0===n&&(n=0);var o=this.control.clipBounds(t,e,i,r,n);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,r=this._dom,n=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(r.remove(),o===t[n-1]?i.appendChild(r):i.insertBefore(r,t[t.indexOf(o)+1].dom))}else n>1&&r!==i.lastElementChild&&(r.remove(),i.appendChild(r))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,r=[];(Uj.Utils.isValidNum(e)||Uj.Utils.isValidNum(i))&&(e=e||0,i=i||0,r.push("translate("+e+","+i+")")),this._rotation&&r.push("rotate("+this._rotation+" "+Uj.Utils.pick(this._originX,t.getAttribute("x"),0)+" "+Uj.Utils.pick(this._originY,t.getAttribute("y")||0)+")"),Uj.Utils.isNotEmpty(this._matrix)&&r.push("matrix("+this._matrix.join(",")+")");var n=Uj.Utils.getNumber(this._scaleX,1),o=Uj.Utils.getNumber(this._scaleY,1);return 1===n&&1===o||r.push("scale("+n+" "+o+")"),r.length?r.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.CLIP_KEY="_clip_",e.TEMP_KEY="_temp_",e}(Fj.RcObject);fj.RcElement=Qj;var tR=function(t){function e(e,i,r){void 0===r&&(r=!1);var n=t.call(this)||this;return n._control=i,n._dom=e.createElement("div"),r&&(n._svg=e.createElementNS(Wj.SVGNS,"svg"),$j.Dom.setStyles(n._svg,{width:"100%",height:"100%",boxSizing:"border-box",overflow:"visible"}),n._dom.appendChild(n._svg)),n._doInitDom(n._dom),n}return Bj(e,t),e.prototype._doInitDom=function(t){t.style.position="absolute"},e.prototype._doDestroy=function(){this._control=null,this._dom.remove()},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.addSvg=function(t){return t&&this._svg.appendChild(t.dom),t},e.prototype.setBounds=function(t,e,i,r){return $j.Dom.setStyles(this._dom,{left:"".concat(t,"px"),top:"".concat(e,"px"),width:"".concat(i,"px"),height:"".concat(r,"px")}),this},e.prototype.setVis=function(t){return this._dom.style.display=t?this._getDisplay():"none",this},e.prototype.isVisible=function(){return"none"!==this._dom.style.display},e.prototype.setVisibility=function(t){return this._dom.style.visibility=t?"visible":"hidden",this},e.prototype.hasVisibility=function(){return"hidden"!==this._dom.style.visibility},e.prototype._getDisplay=function(){return""},e}(Fj.RcObject);fj.RcHtmlElement=tR;var eR=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Bj(e,t),e}(Qj);fj.LayerElement=eR;var iR=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Bj(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(Qj),rR=function(t){function e(e){var i=t.call(this,e,zj._undef,"clipPath")||this,r=i._id=Uj.Utils.uniqueKey()+"-";return i.setAttr("id",r),i}return Bj(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(Qj);fj.ClipElement=rR;var nR=function(t){function e(e,i,r,n,o,s,a){void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var l=t.call(this,e)||this,u=l._rect=new Qj(e,null,"rect");return u.setAttr("fill","none"),s>0&&u.setAttr("rx",String(s)),a>0&&u.setAttr("ry",String(a)),isNaN(i)||u.setBounds(i,r,n,o),l.add(u),l}return Bj(e,t),e.prototype.setBounds=function(t,e,i,r){return this._rect.x=t,this._rect.y=e,this._rect.resize(i,r),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(rR);fj.ClipRectElement=nR;var oR=function(t){function e(e,i){return t.call(this,e,i,"path")||this}return Bj(e,t),Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!1,configurable:!0}),e.prototype.setPath=function(t){var e=(0,Wj.isString)(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(Qj);fj.PathElement=oR;var sR=function(t){function e(e){var i=t.call(this,e)||this;return i._path=new oR(e),i.add(i._path),i}return Bj(e,t),e.prototype.getPath=function(){return this._path.path},e.prototype.setPath=function(t){this._path.setPath(t)},e}(rR);fj.ClipPathElement=sR;var aR=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new Qj(e,null,"circle")),i}return Bj(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(rR);fj.ClipCircleElement=aR;var lR=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._donut=new oR(e)),i}return Bj(e,t),e.prototype.setDonut=function(t,e,i,r){this._donut.setPath((new Zj.PathBuilder).donut(t,e,i,r).end())},e}(rR);fj.ClipDonutElement=lR;var uR=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,r,n){return this.cancel(),!!this._doStart(t,e,i,r,n)&&(this.dragging=!0,this._showFeedback(r,n),!0)},t.prototype.drag=function(t,e,i,r,n){return!(!this.dragging||!this._doDrag(t,e,i,r,n))&&(this._moveFeedback(r,n),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._hideFeedback()}finally{this._doCanceled()}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,r,n){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}();fj.DragTracker=uR;var cR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(uj,"__esModule",{value:!0}),uj.TextElement=uj.TextOverflow=uj.TextLayout=uj.TextAnchor=void 0;var pR,hR,fR,dR=cj,_R=iM,yR=fj,gR=nM;!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(pR||(uj.TextAnchor=pR={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(hR||(uj.TextLayout=hR={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(fR||(uj.TextOverflow=fR={}));var vR=function(t){function e(e,i){void 0===i&&(i=void 0);var r=t.call(this,e,i,"text")||this;return r._layout=hR.TOP,r._overflow=fR.WRAP,r._dirty=!0,r._text="",r.anchor=pR.MIDDLE,r}return cR(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.72*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),r=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case hR.MIDDLE:e=Math.floor(r/2);break;case hR.BOTTOM:e=0;break;default:e=Math.ceil(r)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=(0,_R.maxv)(0,t),(e=(0,_R.minv)(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var r,n=this.dom,o=0,s=i.length;do{r=Math.ceil((o+s)/2),n.getSubStringLength(0,r)>t?s=r-1:o=r}while(o<s);for(this.text=i.substring(0,o)+gR.ELLIPSIS;o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+gR.ELLIPSIS}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(dR.Color.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.setStyle=function(e,i){var r=t.prototype.setStyle.call(this,e,i);return r&&this.layoutText(),r},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(yR.RcElement);uj.TextElement=vR;var mR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),bR=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},xR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},wR=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(FM,"__esModule",{value:!0}),FM.SvgRichText=void 0;var SR=iM,PR=zM,AR=NM,OR=nM,CR=rM,ER=uj,VR="$_TH",TR="$_TW",kR=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,r=this.text;if(i&&e.callback)for(var n=0;n<i.length;n+=4){var o=e.callback(t,i[n+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?AR.NumberFormatter.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(null==o)o=i[n+2]||"";else if(CR.Utils.isDate(o)){var s;(s=i[3]?PR.DatetimeFormatter.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}r=r.replace(i[n],o)}return r},t.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i);return t.textContent=r,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var r=t.indexOf("}",i+2);if(r<0)break;var n=t.substring(i,r+1),o=n.substring(2,n.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(n,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(n,o.substring(0,s),o.substring(s+1),OR._undef),0===this._literals[2].length&&(this._literals[2]=OR._undef)}else this._literals.push(n,o,OR._undef,OR._undef);e=r+1}return 0==this._literals.length&&(this._literals=null),this},t}(),LR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i),n=r.indexOf(">")+1,o=r.indexOf(this.tag(),n);return this._doPrepare(t,r,n,o),t},e.prototype._doPrepare=function(t,e,i,r){t.textContent=e.substring(i,r);var n=e.indexOf("style=");if(n>0&&n<i){var o=e[n+6],s=e.indexOf(o,n+7);s>0&&s<i&&t.setAttribute("style",e.substring(n+7,s))}},e}(kR),NR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</t>"},e}(LR),MR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-bold")},e}(LR),jR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-italic")},e}(LR),RR=function(t){function e(){var e=t.apply(this,xR([],bR(arguments),!1))||this;return e.target="_blank",e}return mR(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,r,n){var o=this;i.substring(2,r-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),r=t.substring(e+1,t.length),n=r.substring(1,r.length-1);switch(i){case"href":o.url=n;break;case"target":o.target=n}}})),t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-link")},e}(LR),BR={t:NR,b:MR,i:jR,a:RR},DR=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new kR).parse(t))}for(var i=this._words=[],r=0;r<t.length;){if("<"==t[r]){var n=t[r+1],o=void 0;if(n in BR)if((u=t.indexOf(">",r+2))>=0){var s="</"+n+">",a=t.indexOf(s,u+1);if(a>=0){var l=t.substring(r,a+s.length);o=(new BR[n]).parse(l),r+=l.length}}if(!o){e(t.substring(r));break}this._words.push(o)}else{var u;if(!((u=t.indexOf("<",r+1))>=0)){e(t.substring(r));break}e(t.substring(r,u)),r=u}}return this},t}(),IR=/<br.*?>|\r\n|\n/,GR=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,r,n){var o,s;if(this._isVertical)this.buildVertical(t,e,i,r,n);else{var a=t.doc,l=(0,SR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=t.getStyle("writing-mode"),y=this._vertical=_===OR._WritingMode.VERTICAL_LR||_===OR._WritingMode.VERTICAL_RL,g=0;g<p;g++){var v=c[g],m=0,b=0,x=null;try{for(var w=(o=void 0,wR(v.words.entries())),S=w.next();!S.done;S=w.next()){var P=bR(S.value,2),A=P[0],O=P[1],C=0===g&&0===A,E=g===p-1&&A===v.words.length-1,V=O.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,SR.isObject)(r.options)){var T=r.options,k=C&&T.prefix||"",L=E&&T.suffix||"";V.textContent=k+(V.textContent||"")+L}var N=V.getBBox();if(V[TR]=N.width,V[VR]=N.height,y?(m=(0,SR.maxv)(m,V[TR]),b+=V[VR]):(m+=V[TR],b=(0,SR.maxv)(b,V[VR])),x||(x=V),O instanceof RR){var M=a.createElementNS(SR.SVGNS,"a");M.setAttribute("href",O.url),M.setAttribute("target",O.target),M.appendChild(V),t.appendDom(M)}}}catch(t){o={error:t}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}d.push(x),v[VR]=b*l,v[TR]=m*l,f=(0,SR.maxv)(m,f),u=(0,SR.maxv)(b,u),h.push(0==g?v[TR]/2:v[TR])}if(p>0){var j=c[0];for(g=1;g<d.length;g++)if(d[g]){m=0,b=0;if(y?null!=d[g-1]&&(m=Math.floor(j[TR]-t.getAscent(j[TR]))+t.getAscent(c[g][TR])):b=j[VR]-t.getAscent(j[VR])+t.getAscent(c[g][VR]),null==d[0]&&d[g]==d.find((function(t){return null!=t})))(V=t.insertElement(a,"tspan",d[g])).textContent=".",V.style.fill="transparent",m+=(N=V.getBBox()).width,V[TR]=N.width,V[VR]=j[VR]=N.height,d[0]=V;switch(_){case OR._WritingMode.VERTICAL_LR:d[g].setAttribute("dx",String(m)),d[g].setAttribute("y","0");break;case OR._WritingMode.VERTICAL_RL:d[g].setAttribute("dx",String(-m)),d[g].setAttribute("y","0");break;default:d[g].setAttribute("x","0"),d[g].setAttribute("dy",String(b))}j=c[g]}if(y){var R=t.parent.dom.classList.contains("rct-annotation"),B=t.getBBox().width;m=(x=bR(d,1)[0])[TR];if(R)x.setAttribute("dx",String(_===OR._WritingMode.VERTICAL_RL?B-m/2:m/2));else switch(_){case OR._WritingMode.VERTICAL_LR:x.setAttribute("x",String((B-m)/-2));break;case OR._WritingMode.VERTICAL_RL:x.setAttribute("x",String((B-m)/2))}}else t.layoutText(c[0][VR])}}},t.prototype.buildVertical=function(t,e,i,r,n){var o,s,a=t.doc,l=(0,SR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=0;_<p;_++){var y=c[_],g=0,v=0,m=null,b=!1;try{for(var x=(o=void 0,wR(y.words.entries())),w=x.next();!w.done;w=x.next()){var S=bR(w.value,2),P=S[0],A=S[1],O=0===_&&0===P,C=_===p-1&&P===y.words.length-1,E=A.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,SR.isObject)(r.options)){var V=r.options,T=O&&V.prefix||"",k=C&&V.suffix||"";E.textContent=T+(E.textContent||"")+k}" "===E.textContent&&(b=!0,E.textContent=".");var L=E.getBBox();if(E[TR]=L.width,E[VR]=L.height,b&&(E.textContent=" ",E[VR]*=.6,b=!1),g+=E[TR],v=(0,SR.maxv)(v,E[VR]),m||(m=E),A instanceof RR){var N=a.createElementNS(SR.SVGNS,"a");N.setAttribute("href",A.url),N.setAttribute("target",A.target),N.appendChild(E),t.appendDom(N)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}d.push(m),y[VR]=v*l,y[TR]=g*l,f=(0,SR.maxv)(g,f),u=(0,SR.maxv)(v,u),h.push(0==_?y[TR]/2:y[TR])}if(p>0){var M=c[0];d[0].setAttribute("x",String((f-d[0].getBBox().width)/2));for(_=1;_<d.length;_++)d[_]&&(d[_].setAttribute("x",String((f-d[_].getBBox().width)/2)),d[_].setAttribute("dy",String(M[VR]-t.getAscent(M[VR])+t.getAscent(c[_][VR]))),M=c[_]);t.layoutText(c[0][VR])}},t.prototype.layout=function(t,e,i,r,n){var o=t.getBBox(),s=0,a=0;if(this._vertical)switch(s=n.left+(i-n.left-n.right-o.width),e){case"center":t.anchor=ER.TextAnchor.MIDDLE,a=n.top+(r-n.top-n.bottom)/2;break;case"right":t.anchor=ER.TextAnchor.END,a=o.height-n.bottom;break;default:t.anchor=ER.TextAnchor.START,a=n.top}else switch(a=n.top+(r-n.top-n.bottom-o.height)/2,e){case"center":t.anchor=ER.TextAnchor.MIDDLE,s=n.left+(i-n.left-n.right)/2;break;case"right":t.anchor=ER.TextAnchor.END,s=i-n.right;break;default:t.anchor=ER.TextAnchor.START,s=n.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,r=this._lines=[];if(t){var n=(this._isVertical?t.replace(/\s+/g," ").split("").join("<br>"):t).split(IR);try{for(var o=wR(n),s=o.next();!s.done;s=o.next()){var a=s.value;r.push((new DR).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}();FM.SvgRichText=GR;var FR={},zR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),$R=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},HR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(FR,"__esModule",{value:!0}),FR.AssetCollection=FR.ImageList=FR.ColorList=FR.Pattern=FR.RadialGradient=FR.LinearGradient=void 0;var WR=iM,UR=fj,YR=nM,XR=rM,qR=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),ZR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,r=null==this.source.opacity?1:this.source.opacity,n=(0,WR.isArray)(i)?HR([],$R(i),!1):[i,"white"],o=(0,WR.isArray)(r)?HR([],$R(r),!1):Array(n.length).fill(r);1===n.length&&n.push("white"),n.forEach((function(i,r){!function(t,e,i,r,n){var o=t.createElementNS(WR.SVGNS,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",r),o.setAttribute("stop-opacity",String(n)),e.appendChild(o)}(t,e,r/(n.length-1),i,null==o[r]?1:o[r])}))},e.prototype.prepare=function(){},e}(qR),KR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(WR.SVGNS,"linearGradient"),r=0,n=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":n=1;break;case"left":r=1;break;default:s=1}return i.setAttribute("x1",r),i.setAttribute("y1",o),i.setAttribute("x2",n),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(ZR);FR.LinearGradient=KR;var JR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(WR.SVGNS,"radialGradient");return(0,YR.isNull)(e.cx)||i.setAttribute("cx",e.cx),(0,YR.isNull)(e.cy)||i.setAttribute("cy",e.cy),(0,YR.isNull)(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(ZR);FR.RadialGradient=JR;var QR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){},e.prototype.getEelement=function(t,i){var r,n,o,s,a=t.createElementNS(WR.SVGNS,"pattern"),l=t.createElementNS(WR.SVGNS,"path"),u=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),l.classList.add("rct-pattern"),+i.pattern>=0){var c=e.STOCK[+i.pattern%e.STOCK.length];r=c.path,n=c.style,u=!c.fill,o=c.width||20,s=c.height||20}else(0,WR.isString)(i.pattern)&&(r=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),l.setAttribute("d",r),n&&(0,WR.assignObj)(l.style,n),i.style&&(0,WR.assignObj)(l.style,i.style),u&&(l.style.fill="none");var p=i.backgroundStyle;if((0,WR.isString)(p)||(0,WR.isObject)(p)){var h=t.createElementNS(WR.SVGNS,"rect");a.append(h),h.style.fill=(0,WR.isString)(p)?p:p.fill,h.setAttribute("width",String(o)),h.setAttribute("height",String(s))}return a.append(l),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(qR);FR.Pattern=QR;var tB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){var t=this.source;this._colors=(0,WR.isArray)(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&XR.Utils.shuffle(this._colors),this._index=0)},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=(0,WR.isArray)(e.colors)?e.colors:[]},e.TYPE="colors",e}(qR);FR.ColorList=tB;var eB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if((0,WR.isString)(i))t._images.push(e+i);else{var r=e+i.url;i.name&&(t._map[i.name]=r),t._images.push(r)}}))},e.prototype.getImage=function(t){return(0,WR.isString)(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(qR);FR.ImageList=eB;var iB=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],(0,WR.isArray)(t))return t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)})),this._items.map((function(t){return t.source}));if((0,WR.isObject)(t)){var i=this.$_loadItem(t);return i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i),i.source}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var r=i.getEelement(t,i.source);r.setAttribute(UR.RcElement.ASSET_KEY,"1"),e.addDef(r)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.prepareRender=function(){for(var t in this._items.forEach((function(t){t.prepare()})),this._map)this.get(t).prepare()},Object.defineProperty(t.prototype,"options",{get:function(){return this._items.map((function(t){return t.source}))},enumerable:!1,configurable:!0}),t.prototype.$_loadItem=function(t){if((0,WR.isObject)(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=QR.TYPE:(0,WR.isArray)(t.colors)?e=tB.TYPE:(0,WR.isArray)(t.images)&&(e=eB.TYPE)),e)switch(e.toLowerCase()){case KR.TYPE:return new KR(t);case JR.TYPE:return new JR(t);case QR.TYPE:return new QR(t);case tB.TYPE:return new tB(t);case eB.TYPE:return new eB(t)}}},t}();FR.AssetCollection=iB,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundImage=e.IconedText=e.ChartText=e.DARK_COLOR=e.BRIGHT_COLOR=e.ChartItemCollection=e.ChartItem=e.merge=e.extend=e.n_chart_item=void 0;var o=dM,s=iM,a=NM,l=_M,u=FM,c=nM,p=rM,h=FR;e.n_chart_item=0;e.extend=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i};var f=["__proto__","constructor","prototype"];e.merge=function(t,i){var r=(0,s.isObject)(t)?t:{};for(var n in i)if(s.hasOwnProperty.call(i,n)&&!f.includes(n)){var a=i[n];(0,s.isArray)(a)?r[n]=a.slice(0):(0,s.isObject)(a)?a._obj instanceof o.DataObject?r[n]=a:p.Utils.isDate(a)?r[n]=new Date(a):r[n]=(0,e.merge)(r[n],a):r[n]=a}return r};var d=function(t){function r(i){var r=t.call(this)||this;return r.chart=i,e.n_chart_item++,r}return i(r,t),r.prototype.init=function(){var t=this._op=(0,e.merge)({},this.constructor.defaults);return this._doInit(t),this._doApply(t),t},r.prototype._doInit=function(t){},r.prototype._initObject=function(){return this.init(),this},Object.defineProperty(r.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),r.prototype._isVisible=function(){return this._op.visible},r.prototype._load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},r.prototype.loadOptions=function(t){return this.clearOptions(),this._load(t),this},r.prototype.saveOptions=function(t){void 0===t&&(t=!0);var e={};return this._doSave(e,this.constructor.defaults,t),e},r.prototype.$_updateChildren=function(t){var e=this;if(this._children)this._children.forEach((function(i){return t.hasOwnProperty(i)&&e[i].updateOptions(t[i])}));else for(var i in this._children=[],this){var n=this[i];n instanceof r&&(this._children.push(i),t.hasOwnProperty(i)&&n.updateOptions(t[i]))}},r.prototype.$_mergeOptions=function(t,e){var i=(0,s.isObject)(t)?t:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];(0,s.isArray)(a)?i[n]=a.slice(0):(0,s.isObject)(a)?a instanceof o.DataObject?i[n]=a:a._obj instanceof o.DataObject?i[n]=a._obj:this[n]instanceof r?p.Utils.isDate(a)&&(i[n]=new Date(a)):i[n]=this.$_mergeOptions(i[n],a):i[n]=a}},r.prototype.updateOptions=function(t,e){void 0===e&&(e=!0);var i=this._op;return void 0===t||this._doSetSimple(t)||this.$_mergeOptions(i,t),this.$_applyOptions(i),(0,s.isObject)(t)&&this.$_updateChildren(t),e&&this._changed(),this},r.prototype.updateOption=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=!1),this[t]instanceof r)this[t].updateOptions(e);else{var o=this._op;(n||e!==o[t])&&(o[t]=e,this.$_applyOptions(o),i&&this._changed())}return this},r.prototype.toggleOption=function(t,e){void 0===e&&(e=!0);var i=this._op,n=i[t];return i.hasOwnProperty(t)&&(this[t]instanceof r?this[t]._doSetSimple(!(0,s.isBoolean)(n)||!n):(i[t]=!(0,s.isBoolean)(n)||!n,this.$_applyOptions(i),e&&this._changed())),this},r.prototype.removeOption=function(t,e){void 0===e&&(e=!0);var i=this._op;if(i.hasOwnProperty(t))if(this[t]instanceof r)this[t].clearOptions();else{delete i[t];var n=self.constructor.defaults;s.hasOwnProperty.call(n,t)&&(i[t]=n[t]),this.$_applyOptions(i),e&&this._changed()}return this},r.prototype.clearOptions=function(t){void 0===t&&(t=!0);var i=function(t){var r;if(t){var n=t._op=(0,e.merge)({},t.constructor.defaults);return t.$_applyOptions(n),null===(r=t._children)||void 0===r||r.forEach((function(e){n[e]=i(t[e])})),n}};return i(this),t&&this._changed(),this},r.prototype.setStyle=function(t,e,i){if(void 0===i&&(i=!0),!t)return this;var r=this._op.style,n=!1;return null!==e&&""!==e||(e=void 0),void 0===e?r&&s.hasOwnProperty.call(r,t)&&(delete r[t],n=!0):r&&r[t]==e||(r||(r=this._style=this._op.style={}),r[t]=String(e),n=!0),n&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype.setStyles=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!0);var r=!1,n=this._op.style;if(e&&n&&(delete this._op.style,r=!0,n=this._style=void 0),(0,s.isObject)(t)){for(var o in n||(n=this._style=this._op.style={}),t){var a=t[o];n[o]!=a&&(null!==a&&""!==a||(a=void 0),void 0===a?delete n[o]:n[o]=t[o],r=!0)}r=!0}return r&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},r.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},r.prototype._doLoad=function(t,e){for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];this._doLoadProp(i,n)||(this[i]instanceof r?t[i]=this[i]._load(n):(0,s.isArray)(n)?t[i]=n.slice(0):(0,s.isObject)(n)?n._obj instanceof o.DataObject?t[i]=n._obj:p.Utils.isDate(n)?t[i]=new Date(n):t[i]=(0,s.assignObj)({},n):t[i]=n)}},r.prototype._doSave=function(t,e,i){var n=this._op;for(var o in n)if(n.hasOwnProperty(o))if(i&&this[o]instanceof r)t[o]=this[o].saveOptions(!0);else{var a=n[o];(0,s.isArray)(a)?t[o]=this._doSaveArray(o,a)||a.slice():a!==e[o]&&(t[o]=a)}},r.prototype._doSaveArray=function(t,e){},r.prototype._doSetSimple=function(t){if((0,s.isBoolean)(t))return this._op.visible=t,!0},r.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},r.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},r.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=(0,c.parsePercentSize)(this[i]=t[e],!0))},r.prototype._setDims=function(t){for(var e=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];i.forEach((function(i){return e._setDim(t,i)}))},r.prototype._doApply=function(t){this._style=t.style},r.prototype._doPrepareRender=function(t){},r.REFRESHED="refreshed",r.defaults={visible:!0},r}(l.RcObject);e.ChartItem=d;var _=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}();e.ChartItemCollection=_,e.BRIGHT_COLOR="white",e.DARK_COLOR="black";var y=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return i(o,t),o.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=(0,s.pickNum)(t,2)+"px")},o.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},o.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?a.NumberFormatter.getFormatter(t):null)},o.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},o.prototype.setText=function(t){this._setText(t)},o.prototype.buildSvg=function(t,e,i,r,n,o){this._richTextImpl&&(this._richTextImpl.build(t,i,r,n,o),e&&this._richTextImpl.build(e,i,r,n,o))},o.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new u.SvgRichText),this._richTextImpl.setFormat(t)):this._richTextImpl=null},o.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},o.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},o.prototype._getNumberText=function(t,e,i){if(p.Utils.isValidNum(t)){var r=this._numberFormatter,n=e&&this._numSymbols,o=void 0;return n&&(r&&(t=r.toNum(t)),o=p.Utils.scaleNumber(t,n,i)),r?o?r.toStr(o.value)+o.symbol:r.toStr(t):o?o.value+o.symbol:String(t)}return"NaN"},o.prototype._getText=function(t,e,i,r){var n=(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e;return this._op.prefix&&(n=this._op.prefix+n),this._op.suffix&&(n+=this._op.suffix),n},o.defaults=(0,e.extend)(d.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:c.NUMBER_SYMBOLS,numberFormat:c.NUMBER_FORMAT}),o}(d);e.ChartText=y;var g=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},r.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof h.ImageList&&(this._images=e)}this._root=this._op.iconRoot||""},r.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),r=t.substring(e+2),n=Number.isFinite(+r)?+r:r;return i instanceof h.ImageList?i.getImage(n):r}var o=t.substring(0,t.indexOf("://"));return"http"==o||"https"==o?t:this._root+t}},r.defaults=(0,e.extend)(y.defaults,{iconPosition:"default",iconGap:2,iconHeight:16}),r}(y);e.IconedText=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d);e.BackgroundImage=v}(LM),function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationCollection=e.Annotation=e.annotation_types=void 0;var r=iM,n=nM,o=LM;e.annotation_types={};var s=function(t){function s(e,i){var r=t.call(this,e)||this;return r.body=i,r._offsetX=0,r._offsetY=0,r.index=-1,r}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_types[t.type]=t}))},s.prototype._type=function(){return this.constructor.type},Object.defineProperty(s.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),s.prototype.needClip=function(){return!0!==this._op.noClip},s.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},s.prototype.getSize=function(t,e){var i,r,o=this.chart.isInverted(),s=this._op;if(this.body){var a=+s.x1,l=+s.x2,u=+s.y1,c=+s.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(a)){var p=this.chart.getAxisOf(this,!0);o?this._y=e-p.getPos(e,a):this._x=p.getPos(t,a),isNaN(l)||(o?r=this._h=e-p.getPos(e,l)-this._y:i=this._w=p.getPos(t,l)-this._x)}if(!isNaN(u)){p=this.chart.getAxisOf(this,!1);o?this._x=p.getPos(t,u):this._y=e-p.getPos(e,u),isNaN(c)||(o?i=this._w=p.getPos(t,c)-this._x:r=this._h=e-p.getPos(e,c)-this._y)}}return isNaN(i)?i=(0,n.calcPercent)(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(r)?r=(0,n.calcPercent)(this._heightDim,e):r<0&&(this._y+=r,r=-r),{width:i,height:r}},s.prototype.getPosition=function(t,e,i,r,n,o,s){var a,l,u;if(isNaN(l=this._x))switch(a=this.getOffset(o,s),l=e,this._op.align){case"center":l+=(r-o)/2+a.x;break;case"right":l+=r-a.x-o;break;default:this._anchorObj?l+=(r-o)/2+a.x:l+=a.x}else a=a||this.getOffset(o,s),l=this._x+a.x;if(isNaN(u=this._y))switch(a=a||this.getOffset(o,s),u=i,this._op.verticalAlign){case"middle":u+=(n-s)/2-a.y;break;case"bottom":u+=n-a.y-s;break;default:u+=a.y}else a=a||this.getOffset(o,s),u=this._y+a.y;return{x:l,y:u}},s.prototype.refresh=function(){this._changed(o.ChartItem.REFRESHED)},s.prototype.clicked=function(){return!1},s.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype._load.call(this,e)},s.prototype._doApply=function(e){var i,n=this,o=function(t){if((0,r.isString)(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),this._row=isNaN(e.row)?NaN:e.row|0,this._col=isNaN(e.col)?NaN:e.col|0,(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=o(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=o(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},s.prototype._doPrepareRender=function(t){},s.defaults=(0,o.extend)(o.ChartItem.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),s}(o.ChartItem);e.Annotation=s;var a=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return i(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.options.row,n=i.options.col;return t===r&&e===n}))},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof s)return e},e.prototype.get=function(t){return(0,r.isString)(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,o=this._items=[],s=this._map={};(0,r.isArray)(t)?t.forEach((function(t,r){o.push(i.$_loadItem(n,t,r,e?i.owner:void 0))})):(0,r.isObject)(t)&&o.push(this.$_loadItem(n,t,0,e?this.owner:void 0)),o.forEach((function(t){t.name&&(s[t.name]=t)})),this.owner.options.annotation=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):n._undef}))},e.prototype.$_loadItem=function(t,e,i,n){var o=e.type;o||(o=(0,r.isString)(e.imageUrl)?"image":(0,r.isString)(e.shape)?"shape":"text");var s=t._getAnnotationType(o);if(!s)throw new Error("Invalid annotation type: "+e.type);var a=new s(t,n);return a.init(),a.index=i,a._load(e),a},e}(o.ChartItemCollection);e.AnnotationCollection=a}(kM);var rB={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.PaneYAxisMatrix=e.PaneXAxisMatrix=e.PaneAxisMatrix=e.PaneAxes=e.AxisCollection=e.Axis=e.AxisSectorLine=e.AxisZoom=e.AxisScrollBar=e.AxisLabel=e.AxisTick=e.AxisRangeGuide=e.AxisLineGuide=e.AxisGuide=e.AxisGuideLabel=e.AxisGrid=e.AxisGridRows=e.AxisUnitLabel=e.AxisTitle=e.AxisLine=e.AxisItem=e.axis_types=e.Crosshair=e.CrosshairFlag=void 0;var s=iM,a=zM,l=NM,u=nM,c=rM,p=LM,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,p.extend)(p.ChartItem.defaults,{minWidth:50}),e}(p.ChartItem);e.CrosshairFlag=h;var f=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return i(e,t),e.prototype._doInit=function(t){this.options.flag=(this.flag=new h(this.axis.chart)).init(),this._args={chart:void 0,axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof this.chart.win.Date?a.DatetimeFormatter.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):l.NumberFormatter.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.chart=this.chart.wrapper,this._args.pos=t,this._args.flag=e,this._args.points=i.slice(0),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return(0,s.isFunc)(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(p.ChartItem);e.Crosshair=f,e.axis_types={};var d=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return i(e,t),e}(p.ChartItem);e.AxisItem=d;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(d.defaults,{visible:void 0}),e}(d);e.AxisLine=_;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRotation=function(){var t=this._op;if(this.axis._isHorz)return 0;if(isNaN(this._rotation)){var e=t.writingMode;return c.isIE?"vertical"===e?0:"opposite"===this.axis.options.position?90:270:"vertical"===e||"vertical-lr"===e||"vertical-rl"===e?0:"opposite"===this.axis.options.position?90:270}return this._rotation},e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r,n=this;t.prototype._doApply.call(this,e),i=e.rotation,r=+i,Number.isNaN(r)||90===r||270===r||-90===r||-270===r||(r=0),n._rotation=r},e.defaults=(0,p.extend)(d.defaults,{align:"middle",offset:0,gap:5}),e}(d);e.AxisTitle=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(d.defaults,{position:"end",gap:2}),e}(d);e.AxisUnitLabel=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,r=[];if(this._op.belowColor&&t.isBaseVisible()&&r.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var n=t._ticks,o=0;n[0].value>t.axisMin()&&(e[o%i]&&r.push({axis:t,from:t.axisMin(),to:n[0].value,color:e[o%i]}),o++);for(var s=1;s<n.length;s++,o++)e[o%i]&&r.push({axis:t,from:n[s-1].value,to:n[s].value,color:e[o%i]});n[n.length-1].value<t.axisMax()&&e[o%i]&&r.push({axis:t,from:n[n.length-1].value,to:t.axisMax(),color:e[o%i]})}return r},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.colors=[e,null],!0):(0,s.isArray)(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(d);e.AxisGridRows=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.rows=(this._rows=new v(this.axis)).init()},Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=(0,p.extend)(d.defaults,{visible:void 0,depthVisible:void 0}),e}(d);e.AxisGrid=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,p.extend)(p.IconedText.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(p.IconedText);e.AxisGuideLabel=b;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.label=(this._label=new b(this.axis.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.canConstainedTo=function(t,e){var i,n,o,a,l=this._op;if((0,s.isArray)(l.col)){try{for(var u=r(l.col),c=u.next();!c.done;c=u.next()){if(e==c.value)return!0}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return!1}if(!isNaN(l.col)&&e!=l.col)return!1;if((0,s.isArray)(l.row)){try{for(var p=r(l.row),h=p.next();!h.done;h=p.next()){if(t==h.value)return!0}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return!1}return!(!isNaN(l.row)&&t!=l.row)},e.defaults=(0,p.extend)(d.defaults,{front:!1,zindex:0}),e}(d);e.AxisGuide=x;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(x);e.AxisLineGuide=w;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(x);e.AxisRangeGuide=S;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._getLength=function(){return this._length},e.prototype._getGap=function(){return this._gap},e.prototype._doSetSimple=function(e){return c.Utils.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(i){t.prototype._doPrepareRender.call(this,i),isFinite(this._op.length)?this._length=this._op.length:this._length=this.axis.label._inside?0:e.DEF_LENGTH,this._gap=this._op.gap||0},e.DEF_LENGTH=7,e.defaults=(0,p.extend)(d.defaults,{visible:!1,gap:3}),e}(d);e.AxisTick=P;var A=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return i(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,r=this._op,n=t.index;if(r.textCallback){var o=r.textCallback(this.axis.getTickLabelArgs(n,t.value));if(null!=o)return o}return 1==e?(0,s.pickProp)(null!==(i=r.lastText)&&void 0!==i?i:r.firstText,r.text):0==n?(0,s.pickProp)(r.firstText,r.text):n==e-1?(0,s.pickProp)(r.lastText,r.text):r.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,r=t.index;if(i.styleCallback){var n=i.styleCallback(this.axis.getTickLabelArgs(r,t.value));if((0,s.isObject)(n))return n}return 1==e?i.lastStyle||i.firstStyle:0==r?i.firstStyle:r==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._inside="inside"===e.location},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.prototype._getText=function(t,e,i,r){return(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e},e.defaults=(0,p.extend)(p.IconedText.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(p.IconedText);e.AxisLabel=A;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=(0,p.extend)(d.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(d);e.AxisScrollBar=O;var C=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.clamp=function(t,e){return void 0===e&&(e=!0),e?c.Utils.clamp(t,this.min,this.max):c.Utils.clamp(t,Math.floor(this.min),Math.ceil(this.max))},t.prototype.resize=function(t,e,i){if(t>e){var r=t;t=e,e=r}var n=t!==this.start||e!==this.end,o=this.total(),s=this.axis.continuous();t=isNaN(t)?this.start:this.clamp(t,s);var a=(e=isNaN(e)?this.end:this.clamp(e,s))-t;if(n&&e>=t&&(isNaN(i)||a/o>=i)&&o/a>1)return this.axis._range={min:s?t:Math.floor(t),max:s?e:Math.ceil(e-1)},this.start=t,this.end=e,!0},t}();e.AxisZoom=C;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(_);e.AxisSectorLine=E;var V=function(t){function a(e,i){var r=t.call(this,e)||this;return r._series=[],r._values=[],r._labelArgs={},r._seriesChanged=!1,r.guides=[],r._isX=i,r}return i(a,t),a.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.axis_types[t.type]=t,t.subtype&&(e.axis_types[t.subtype]=t)}))},a.prototype._animating=function(){return!isNaN(this._prevRate)},a.prototype._doInit=function(t){t.title=(this._title=new y(this)).init(),t.unitLabel=(this._unitLabel=new g(this)).init(),t.line=(this._line=new _(this)).init(),t.sectorLine=(this._sectorLine=new E(this)).init(),t.tick=(this._tick=this._createTickModel()).init(),t.label=(this._label=this._createLabel()).init(),t.grid=(this._grid=this._createGrid()).init(),t.crosshair=(this._crosshair=new f(this)).init(),t.scrollBar=(this._scrollBar=new O(this)).init()},a.prototype._type=function(){return this.constructor.type},Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"unitLabel",{get:function(){return this._unitLabel},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),a.prototype.isEmpty=function(){return this._isEmpty},a.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=r(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},a.prototype.checkVisible=function(){return!0===this._op.visible||!1!==this._op.visible&&!this._isEmpty},a.prototype.getBaseValue=function(){return NaN},a.prototype.length=function(){return this._max-this._min},a.prototype.axisMin=function(){return this._min},a.prototype.axisMax=function(){return this._max},a.prototype.valueMin=function(){return this._min},a.prototype.valueMax=function(){return this._max},a.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},a.prototype.getStartAngle=function(){return u.ORG_ANGLE+u.DEG_RAD*this._op.startAngle},a.prototype.getTotalAngle=function(){return u.DEG_RAD*this._op.totalAngle},a.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},a.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.unitPad=function(){return 0},a.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},a.prototype.getXStart=function(){return 0},a.prototype.dataToAxis=function(t){return t},a.prototype.axisToData=function(t){return t},a.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},a.prototype.isBased=function(){return!1},a.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},a.prototype.disconnect=function(){this._series=[]},a.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.getConnectableSeries=function(){var t=this,e=[];return this._series.forEach((function(i){i.connectable(t)&&e.push.apply(e,o([],n(i.getVisibleSeries()),!1))})),e},a.prototype.collectValues=function(){var t=this,e=this._values=[];this._isX?this._series.forEach((function(i){i.collectValues(t,i.needAxes()?e:null)})):this._series.forEach((function(i){var r=i.needAxes()?[]:null;i.collectValues(t,r),r&&(i._yMin=s.minv.apply(void 0,o([],n(r),!1)),i._yMax=s.maxv.apply(void 0,o([],n(r),!1)),e.push.apply(e,o([],n(r),!1)))}))},a.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t,t._values)}))},a.prototype.collectReferentValues=function(){var t=this;this._series.forEach((function(e){e.prepareReferents(t)})),this.$_checkEmpty()},a.prototype.$_checkEmpty=function(){this._isEmpty=this._checkEmpty()},a.prototype._prepare=function(){this._series=this._series.filter((function(t){return t._valid})),this.$_checkEmpty()},a.prototype._checkValues=function(t){return t},a.prototype._prepareRender=function(){var t,e,i=this.chart,n=this._op.position;this._isPolar=i.isPolar(),this._isHorz=i.isInverted()?!this._isX:this._isX,this._isBetween=i.isSplitted()&&"between"===n&&this._isX,this._isOpposite="opposite"===n,this._runPos=n,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),this._label._prepareRender(),this._tick._prepareRender();var o=this._series;if(this._isX&&this._prevSeries){if(!(this._seriesChanged=!c.Utils.equalArrays(o,this._prevSeries)))try{for(var a=r(o),l=a.next();!l.done;l=a.next()){if(l.value.seriesChanged()){this._seriesChanged=!0;break}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}}else this._seriesChanged=!1;if(this._values=this._checkValues(this._values),this._zoom||(this._range=this._doCalculateRange(this._values)),this._isX&&o.length>0)if(i.isSplitted()){for(var u=[o[0].row],p=1;p<o.length;p++)u.indexOf(o[p].row)<0&&u.push(o[p].row);u.forEach((function(t){var e=0,i=0;o.forEach((function(i){i.row==t&&i.isClusterable()&&(e+=(0,s.pickNum)(i.groupWidth(),1))})),o.forEach((function(r){if(r.row==t&&r.isClusterable()){var n=(0,s.pickNum)(r.groupWidth(),1)/e;r.setCluster(n,i),i+=n}}))}))}else{var h=0,f=0;o.forEach((function(t){t.isClusterable()&&(h+=(0,s.pickNum)(t.groupWidth(),1))})),o.forEach((function(t){if(t.isClusterable()){var e=(0,s.pickNum)(t.groupWidth(),1)/h;t.setCluster(e,f),f+=e}}))}},a.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},a.prototype._buildTicks=function(t,e){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t,e),this._labelArgs.count=this._ticks.length},a.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},a.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},a.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},a.prototype.incStep=function(t,e){return t+c.Utils.getNumber(e)},a.prototype.contains=function(t){return t>=this._min&&t<=this._max},a.prototype.trimRange=function(t,e){return[(0,s.maxv)(t,this._min),(0,s.minv)(e,this._max)]},a.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},a.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new C(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},a.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var r=this._prepareZoom(),n=r.resize(t,e,i);return n&&(r.isFull()&&(this._zoom=null),this._zooming=!0,this._changed()),n},a.prototype.isZoomed=function(){return!!this._zoom},a.prototype.hasBreak=function(){return!1},a.prototype.isBreak=function(t){return!1},a.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.chart=this.chart.wrapper,this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},a.prototype.getXLabel=function(t){return t},a.prototype.setPrevRate=function(t,e){this._prevSize=t,this._prevRate=e},a.prototype.prev=function(t){return isNaN(this._prevRate)?t:(this._op.reversed,t*this._prevRate)},a.prototype.isAnimating=function(){return!isNaN(this._prevRate)},a.prototype._posValue=function(){var t=this._op.position;return"opposite"===t?-1:"between"===t?0:1},a.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype._load.call(this,e)},a.prototype._doApply=function(e){var i=this,r=this.guides,n=function(t){var e;t!==i._guides&&(i._guides=t,e=(0,s.isArray)(t)?t:[t],r.length=0,e.forEach((function(t){var e;(e="range"===t.type?new S(i):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new w(i):new S(i)).init(),e._load(t),r.push(e)})))};t.prototype._doApply.call(this,e),e.startAngle=(0,s.pickNum)(this._op.startAngle,0),e.totalAngle=(0,s.maxv)(0,(0,s.minv)(360,(0,s.pickNum)(this._op.totalAngle,360))),this._name=e.name||"-axis-".concat(this._index+1),this._row=(0,s.pickNum)(Math.max(0,e.row|0),0),this._col=(0,s.pickNum)(Math.max(0,e.col|0),0),s.hasOwnProperty.call(e,"guide")?n(e.guide):s.hasOwnProperty.call(e,"guides")&&n(e.guides)},a.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},a.prototype._connect=function(t){t&&this._series.indexOf(t)<0&&this._series.push(t)},a.prototype._doCalculateRange=function(t){return{min:t.length>0?(0,u.fixnum)(s.minv.apply(void 0,o([],n(t),!1))||0):NaN,max:t.length>0?(0,u.fixnum)(s.maxv.apply(void 0,o([],n(t),!1))||0):NaN}},a.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:void 0,row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>",animatable:!0,fixedSize:!1}),a}(p.ChartItem);e.Axis=V;var T=function(t){function e(e,i){var r=t.call(this,e)||this;return r._map=new Map,r.isX=i,r}return i(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;(0,s.isArray)(t)?t.forEach((function(t,r){return e._items.push(e.$_loadAxis(i,t,r))})):this._items.push(this.$_loadAxis(i,t,0)),this._items.forEach((function(t){t.name&&e._map.set(t.name,t)}))},e.prototype.visibles=function(){return this._items.filter((function(t){return t.checkVisible()}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return(0,s.isString)(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentValues=function(){this._items.forEach((function(t){t.collectReferentValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t,e){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(i){(e<=2||i._isHorz)&&i._buildTicks(t,e)}))},e.prototype.connect=function(t){var e,i=this.isX,r=this._items,n=t.options,o=i?n.xAxis:n.yAxis;if((0,s.isNumber)(o)&&o>=0&&o<r.length?e=r.find((function(t){return t._index===o})):(0,s.isString)(o)&&(e=r.find((function(t){return t.options.name===o}))),e||(e=r[0]),e&&this.chart.isValidAxis(e))return e._connect(t),this.isX?t.setCol(e.col):t.setRow(e.row),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=r(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,o,a,l=t._getAxisType(e.type);if(!l){var c=void 0;if((0,s.isArray)(e.categories))c="category";else if(this.isX){var p=t._getSeries()._internalItems();if(p.length>0){c="category";try{for(var h=r(p),f=h.next();!f.done;f=h.next()){var d=f.value;if(!d.canCategorized()){if(e.name&&d.options.xAxis===e.name){c=void 0;break}if(d.options.xAxis===i){c=void 0;break}if((0,u.isNull)(d.options.xAxis)&&0===i){c=void 0;break}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}}else c=null===(a=t._getSeries().first)||void 0===a?void 0:a.defYAxisType();c&&(l=t._getAxisType(c))}l||(l=t._getAxisType("linear"));var _=new l(t,this.isX);return _._index=i,_.init(),_._load(e),_},e}(p.ChartItemCollection);e.AxisCollection=T;var k=function(){this._axes=[]};e.PaneAxes=k;var L=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t,e){var i=this.isX;this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()||r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))})),this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()&&r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(r){r.forEach((function(r,n){r._axes.forEach((function(r){var n=i?r.options.col:r.options.row;r._calcPoints(t[n],e)}))}))}))},t}();e.PaneAxisMatrix=L;var N=function(t){function e(e){return t.call(this,e,!0)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e+1),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<i;o++)r[n].push(new k)}t.forEach((function(t){var i,n,o=t.options.position,s=t.row;"opposite"===o?(s++,t._runPos=o):s<e-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(i=r[s])||void 0===i?void 0:i[t.col])||void 0===n||n._axes.push(t)}))},e}(L);e.PaneXAxisMatrix=N;var M=function(t){function e(e){return t.call(this,e,!1)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<=i;o++)r[n].push(new k)}t.forEach((function(t){var e,n,o=t.options.position,s=t.col;"opposite"===o?(s++,t._runPos=o):t.col<i-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(e=r[t.row])||void 0===e?void 0:e[s])||void 0===n||n._axes.push(t)}))},e}(L);e.PaneYAxisMatrix=M}(rB);var nB={},oB={},sB={},aB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sB,"__esModule",{value:!0}),sB.Widget=void 0;var lB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aB(e,t),e.prototype._doPrepareRender=function(t){},e}(LM.ChartItem);sB.Widget=lB,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CircularGaugeGroup=e.CircularGauge=e.CircularGaugeLabel=e.GaugeLabel=e.GaugeRangeBand=e.GaugeRangeLabel=e.GaugeScale=e.GaugeScaleLabel=e.GaugeScaleTick=e.ValueGauge=e.GaugeCollection=e.GaugeGroup=e.Gauge=e.GaugeItem=e.GaugeBase=e.gauge_group_types=e.gauge_types=void 0;var o=iM,s=nM,a=rM,l=LM,u=sB;e.gauge_types={},e.gauge_group_types={};var c=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e}return i(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:(0,s.calcPercent)(this._widthDim||this._sizeDim,t,t),height:(0,s.calcPercent)(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return(0,s.calcPercent)(this._leftDim,t)},e.prototype.getRight=function(t){return(0,s.calcPercent)(this._rightDim,t)},e.prototype.getTop=function(t){return(0,s.calcPercent)(this._topDim,t)},e.prototype.getBottom=function(t){return(0,s.calcPercent)(this._bottomDim,t)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._row=(0,o.pickNum)(e.row|0,0),this._col=(0,o.pickNum)(e.col|0,0),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=(0,l.extend)(u.Widget.defaults,{size:"100%"}),e}(u.Widget);e.GaugeBase=c;var p=function(t){function e(e){return t.call(this,e.chart)||this}return i(e,t),e}(l.ChartItem);e.GaugeItem=p;var h=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gindex=-1,e}return i(o,t),o.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_types[t.type]=t}))},o._loadGauge=function(t,e,i){var r=t._getGaugeType(e.type);r||(r=t._getGaugeType(i||t.gaugeType));var n=new r(t);return n.init(),n._load(e),n},o.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},o.defaults=(0,l.extend)(c.defaults,{duration:500}),o}(c);e.Gauge=h;var f=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gauges=[],e._visibles=[],e}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_group_types[t.type]=t,e.gauge_group_types[t.gaugeType]=t}))},Object.defineProperty(s.prototype,"gauges",{get:function(){return this._gauges.slice(0)},enumerable:!1,configurable:!0}),s.prototype.count=function(){return this._gauges.length},s.prototype.isEmpty=function(){return this._gauges.length<1},s.prototype.visibles=function(){return this._visibles.slice(0)},s.prototype.get=function(t){return this._gauges[t]},s.prototype.getVisible=function(t){return this._visibles[t]},s.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},s.prototype._doApply=function(e){t.prototype._doApply.call(this,e),o.hasOwnProperty.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},s.prototype._doSaveArray=function(t,e){if("children"===t)return this._gauges.map((function(t){return t.saveOptions()}))},s.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},s.prototype.$_loadGauges=function(t,e){var i=this,r=this._gaugesType();(0,o.isArray)(e)?e.forEach((function(e,n){return i.$_add(h._loadGauge(t,e,r))})):(0,o.isObject)(e)&&this.$_add(h._loadGauge(t,e,r))},s.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},s.prototype._setGroup=function(t,e){t.setGroup(this,e)},s.defaults=(0,l.extend)(c.defaults,{minValue:0}),s}(c);e.GaugeGroup=f;var d=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._map={},e._visibles=[],e._gauges=[],e}return i(s,t),Object.defineProperty(s.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),s.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},s.prototype.getVisibles=function(){return this._visibles.slice(0)},s.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.row||0,n=i.col||0;return t===r&&e===n}))},s.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof h)return e},s.prototype.get=function(t){return(0,o.isString)(t)?this._map[t]:this._items[t]},s.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],n=this._map={};(0,o.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,o.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){if(t.name&&(n[t.name]=t),t instanceof f)for(var i=0;i<t.count();i++){var r=t.get(i);r.name&&(n[r.name]=r),e._gauges.push(r)}else e._gauges.push(t)})),i._op.gauge=this._gauges.map((function(t){return t.options}))},s.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},s.prototype.$_loadItem=function(t,i,r){if(0===Object.keys(e.gauge_types).length&&0===Object.keys(e.gauge_group_types).length)throw new Error("The gauge feature cannot be used without the required 'gauge' module. For installation and usage instructions, please visit: https://www.realchart.co.kr/guide/modules");var n=(0,o.isArray)(i.children)&&t._getGaugeGroupType(i.type||t.gaugeType);if(n||(n=t._getGaugeType(i.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+i.type);var s=new n(t);return s.init(),s._load(i),s.index=r,s},s}(l.ChartItemCollection);e.GaugeCollection=d;var _=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._prevValue=0,e}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.label=(this._label=this._createLabel()).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){return(0,o.maxv)(this._op.minValue,(0,o.minv)(this._op.maxValue,(0,o.pickNum)(this._runValue,this._op.value)))},e.prototype._setValueRate=function(t){this._runValue=this._prevValue+(this._op.value-this._prevValue)*t},e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this.label.options.animatable?(0,o.pickNum)(this._runValue,this._op.value):this._op.value;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=(0,l.extend)(h.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(h);e.ValueGauge=_;var y=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{reversed:!1,length:7}),e}(l.ChartItem);e.GaugeScaleTick=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getText=function(t){return a.Utils.isValidNum(t)?this._getText(null,t,(0,o.absv)(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(l.IconedText);e.GaugeScaleLabel=g;var v=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.line=(this._line=new l.ChartItem(e)).init(),t.tick=(this._tick=new y(this)).init(),t.label=(this._label=new g(e)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=(0,o.pickNum)(i,e);var r=this._adjustMinMax((0,o.minv)(e,i),(0,o.maxv)(e,i)),n=r.min,s=r.max;return this._steps=this._buildSteps(t,n,s)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),r=i.min,n=i.max;return this._steps=this._buildSteps(t,r,n)},e.prototype.getRate=function(t){return((0,o.maxv)(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=(0,o.pickNum)(i.options.minValue,t),e=(0,o.pickNum)(i.options.maxValue,e),this._min=(0,o.minv)(t,e),this._max=(0,o.maxv)(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,s=e.options.maxValue;return isNaN(i)&&(i=o.minv.apply(void 0,n([],r(t),!1))),isNaN(s)&&(s=o.maxv.apply(void 0,n([],r(t),!1))),this._min=(0,o.minv)(i,s),this._max=(0,o.maxv)(s,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var r,n=this._op;return r=Array.isArray(n.steps)?n.steps.slice(0):n.stepCount>0?this._getStepsByCount(n.stepCount,e,i):n.stepInterval>0?this._getStepsByInterval(n.stepInterval,e,i):n.stepPixels>0?this._getStepsByPixels(t,n.stepPixels,e,i):[e,i],this._min=r[0],this._max=r[r.length-1],r},e.prototype._getStepsByCount=function(t,e,i){var r=(i-e)/(t-1),n=Math.pow(10,Math.floor(Math.log10(r))),o=[];r=this._step=Math.ceil(r/n)*n,o.push((0,s.fixnum)(e));for(var a=1;a<t;a++)o.push((0,s.fixnum)(o[a-1]+r));return o},e.prototype._getStepsByInterval=function(t,e,i){var r,n=[];for(n.push(r=e);r<i;)n.push(r+=t);return this._step=t,n},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r){var n=[],o=r-i;if(0===o)return n;var a,l=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(l))),c=this._getStepMultiples(u),p=0;if(l/=u,c)if(l>c[p]){for(;p<c.length-1;p++)if(l>c[p]&&l<c[p+1]){l=c[++p];break}}else l=c[p];for(l*=u,this._step=l,n.push((0,s.fixnum)(a=i));;){if((a+=l)>=r){n.push((0,s.fixnum)(r));break}n.push((0,s.fixnum)(a))}return n},e.defaults=(0,l.extend)(l.ChartItem.defaults,{position:"default",stepPixels:48,gap:8}),e}(l.ChartItem);e.GaugeScale=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1}),e}(l.ChartItem);e.GaugeRangeLabel=m;var b=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.rangeLabel=(this._rangeLabel=new m(e)).init(),t.tickLabel=(this._tickLabel=new l.ChartItem(e)).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?(0,s.calcPercent)(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==r._ranges&&(r._ranges=i,r._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=(0,s.buildValueRanges)(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(l.ChartItem);e.GaugeRangeBand=b;var x=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return i(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=(0,l.extend)(l.ChartText.defaults,{animatable:!0}),e}(l.ChartText);e.GaugeLabel=x;var w=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._offsetX=0,e._offsetY=0,e}return i(e,t),e.prototype.getOffset=function(t,e){return{x:(0,s.calcPercent)(this._offsetXDim,t,0),y:(0,s.calcPercent)(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=(0,l.extend)(x.defaults,{offsetX:0,offsetY:0}),e}(x);e.CircularGaugeLabel=w;var S=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(P.DEF_CENTER),this.setCenterY(P.DEF_CENTER),this.setRadius(P.DEF_RADIUS),this.setInnerRadius(P.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=(0,s.parsePercentSize)(t,!0))},t.prototype.getCenter=function(t,e){return{x:(0,s.calcPercent)(this._centerXDim,t,t/2),y:(0,s.calcPercent)(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=(0,s.calcPercent)(this._radiusDim,t,t/2),i=(0,o.minv)(e,this._innerDim?(0,s.calcPercent)(this._innerDim,e):0),r=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?(0,s.calcPercent)(this._valueDim,r):r,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=(0,o.pickNum)(t%360,0),r=(0,o.maxv)(0,(0,o.minv)(360,(0,o.pickNum)(e,360)));this._startRad=s.ORG_ANGLE+s.DEG_RAD*i,this._handRad=s.DEG_RAD*i,this._sweepRad=s.DEG_RAD*r},t}(),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),this._props=new S},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._createLabel=function(){return new w(this.chart)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new S)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=(0,l.extend)(_.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(_);e.CircularGauge=P;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){this.props=new S,t.label=(this._label=new w(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,r=t.radius,n=(r-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(r),o.setInnerRadius(r-n),r-=n+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=(0,l.extend)(f.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(f);e.CircularGaugeGroup=A}(oB);var uB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nB,"__esModule",{value:!0}),nB.Body=nB.BodyDepth=nB.BodyDepthSide=nB.BodyDepthLine=nB.EmptyView=nB.ZoomButton=void 0;var cB=iM,pB=nM,hB=kM,fB=LM,dB=oB,_B=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return uB(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:void 0}),e}(fB.ChartItem);nB.ZoomButton=_B;var yB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doPrepareRender=function(t){this.setText(this._getMessage())},e.prototype._getMessage=function(){return this._op.text||this.chart._body.emptyView._op.text||e.DEF_TEXT},e.DEF_TEXT="표시할 데이터가 없습니다.",e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:void 0}),e}(fB.ChartText);nB.EmptyView=yB;var gB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:!1}),e}(fB.ChartItem);nB.BodyDepthLine=gB;var vB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doInit=function(t){t.line=(this._line=new gB(this.chart)).init(),t.endLine=(this._endLine=new gB(this.chart)).init(),t.gridLine=(this._gridLine=new gB(this.chart)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLine",{get:function(){return this._gridLine},enumerable:!1,configurable:!0}),e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{}),e}(fB.ChartItem);nB.BodyDepthSide=vB;var mB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doInit=function(t){t.xSide=(this._xSide=new vB(this.chart)).init(),t.ySide=(this._ySide=new vB(this.chart)).init(),t.orgLine=(this._orgLine=new gB(this.chart)).init()},Object.defineProperty(e.prototype,"xSide",{get:function(){return this._xSide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ySide",{get:function(){return this._ySide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgLine",{get:function(){return this._orgLine},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible&&this._op.length>=0},e.prototype._doSetSimple=function(e){return(0,cB.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.angle=(0,cB.minv)(60,(0,cB.maxv)(30,(0,cB.pickNum)(e.angle,45)))},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:!1,length:32,angle:32}),e}(fB.ChartItem);nB.BodyDepth=mB;var bB=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new hB.AnnotationCollection(i),i}return uB(e,t),e.prototype._doInit=function(t){t.depth=(this._depth=new mB(this.chart)).init(),t.image=(this._image=new fB.BackgroundImage(null)).init(),t.emptyView=(this._emptyView=new yB(this.chart)).init(),t.zoomButton=(this._zoomButton=new _B(this)).init()},e.prototype.anchorByName=function(t){var e,i=null===(e=this.chart._getGauges())||void 0===e?void 0:e.get(t);return i instanceof dB.GaugeBase&&this.contains(i)?i:this._annotations.get(t)},Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"image",{get:function(){return this._image},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyView",{get:function(){return this._emptyView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomButton",{get:function(){return this._zoomButton},enumerable:!1,configurable:!0}),e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype._getDepth=function(t,e){if(this._depth.visible&&this.chart._getSeries().canDepth()){var i=this._depth.options,r=i.length,n=i.angle,o=(0,cB.ceil)((0,cB.cos)(n*pB.DEG_RAD)*r),s=(0,cB.ceil)((0,cB.sin)(n*pB.DEG_RAD)*r);return{depth:r,angle:n,base:o,side:s,wBody:t-o,hBody:e-s}}},e.prototype.getRadius=function(t,e){return(0,pB.calcPercent)(this._radiusDim,(0,cB.minv)(t,e))},e.prototype.setPolar=function(t,e){return this._cx=(0,pB.calcPercent)(this._centerXDim,t),this._cy=(0,pB.calcPercent)(this._centerYDim,e),this._rd=(0,pB.calcPercent)(this._radiusDim,(0,cB.minv)(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd,cyclic:t&&t.options.totalAngle>=360}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doApply=function(e){var i=this,r=function(t){t!==i._anns&&(i._anns=t,i._annotations.load(t,!0))};t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY"),cB.hasOwnProperty.call(e,"annotation")?r(e.annotation):cB.hasOwnProperty.call(e,"annotations")&&r(e.annotations)},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(fB.ChartItem);nB.Body=bB;var xB={},wB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),SB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},PB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(xB,"__esModule",{value:!0}),xB.Exporter=void 0;var AB=LM,OB=function(t){function e(){var e=t.apply(this,PB([],SB(arguments),!1))||this;return e._isCompose=!1,e}return wB(e,t),e.prototype.isCompose=function(){return this._isCompose},e.prototype.compose=function(t){this._isCompose||(this._module=t,this._isCompose=!0)},e.prototype.isContextMenuVisible=function(){return this._module&&this._module.isContextMenuVisible()},e.prototype.toggleContextMenu=function(){this._module&&this._module.toggleContextMenu()},e.prototype.exportToImage=function(t,e,i){this._module&&this._module.exportToImage(t,e,i)},e.defaults=(0,AB.extend)(AB.ChartItem.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(AB.ChartItem);xB.Exporter=OB;var CB={},EB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),VB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},TB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(CB,"__esModule",{value:!0}),CB.Legend=CB.LegendItem=void 0;var kB=rM,LB=iM,NB=nM,MB=LM,jB=sB,RB=function(t){function e(e,i){var r=t.call(this,e.chart)||this;return r.legend=e,r.source=i,r}return EB(e,t),e.prototype.text=function(){return this.source.legendLabel()},e}(MB.ChartItem);CB.LegendItem=RB;var BB=function(t){function e(){var e=t.apply(this,TB([],VB(arguments),!1))||this;return e._items=[],e._visItems=[],e._itemMap={},e}return EB(e,t),e.prototype.items=function(){return this._visItems.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return(0,NB.calcPercent)(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return(0,NB.calcPercent)(this._maxHeightDim,t,t)},e.prototype.getMarkerSize=function(){return(0,LB.pickNum)(this._op.markerSize,10)},e.prototype.getSources=function(t){var e=this._itemMap[t.source.legendKey()];return e?e.map((function(t){return t.source})):t.source},e.prototype._isVisible=function(){return!0===this._op.visible&&this._visItems.length>0||!1!==this._op.visible&&this._visItems.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e);var r=this._op;this._location=(0,LB.pickProp)(r.location,"bottom"),this._items=this._getLegendSources().map((function(t){return new RB(i,t)})),r.reversed&&(this._items=this._items.reverse());var n=this._itemMap={},o=this._visItems=[];this._items.forEach((function(t){var e=t.source.legendKey();if(kB.Utils.isNotEmpty(e)&&""!==e){var i=n[e];i?i.push(t):(n[e]=[t],o.push(t))}else o.push(t)}))},e.prototype._getLegendSources=function(){return this.chart._getSeries().getLegendSources()},e.defaults=(0,MB.extend)(jB.Widget.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerSize:10,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0,pointHovering:!0}),e}(jB.Widget);CB.Legend=BB;var DB={},IB={},GB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SvgShapes=t.ShapeNames=t._Shapes=void 0;var e=iM,i=nM;t._Shapes={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"},t.ShapeNames=Object.values(t._Shapes);var r=.001,n=function(){function t(){}var n;return t._createDrawers=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var r={};return e.forEach((function(e){r[e]=function(i){return t[e](0-i,0-i,2*i,2*i)}})),r},t.getDrawer=function(t){return this._drawers[t]||this._drawers.circle},t.line=function(t,e,i,r){return["M",t,e,"L",i,r]},t.polygon=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=["M",t[i],t[i+1]];i<t.length;i+=2)r.push("L",t[i],t[i+1]);return r.push("Z"),r},t.box=function(t,e,i,r){return["M",t,e,"L",i,e,"L",i,r,"L",t,r,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,r){return["M",t,e,"h",i,"v",r,"h",-i,"Z"]},t.bar=function(t,i,r,n,o,s){var a=n>0,l=a?0:1;return o>0?s>0?(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s-o:s+o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n+(a?o+s:-o-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),["M",t,i,"v",n+(a?-o:o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n-o,"Z"]):s>0?(s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s:+s),"h",r,"v",-n+(a?s:-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):["M",t,i,"h",r,"v",n,"h",-r,"v",-n,"Z"]},t.square=function(t,i,r,n){var o=(0,e.minv)(r,n);return["M",t+=(r-o)/2,i+=(n-o)/2,"h",o,"v",o,"h",-o,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.isCircled=function(t){return i.PI_2-t<r},t.arc=function(t,n,o,s,a,l,u,c){void 0===c&&(c=!1);var p=(0,e.minv)(i.PI_2,(0,e.absv)(l-a)),h=this.isCircled(p),f=p>i.PI?1:0,d=u?1:0,_=(0,e.cos)(a),y=(0,e.sin)(a),g=(0,e.cos)(l-=h?d?r:-.001:0),v=(0,e.sin)(l),m=[];return m.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h&&m.push("M",t,n),c&&m.push("Z"),m},t.sector=function(t,n,o,s,a,l,u,c){var p=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),h=this.isCircled(p),f=p>i.PI?1:0,d=c?1:0,_=(0,e.cos)(l),y=(0,e.sin)(l),g=(0,e.cos)(u-=h?d?r:-.001:0),v=(0,e.sin)(u),m=o*a,b=s*a,x=[];return x.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h?x.push("M",t+m*g,n+b*v):x.push("L",t+m*g,n+b*v),a>0&&x.push("A",m,b,0,f,1-d,t+m*_,n+b*y),x.push("Z"),x},t.donut=function(t,e,i,r){return["M",t-i,e,"a",i,i,0,1,1,2*i,0,"a",i,i,0,1,1,2*-i,0,"Z","M",t-r,e,"a",r,r,0,1,0,2*r,0,"a",r,r,0,1,0,2*-r,0,"Z"]},t.arc3d=function(t,n,o,s,a,l,u,c,p){function h(t,e,i,r){S.push("M",t,e,"A",o,s,0,f,v,i,r),S.push("L",i,r+a),S.push("A",o,s,0,f,1-v,t,e+a),S.push("Z")}var f,d,_,y,g,v=c?1:0,m=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),b=this.isCircled(m),x=(l%i.PI_2+i.PI_2)%i.PI_2,w=(u%i.PI_2+i.PI_2)%i.PI_2,S=[];if(!b&&(v&&x<=i.PI&&w>=0&&w<x||!v&&w<=i.PI&&x>=0&&x<w))f=0,v?(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(i.PI),g=n+s*(0,e.sin)(i.PI)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(0),_=n+s*(0,e.sin)(0),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g)):(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(0),g=n+s*(0,e.sin)(0)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(i.PI),_=n+s*(0,e.sin)(i.PI),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g));else{d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(u-=b?v?r:-.001:0),g=n+s*(0,e.sin)(u),v?(x=b||x<=i.PI_2&&!(w>=x&&w<i.PI_2)?0:x,w=b||w>i.PI&&!(x<=w&&x>i.PI)?i.PI:w):(x=b||x>i.PI&&!(w<=x&&w>i.PI)?i.PI:x,w=b||w<i.PI_2&&!(x>=w&&x<i.PI_2)?0:w);var P=t+o*(0,e.cos)(x),A=n+s*(0,e.sin)(x),O=t+o*(0,e.cos)(w-=b?v?r:-.001:0),C=n+s*(0,e.sin)(w);f=(0,e.absv)(w-x)>i.PI?1:0,h(P,A,O,C),p&&(p.x1=d,p.y1=_,p.x2=y,p.y2=g)}return S},t.arc3dInner=function(t,n,o,s,a,l,u,c,p){var h=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),f=this.isCircled(h),d=c?1:0,_=t+o*(0,e.cos)(l),y=n+s*(0,e.sin)(l),g=t+o*(0,e.cos)(u-=f?d?r:-.001:0),v=n+s*(0,e.sin)(u),m=h>i.PI?1:0,b=[];return b.push("M",_,y,"A",o,s,0,m,d,g,v),b.push(f?"M":"L",g,v+a),b.push("A",o,s,0,m,1-d,_,y+a),p&&(p.x1=_,p.y1=y,p.x2=g,p.y2=v),b.push("Z"),b},t.diamond=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r/2,"L",t+i/2,e+r,"L",t,e+r/2,"Z"]},t.triangle=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r,"L",t,e+r,"Z"]},t.itriangle=function(t,e,i,r){return["M",t,e,"L",t+i,e,"L",t+i/2,e+r,"Z"]},t.star=function(t,i,r,n){var o=-Math.PI/2,s=t+r/2,a=i+n/2+(n/2-n/2*(0,e.sin)(o+6*Math.PI/5))/2,l=r/2,u=n/2,c=r/4,p=n/4,h=2*Math.PI/5,f=h/2,d=[];d.push("M",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o));for(var _=0;_<5;_++)d.push("L",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o),"L",s+c*(0,e.cos)(o+f),a+p*(0,e.sin)(o+f)),o+=h;return d.push("Z"),d},t.setShape=function(t,i,r,o){var s;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":s=n[i](0,0,(0,e.maxv)(2*r,0),(0,e.maxv)(2*o,0));break;default:s=n.circle(r,o,(0,e.maxv)((0,e.minv)(r,o),0))}t.setPath(s)},n=t,t._drawers=Object.assign({circle:function(t){return n.circle(0,0,t)},none:function(t){return[]}},n._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),t}();t.SvgShapes=n}(GB);var FB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zB=t&&t.__assign||function(){return zB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},zB.apply(this,arguments)};Object.defineProperty(IB,"__esModule",{value:!0}),IB.BackElement=IB.BoxElement=IB.RectElement=void 0;var $B=fj,HB=nM,WB=GB,UB=function(t){function e(e,i,r){void 0===i&&(i=HB._undef),void 0===r&&(r=HB._undef);var n=t.call(this,e,i,"rect")||this;return n.rect=r,n}return FB(e,t),e.create=function(t,i,r,n,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:r,y:n,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&zB({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&zB({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,r,n){return void 0===n&&(n=0),this.rect={x:t,y:e,width:i,height:r,r:n},this},e.prototype.setBox=function(t,e,i,r){this.rect=r<0?{x:t,y:e+r,width:i,height:-r}:{x:t,y:e,width:i,height:r}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}($B.RcElement);IB.RectElement=UB;var YB=function(t){function e(e,i){return t.call(this,e,i)||this}return FB(e,t),e.prototype.setBox=function(t,e,i,r){return this.setPath(WB.SvgShapes.box(t,e,i,r)),this},e}($B.PathElement);IB.BoxElement=YB;var XB=function(t){function e(e,i){return void 0===i&&(i=HB._undef),t.call(this,e,"dlchart-point-back",i)||this}return FB(e,t),e}(UB);IB.BackElement=XB;var qB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.PictorialBarSeriesType=t._PictorialBarMode=t.PictogramSeriesType=t.WordCloudSeriesType=t.VectorSeriesType=t._ArrowHead=t._VectorOrigin=t.HeatmapSeriesType=t.TreemapSeriesType=t._TreemapAlgorithm=t.WaterfallSeriesType=t.ScatterSeriesType=t.PieSeriesType=t._PointLabelRotationMode=t.ParetoSeriesType=t.OhlcSeriesType=t.LollipopSeriesType=t.ArearangeSeriesType=t.HistogramSeriesType=t._BinsNumber=t.FunnelSeriesType=t.ErrorBarSeriesType=t.EqualizerSeriesType=t.DumbbellSeriesType=t.CircleBarSeriesGroupType=t.CircleBarSeriesType=t.CandlestickSeriesType=t.BumpSeriesType=t.BubbleSeriesType=t._BubbleSizeMode=t.BoxPlotSeriesType=t.BellCurveSeriesType=t.AreaSeriesType=t.SplineSeriesType=t.LineSeriesType=t._LineStepDirection=t._LineType=t.PieSeriesGroupType=t.BarSeriesGroupType=t.BarSeriesType=t.BarRangeSeriesType=t._PointLabelOverflow=t._PointLabelDedupeMode=t._PointLabelAlign=t.AreaSeriesGroupType=t.LineSeriesGroupType=t._SeriesGroupLayout=t._HoverEffect=t._TrendLineType=t._PointLabelPosition=void 0,t._BarSeriesTypes=t._LineSeriesTypes=t._AreaSeriesTypes=t._CandlestickSeriesTypes=t.RaceLineSeriesType=t.RaceBarSeriesType=t.PictorialSeriesType=void 0,t._PointLabelPosition={AUTO:"auto",DEFAULT:"default",HEAD:"head",FOOT:"foot",FAR:"far",INSIDE:"inside",OUTSIDE:"outside"},t._TrendLineType={LINEAR:"linear",LOGARITHMIC:"logarithmic",POLYNOMIAL:"polynomial",POWER:"power",EXPONENTIAL:"exponential",MOVING_AVERAGE:"movingAverage"},t._HoverEffect={NONE:"none",DEFAULT:"default"},t._SeriesGroupLayout={DEFAULT:"default",OVERLAP:"overlap",STACK:"stack",FILL:"fill"},t.LineSeriesGroupType="linegroup",t.AreaSeriesGroupType="areagroup",t._PointLabelAlign={NONE:"none",NEAR:"near",FAR:"far"},t._PointLabelDedupeMode={DISPLAY_ALL:"displayAll",PRESERVE_ORDER:"preserveOrder",LARGEST_FIRST:"largestFirst"},t._PointLabelOverflow={VISIBLE:"visible",HIDDEN:"hidden"},t.BarRangeSeriesType="barrange",t.BarSeriesType="bar",t.BarSeriesGroupType="bargroup",t.PieSeriesGroupType="piegroup",t._LineType={DEFAULT:"default",SPLINE:"spline",STEP:"step"},t._LineStepDirection={FORWARD:"forward",BACKWARD:"backward",CENTER:"center"},t.LineSeriesType="line",t.SplineSeriesType="spline",t.AreaSeriesType="area",t.BellCurveSeriesType="bellcurve",t.BoxPlotSeriesType="boxplot",t._BubbleSizeMode={WIDTH:"width",AREA:"area"},t.BubbleSeriesType="bubble",t.BumpSeriesType="bump",t.CandlestickSeriesType="candlestick",t.CircleBarSeriesType="circlebar",t.CircleBarSeriesGroupType="circlebargroup",t.DumbbellSeriesType="dumbbell",t.EqualizerSeriesType="equalizer",t.ErrorBarSeriesType="errorbar",t.FunnelSeriesType="funnel",t._BinsNumber={SQURE_ROOT:"squreRoot",STURGES:"struges",RICE:"rice"},t.HistogramSeriesType="histogram",t.ArearangeSeriesType="arearange",t.LollipopSeriesType="lollipop",t.OhlcSeriesType="ohlc",t.ParetoSeriesType="pareto",t._PointLabelRotationMode={ARC:"arc",ANGLE:"angle"},t.PieSeriesType="pie",t.ScatterSeriesType="scatter",t.WaterfallSeriesType="waterfall",t._TreemapAlgorithm={SQUARIFY:"squarify",STRIP:"strip",SLICE:"slice",SLICE_DICE:"sliceDice"},t.TreemapSeriesType="treemap",t.HeatmapSeriesType="heatmap",t._VectorOrigin={CENTER:"center",START:"start",END:"end"},t._ArrowHead={NONE:"none",CLOSE:"close",OPEN:"open"},t.VectorSeriesType="vector",t.WordCloudSeriesType="wordcloud",t.PictogramSeriesType="pictogram",t._PictorialBarMode={AUTO:"auto",BOTH:"both",FIGURE:"figure"},t.PictorialBarSeriesType="pictorialbar",t.PictorialSeriesType="pictorial",t.RaceBarSeriesType="racebar",t.RaceLineSeriesType="raceline",t._CandlestickSeriesTypes={CandlestickSeriesType:t.CandlestickSeriesType,OhlcSeriesType:t.OhlcSeriesType},t._AreaSeriesTypes={AreaSeriesType:t.AreaSeriesType,BellCurveSeriesType:t.BellCurveSeriesType},t._LineSeriesTypes={LineSeriesType:t.LineSeriesType,AreaSeriesType:t.AreaSeriesType,SplineSeriesType:t.SplineSeriesType,BellCurveSeriesType:t.BellCurveSeriesType,RaceLineSeriesType:t.RaceLineSeriesType},t._BarSeriesTypes={BarSeriesType:t.BarSeriesType,RaceBarSeriesType:t.RaceBarSeriesType}}(qB);var ZB={},KB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),JB=t&&t.__assign||function(){return JB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},JB.apply(this,arguments)},QB=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ZB,"__esModule",{value:!0}),ZB.RangedPoint=ZB.ZValuePoint=ZB.DataPointCollection=ZB.DataPoint=void 0;var tD=iM,eD=nM,iD=0,rD="_deleted",nD=function(){function t(t){this.pid=iD++,this.visible=!0,this.source=t}return t.getSum=function(t){var e,i,r=0;try{for(var n=QB(t),o=n.next();!o.done;o=n.next()){var s=o.value;isNaN(s.y)||(r+=s.y)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}return r},t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.isEmpty=function(){return!1},t.prototype.copy=function(){return JB({},this)},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:(0,tD.isArray)(e)?0===e.length?this.isNull=!0:this._readArray(t,e):(0,tD.isObject)(e)?(this._readObject(t,e),((0,tD.isArray)(e.drillDown)||(0,tD.isObject)(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getPointLabel=function(t){return this.yValue},t.prototype.getPointText=function(t){return this.yLabel},t.prototype.getPointIcon=function(t){return this.icon},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.getParam=function(t){var e,i,r,n=this.source||{};if("value"===t)return null!==(e=n[t])&&void 0!==e?e:this.getValue();if(t.indexOf(".")>0){var o=t.split(/\./g),s=null!==(i=this[o[0]])&&void 0!==i?i:n[o[0]];if(null!=s&&"object"==typeof s)for(var a=1;a<o.length;a++)s=s[o[a]];return s}return null!==(r=this[t])&&void 0!==r?r:n[t]},t.prototype._setDeleted=function(){this._prev=this.copy(),this[rD]=!0},t.prototype._isDeleted=function(){return this[rD]},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),(0,tD.isObject)(e)?this.source=Object.assign((0,tD.isObject)(this.source)?this.source:{},e):(0,tD.isArray)(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=eD._undef},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t?t.axisMin():0},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return(0,tD.assignObj)(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,yLabel:this.yLabel,source:this.source})},t.prototype._readArray=function(t,e){var i=t.options,r=+i.colorField,n=+i.iconField;e.length>1?(this.x=e[(0,tD.pickNum)(i.xField,0)],this.y=e[(0,tD.pickNum)(i.yField,1)]):this.y=e[0],isNaN(r)||(this.color=e[r]),isNaN(n)||(this.icon=e[n])},t.prototype._readObject=function(t,e){this.x=(0,tD.pickProp4)(t._xFielder(e),e.x,e.name,e.label),this.y=(0,tD.pickProp3)(t._yFielder(e),e.y,e.value),this.color=(0,tD.pickProp)(t._colorFielder(e),e.color),this.icon=(0,tD.pickProp)(t._iconFielder(e),e.icon),this.yLabel=e.yLabel,this.labelOptions=e.labelOptions},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}();ZB.DataPoint=nD;var oD=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype._internalPoints=function(){return this._points},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return(0,tD.isObject)(t)?t.pid===e:t===i}return this._points.find((function(r){return i(t,r.pid,r.xValue)&&(void 0===e||i(e,r.pid,r.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){(0,tD.isArray)(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return this._points.splice(e,1),!0},t.prototype.clean=function(){this._points=this._points.filter((function(t){return!t[rD]}))},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getRunPoints=function(t){var e=this._points,i=t._zoom;if(this._owner.needAxes()&&i){var r=t._range,n=t.axisToData(r.min),o=t.axisToData(r.max);return t.continuous()?e.filter((function(t){return t.xValue>=n&&o>=t.xValue})).slice(0):e.filter((function(t){return t.xValue>n-.5&&o+.5>t.xValue})).slice(0)}return e},t}();ZB.DataPointCollection=oD;var sD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KB(e,t),e.prototype.getPointLabel=function(t){return this.zValue},e.prototype.getPointText=function(t){return this.zLabel},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return(0,tD.assignObj)(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=t.options,r=e.length>2?1:0;r>0&&(this.x=e[(0,tD.pickNum)(i.xField,0)]),this.y=e[(0,tD.pickNum)(i.yField,0+r)],this.z=e[(0,tD.pickNum)(i.zField,1+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=(0,tD.pickProp)(e._zFielder(i),i.z),this.zLabel=i.zLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.yValue=e.zValue=this.yValue},e.prototype.applyValueRate=function(t,e){this.zValue=(0,tD.incv)(t.zValue,this.zValue,e)},e}(nD);ZB.ZValuePoint=sD;var aD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KB(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.getPointText=function(e){return 1===e?this.lowLabel:t.prototype.getPointText.call(this,0)},e.prototype._assignTo=function(e){return(0,tD.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,r=e.length>2?1:0;this.low=e[(0,tD.pickNum)(i.lowField,0+r)],this.y=e[(0,tD.pickNum3)(i.highField,i.yField,1+r)],r>0&&(this.x=e[(0,tD.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,tD.pickProp)(i[e.options.lowField],i.low),this.y=(0,tD.pickProp3)(i[e.options.highField],i.high,this.y),this.lowLabel=i.lowLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,tD.incv)(t.lowValue,this.lowValue,e)},e}(nD);ZB.RangedPoint=aD;var lD={},uD={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeAxisType=t.LogAxisType=t.LinearAxisType=t._AxisFit=t.CategoryAxisType=t._CategoryTickPosition=t._AxisPosition=t._CrosshairType=t.AxisGuideTypes=t.AxisRangeGuideType=t.AxisLineGuideType=t._GuideLabelPosition=t._AxisLabelOverflow=t._AxisLabelArrange=t._AxisLabelLocation=t._AxisUnitLabelPosition=t._AxisTitleAlign=void 0,t._AxisTitleAlign={START:"start",MIDDLE:"middle",END:"end"},t._AxisUnitLabelPosition={START:"start",END:"end"},t._AxisLabelLocation={DEFAULT:"default",INSIDE:"inside"},t._AxisLabelArrange={NONE:"none",ROTATE:"rotate",STEP:"step",ROWS:"rows"},t._AxisLabelOverflow={HIDDEN:"hidden",PULL:"pull",TICK:"tick"},t._GuideLabelPosition={INSIDE:"inside",OUTSIDE:"outside"},t.AxisLineGuideType="line",t.AxisRangeGuideType="range",t.AxisGuideTypes={AxisLineGuideType:t.AxisLineGuideType,AxisRangeGuideType:t.AxisRangeGuideType},t._CrosshairType={AUTO:"auto",LINE:"line"},t._AxisPosition={AUTO:"auto",NORMAL:"normal",OPPOSITE:"opposite",BASE:"base",BETWEEN:"between"},t._CategoryTickPosition={DEFAULT:"default",POINT:"point",EDGE:"edge"},t.CategoryAxisType="category",t._AxisFit={DEFAULT:"default",TICK:"tick",VALUE:"value"},t.LinearAxisType="linear",t.LogAxisType="log",t.TimeAxisType="time"}(uD);var cD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},hD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},fD=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(lD,"__esModule",{value:!0}),lD.CategoryAxis=lD.CategoryAxisGrid=lD.CategoryAxisLabel=lD.CategoryAxisTick=void 0;var dD=iM,_D=nM,yD=rM,gD=uD,vD=rB,mD=LM,bD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cD(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=(0,mD.extend)(vD.AxisTick.defaults,{step:1}),e}(vD.AxisTick);lD.CategoryAxisTick=bD;var xD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cD(e,t),e.prototype.getTick=function(t,e){if(null!=e){var i=this._getText(e,e,!1,!1),r=i.lastIndexOf(this.sep);return(0,dD.isArray)(this.axis.options.categoryField)&&r>0?i.substring(r+this.sep.length):i}return""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e.defaults=(0,mD.extend)(vD.AxisLabel.defaults,{align:"center",verticalAlign:"middle",fillToCategory:!1}),e}(vD.AxisLabel);lD.CategoryAxisLabel=xD;var wD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cD(e,t),e.prototype.getPoints=function(t){var e=t._pts,i=t._ticks.length,r=[];if(i>0){var n=Math.max(1,t.tick.options.step||1);if(n>1)for(var o=0,s=1,a=e.length;o<=i&&s<a;o++,s+=n)r.push(e[s]);else for(o=0;o<=i;o++)r.push(e[o+1])}return r},e}(vD.AxisGrid);lD.CategoryAxisGrid=wD;var SD=function(t){function e(){var e=t.apply(this,hD([],pD(arguments),!1))||this;return e._minPad=0,e._maxPad=0,e._catStart=0,e._catStep=1,e._map={},e._catPad=0,e._tstep=1,e}return cD(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getCategorySeparator=function(){return this._op.categorySeparator||"+"},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new vD.AxisZoom(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max+1),this._zoom},e.prototype._createGrid=function(){return new wD(this)},e.prototype._createTickModel=function(){return new bD(this)},e.prototype._createLabel=function(){return new xD(this)},e.prototype.collectValues=function(){this.label.sep=this.getCategorySeparator(),this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=yD.Utils.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e,i=t.prototype.getStartAngle.call(this),r=+this._op.startOffset;return r>0&&(i-=(0,dD.minv)(r,1)*((null===(e=this._categories[0])||void 0===e?void 0:e.w)||1)*_D.PI_2/this._catLen),i},e.prototype._doPrepareRender=function(){var t=this._op;this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=(0,dD.pickNum3)(t.minPadding,t.padding,0),this._maxPad=(0,dD.pickNum3)(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,(0,dD.pickNum)(t.categoryPadding,0))))},e.prototype._adjustMinMax=function(t,e,i){var r=this._op;return r.minValue<t&&(t=r.minValue),r.maxValue>e&&(e=r.maxValue),{min:t,max:e}},e.prototype._doBuildTicks=function(t,e,i,r){var n=this._label,o=this._weights=this._categories.map((function(t){var e;return null!==(e=t.w)&&void 0!==e?e:1})),s=this._tick.options.step||1,a=[];if(!this._zoom){var l=this._adjustMinMax(t,e,i),u=l.min,c=l.max;t=Math.floor(u),e=Math.ceil(c)}this._catMin=t,this._catMax=e;var p=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(p,this._tick.options.step||1));for(var h=-1;h>=t;h--)o.unshift(1);for(var f=Math.max(p,e+1);o.length<f;)o.push(1);o=o.slice(Math.max(0,t),e-Math.min(0,t)+1),p=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0);var d=this._pts=[];if(p>0){var _=this._minPad;d.push(0);for(h=t;h<=e;h++)d.push(_/p),_+=o[h-t]||1;d.push(_/p),d.push((_+this._maxPad)/p)}var y=this._catStart,g=this._catStep;for(h=1;h<d.length-2;h+=s){var v=t+h-1,m=this._categories[v/g-y];a.push({index:h-1,pos:NaN,value:v,label:n.getTick(h-1,m?m.t:v)})}return this._setMinMax(t,e),a},e.prototype._calcPoints=function(e,i){var r=this._pts;if(i>100)if(0===this._vlen)for(var n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]/=this._vlen;for(n=0;n<r.length;n++)r[n]*=e;if(t.prototype._calcPoints.call(this,e,i),this._isPolar){if(i>100){var o=this._op.totalAngle*_D.DEG_RAD;if(0===e)for(n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]=r[n]/e*o}}else{var s=void 0;s="edge"===this._tick.getPosition()?r.slice(1,r.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,r=Math.floor(e-this._catMin+.5),n=i[r+1],o=n+(i[r+2]-n)*(e-Math.floor(e+.5)+.5);return this._op.reversed?t-o:o},e.prototype.valueAt=function(t,e){var i=this._pts;this._op.reversed&&(e=t-e);for(var r=1;r<i.length-1;r++){var n=i[r],o=i[r+1];if(e>=n&&o>=e)return this._catMin+r-(1-(e-n)/(o-n))}},e.prototype.getUnitLen=function(t,e){var i=Math.floor(e-this._catMin+.5);return this._pts[i+2]-this._pts[i+2-1]},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return(0,dD.isNumber)(t)?t:this._map[t]},e.prototype.getXLabel=function(t){var e;return(null===(e=this._categories[t])||void 0===e?void 0:e.c)||t},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return this._isX||(i.min=(0,dD.minv)(0,i.min),i.max=(0,dD.maxv)(0,i.max)),i},e.prototype.$_collectCategories=function(t){var e,i,r=this,n=this._op,o=n.categories,s=this._categories=[];if((0,dD.isArray)(o)&&o.length>0)this._len=0,o.forEach((function(t){var e,i,n=null==t?1:(0,dD.pickNum)(t.weight,1),o=t&&t.icon;null==t?i=e=null:(0,dD.isObject)(t)?(e=(0,dD.pickProp)(t.name,t.label),i=(0,dD.pickProp)(t.label,t.name)):i=e=String(t),r._len+=n,s.push({c:e,t:i,w:n,i:o})}));else{var a=this.chart.seriesByName(n.categorySeries),l=this.chart.seriesByName(n.weightSeries)||a,u=n.weightField,c=null==l?void 0:l.data,p=[];!n.weightByFrequency&&u&&(0,dD.isArray)(c)&&c.length>0&&c.forEach((function(t){var e=t[u];yD.Utils.isNumber(e)&&e>=0?p.push(e):p.push(1)})),a&&(t=[a]);var h=n.weightByFrequency,f=void 0,d=0;if((0,dD.isArray)(t)&&t.length>0)try{for(var _=fD(t),y=_.next();!y.done;y=_.next()){var g=y.value.collectCategories(this);g.length>0&&g.forEach((function(t,e){h&&(t!==f?(d>0&&(s[s.length-1].w=d),f=t,d=1):d++),s.find((function(e){return e.c===t}))||s.push({c:t,w:p[e]||1,t:t})}))}}catch(t){e={error:t}}finally{try{y&&!y.done&&(i=_.return)&&i.call(_)}finally{if(e)throw e.error}}d>0&&(s[s.length-1].w=d)}this._map={},s.forEach((function(t,e){var i=t.v=e;null!=t.c&&(r._map[t.c]=i)}))},e.type=gD.CategoryAxisType,e.defaults=(0,mD.extend)(vD.Axis.defaults,{padding:0,categoryPadding:.1,startOffset:0,categorySeparator:"+"}),e}(vD.Axis);lD.CategoryAxis=SD;var PD={},AD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),OD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},CD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(PD,"__esModule",{value:!0}),PD.Trendline=PD.TrendlineMarker=PD.TrendlineLabel=PD.TrendlineArea=void 0;var ED=iM,VD=LM,TD=NM,kD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AD(e,t),e.defaults=(0,VD.extend)(VD.ChartItem.defaults,{visible:!1}),e}(VD.ChartItem);PD.TrendlineArea=kD;var LD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AD(e,t),e.prototype.getAlign=function(t,e,i,r){var n=this._op.align;return"auto"===n&&(n=t?i?"left":"right":r<=0?e?"left":"right":r>=1?e?"right":"left":"center"),n},e.prototype.getVerticalAlign=function(t,e,i){var r=this._op.verticalAlign;return"auto"===r&&(r=t?"middle":i?"bottom":"top"),r},e.prototype.getAlignPolar=function(t){var e=this._op.align;if("auto"===e){var i=(t%(2*Math.PI)*180/Math.PI+360)%360;e=i>=80&&i<=100||i>=260&&i<=280?"center":i>100&&i<260?"left":"right"}return e},e.prototype.getVerticalAlignPolar=function(t){var e=this._op.verticalAlign;if("auto"===e){var i=(t%(2*Math.PI)*180/Math.PI+360)%360;e=i>=80&&i<=100?"bottom":i>=260&&i<=280?"top":"middle"}return e},e.prototype.getOffsetX=function(t){var i=this._op.offsetX;return isNaN(i)?"center"===t?0:e.OFFSET:i},e.prototype.getOffsetY=function(t){var i=this._op.offsetY;return isNaN(i)?"middle"===t?0:e.OFFSET:i},e.prototype.getDefaultIconPos=function(){return"left"},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.position=(0,ED.minv)(1,(0,ED.maxv)(0,(0,ED.pickNum)(e.position,1))),e.align="left"===e.align||"center"===e.align||"right"===e.align?e.align:"auto",e.verticalAlign="top"===e.verticalAlign||"middle"===e.verticalAlign||"bottom"===e.verticalAlign?e.verticalAlign:"auto"},e.OFFSET=4,e.defaults=(0,VD.extend)(VD.ChartItem.defaults,{visible:!1,text:"${expr}",position:1,align:"auto",verticalAlign:"auto"}),e}(VD.IconedText);PD.TrendlineLabel=LD;var ND=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return AD(e,t),e.prototype.getRadius=function(){return(0,ED.maxv)(0,(0,ED.pickNum)(this._op.radius,4))},e.defaults=(0,VD.extend)(VD.ChartItem.defaults,{visible:!1,radius:4}),e}(VD.ChartItem);PD.TrendlineMarker=ND;var MD=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._labelDomain={callback:function(t,e){return"expr"===e?i._expr:""}},i}return AD(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.variableArea=(this._variableArea=new kD(this.chart)).init(),e.fixedArea=(this._fixedArea=new kD(this.chart)).init(),e.label=(this._label=new LD(this.chart)).init(),e.marker=(this._marker=new ND(this.chart)).init()},Object.defineProperty(e.prototype,"variableArea",{get:function(){return this._variableArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixedArea",{get:function(){return this._fixedArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this._expr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getLabelDomain=function(){return this._labelDomain},e.prototype.setRange=function(t,e,i,r){return this._minX=t,this._maxX=e,this._minY=i,this._maxY=r,this},e.prototype._doPrepareRender=function(t){var e,i,r=this._op,n=r.type,o=this.owner,s=this._res=Math.max(1,(o._visPoints.length-1)*Math.max(1,+r.resolution||5)),a=this._minX>0?0:(this._maxX-this._minX)/s-this._minX,l=this._minY>0?0:(this._maxY-this._minY)/s-this._minY,u=o._visPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+a,y:t.yValue+l}})).sort((function(t,e){return t.x-e.x})),c=(this["_"+n]||this._linear).call(this,this._formatter,u);if(this._points=[],c&&"function"==typeof c.evaluator){if(u.length>0){var p=u[0].x,h=u[u.length-1].x,f=r.forward>0?r.forward:0,d=p-(w=r.backward>0?r.backward:0),_=h+f;if("logarithmic"===n||"power"===n){var y=Number.EPSILON||1e-12;d<=0&&(d=y)}for(var g=_-d,v=(O=h-p)>0?Math.ceil(this._res*g/O):this._res,m=0;m<=v;m++){var b=d+(_-d)*m/v,x=c.evaluator(b);Number.isFinite(x)&&this._points.push({x:b,y:x})}}}else if(c&&Array.isArray(c.points))if("movingAverage"===n&&"flat"===r.maExtrapolation||"linear"===r.maExtrapolation){f=r.forward>0?r.forward:0;var w=r.backward>0?r.backward:0,S=c.points;if(S.length>0){var P=S[0],A=S[S.length-1],O=A.x-P.x,C="flat"===r.maExtrapolation;if(w>0){var E=Math.max(2,Math.ceil(this._res*w/O)),V=w/E;if(C){var T=P.y;for(m=E;m>0;m--)this._points.push({x:P.x-V*m,y:T})}else if(S.length>=2){var k=S[0],L=S[1],N=(L.y-k.y)/(L.x-k.x);for(m=E;m>0;m--){b=P.x-V*m,x=k.y+N*(b-k.x);this._points.push({x:b,y:x})}}else for(T=P.y,m=E;m>0;m--)this._points.push({x:P.x-V*m,y:T})}if((e=this._points).push.apply(e,CD([],OD(S),!1)),f>0){var M=Math.max(2,Math.ceil(this._res*f/O)),j=f/M;if(C){var R=A.y;for(m=1;m<=M;m++)this._points.push({x:A.x+j*m,y:R})}else if(S.length>=2){var B=S[S.length-1],D=S[S.length-2];for(N=(B.y-D.y)/(B.x-D.x),m=1;m<=M;m++){b=A.x+j*m,x=B.y+N*(b-B.x);this._points.push({x:b,y:x})}}else for(R=A.y,m=1;m<=M;m++)this._points.push({x:A.x+j*m,y:R})}}}else(i=this._points).push.apply(i,CD([],OD(c.points),!1));this._expr=c&&c.expr,this._points.forEach((function(t){t.x-=a,t.y-=l}))},e.prototype.getLabel=function(){return""},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.forward=(0,ED.maxv)(0,(0,ED.pickNum)(e.forward,0)),e.backward=(0,ED.maxv)(0,(0,ED.pickNum)(e.backward,0)),this._formatter=TD.NumberFormatter.getFormatter(e.numberFormat||"0.####")},e.prototype._calcLine=function(t){var e=t.length,i=0,r=0,n=0,o=0;t.forEach((function(t){i+=t.x,r+=t.y,n+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*n-i*r)/s;return{m:a,a:(r-a*i)/e}},e.prototype._linear=function(t,e){if(e.length>1){var i=this._calcLine(e),r=i.m,n=i.a;return{expr:"y = ".concat(t.toStr(r),"x + ").concat(t.toStr(n)),evaluator:function(t){return r*t+n}}}return{}},e.prototype._logarithmic=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:Math.log(t.x),y:(0,ED.pickNum)(t.y,0)}})),r=this._calcLine(i),n=r.m,o=r.a;return{expr:"y = ".concat(t.toStr(n),"log(x) ").concat(o>0?"+":"-"," ").concat(t.toStr((0,ED.absv)(o))),evaluator:function(t){return t<=0?NaN:o+Math.log(t)*n}}}return{}},e.prototype._power=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(i),n=r.m,o=r.a,s=Math.exp(o);return{expr:"y = ".concat(t.toStr(s),"(x^").concat(t.toStr(n),")}"),evaluator:function(t){return t<=0?NaN:s*Math.pow(t,n)}}}return{}},e.prototype._calcLine2=function(t){var e=0,i=0,r=0,n=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,r+=t.y*Math.log(t.y),n+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*r-o*n)/s);return{m:(e*n-o*r)/s,a:a}},e.prototype._exponential=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(i),n=r.m,o=r.a;return{expr:"y = ".concat(t.toStr(o),"(e^(").concat(t.toStr(n),"x))"),evaluator:function(t){return o*Math.exp(n*t)}}}return{}},e.prototype._polynomial=function(t,e){var i=e.length;if(i>1){for(var r=[],n=[],o=0,s=0,a=0;a<3;a++){for(var l=0;l<i;l++)o+=Math.pow(e[l].x,a)*e[l].y;r.push(o),o=0;for(var u=[],c=0;c<3;c++){for(l=0;l<i;l++)s+=Math.pow(e[l].x,a+c);u.push(s),s=0}n.push(u)}n.push(r);var p=function(t,e){for(var i=t,r=t.length-1,n=[e],o=0;o<r;o++){for(var s=o,a=o+1;a<r;a++)(0,ED.absv)(i[o][a])>(0,ED.absv)(i[o][s])&&(s=a);for(var l=o;l<r+1;l++){var u=i[l][o];i[l][o]=i[l][s],i[l][s]=u}for(a=o+1;a<r;a++)for(l=r;l>=o;l--)i[l][a]-=i[l][o]*i[o][a]/i[o][o]}for(a=r-1;a>=0;a--){var c=0;for(l=a+1;l<r;l++)c+=i[l][a]*n[l];n[a]=(i[r][a]-c)/i[a][a]}return n}(n,3),h=p.map((function(e,i){var r=+e;if(!isFinite(r)||0===r)return"";var n=t.toStr(r);if("0"===n)return"";if(0===i)return r<0?"-".concat(n):"".concat(n);var o=1===i?"x":"x^".concat(i);return"".concat(r<0?"- ":"+ ").concat(n).concat(o)})).filter((function(t){return t})).join(" ").replace(/^\+ /,"");return{expr:"y = "+(h||"0"),evaluator:function(t){return p.reduce((function(e,i,r){return e+i*Math.pow(t,r)}),0)}}}},e.prototype._movingAverage=function(t,e){for(var i=e.length,r=(0,ED.maxv)(1,(0,ED.minv)(i-1,this._op.movingInterval)),n=[],o=r;o<=i;){var s=e.slice(o-r,o).reduce((function(t,e){return t+(0,ED.pickNum)(e.y,0)}),0);n.push({x:e[o-1].x,y:s/r}),o++}return{expr:"y = movingAverage(".concat(t.toStr(r),")"),points:n}},e.defaults=(0,VD.extend)(VD.ChartItem.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2,maExtrapolation:"none"}),e}(VD.ChartItem);PD.Trendline=MD,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},s=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSeries=e.ClusterableSeriesGroup=e.ConstraintSeriesGroup=e.SeriesGroup=e.LowRangedSeries=e.RangedSeries=e.BasedSeries=e.BasedSeriesLabel=e.ClusterableSeries=e.RadialSeries=e.WidgetSeries=e.OthersGroup=e.WidgetSeriesLabel=e.WidgetSeriesConnector=e.WidgetSeriesPoint=e.SeriesMarker=e.ConnectableSeries=e.PlottingItemCollection=e.Series=e.PALETTE_LEN=e.DataPointLabel=e.DataPointLabelLine=e.series_group_types=e.series_types=void 0;var a=iM,l=Pj,u=nM,c=rM,p=IB,h=GB,f=dM,d=qB,_=FR,y=LM,g=ZB,v=lD,m=PD;e.series_types={},e.series_group_types={};var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1}),e}(y.ChartItem);e.DataPointLabelLine=b;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return i(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._point.getParam(e)}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getPointLabel(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return c.Utils.isValidNum(t)?this._getText(null,t,(0,a.absv)(t)>1e3,!0):t},e.prototype.getOffset=function(){return(0,a.pickNum)(this._op.offset,0)},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype.getRotation=function(){return(0,a.maxv)(-90,(0,a.minv)(90,(0,a.pickNum)(this._op.rotation,0)))},e.prototype._isVisible=function(){return this._op.visible||(0,a.isFunc)(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return(0,a.isFunc)(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){"auto"===e.position&&(e.position="default"),t.prototype._doApply.call(this,e),this._overflowFit="hidden"===e.overflowFit?1/0:"none"===e.overflowFit?NaN:+e.overflowFit,this._vertAdjust=(0,a.pickNum)(e.verticalAdjust,0)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},r=e,e.OFFSET=4,e.defaults=(0,y.extend)(y.IconedText.defaults,{visible:void 0,position:"default",offset:r.OFFSET,overflowFit:0,overlapOutline:!0,verticalAdjust:.05,rotation:0}),e}(y.IconedText);e.DataPointLabel=x;var w={x:"xValue",y:"yValue",z:"zValue"},S=function(t){function e(e,i){var r=t.call(this)||this;return r.series=e,r.point=i,r.duration=500,r.endHandler=function(){delete r.point._vr,r.series._changed(),r.series=r.point=null},r}return i(e,t),e.prototype._doUpdate=function(t){return this.point._vr=t,this.series._changed(),!0},e}(l.RcAnimation),P=function(t){function e(e){var i=t.call(this)||this;return i.points=e,i.duration=300,i.endHandler=function(){i.points.clean(),i.points.owner._dataPointsChanged(),i.points.owner.$_stopDeleteAni(i)},e.owner.$_setDeleteAni(i),i}return i(e,t),e.prototype._doUpdate=function(t){return this.points.forEach((function(e){e._isDeleted()&&(e._vr=1-t)})),this.points.owner._changed(),!0},e}(l.RcAnimation),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(g.DataPoint);e.PALETTE_LEN=12;var O=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._seriesIndex=0,e._simpleMode=!1,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_types[t.type]=t}))},r._loadSeries=function(t,e,i,r){var n=t._getSeriesType(i.type);if(!n&&i.type&&console.error("Unknown series type: '".concat(i.type,"'")),!n&&!(n=t._getSeriesType(r||t.type)))throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new n(t);return o._setIndex(e,t._seriesIndex++),o.init(),o._load(i),o},r.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getParam(i)||t._xAxisObj.getXLabel(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getParam(i)}},r.prototype._doInit=function(t){this._points=new g.DataPointCollection(this),this._pointArgs={},this._paletteColors=Array(e.PALETTE_LEN).fill(0).map((function(t,e){return e})),this.chart.chartOptions.options.paletteMode==u._PaletteMode.SHUFFLE&&c.Utils.shuffle(this._paletteColors),t.pointLabel=(this._pointLabel=this._createLabel(this.chart)).init()},r.prototype.onDataValueChanged=function(t,e,i,r,n){c.Utils.log("onDataValueChanged",e,i,r,n);var o=this._runPoints[e];if(o){var s={};s[i]=r,this.updatePoint(o,s)}},r.prototype.onDataRowUpdated=function(t,e,i){},r.prototype.onDataRowAdded=function(t,e){c.Utils.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},r.prototype.onDataRowDeleted=function(t,e){c.Utils.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},r.prototype.onDataChanged=function(t){c.Utils.log("onDataChanged")},r.prototype.getTooltipText=function(t,e){return this._op.tooltipCallback?(this._getPointCallbackArgs(this._pointArgs,e),this._op.tooltipCallback(this._pointArgs)):this._op.tooltipText},r.prototype.getTooltipParam=function(t,e,i){return r.getPointTooltipParam(t,e,i)},r.prototype._type=function(){return this.constructor.type},r.prototype._viewType=function(){return this._type()},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){this._row=t},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){this._col=t},Object.defineProperty(r.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),r.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},Object.defineProperty(r.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"points",{get:function(){return this._runPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePoints",{get:function(){return this._visPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isWidget",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.getVisiblePoint=function(t){return this._visPoints[t]},r.prototype.contains=function(t){return this._points.contains(t)},r.prototype.getPoints=function(){return this._points},r.prototype._getLabeledPoints=function(){return this._visPoints},r.prototype.getPointsByRange=function(t,e){var i=[];return this._points.forEach((function(r){e>=r.xValue&&r.xValue>=t&&i.push(r)})),i},r.prototype._getVisiblePoints=function(){return this._points.getRunPoints(this._xAxisObj)},r.prototype.pointLabelCount=function(){return 1},r.prototype.isEmpty=function(){return this._points.isEmpty()},r.prototype.needAxes=function(){return!0},r.prototype.canCategorized=function(){return!1},r.prototype.hasZ=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.isMarker=function(){return!1},r.prototype.isXY=function(){return!1},r.prototype.displayName=function(){return this._op.label||this.name},r.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,e)),this._legendMarker},r.prototype.legendColor=function(){return this._calcedColor},r.prototype.legendStroke=function(){return this._calcedStroke},r.prototype.legendLabel=function(){return this._op.label||this.name},r.prototype.legendKey=function(){return this[this._op.legendKey]},r.prototype.styleLegendMarker=function(t){},r.prototype.canMixWith=function(t){return!0},r.prototype.getBaseValue=function(t){return NaN},r.prototype.isBased=function(t){return!1},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.hasShape=function(){return!1},r.prototype.setShape=function(t){},r.prototype.seriesChanged=function(){return this._pointsChanged},r.prototype.getMinPointWidth=function(){return NaN},r.prototype.isRace=function(){return!1},r.prototype.canDepth=function(){return!1},r.prototype.getVisibleSeries=function(){return[this]},r.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},r.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},r.prototype.connectable=function(t){return!1},r.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},r.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart.chartOptions.getXStart(t)):e;return(0,a.pickNum)(i,t.getXStart())},r.prototype.$_getXStep=function(t){return(0,a.pickProp3)(this._op.xStep,this.chart.chartOptions.options.xStep,1)},r.prototype._buildVisPoints=function(t){return t.filter((function(t){return!1!==t.visible}))},r.prototype._prepareRunPoints=function(t,e){this._runPoints=this._points.getRunPoints(t),this.visible&&!this._referents?this._visPoints=this._buildVisPoints(this._runPoints):this._visPoints=null},r.prototype._dataSourceChanged=function(){var t=this._doLoadData(this._data);this._loadPoints(t)},r.prototype._connect=function(t){this._xAxisObj=this._group?this._group._xAxisObj:t._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:t._connectSeries(this,!1)},r.prototype._prepareRender=function(){this._legended=null,this._calcedColor=void 0,this._dataSourceDirty&&(this._dataSourceChanged(),this._dataSourceDirty=!1),this._prepareRunPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},r.prototype.prepareAfter=function(){this._pointsChanged=!1},r.prototype.collectCategories=function(t){if(t instanceof v.CategoryAxis)return this._doCollectCategories(t)},r.prototype._doCollectCategories=function(t){var e=t.options.categoryField;if(null!=e){if((0,a.isArray)(e)){var i=e.length-1,r=t.getCategorySeparator();return this._points._internalPoints().filter((function(t){return(0,a.isString)(t.getProp(e[i]))})).map((function(t){return e.map((function(e){return t.getProp(e)})).join(r)}))}return this._points.getProps(e).filter((function(t){return(0,a.isString)(t)}))}return this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return(0,a.isString)(t)}))},r.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),r=this.$_getXStep(t);(0,a.isString)(r)&&(r=r.trim()),this._points.forEach((function(e,n){var o=t.getValue(e.x);isFinite(o)||(o=i,i=t.incStep(i,r)),e.xValue=o})),e&&this._runPoints.forEach((function(t){!1!==t.visible&&e.push(t.xValue)}))}else this._points.forEach((function(e,i){if(e.isNull)e.y=e.yGroup=e.yValue=NaN;else{var r=null==e.y?NaN:t?t.getValue(e.y):+e.y;isNaN(r)&&t&&(r=t.getValue(e.y)),e.initValues(),isNaN(e._vr)||(isNaN(e._prev.yValue)&&e.initPrev(t,e._prev),r=e._prev.yValue+(r-e._prev.yValue)*e._vr,e.applyValueRate(e._prev,e._vr)),e.yValue=e.yGroup=r,e.isNull=!isFinite(r)}})),this._runPoints.forEach((function(t){e&&!1!==t.visible&&isFinite(t.yValue)&&e.push(t.yValue)}))},r.prototype.collectRanges=function(t,e){if(t&&t._isX)e&&!isNaN(this._minX)&&e.push(this._minX,this._maxX);else{var i=this._visPoints,r=i.length;if(r>0){var n=this._trendline,o=this._pointArgs,s=this.hasZ(),a=i[0],l=a.xValue,u=l,c=a.yValue,p=c,h=s?a.zValue:null,f=h;a.vindex=0;for(var d=1;d<r;d++)(a=i[d]).vindex=d,isNaN(p)&&!isNaN(a.yValue)?c=p=a.yValue:a.yValue>p?p=a.yValue:a.yValue<c&&(c=a.yValue),isNaN(u)&&!isNaN(a.xValue)?l=u=a.xValue:a.xValue>u?u=a.xValue:a.xValue<l&&(l=a.xValue);if(s)for(d=1;d<r;d++){var _=i[d].zValue;isNaN(f)&&!isNaN(_)?h=f=_:_>f?f=_:_<h&&(h=_)}if(null==n?void 0:n.visible){n.setRange(l,u,c,p)._prepareRender();var y=n._points||[],g=y.map((function(t){return t.y})).filter((function(t){return Number.isFinite(t)})).sort((function(t,e){return t-e})),v=y.map((function(t){return t.x})).filter((function(t){return Number.isFinite(t)})).sort((function(t,e){return t-e}));g.length>0&&(c=Math.min(c,g[0]),p=Math.max(p,g[g.length-1])),v.length>0&&(l=Math.min(l,v[0]),u=Math.max(u,v[v.length-1]))}o.yMin=this._minY=c,o.yMax=this._maxY=p,o.xMin=this._minX=l,o.xMax=this._maxX=u,s&&(o.zMin=this._minZ=h,o.zMax=this._maxZ=f)}this.$_prepareViewRanges(i),e&&!isNaN(this._minY)&&e.push(this._minY,this._maxY)}},r.prototype.getAxisPadRate=function(){return(0,a.pickNum)(this._op.paddingRate,1)},r.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},r.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),r=this._getRangeMinMax(i),n=r.min,o=r.max;(this._runRanges=(0,u.buildValueRanges)(this._op.viewRanges,n,o,!1,!1,!0,this._runColor))?t.forEach((function(t,r){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=u._undef}))},r.prototype.prepareReferents=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.visible&&i.refer(e,t)})),this.visible&&!this._visPoints&&(this._visPoints=this._buildVisPoints(this._runPoints))},r.prototype.refer=function(t,e){},r.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},r.prototype.getLabelPos=function(t){return this._getLabelDefaultPos(t,t.options.position)},r.prototype._getLabelDefaultPos=function(t,e){return e},r.prototype.getLabelPos2=function(t,e){return this._labelPosCallback?this._getLabelDefaultPos(t,this._labelPosCallback(this._getPointCallbackArgs(this._pointArgs,e))):this._labelPos},r.prototype.getLabelOff=function(t){return t},r.prototype.getLabelOff2=function(t){return this._labelOffCallback?(0,a.pickNum)(this._labelOffCallback(this._getPointCallbackArgs(this._pointArgs,t)),x.OFFSET):this._labelOff},r.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},r.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},r.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.chart=this.chart.wrapper,t.series=this,t.count=this._points.count},r.prototype._getPointCallbackArgs=function(t,e){return e!==this._argsPoint&&(this._preparePointArgs(t),(this._argsPoint=e).assignTo(t)),t},r.prototype.getPointText=function(t,e,i){var r;return this._pointLabelCallback&&(this._pointArgs.labelIndex=e,this._getPointCallbackArgs(this._pointArgs,t),null!=(r=this._pointLabelCallback(this._pointArgs)))||null!=(r=t.getPointText(e))?r:i},r.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},r.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},r.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},r.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},r.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},r.prototype.isLabelsVisible=function(){return this._pointLabel.visible},r.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},r.prototype.getPointAt=function(t){return(0,a.isString)(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},r.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:u._undef},r.prototype._dataPointsChanged=function(){this._pointsChanged=!0,this.chart._dataChanged(),this._changed()},r.prototype.updatePoint=function(t,e){if(t instanceof g.DataPoint||(t=this.getPointAt(t)),t){var i=t._prev;return i&&i.ani&&i.ani.stop(),(i=t.updateValues(this,e))&&this.chart.animatable()&&(i.ani=new S(this,t),i.ani.start()),this._dataPointsChanged(),!!i}return!1},r.prototype.updateData=function(t){this._setData(t),this._dataPointsChanged()},r.prototype.addPoint=function(t){var e=this._doAddPoint(t);if(e){if(this._points.add(e),this.chart.animatable()){var i=e._prev=e.copy();i.ani=new S(this,e),i.ani.start()}this._dataPointsChanged()}return e},r.prototype.addPoints=function(t){var e=this,i=[];return(0,a.isArray)(t)&&t.forEach((function(t){var r=e._doAddPoint(t);r&&i.push(r)&&e._points.add(r)})),i.length>0&&(this.chart.animatable()&&i.forEach((function(t){var i=t._prev=t.copy();i.ani=new S(e,t),i.ani.start()})),this._dataPointsChanged()),i},r.prototype._needDeleteAnimation=function(){return!1},r.prototype.removePoint=function(t){if(t instanceof g.DataPoint||(t=this.getPointAt(t)),t){if(this._points.contains(t)&&this._needDeleteAnimation()&&this.chart.animatable())return t._setDeleted(),new P(this._points).start(),this._changed(),!0;if(this._points.remove(t))return this._doPointRemoved(t),this._dataPointsChanged(),!0}},r.prototype.removePoints=function(t){var e=this;if((0,a.isArray)(t)){var i=this._needDeleteAnimation()&&this.chart.animatable(),r=[];if(t.forEach((function(t){t instanceof g.DataPoint||(t=e.getPointAt(t)),t&&(i?(t._setDeleted(),r.push(t)):e._points.remove(t)&&r.push(t))})),r.length>0)return i?(new P(this._points).start(),this._changed()):(this._doPointsRemoved(r),this._dataPointsChanged()),r.length}return 0},r.prototype.followPointer=function(){return!1},r.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders()},r.prototype._setIndex=function(t,e){this._index=t,isNaN(e)||(this._seriesIndex=e)},r.prototype._createLabel=function(t){return new x(t)},r.prototype._createPoint=function(t){return new A(t)},r.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},r.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},r.prototype._doPointRemoved=function(t){},r.prototype._doPointsRemoved=function(t){},r.prototype._createLegendMarker=function(t,e){return p.RectElement.create(t,r.LEGEND_MARKER,0,0,e,e,e/2)},r.prototype._referOtherSeries=function(t){return!0},r.prototype._colorByPoint=function(){return!1},r.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField"]},r.prototype._createFielder=function(t){return(0,a.isFunc)(t)?function(e){return t(e)}:null!=t?function(e){return e[t]}:function(t){}},r.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var r="_".concat(i,"er");(!t[r]||i in e&&t["_".concat(i)]!==e[i])&&(t[r]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},r.prototype._defaultLoadAnimation=function(){return"reveal"},r.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype._load.call(this,e)},r.prototype._doLoadData=function(t){if((0,a.isArray)(t))return t;if(t){var e=void 0;if(t._obj instanceof f.DataObject)e=t._obj;else if(t instanceof f.DataObject)e=t;else if(Number.isFinite(t)||(0,a.isObject)(t)||(0,a.isBoolean)(t))return[t];if(e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},r.prototype._loadPoints=function(t){var e,i;return this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0,this},r.prototype._doLoadPoints=function(t){this._points.load(t)},r.prototype._doPrepareRender=function(){var t,i,r=this._op,n=r.pointColors,o=this._runColor=(0,a.isNumber)(r.color)?"var(--color-".concat(Math.max(1,(Math.floor(r.color)-1)%e.PALETTE_LEN+1),")"):r.color;(0,a.isArray)(n)?t=n:(0,a.isString)(n)?n.endsWith("@pal")||n.endsWith("@palette")?t=this.chart.getPaletteColors(n.split("@")[0]):i=this.chart._assets.get(n):this._colorByPoint()&&(t=this.chart.chartOptions.options.colors),i instanceof _.ColorList?this._runPoints.forEach((function(t,e){t.color=t.color||i.getNext()||o})):(0,a.isArray)(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||o})):this._runPoints.forEach((function(t,e){t.color=t.color||o})),this._preparePointArgs(this._pointArgs),this._labelPosCallback=(0,a.getCallback)(r.pointLabel.position),this._labelPos=this.getLabelPos(this._pointLabel),this._labelOffCallback=(0,a.getCallback)(r.pointLabel.offset),this._labelOff=this.getLabelOff(this._pointLabel.getOffset())},r.prototype._setViewRange=function(t,e){var i,r,n=t[w[e]];try{for(var o=s(this._runRanges),a=o.next();!a.done;a=o.next()){var l=a.value;if(n>=l.fromValue&&n<=l.toValue)return void(t.range=l)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}t.range=u._undef},r.prototype._defViewRangeValue=function(){return"y"},r.prototype._canSort=function(){return!0},r.prototype.$_setDeleteAni=function(t){this._deleteAni&&this._deleteAni.stop(),this._deleteAni=t},r.prototype.$_stopDeleteAni=function(t){this._deleteAni===t&&(this._deleteAni=null)},r.prototype.isDeleting=function(){return!!this._deleteAni},r.LEGEND_MARKER="rct-legend-item-marker",r.defaults=(0,y.extend)(y.ChartItem.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}:<b> ${yValue}</b>",loadAnimation:"default",hoverEffect:"default",interactive:!0,paddingRate:1}),r}(y.ChartItem);e.Series=O;var C=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return i(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype._internalSeries=function(){return this._series},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype.canDepth=function(){return this._visibleSeries.every((function(t){return t.canDepth()}))},e.prototype._clear=function(){},e.prototype.get=function(t){return this._items[t]},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i.row&&e===i.col}))},e.prototype.seriesByType=function(t){var e,i;try{for(var r=s(this._items),n=r.next();!n.done;n=r.next()){var o=n.value;if(o._type()===t)return o;if(o instanceof F&&o.series[0]._type()===t)return o.series[0]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.seriesByPoint=function(t){var e,i;try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1);var i=[];return this._items.forEach((function(r){r._valid&&!r._legended&&(t<0||t===r.row)&&(e<0||e===r.col)&&(r.getLegendSources(i),r._legended=t>=0&&e>=0)})),i},e.prototype.canPolar=function(){return this._series.length>0&&this._series.every((function(t){return t&&t.canPolar}))},e.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],s=this._series=[];(0,a.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,a.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){t instanceof F?s.push.apply(s,o([],n(t.series),!1)):t instanceof O&&s.push(t)})),this._map={},this._widget=!0,s.forEach((function(t){return e.$_add(t)})),i._op.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t,e){var i=this.$_loadItem(this.chart,t,this._series.length);if(i)return i._needAnimate=e,this._items.push(i),this._series.push(i),this.$_add(i),i},e.prototype.remove=function(t){var e;if(t instanceof O?e=t:(0,a.isString)(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),delete this._map[e.name],this._items.forEach((function(t,e){t._setIndex(e)})),e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.connect=function(t){var e=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)}));e.forEach((function(e){e._connect(t),e._valid=Boolean(e._xAxisObj&&e._yAxisObj)})),this._visibles=e.filter((function(t){return t._valid}))},e.prototype.prepareRender=function(){var t=[],e=0;this._series.forEach((function(i){if(i.visible){var r=i._group;(r?r.visible&&r._valid:i._valid)&&(t.push(i),i.hasShape()&&i.setShape(h.ShapeNames[e++%h.ShapeNames.length]),r||(i._valid=!0))}})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,r=+(e.group?e.group.zOrder:e.zOrder)||0;return i===r&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-r}));var i=1===this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof R&&(t._single=i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var r=(0,a.isArray)(e.children||e.series)&&t._getGroupType(e.type||t.type);if(r){var n=new r(t);return n._setIndex(i),n.init(),n._load(e),n}return O._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof M||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(y.ChartItemCollection);e.PlottingItemCollection=C;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.trendline=(this._trendline=new m.Trendline(this)).init()},Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),e.prototype.connectable=function(t){return!0},e.defaults=(0,y.extend)(O.defaults,{}),e}(O);e.ConnectableSeries=E;var V=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i._args={},i}return i(e,t),e.prototype.getMarkerStyle=function(t){if(this._op.styleCallback)return this.series._getPointCallbackArgs(this._args,t),this._op.styleCallback(this._args)},e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{radius:3}),e}(y.ChartItem);e.SeriesMarker=V;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendStroke=function(){return this._calcedStroke},e.prototype.legendLabel=function(){return(0,a.pickProp)(this.x,this.y)},e.prototype.legendKey=function(){return this._legendKey},e.prototype.styleLegendMarker=function(t){},e.prototype.isEmpty=function(){return 0===this.yValue},e.prototype.initPrev=function(t,e){e.yValue=0},e.prototype.getParam=function(e){var i=t.prototype.getParam.call(this,e);return null==i&&"name"===e?this.x:"percent"===e?this._percent:i},e}(g.DataPoint);e.WidgetSeriesPoint=T;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this.setStyle("stroke",e,!1),!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{curved:!0}),e}(y.ChartItem);e.WidgetSeriesConnector=k;var L=function(t){function e(e,i){void 0===i&&(i=!1);var r=t.call(this,e)||this;return r.isSub=i,r}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.connector=(this._connector=new k(this.chart)).init()},Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},enumerable:!1,configurable:!0}),e.prototype.getAlign=function(){return"near"===this._op.align?-1:"far"===this._op.align?1:0},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"distance")},e.defaults=(0,y.extend)(x.defaults,{visible:!0,convergent:!0,align:d._PointLabelAlign.NONE,dedupeMode:d._PointLabelDedupeMode.DISPLAY_ALL}),e}(x);e.WidgetSeriesLabel=L;var N=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._dirty=!1,e}return i(e,t),e.prototype.calculate=function(t){var i,r=this.options,n=this._save,o=r.maxCount;return i=this._minDim?(0,u.calcPercent)(this._minDim,g.DataPoint.getSum(t)):+r.minValue,isNaN(o)&&isNaN(i)&&(o=e.DEF_COUNT),(this._dirty=!n||n.value!==i||n.count!==o)&&(isNaN(i)||(t=t.filter((function(t){return t.y>=i}))),o>0&&t.length>o&&(o>1&&o--,t=t.slice(0,o)),this._save={count:o,value:i}),t},e.prototype.isDirty=function(){return this._dirty},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._minDim=(0,u.parsePercentSize)(e.minValue,!0)},e.DEF_COUNT=10,e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1,x:"기타"}),e}(y.ChartItem);e.OthersGroup=N;var M=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._sum=0,e}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.othersGroup=(this._othersGroup=new N(this.chart)).init()},Object.defineProperty(e.prototype,"othersGroup",{get:function(){return this._othersGroup},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidget",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getSum=function(){return this._sum},e.prototype.getCenter=function(t,e){return{x:(0,u.calcPercent)(this._centerXDim,t),y:(0,u.calcPercent)(this._centerYDim,e)}},e.prototype._getLabelDefaultPos=function(e,i){return"default"===i?e.isSub&&"inside"===t.prototype.getLabelPos.call(this,this._pointLabel)?"outside":"inside":i},e.prototype.needAxes=function(){return!1},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){var i=this;this._op.legendByPoint?!1!==this._op.visibleInLegend&&(this._groupedPoints||this._runPoints).forEach((function(t){i._isVisibleInLegend(t)&&e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._isVisibleInLegend=function(t){return t.yValue>=0&&(t.yValue>0||this._op.zeroInLegend)},e.prototype._doApply=function(i){var r,n,o=this;t.prototype._doApply.call(this,i),r=i.centerX,n=i.centerY,r!==o._centerX&&(o._centerX=r,o._centerXDim=(0,u.parsePercentSize)((0,a.pickProp3)(r,o._op.center,e.DEF_CENTER),!0)),n!==o._centerY&&(o._centerY=n,o._centerYDim=(0,u.parsePercentSize)((0,a.pickProp3)(n,o._op.center,e.DEF_CENTER),!0))},e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),this._sum=0,this._runPoints.forEach((function(t){return r._sum+=t.yValue}));var n=this.getSum();this._runPoints.forEach((function(t){return t._percent=100*t.yValue/n}))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.prototype._dataSourceChanged=function(){t.prototype._dataSourceChanged.call(this),this._groupedPoints=null},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._groupedPoints&&e===this._groupedPoints[this._groupedPoints.length-1]},e.prototype._buildVisPoints=function(e){var i=this._op.legendKey,n=this.othersGroup;if(n.visible){if(!this._groupedPoints&&(this._groupedPoints=n.calculate(e),e.length>this._groupedPoints.length)){var o=this._createOthersPoint(r({},this._op.othersGroup),e.slice(this._groupedPoints.length));o.parse(this),o.index=e.length,o.yValue=o.yGroup=o.y,this._groupedPoints.push(o)}e=this._groupedPoints}return t.prototype._buildVisPoints.call(this,e).map((function(t,e){return t.vindex=e,t._legendKey=t[i],t}))},e.DEF_CENTER="50%",e.defaults=(0,y.extend)(O.defaults,{legendByPoint:!1,zeroInLegend:!0,centerX:e.DEF_CENTER,centerY:e.DEF_CENTER}),e}(O);e.WidgetSeries=M;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRadius=function(t,e){return(0,u.calcPercent)(this._radiusDim,(0,a.minv)(t,e))},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),function(t,i){i!==t._radius&&(t._radiusDim=(0,u.parsePercentSize)((0,a.pickProp)(t._radius=i,e.defaults.radius),!0))}(this,i.radius)},e.defaults=(0,y.extend)(M.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(M);e.RadialSeries=j;var R=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e}return i(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._op.minPointWidth},e.prototype.getPointWidth=function(t,e){var i=this._group,r=t;return i?(r*=i._clusterWidth,r*=1-2*i.options.groupPadding,r*=this._childWidth):r*=this._clusterWidth,r*=1-2*this._pointPad,(0,a.maxv)(e,r)},e.prototype.getPointPos=function(t){var e=this._group,i=t,r=0;return e?(r=i*e._clusterPos,r+=(i*=e._clusterWidth)*e.options.groupPadding,r+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(r=i*this._clusterPos,i*=this._clusterWidth),r+=i*this._pointPad},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._op.minPointWidth=(0,a.pickNum)(this.getMinPointWidth(),0)},e.defaults=(0,y.extend)(O.defaults,{pointWidth:1,minPointWidth:0}),e}(E);e.ClusterableSeries=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.line=(this._line=new b(this.chart)).init()},e.defaults=(0,y.extend)(x.defaults,{}),e}(x);e.BasedSeriesLabel=B;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new B(t)},e.prototype._doPrepareRender=function(){var i=this._group,r=this._op;t.prototype._doPrepareRender.call(this),i?(this._depth=(0,a.maxv)(0,(0,a.pickNum3)(r.depth,i.getDepth(),e.DEPTH)),this._distance=i.getDistance()+(0,a.pickNum)(r.distance,0)):(this._depth=(0,a.maxv)(0,(0,a.pickNum)(r.depth,e.DEPTH)),this._distance=(0,a.pickNum)(r.distance,e.DISTANCE)),r.nullAsBase&&null!=r.baseValue&&this._runPoints.forEach((function(t){t.isNull&&(t.y=r.baseValue,t.isNull=!1)})),this._base=(0,a.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._getGroupBase=function(){return this._op.baseValue},e.prototype.isBased=function(t){return t===this._yAxisObj},e.DEPTH=10,e.DISTANCE=5,e.defaults=(0,y.extend)(R.defaults,{nullAsBase:!1}),e}(R);e.BasedSeries=D;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._visPoints.forEach((function(t){if(i){var e=r._getBottomValue(t);!isNaN(e)&&i.push(e)}}))},e}(R);e.RangedSeries=I;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(I);e.LowRangedSeries=G;var F=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.type]=t}))},r.registerSeries=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.seriesType]=t}))},r.collectTooltipText=function(t,e,i,r){var n=t.tooltipHeader||"";return t.tooltipRow&&e.forEach((function(e,o){var s;e!==i?e.needAxes()&&(s=e.getPointAt(r.xValue)):s=r,s&&(n&&(n+="<br>"),n+=t.tooltipRow.replace("yValue","yValue."+r.index).replace(/\$\{/g,"${"+o+"."))})),n+=t.tooltipFooter?"<br>"+t.tooltipFooter:""},r.inflateTooltipParam=function(t,e,i,r){var n=r.indexOf("."),o=parseInt(r.substring(0,n));if(!isNaN(o)){var s=t[o].getPointAt(i.xValue);s&&(e=t[o],i=s,r=r.substring(n+1))}return r.startsWith("series.")&&(e=t[+r.substring(7)]||e,r="series"),O.getPointTooltipParam(e,i,r)},r.prototype.getTooltipText=function(t,e){return r.collectTooltipText(this._op,this._visibles,t,e)},r.prototype.getTooltipParam=function(t,e,i){return r.inflateTooltipParam(this._visibles,t,e,i)},r.prototype.isXY=function(){return!1},r.prototype.isMarker=function(){return!1},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){t!==this._col&&(this._col=t,this._series.forEach((function(e){return e.setCol(t)})))},Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){t!==this._row&&(this._row=t,this._series.forEach((function(e){return e.setRow(t)})))},Object.defineProperty(r.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),r.prototype.needAxes=function(){return!0},r.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},r.prototype.canCategorized=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.getBaseValue=function(t){return NaN},r.prototype.getVisibleSeries=function(){return this._visibles},r.prototype.isRace=function(){return!1},r.prototype.getDepth=function(){},r.prototype.getDistance=function(){return 0},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visCount",{get:function(){return this._visibles.length},enumerable:!1,configurable:!0}),r.prototype._type=function(){return this.constructor.type},r.prototype._seriesType=function(){return this.constructor.seriesType},r.prototype.connectable=function(t){return!0},r.prototype.isFirstVisible=function(t){return t===this._visibles[0]},r.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},r.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},r.prototype.collectRanges=function(t,e){this._visibles.forEach((function(i){i.collectRanges(t,e)}))},r.prototype.prepareReferents=function(t){this._series.forEach((function(e){return e.prepareReferents(t)}))},r.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},r.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var r=this._series,s=[];if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)r.forEach((function(t){return t.getLegendSources(s)}));else for(var a=r.length-1;a>=0;a--)r[a].getLegendSources(s);i.reversedInLegend&&s.reverse(),t.push.apply(t,o([],n(s),!1))}},r.prototype.getAxisPadRate=function(){return 1},r.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.seriesChanged=function(){return this._seriesChanged},r.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),this._series.forEach((function(t,e){t._setIndex(e)})),!0},r.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,o([],n(e._getVisiblePoints()),!1))})),t},r.prototype.getLayoutMax=function(){var t=(0,a.pickNum)(this._op.layoutMax,r.LAYOUT_MAX);return t>0?t:r.LAYOUT_MAX},r.prototype._doApply=function(e){t.prototype._doApply.call(this,e),a.hasOwnProperty.call(e,"children")&&(this._series=[],this.$_loadSeries(this.chart,e.children))},r.prototype._doSaveArray=function(t,e){if("children"===t)return this._series.map((function(t){return t.saveOptions()}))},r.prototype._prepareRender=function(){var e=this._visibles;if(this._legended=null,this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!c.Utils.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},r.prototype._connect=function(t){this._xAxisObj=t._connectSeries(this,!0),this._yAxisObj=t._connectSeries(this,!1)},r.prototype._doPrepareRender=function(t){this._visibles.length>0&&(this._visibles.forEach((function(e){return e._connect(t)})),this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},r.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},r.prototype._setIndex=function(t){this._index=t},r.prototype._doPrepareSeries=function(t){},r.prototype.$_loadSeries=function(t,e){var i=this,r=this._seriesType();(0,a.isArray)(e)?e.forEach((function(e,n){return i.$_add(O._loadSeries(t,i._series.length,e,r))})):(0,a.isObject)(e)&&this.$_add(O._loadSeries(t,this._series.length,e,r))},r.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},r.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},r.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var r=1;r<e.length;r++)e[r]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},r.prototype.$_collectStack=function(t,e){var i,r,n,o,a=this.getBaseValue(t),l=this.$_collectPoints(t);if(isNaN(a))try{for(var u=s(l.values()),c=u.next();!c.done;c=u.next()){(f=c.value)[0].yGroup=f[0].yValue||0;for(g=1;g<f.length;g++)f[g].yGroup=f[g-1].yGroup+(f[g].yValue||0);e.push(f[f.length-1].yGroup)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}else try{for(var p=s(l.values()),h=p.next();!h.done;h=p.next()){var f,d=(f=h.value)[0].yValue||0,_=d>=a?0:-1,y=d<a?0:-1;f[0].yGroup=f[0].yValue||0;for(var g=1;g<f.length;g++)(d=f[g].yValue||0)>=a?(_>=0&&(f[g].yGroup=f[_].yGroup+d*(d<0?-1:1)),_=g):(y>=0&&(f[g].yGroup=f[y].yGroup+d*(d>=0?-1:1)),y=g);_>=0&&e.push(f[_].yGroup),y>=0&&e.push(f[y].yGroup)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}},r.prototype.$_collectFill=function(t,e){var i,r,n,o,l,u,c,p,h,f,d,_,y=this.getBaseValue(t),g=this.getLayoutMax(),v=this.$_collectPoints(t);if(isNaN(y))try{for(var m=s(v.values()),b=m.next();!b.done;b=m.next()){E=(C=b.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===E){try{for(var x=(h=void 0,s(C)),w=x.next();!w.done;w=x.next()){(j=w.value).yValue=j.yGroup=0}}catch(t){h={error:t}}finally{try{w&&!w.done&&(f=x.return)&&f.call(x)}finally{if(h)throw h.error}}e.push(0)}else{k=0;try{for(var S=(d=void 0,s(C)),P=S.next();!P.done;P=S.next()){(j=P.value).yValue=(j.yValue||0)/E*g,k=j.yGroup=j.yValue+k}}catch(t){d={error:t}}finally{try{P&&!P.done&&(_=S.return)&&_.call(S)}finally{if(d)throw d.error}}e.push(g)}}}catch(t){c={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(c)throw c.error}}else try{for(var A=s(v.values()),O=A.next();!O.done;O=A.next()){var C,E=(C=O.value).reduce((function(t,e){return t+((0,a.absv)(e.yValue)||0)}),0);if(0===E){try{for(var V=(n=void 0,s(C)),T=V.next();!T.done;T=V.next()){(j=T.value).yValue=j.yGroup=0}}catch(t){n={error:t}}finally{try{T&&!T.done&&(o=V.return)&&o.call(V)}finally{if(n)throw n.error}}e.push(0,0)}else{var k=0,L=0;try{for(var N=(l=void 0,s(C)),M=N.next();!M.done;M=N.next()){var j;(j=M.value).yValue=(j.yValue||0)/E*g,j.yValue<y?L=j.yGroup=(j.yValue||0)+L:k=j.yGroup=(j.yValue||0)+k}}catch(t){l={error:t}}finally{try{M&&!M.done&&(u=N.return)&&u.call(N)}finally{if(l)throw l.error}}e.push(L,k)}}}catch(t){i={error:t}}finally{try{O&&!O.done&&(r=A.return)&&r.call(A)}finally{if(i)throw i.error}}},r.LAYOUT_MAX=100,r.defaults=(0,y.extend)(y.ChartItem.defaults,{layout:"default",layoutMax:r.LAYOUT_MAX,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}:<b> ${yValue}</b>"}),r}(y.ChartItem);e.SeriesGroup=F;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var r=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,o([],n(r),!1))}},e}(F);e.ConstraintSeriesGroup=z;var $=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e}return i(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=(0,y.extend)(F.defaults,{groupWidth:1,groupPadding:.1}),e}(F);e.ClusterableSeriesGroup=$;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isMarker=function(){return!0},e.prototype.isXY=function(){return!0},e.defaults=(0,y.extend)(O.defaults,{colorByPoint:!1}),e}(E);e.MarkerSeries=H}(DB);var jD={},RD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),BD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},DD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(jD,"__esModule",{value:!0}),jD.SeriesNavigator=jD.NavigatorMask=jD.NavigiatorHandle=void 0;var ID=iM,GD=LM,FD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RD(e,t),e}(GD.ChartItem);jD.NavigiatorHandle=FD;var zD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RD(e,t),e}(GD.ChartItem);jD.NavigatorMask=zD;var $D={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},HD={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},WD={minPadding:0,maxPadding:0},UD=function(t){function e(){var e=t.apply(this,DD([],BD(arguments),!1))||this;return e._dataChanged=!0,e}return RD(e,t),e.prototype._doInit=function(t){var e=this.chart;t.handle=(this._handle=new FD(e)).init(),t.mask=(this._mask=new zD(e)).init(),t.borderLine=(this._borderLine=new GD.ChartItem(e)).init()},Object.defineProperty(e.prototype,"handle",{get:function(){return this._handle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderLine",{get:function(){return this._borderLine},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(){return(0,ID.pickNum)(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return(0,ID.pickNum)(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return(0,ID.pickNum)(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var r={};if((0,ID.isObject)(i.series)){var n=i.series.type;"area"!==n&&"line"!==n&&"bar"!==n&&(n="area"),r.series=(0,ID.assignObj)({},i.series,$D[n]())}else r.series=$D.area();(0,ID.isObject)(i.xAxis)?r.xAxis=(0,ID.assignObj)({},i.xAxis,(HD[i.xAxis.type]||HD.linear)(),WD):r.xAxis=(0,ID.assignObj)({},WD),(0,ID.isObject)(i.yAxis)?r.yAxis=(0,ID.assignObj)({},i.yAxis,(HD[i.yAxis.type]||HD.linear)(),WD):r.yAxis=(0,ID.assignObj)(HD.linear(),WD),this._chartConfig=r,this._axisType=r.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=(0,GD.extend)(GD.ChartItem.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(GD.ChartItem);jD.SeriesNavigator=UD;var YD={},XD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(YD,"__esModule",{value:!0}),YD.Subtitle=YD.Title=void 0;var qD=iM,ZD=nM,KD=LM,JD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return XD(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,ZD.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,qD.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,KD.extend)(KD.ChartItem.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10,offset:0}),e}(KD.ChartItem);YD.Title=JD;var QD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return XD(e,t),e.defaults=(0,KD.extend)(JD.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(JD);YD.Subtitle=QD;var tI={},eI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tI,"__esModule",{value:!0}),tI.Tooltip=void 0;var iI=iM,rI=zM,nI=NM,oI=LM,sI=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return eI(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){var r=i,n=r._series,o=r._point,s=r._ctx,a=n._group,l=!!s.axis,u=n,c=o;if(l||a){var p=e.match(/(\d+)\.(series|yValue)/);if(p){var h=Number(p[1])||0;e=e.replace(h+".",""),u=l?s.series[h]:a.getVisibleSeries()[h]}}return e.match(/yValue\.(\d+)/)&&(c=u.getPointAt(o.xValue),e="yValue"),s.getTooltipParam(u,c,e)}}},e.prototype.setTarget=function(t,e,i){var r=(0,iI.pickProp)(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(r,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isHtmlLayer=function(){return!1},e.prototype.getNoClip=function(){var t=this._op.noClip;return!!(0,iI.isBoolean)(t)&&t},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype.getHeaderHeight=function(){var t=this._op;return t.simpleMode?0:(0,iI.maxv)((0,iI.pickNum)(t.headerHeight,0),0)},e.prototype.getTailSize=function(){return this._op.simpleMode?0:(0,iI.maxv)((0,iI.pickNum)(this._op.tailSize,0),0)},e.prototype.getBorderRadius=function(){return this._op.simpleMode?0:(0,iI.maxv)((0,iI.pickNum)(this._op.borderRadius,0),0)},e.prototype._doSetSimple=function(e){return(0,iI.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=r._numberFormat?nI.NumberFormatter.getFormatter(r._numberFormat):void 0),function(t){t!=r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=r._timeFormat?rI.DatetimeFormatter.getFormatter(r._timeFormat):void 0)}(e.timeFormat)},e.defaults=(0,oI.extend)(oI.ChartItem.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd",headerHeight:7,tailSize:10,borderRadius:5,simpleMode:!1,noClip:!1}),e}(oI.ChartItem);tI.Tooltip=sI;var aI={},lI={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationTypes=t.TextAnnotationType=t._ShapeAnnotationShape=t.ShapeAnnotationType=t.ImageAnnotationType=t._AnnotationScope=void 0,t._AnnotationScope={CHART:"chart",CONTAINER:"container"},t.ImageAnnotationType="image",t.ShapeAnnotationType="shape",t._ShapeAnnotationShape={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle",VLINE:"vline",HLINE:"hline",LINE:"line"},t.TextAnnotationType="text",t.AnnotationTypes={ImageAnnotationType:t.ImageAnnotationType,ShapeAnnotationType:t.ShapeAnnotationType,TextAnnotationType:t.TextAnnotationType}}(lI);var uI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(aI,"__esModule",{value:!0}),aI.ImageAnnotation=void 0;var cI=iM,pI=nM,hI=lI,fI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uI(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,pI.isNull)(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return(0,cI.isString)(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=hI.ImageAnnotationType,e}(kM.Annotation);aI.ImageAnnotation=fI;var dI={},_I=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(dI,"__esModule",{value:!0}),dI.ShapeAnnotation=void 0;var yI=iM,gI=lI,vI=kM,mI=LM,bI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _I(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return(0,yI.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=gI.ShapeAnnotationType,e.defaults=(0,mI.extend)(vI.Annotation.defaults,{width:64,height:64,shape:"square"}),e}(vI.Annotation);dI.ShapeAnnotation=bI;var xI={},wI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),SI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},PI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(xI,"__esModule",{value:!0}),xI.TextAnnotation=void 0;var AI=iM,OI=zM,CI=NM,EI=nM,VI=lI,TI=kM,kI=LM,LI=function(t){function e(){var e=t.apply(this,PI([],SI(arguments),!1))||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return wI(e,t),e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,EI.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,AI.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=i?CI.NumberFormatter.getFormatter(i):EI._undef),function(t){t!==r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=t?OI.DatetimeFormatter.getFormatter(t):EI._undef)}(e.timeFormat)},e.type=VI.TextAnnotationType,e.defaults=(0,kI.extend)(TI.Annotation.defaults,{text:"Text"}),e}(TI.Annotation);xI.TextAnnotation=LI;var NI={},MI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),jI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},RI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},BI=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(NI,"__esModule",{value:!0}),NI.LinearAxis=NI.ContinuousAxis=NI.AxisBaseLine=NI.AxisBreak=NI.LinearAxisLabel=NI.ContinuousAxisLabel=NI.ContinuousAxisTick=NI.ContinuousAxisGrid=void 0;var DI=rM,II=iM,GI=nM,FI=uD,zI=rB,$I=LM,HI=DB,WI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),e.prototype.getPoints=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(zI.AxisGrid);NI.ContinuousAxisGrid=WI;var UI=function(t){function e(){var e=t.apply(this,RI([],jI(arguments),!1))||this;return e._strictEnds=!1,e._userTicks=!1,e}return MI(e,t),e.prototype._getValidInterval=function(t,e,i,r,n){if((0,II.isFunc)(e)){var o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n});isNaN(o)||(e=o)}return e>0?e:void 0},e.prototype.buildSteps=function(t,e,i,r,n,o){void 0===o&&(o=!1);var s,a=this._op,l={chart:this.chart.wrapper,length:e,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n},u=this.$_getStepPixels(e,l);return this._userTicks=this._strictEnds=!1,this._step=NaN,o?this._getStepsByPixels(e,(0,II.pickNum)(.85*u,60),i,r,n,l):(0,II.isArray)(a.steps)||(0,II.isFunc)(a.steps)||(0,II.isFunc)(a.stepCallback)?this._getStepsBySteps(r,n,l):this._baseAxis instanceof KI&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,i,r,n,!0):a.stepCount>1?this._getStepsByCount(a.stepCount,i,r,n,!1):null!=(s=this._getValidInterval(t,a.stepInterval,e,r,n))?this._getStepsByInterval(s,i,r,n):u>0?this._getStepsByPixels(e,u,i,r,n,l):r!==n?[r,n]:[r]},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.getMaxCount=function(t,e){return void 0===this._op.maxCount?(0,II.maxv)(8,(0,II.ceil)(t/(.9*e))+1):(0,II.pickNum)(this._op.maxCount,1/0)},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._doApply=function(e){var i;if(t.prototype._doApply.call(this,e),this._stepPixels=!(0,II.isFunc)(e.stepPixels)&&DI.Utils.parseTuples(e.stepPixels),II.hasOwnProperty.call(e,"stepMultiples"))if((0,II.isFunc)(e.stepMultiples))i=e.stepMultiples;else{var r;if((0,II.isArray)(e.stepMultiples)){var n=Number.MIN_SAFE_INTEGER;r=[],e.stepMultiples.forEach((function(t){!isNaN(+t)&&t>n&&r.push(+t)}))}(i=r&&r.length>0?r:void 0)&&((i=i.filter((function(t){return t>=1}))).length>0?i.sort((function(t,e){return t-e})):i=void 0)}this._userMultiples=i},e.prototype.$_getStepPixels=function(t,i){var r=this._stepPixels;if((0,II.isFunc)(r)&&(r=r.call(void 0,i)),!r){var n=this.axis;r=n._isPolar?e.STEP_PIXELS_P:n._isX?e.STEP_PIXELS_X:e.STEP_PIXELS_Y}for(var o=0;o<r.length;o++)if(t<=r[o][0])return(0,II.maxv)(1,r[o][1])},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof KI&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype._normalizeMin=function(t,e){return t>(0,II.floor)(t/e)*e?t=(0,II.floor)(t/e)*e:t<(0,II.ceil)(t/e)*e&&(t=(0,II.ceil)(t/e)*e),t},e.prototype._getStepsByCount=function(t,e,i,r,n){i>e?(i=e,e=NaN):r<e&&(r=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=r-i,a=s/(t-1),l=Math.pow(10,Math.floor(Math.log10(a))),u=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?n&&a/l==2.5&&(0,II.floor)(t*s/a)==t*s/a?this._step=a:a=this._step=(0,II.ceil)(a/l)*l:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this._normalizeMin(i,l);else{for((0,GI.assert)(i<e&&r>e,"base error"),t=(0,II.maxv)(3,t);;){if(!((0,II.ceil)((e-i)/a)+(0,II.ceil)((r-e)/a)+1>t))break;a+=l}i=e-(0,II.ceil)((e-i)/a)*a}else i=o._fixedMin;u.push((0,GI.fixnum)(i));for(var c=1;c<t;c++)u.push((0,GI.fixnum)(u[c-1]+a));return u},e.prototype._getStepsByInterval=function(t,e,i,r){var n,o=[];if(i=(0,GI.fixnum)(this._normalizeMin(i,t)),isNaN(e))for(o.push(n=i);n<r;)o.push(n=(0,GI.fixnum)(n+t));else{for(o.push(n=e);n>i;)o.unshift(n=(0,GI.fixnum)(n-t));for(n=e;n<r;)o.push(n=(0,GI.fixnum)(n+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t,i){var r;return(null!==(r=(0,II.isFunc)(this._userMultiples)?this._userMultiples.call(void 0,i):this._userMultiples)&&void 0!==r?r:this._op.fineStep)?e.STEP_MULTIPLES[2]:this._op.enableDecimals&&1===t?e.STEP_MULTIPLES[0]:e.STEP_MULTIPLES[1]},e.prototype._getStepsBySteps=function(t,e,i){var r,n=this._op,o=(0,II.isFunc)(n.steps)?n.steps:n.stepCallback;return o?(r=o.call(void 0,i),(0,II.isArray)(r)&&!r.every((function(t){return!isNaN(+t)}))||(r=t!==e?[t,e]:[t])):r=n.steps.filter((function(t){return isFinite(+t)})).map((function(t){return+t})),(r=r.filter(n.clipSteps?function(i){return i>=t&&i<=e}:function(t){return isFinite(t)})).sort((function(t,e){return t-e})),r.length>0&&!isFinite(+r[0])&&(r[0]=t),r.length>1&&!isFinite(+r[r.length-1])&&(r[r.length-1]=e),this._userTicks=this._strictEnds=!0,r},e.prototype._getStepsByPixels=function(t,e,i,r,n,o){r>=i?r=i:n<=i&&(n=i);var s=n-r;if(0===s||t<=0)return isNaN(r)?[]:[r];var a,l=this.getMaxCount(t,e),u=(0,II.maxv)(1,(0,II.floor)(t/e))+1,c=s/(u-1),p=(0,II.pow10)((0,II.floor)((0,II.log10)(c))),h=this._getStepMultiples(p,o),f=[],d=0;if(c/=p,h)if(c>h[d]){for(;d<h.length-1;d++)if(c>h[d]&&c<h[d+1]){c=c<=h[d]+(h[d+1]-h[d])/2?h[d]:h[d+1];break}}else c=h[d];for(;;){for(((c*=p)<=0||!isFinite(c))&&(c=s/u),r=isNaN(i)?this._normalizeMin(r,c):i-(0,II.ceil)((i-r)/c)*c,this._step=c,f.push((0,GI.fixnum)(a=r));a<n;)f.push((0,GI.fixnum)(a+=c));if(!h||d>h.length-2||f.length<=l)break;c=h[++d],f.length=0}return f},e.STEP_PIXELS_P=[[300,48],[700,72],[900,96],[1/0,120]],e.STEP_PIXELS_Y=[[130,36],[300,48],[700,72],[1/0,96]],e.STEP_PIXELS_X=[[400,48],[900,72],[1/0,96]],e.STEP_MULTIPLES=[[1,2,2.5,5,10],[1,2,5,10],[1,2,2.5,3,4,5,10]],e.defaults=(0,$I.extend)(zI.AxisTick.defaults,{baseRange:!1,enableDecimals:!0}),e}(zI.AxisTick);NI.ContinuousAxisTick=UI;var YI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),e.defaults=(0,$I.extend)(zI.AxisLabel.defaults,{numberFormat:"0.##"}),e}(zI.AxisLabel);NI.ContinuousAxisLabel=YI;var XI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!1)},e.defaults=(0,$I.extend)(YI.defaults,{useSymbols:!0}),e}(YI);NI.LinearAxisLabel=XI;var qI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),e.prototype.getSize=function(t){return Math.min(.9*t,(0,GI.calcPercent)(this._sizeDim,t))},e.prototype._doApply=function(e){var i;t.prototype._doApply.call(this,e),this._op.space=(0,II.pickNum)(this._op.space,0),this._sizeDim=(0,GI.parsePercentSize)(null!==(i=this._op.size)&&void 0!==i?i:"30%",!1),this.axis._breaksChanged=!0},e.defaults=(0,$I.extend)(zI.AxisItem.defaults,{size:"30%",space:16,gridVisible:!0}),e}(zI.AxisItem);NI.AxisBreak=qI;var ZI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),e.prototype._isVisible=function(){return this._op.visible},e.defaults=(0,$I.extend)(zI.AxisLine.defaults,{visible:!1}),e}(zI.AxisLine);NI.AxisBaseLine=ZI;var KI=function(t){function e(){var e=t.apply(this,RI([],jI(arguments),!1))||this;return e._breaks=[],e._breaksChanged=!1,e}return MI(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.baseLine=(this._baseLine=new ZI(this)).init()},Object.defineProperty(e.prototype,"baseLine",{get:function(){return this._baseLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"break",{get:function(){return this._breaks?this._breaks[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._baseVal},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype._getBreaks=function(){return this._runBreaks?this._runBreaks.slice(0,1):[]},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype.$_getPadding=function(t,i,r){if(!t){if(this._isX&&this._isPolar)return 0;t=e.PADDINGS}for(var n=0;n<t.length;n++)if(i<=t[n][0])return t[n][1]*r;return 0},e.prototype._doApply=function(e){var i,r;t.prototype._doApply.call(this,e);var n,o=null!==(i=e.minPadding)&&void 0!==i?i:e.padding,s=null!==(r=e.maxPadding)&&void 0!==r?r:e.padding;this._minPadPixels=NaN,(0,II.isString)(o)&&o.endsWith("px")&&(n=parseFloat(o),isFinite(n)&&(this._minPadPixels=n)),this._maxPadPixels=NaN,(0,II.isString)(s)&&s.endsWith("px")&&(n=parseFloat(s),isFinite(n)&&(this._maxPadPixels=n)),isNaN(this._minPadPixels)&&(this._minPaddings=DI.Utils.parseTuples(o)),isNaN(this._maxPadPixels)&&(this._maxPaddings=DI.Utils.parseTuples(s)),this._baseVal=+this._op.baseValue,this._strictMin=(0,GI.parsePercentSize)(e.strictMin,!0),this._strictMax=(0,GI.parsePercentSize)(e.strictMax,!0),II.hasOwnProperty.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new WI(this)},e.prototype._createTickModel=function(){return new UI(this)},e.prototype._doPrepareRender=function(){this._breaksChanged&&(this.$_mergeBreaks(),this._breaksChanged=!1),this._tick._findBaseAxis()},e.prototype.$_trim=function(t){var e=(0,II.pickNum)(this._runBase,this._min);isNaN(this._fixedMax)&&isNaN(this._maxPadPixels)&&this._calcedMax>e&&t[t.length-2]>this._calcedMax&&t[t.length-2]-this._calcedMax>.5*(t[t.length-2]-t[t.length-3])&&(t.pop(),this._setMinMax(this._min,t[t.length-1])),e=(0,II.pickNum)(this._runBase,this._max),isNaN(this._fixedMin)&&isNaN(this._minPadPixels)&&this._calcedMin>e&&t[1]<this._calcedMin&&t[1]-this._calcedMin<.5*(t[1]-t[2])&&(t.shift(),this._setMinMax(t[0],this._max))},e.prototype.$_trimSteps=function(t,e,i){this._runBreaks?(this._lastSect=this._sects[this._sects.length-1],t.length>3&&t[t.length-3]>this._lastSect.from&&(this.$_trim(t),this._lastSect.to=t[t.length-1])):!this.tick._userTicks&&t.length>2&&this.$_trim(t)},e.prototype._doBuildTicks=function(t,i,r,n){if(isNaN(t)||isNaN(i))return[];if(n>1&&!this._isHorz){var o=this._prevSteps;return this.$_trimSteps(o,r,n),this.$_createTicks(o,r,this._min,this._max,n)}var s=this._tick,a=s._baseAxis instanceof e&&s._baseAxis._ticks.length>0,l=this._op;l.minValue<t&&(t=l.minValue),l.maxValue>i&&(i=l.maxValue);var u,c,p=this._adjustMinMax(r,this._calcedMin=t,this._calcedMax=i),h=p.min,f=p.max;if(a&&s.options.baseRange&&(h=s._baseAxis.axisMin(),f=s._baseAxis.axisMax()),this._mergedBreaks){this._runBreaks=this._mergedBreaks.slice(0);for(var d=this._runBreaks.length-1;d>=0;d--){var _=this._runBreaks[d];(isNaN(_.options.from)||isNaN(_.options.to)||_.options.from<=h||_.options.to>=f)&&this._runBreaks.splice(d,1)}this._runBreaks.length<1&&(this._runBreaks=null)}else this._runBreaks=null;if(h===f)u=[h];else if(this._runBreaks)u=this.$_calcBrokenSteps(this._runBreaks,r,h,f),h=Math.min(h,u[0]),f=Math.max(f,u[u.length-1]);else if(c=(u=s.buildSteps(this,r,this._runBase,h,f,!1)).slice(0),u.length>0){if(!isNaN(this._fixedMin)||!s._strictEnds&&"tick"!==this.$_getStartFit()){for(;u.length>1&&u[0]<h;)u.shift();u.length<2&&this._fixedMin<u[0]&&u.unshift(this._fixedMin)}else if(!s._strictEnds&&!a&&isNaN(this._minPadPixels)){for(;u.length>2&&u[1]<=h;)u.shift();if(!isNaN(s._step))for(;u[0]>h;)u.unshift(s.getNextStep(u[0],-1))}if(h=Math.min(h,u[0]),!isNaN(this._fixedMax)||!s._strictEnds&&"tick"!==this.$_getEndFit()){for(;u.length>1&&f<u[u.length-1];)u.pop();u.length<2&&this._fixedMax>u[u.length-1]&&u.push(this._fixedMax)}else if(!s._strictEnds&&!a&&isNaN(this._maxPadPixels)){for(;u.length>2&&u[u.length-2]>=f;)u.pop();if(!isNaN(s._step))for(;u[u.length-1]<f;)u.push(s.getNextStep(u[u.length-1],1))}f=Math.max(f,u[u.length-1])}else u.push(h+(f-h)/2);this._prevSteps=u,this._setMinMax(h,f);var y=this.$_createTicks(u,r,h,f,n);if(this._isX)if(h===f)this._unitLen=r/4;else{var g=this._isPolar,v=this.$_calcXUnitLength(this._isPolar?this.getTotalAngle():r);if(v){if(this._unitLen=v.len,!this._zoom||g){var m=c,b=!1;if(g?isNaN(this._fixedMax)&&(f=this._max=Math.max(this._calcedMax+v.min,f)):(h=this._min=Math.min(this._calcedMin-v.min/2,h),f=this._max=Math.max(this._calcedMax+v.min/2,f)),y.length>1){var x=void 0;d=void 0;if(m[0]<h){for(d=-1;d<u.length-1&&m[d+1]<u[0];)d++;for(;d>=0&&(x=m[d])>=h;){var w=this.dataToAxis(y[0].value),S=this.dataToAxis(y[1].value);if(x<w&&w-x>=S-w){var P=this._createTick(0,x);y.unshift(P),u.unshift(x),b=!0}d--}}if(m[m.length-1]>f){for(d=m.length;d>0&&m[d-1]>u[u.length-1];)d--;for(;d<m.length&&(x=m[d])<=f;){w=this.dataToAxis(y[y.length-1].value),S=this.dataToAxis(y[y.length-2].value);if(x>=w&&x-w>=w-S){var A=this._createTick(0,x);y.push(A),u.push(x),b=!0}d++}}else if(g&&f>m[m.length-1])for(;(x=u[u.length-1])<f;){w=this.dataToAxis(y[y.length-1].value),S=this.dataToAxis(y[y.length-2].value);if(!((0,GI.fixnum)(f-w)>(0,GI.fixnum)(w-S)))break;var O=this._createTick(0,x+(0,GI.fixnum)(w-S));y.push(O),u.push(O.value),b=!0}b&&y.forEach((function(t,e){return t.index=e}))}}}else this._unitLen=1}return y},e.prototype.$_createTicks=function(t,e,i,r,n){for(var o=[],s=NaN,a=0;a<t.length;a++){var l=this._createTick(a,t[a]);l.value!==s&&(o.push(l),s=l.value)}return o},e.prototype._createTick=function(t,e){return{index:t,pos:NaN,value:e,label:this.label.getTick(t,e)||String(e)}},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(this,t.len,void 0,t.from,t.to,!0)},e.prototype.$_calcBrokenSteps=function(t,e,i,r){var n=this,o=0,s=i,a=[s],l=this._sects=[],u=e-t.reduce((function(t,e){return t+e.options.space}),0);t.forEach((function(t){var e=t.options,i=t.getSize(u),r=Math.max(0,e.space||0),c={from:s,to:t.options.from,pos:o,len:i};o+=i,l.push(c,t._sect={from:e.from,to:e.to,pos:o,len:r}),o+=r,n.$_buildBrokenSteps(c).forEach((function(t){t>c.from&&t<=c.to&&a.push(t)})),r>0&&a.push(e.to)}));var c=t[t.length-1];if(r>c.options.to){var p={from:c.options.to,to:r,pos:o,len:e-o};l.push(p),this.$_buildBrokenSteps(p).forEach((function(t){t>p.from&&a.push(t)}))}return this._lastSect=l[l.length-1],this._lastSect.to=a[a.length-1],a},e.prototype.getPos=function(t,e){if(this._runBreaks){var i=this._sects.find((function(t){return e<t.to}))||this._lastSect,r=i.len*(e-i.from)/(i.to-i.from);return this._op.reversed?(0,GI.fixpos)(t-r-i.pos):(0,GI.fixpos)(r+i.pos)}r=this._single?.5*t:t*(e-this._min)/(this._max-this._min);return this._op.reversed&&(r=t-r,isNaN(this._prevRate)||(r+=this._prevSize-t)),(0,GI.fixpos)(r)},e.prototype.valueAt=function(t,e){var i,r;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var n=0;try{for(var o=BI(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=n&&e<n+a.len)return(a.to-a.from)*(e-n)/a.len+a.from;n+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._isLog=function(){return!1},e.prototype.$_getStartFit=function(){return"default"===this._op.startFit?this._isX&&!this._isPolar?"value":"tick":this._op.startFit},e.prototype.$_getEndFit=function(){return"default"===this._op.endFit?this._isX&&!this._isPolar?"value":"tick":this._op.endFit},e.prototype.$_calcStrict=function(t,e,i){if(t)return t.fixed?t.size:i<0?e-(0,GI.calcPercent)(t,i):e+(0,GI.calcPercent)(t,i)},e.prototype._adjustMinMax=function(t,e,i){var r,n=this,o=this._isLog(),s=this.isZoomed(),a=this.isZoomed(),l=!0,u=!0,c=NaN,p=NaN,h=1;if(this._series.length>0){var f,d=0;this._series.forEach((function(t){isNaN(t._sBase=t.getBaseValue(n))||d++,h=(0,II.maxv)(h,t.getAxisPadRate())})),!this._isX&&d>0&&d<this._series.length&&(r={},this._series.forEach((function(t){var e=t._type();r[e]?r[e]=[(0,II.minv)(t._yMin,r[e][0]),(0,II.maxv)(t._yMax,r[e][1])]:r[e]=[t._yMin,t._yMax]}))),this._series.forEach((function(t){var r=t._sBase;isNaN(r)||(r=(0,GI.fixnum)(r),o?r>=0&&r<=e&&r<=i&&(e=f=r):r<=e?t.isBased(n)?e=f=r:c=(0,II.pickNum)((0,II.minv)(c,r),r):r>=i&&(t.isBased(n)?i=f=r:p=(0,II.pickNum)((0,II.maxv)(p,r),r))),l&&!s&&(o||t.canMinPadding(n,e,f))&&(l=!1),u&&!a&&(o||t.canMaxPadding(n,i,f))&&(u=!1)}))}else l=s,u=a;s||(s=l),a||(a=u),this._fixedMin=this._fixedMax=NaN;var _=(0,II.maxv)(0,i-e),y=this.$_calcStrict(this._strictMin,e,-_),g=this.$_calcStrict(this._strictMax,i,_),v=NaN,m=NaN,b=0,x=0;isNaN(y)?s?this._fixedMin=e:isNaN(this._minPadPixels)?b=this.$_getPadding(this._minPaddings,t,h):v=this._minPadPixels:this._fixedMin=e=y,isNaN(g)?a?this._fixedMax=i:isNaN(this._maxPadPixels)?x=this.$_getPadding(this._maxPaddings,t,h):m=this._maxPadPixels:this._fixedMax=i=g;var w=e,S=i;if(r){for(var P in r){(A=r[P][0]-(r[P][1]-r[P][0])*b)<w&&(w=A)}for(var P in r){var A;(A=r[P][1]+(r[P][1]-r[P][0])*x)>S&&(S=A)}}else w-=_*b,S+=_*x;if(!isNaN(v)||!isNaN(m)){isNaN(v)&&(v=0),isNaN(m)&&(m=0);var O=Math.min(v+m,.9*t),C=t-O,E=_-(0,II.floor)(_*C/t),V=Math.round(E*v/O);w-=V,S+=E-V}return!isNaN(c)&&c<=e&&w<c&&(w=this._fixedMin=c),!isNaN(p)&&p>=i&&S>p&&(S=this._fixedMax=p),{min:w,max:S}},e.prototype.$_calcXUnitLength=function(t){var e=[],i=0;if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&(e.push.apply(e,RI([],jI(t._getVisiblePoints()),!1)),i++)})),0===i&&this._series.forEach((function(t){t.visible&&!t.isXY()&&e.push.apply(e,RI([],jI(t._getVisiblePoints()),!1))})),e.length>0){for(var r=e.map((function(t){return t.xValue})).sort((function(t,e){return t-e})),n=r.length-1;n>0;n--)r[n]===r[n-1]&&r.splice(n,1);return this._calcUnitLen(r,t,this._min,this._max)}},e.prototype._calcUnitLen=function(t,e,i,r){if(t.length<2)return this._ticks.length>0?(e*=(o=(r-i)/Math.max(8,this._ticks.length))/(r-i+o),{len:(0,II.pickNum)(e,4),min:o}):{len:e,min:0};for(var n=e,o=t[1]-t[0],s=2;s<t.length;s++)o=(0,II.minv)(o,t[s]-t[s-1]);return n*=o/(r-i+o),{len:(0,II.pickNum)(n,1),min:o}},e.prototype.$_loadBreak=function(t){if((0,II.isObject)(t)&&"from"in t&&"to"in t){var e=new qI(this);return e.init(),e._load(t),t.from>0?e:null}},e.prototype.$_loadBreaks=function(t){var e,i;if((0,II.isArray)(t))try{for(var r=BI(t),n=r.next();!n.done;n=r.next()){var o=n.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this._breaksChanged=!0,this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.visible&&t.options.to>t.options.from}));if(this._mergedBreaks=null,i.length>0){var r=this._mergedBreaks=[];r.push((0,II.assignObj)(new qI(this)._initObject(),i[0]));for(var n=1;n<i.length;n++){var o=r[r.length-1],s=i[n];e=o,s.options.from<e.options.to?t(o,s):r.push((0,II.assignObj)(new qI(this)._initObject(),s))}}},e.PADDINGS=[[170,.2],[300,.1],[700,.05],[1/0,.03]],e.defaults=(0,$I.extend)(zI.Axis.defaults,{baseValue:0,nullable:!0,startFit:"default",endFit:"default"}),e}(zI.Axis);NI.ContinuousAxis=KI;var JI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MI(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new XI(this)},e.prototype._adjustMinMax=function(e,i,r){var n=t.prototype._adjustMinMax.call(this,e,i,r),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof HI.SeriesGroup&&"fill"===o[0].options.layout&&(n.max=o[0].getLayoutMax()),n},e.type=FI.LinearAxisType,e}(KI);NI.LinearAxis=JI;var QI={},tG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(QI,"__esModule",{value:!0}),QI.TimeAxis=QI.TimeAxisLabel=QI.TimeAxisTick=void 0;var eG=iM,iG=zM,rG=uD,nG=LM,oG=NI,sG=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],aG=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],lG={s:1,n:2,h:3,d:4,w:5,m:6,y:7},uG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tG(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._getValidInterval=function(t,e,i,r,n){var o;(0,eG.isFunc)(e)&&(null!=(o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n}))&&(e=o));return isNaN(e)?(0,eG.isString)(e)&&lG.hasOwnProperty(e.charAt(e.length-1))?(o=parseFloat(e))<=-1||o>=1?e:NaN:void 0:+e>0?+e:NaN},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=sG[e]/2&&t<sG[e+1]/2)return this._scale=e,aG[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=[],s=n-r;if(0===s)return o;var a=this.axis,l=new Date(a._calcedMin),u=Math.floor(t/e)+1,c=(0,eG.maxv)(1,Math.floor(s/(u-1))),p=this._getStepMultiples(c),h=sG[this._scale];if(c/=h,p)if(c>p[0]){for(var f=0;f<p.length-1;f++)if(c>p[f]&&c<p[f+1]){c=p[f+1];break}}else c=p[0];var d,_=a.date(r),y=a.date(n),g=_;if(7===this._scale){var v=l.getFullYear(),m=g.getFullYear();this._step=c=Math.ceil(c),g=new Date(m,0),m<v&&m+c>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=c,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=c=Math.ceil(c),(g=new Date(m,b))<l&&new Date(m,b+c)>l&&(b=l.getMonth(),g=new Date(l.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+c)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var x=g.getDate(),w=5===this._scale?7:1;this._step=c=Math.ceil(c),(g=new Date(m,b,x))<l&&new Date(m,b,x+w*c)>l&&(x=l.getDate(),g=new Date(l.getFullYear(),l.getMonth(),x));do{o.push(+g),g.setDate(g.getDate()+c*w)}while(g<=y)}else{switch(this._step=c,c*=h,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}d=g.getTime();var S=l.getTime();d<S&&d+c>S&&(d=S);do{o.push(d),d+=c}while(d<=n)}return o},e.prototype._getStepsByInterval=function(e,i,r,n){if((0,eG.isString)(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],l=e.charAt(e.length-1),u=parseFloat(e),c=void 0,p=void 0;this._scale=lG[l],e=sG[this._scale];var h=new Date(r);switch(this._scale){case 7:var f=s.getFullYear(),d=h.getFullYear();h.setMonth(0,1),d<f&&f<d+u&&(h=new Date(f,0));break;case 6:h.setDate(1),h.setHours(0,0,0,0),(p=new Date(h)).setMonth(p.getMonth()+u),h<s&&s<p&&((h=new Date(s)).setDate(1),h.setHours(0,0,0,0));break;case 5:case 4:var _=5===this._scale?7:1;h.setHours(0,0,0,0),(p=new Date(h)).setDate(p.getDate()+u*_),h<s&&p>s&&(h=new Date(s)).setHours(0,0,0,0);break;case 3:h.setMinutes(0);case 2:h.setSeconds(0);case 1:h.setMilliseconds(0)}if(this._step=u,r=+h,isNaN(i))for(a.push(c=r);c<n;)a.push(c=this.getNextStep(c,1));else{for(a.push(c=i);c>r;)a.unshift(c=this.getNextStep(c,-1));for(c=i;c<n;)a.push(c=this.getNextStep(c,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,r,n)},e}(oG.ContinuousAxisTick);QI.TimeAxisTick=uG;var cG=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],pG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tG(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=(0,eG.isString)(e.timeFormat)?e.timeFormat:void 0,r=(0,eG.isString)(e.beginningFormat)?e.beginningFormat:void 0,n=e.timeFormats,o=e.useBeginningFormat;if(this._formats=cG.map((function(t){return(0,eG.assignObj)(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&r&&this._formats.forEach((function(t){t.beginningFormat=r})),(0,eG.isArray)(n))for(var s=0;s<n.length;s++){var a=this._formats[s],l=n[s];(0,eG.isStringL)(l)?a.format=l:(0,eG.isObject)(l)&&((0,eG.isStringL)(l.format)&&(a.format=l.format),o&&(0,eG.isStringL)(l.beginningFormat)&&(a.beginningFormat=l.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,r=this.axis,n=r.date(e);if(this._formatter)return this._formatter.toStr(n,i.startOfWeek);var o=this._formats,s=r.tick._scale,a=iG.DatetimeFormatter.getFormatter;switch(s){case 7:return a(o[s].format).toStr(n,i.startOfWeek);case 6:return 0===t||0===n.getMonth()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 5:case 4:return 0===t||1===n.getDate()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 3:return 0===t||0===n.getHours()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 2:return 0===t||0===n.getMinutes()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 1:return 0===t||0===n.getSeconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 0:return 0===t||0===n.getMilliseconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek)}},e.defaults=(0,nG.extend)(oG.ContinuousAxisLabel.defaults,{useBeginningFormat:!0}),e}(oG.ContinuousAxisLabel);QI.TimeAxisLabel=pG;var hG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tG(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new uG(this)},e.prototype._createLabel=function(){return new pG(this)},e.prototype._prepare=function(){this._dateClass=this.chart.win.Date,t.prototype._prepare.call(this)},e.prototype.collectValues=function(){this._offset=60*(0,eG.pickNum)(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return(0,eG.isNumber)(t)?t:t instanceof this._dateClass?t.getTime():(0,eG.isString)(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if((0,eG.isString)(e)){var i=parseFloat(e);if(0!=i){var r=new Date(t);switch(e.charAt(e.length-1)){case"y":r.setFullYear(r.getFullYear()+i);break;case"m":r.setMonth(r.getMonth()+i);break;case"d":r.setDate(r.getDate()+i);break;case"w":r.setDate(r.getDate()+7*i);break;case"h":r.setHours(r.getHours()+i);break;case"n":r.setMinutes(r.getMinutes()+i);break;case"s":r.setSeconds(r.getSeconds()+i)}return+r}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXLabel=function(t){return isNaN(t)?NaN:new Date(t)},e.type=rG.TimeAxisType,e.subtype="date",e.defaults=(0,nG.extend)(oG.ContinuousAxis.defaults,{baseValue:NaN}),e}(oG.ContinuousAxis);QI.TimeAxis=hG;var fG={},dG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fG,"__esModule",{value:!0}),fG.BarRangeSeries=fG.BarRangeSeriesPoint=void 0;var _G=IB,yG=qB,gG=LM,vG=DB,mG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dG(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(ZB.RangedPoint);fG.BarRangeSeriesPoint=mG;var bG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dG(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return _G.RectElement.create(t,vG.Series.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new mG(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=yG.BarRangeSeriesType,e.defaults=(0,gG.extend)(vG.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(vG.LowRangedSeries);fG.BarRangeSeries=bG;var xG={},wG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(xG,"__esModule",{value:!0}),xG.BarSeriesGroup=xG.BarSeriesGroupBase=xG.BarSeries=xG.BarSeriesBase=xG.BarSeriesPoint=void 0;var SG=iM,PG=IB,AG=qB,OG=LM,CG=DB,EG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wG(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(ZB.DataPoint);xG.BarSeriesPoint=EG;var VG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wG(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new EG(t)},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.defaults=(0,OG.extend)(CG.BasedSeries.defaults,{colorByPoint:!1,pointOffset:0}),e}(CG.BasedSeries);xG.BarSeriesBase=VG;var TG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wG(e,t),e.prototype.canDepth=function(){return!0},e.prototype._createLegendMarker=function(t,e){return PG.RectElement.create(t,CG.Series.LEGEND_MARKER,0,0,e,e,2)},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.type=AG.BarSeriesType,e}(VG);xG.BarSeries=TG;var kG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wG(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,SG.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.prototype.getDepth=function(){return this._op.depth},e.prototype.getDistance=function(){return this._op.distance},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.distance=(0,SG.pickNum)(e.distance,0)},e.prototype._doPrepareSeries=function(t){var e=this._op.layout;if("default"===e){var i=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,r=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/i,t._childPos=r,r+=t._childWidth}))}if("overlap"===e){var n=this.getDistance();t.forEach((function(t){t._groupDistance=n+=(0,SG.pickNum)(t.options.distance,0),n+=t.depth}))}else t.forEach((function(t){t._groupDistance=t.distance}))},e.defaults=(0,OG.extend)(CG.ClusterableSeriesGroup.defaults,{depth:10,distance:5}),e}(CG.ClusterableSeriesGroup);xG.BarSeriesGroupBase=kG;var LG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wG(e,t),e.prototype._canContain=function(t){return t instanceof TG},e.type=AG.BarSeriesGroupType,e.seriesType=AG.BarSeriesType,e}(kG);xG.BarSeriesGroup=LG;var NG={},MG={},jG={},RG={},BG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(RG,"__esModule",{value:!0}),RG.ShapeLegendMarkerView=void 0;var DG=fj,IG=IB,GG=GB,FG=DB,zG=function(t){function e(e){var i=t.call(this,e,FG.Series.LEGEND_MARKER)||this;return i.add(i._back=new IG.RectElement(e)),i._back.setStyle("visibility","hidden"),i.add(i._marker=new DG.PathElement(e)),i}return BG(e,t),e.prototype.render=function(t,e){var i=Math.max(8,2*e),r=2.1*i;t===this._shape&&e===this._rd&&i===this._size||(this._shape=t,this._rd=e,this._size=i,this._back.resize(1,i),this._renderShape(e,r,i),this._marker.trans(r/2-e,i/2-e))},e.prototype._renderShape=function(t,e,i){GG.SvgShapes.setShape(this._marker,this._shape,t,t)},e}(DG.RcElement);RG.ShapeLegendMarkerView=zG;var $G=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(jG,"__esModule",{value:!0}),jG.AreaLegendMarkerView=void 0;var HG=fj,WG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new HG.PathElement(e)),i.insertFirst(i._area=new HG.PathElement(e)),i._area.setBoolData("fill",!0),i}return $G(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,r/2,"L",i,0],o=["M",0,r/2,"L",i,0,"L",i,r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._area.setPath(o.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(RG.ShapeLegendMarkerView);jG.AreaLegendMarkerView=WG;var UG={},YG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(UG,"__esModule",{value:!0}),UG.AreaRangeLegendMarkerView=void 0;var XG=fj,qG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new XG.PathElement(e)),i._line.setFill("none"),i.insertFirst(i._line2=new XG.PathElement(e)),i._line2.setFill("none"),i.insertFirst(i._area=new XG.PathElement(e)),i._area.setBoolData("fill",!0),i}return YG(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r],o=["M",0,r,"L",i/2,.7*r,"L",i,r],s=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r,"L",i,r,"L",i/2,.7*r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._line2.setPath(o.join(" ")),this._area.setPath(s.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(RG.ShapeLegendMarkerView);UG.AreaRangeLegendMarkerView=qG;var ZG={},KG={},JG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(KG,"__esModule",{value:!0}),KG.LineElementEx=KG.LineElement=void 0;var QG=fj,tF=nM,eF=rM,iF=GB,rF=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},nF=function(t){function e(e,i,r){void 0===i&&(i=tF._undef),void 0===r&&(r=tF._undef);var n=t.call(this,e,i)||this;return r&&n.setLine(r),n}return JG(e,t),e.prototype.setLine=function(t,e,i,r){eF.Utils.isNumber(t)?this.setPath(iF.SvgShapes.line(t,e,i,r)):t&&this.setPath(iF.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(iF.SvgShapes.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(iF.SvgShapes.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(iF.SvgShapes.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(iF.SvgShapes.line(e,t,i,t))},e}(QG.PathElement);KG.LineElement=nF;var oF=function(t){function e(e,i,r){void 0===i&&(i=tF._undef),void 0===r&&(r=tF._undef);var n=t.call(this,e,i)||this;return n.setLine(r),n}return JG(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){rF(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){rF(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,r){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,r){eF.Utils.isNumber(t)?this.$_update(t,e,i,r):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,r){this.line={x1:t,y1:e,x2:i,y2:r}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(iF.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e}(QG.PathElement);KG.LineElementEx=oF;var sF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(ZG,"__esModule",{value:!0}),ZG.LineLegendMarkerView=void 0;var aF=KG,lF=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new aF.LineElement(e)),i}return sF(e,t),e.prototype._renderShape=function(e,i,r){this._line&&(this._line.setHLine(r/2,0,i),this._shape&&this._line.setStyle("strokeDasharray","")),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),t.prototype._renderShape.call(this,e,i,r)},e}(RG.ShapeLegendMarkerView);ZG.LineLegendMarkerView=lF;var uF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),cF=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},pF=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(MG,"__esModule",{value:!0}),MG.AreaSeriesGroup=MG.LineSeriesGroup=MG.AreaRangeSeries=MG.AreaRangePointLabel=MG.AreaRangeSeriesPoint=MG.AreaSeries=MG.AreaSeriesPoint=MG.SplineSeries=MG.LineSeries=MG.LineSeriesFlag=MG.LineSeriesBase=MG.LinePointLabel=MG.LineSeriesMarker=MG.LineSeriesPoint=void 0;var hF=iM,fF=qB,dF=LM,_F=DB,yF=jG,gF=UG,vF=ZG,mF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(ZB.DataPoint);MG.LineSeriesPoint=mF;var bF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.defaults=(0,dF.extend)(_F.SeriesMarker.defaults,{radius:4,hoverScale:1.75}),e}(_F.SeriesMarker);MG.LineSeriesMarker=bF;var xF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.prototype.getPosition=function(){return(0,hF.pickProp)(this._op.position,"default")},e.ALIGN_GAP=4,e.defaults=(0,dF.extend)(_F.DataPointLabel.defaults,{align:"center"}),e}(_F.DataPointLabel);MG.LinePointLabel=xF;var wF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new bF(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this._shape:null},e.prototype.getRadius=function(t){return(0,hF.pickNum)(t.radius,this.marker.options.radius)},e.prototype.buildLines=function(t){return this._lines||(this._lines=this._doBuildLines(t)),this._lines},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new xF(t)},e.prototype._createPoint=function(t){return new mF(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=this.marker.options.shape||t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new vF.LineLegendMarkerView(t)},e.prototype.legendMarker=function(e,i){var r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,hF.minv)(i/2,this.marker.options.radius)),r},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._lines=null},e.prototype._connectNulls=function(){return!1},e.prototype._doBuildLines=function(t){var e=t.length,i=[];if(this.chart.isPolar()||!this._containsNull||this._connectNulls())i.push(t.slice());else for(var r=0;r<e;){for(var n=[];r<e&&t[r].isNull;)r++;for(;r<e&&!t[r].isNull;)n.push(t[r++]);n.length>0&&i.push(n)}return i},e.defaults=(0,dF.extend)(_F.Series.defaults,{nullAsBase:!1}),e}(_F.ConnectableSeries);MG.LineSeriesBase=wF;var SF=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return uF(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,dF.extend)(dF.IconedText.defaults,{visible:!1,offset:8}),e}(dF.IconedText);MG.LineSeriesFlag=SF;var PF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.flag=(this._flag=new SF(this)).init()},Object.defineProperty(e.prototype,"flag",{get:function(){return this._flag},enumerable:!1,configurable:!0}),e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.isConnectEnds=function(t,e){if(e){var i=this._op.connectEnds;if((0,hF.isBoolean)(i))return i;if(!t||"spline"===this._op.lineType)return!0}return!1},e.prototype.isMarker=function(){return!0},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getLineType=function(){return this._group instanceof kF||this._group instanceof LF?this._group.options.lineType:this._op.lineType},e.prototype._connectNulls=function(){return this._op.connectNullPoints},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._doPrepareRender=function(){var e=this._op;t.prototype._doPrepareRender.call(this),this._base=(0,hF.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0),e.nullAsBase&&!isNaN(e.baseValue)&&this._runPoints.forEach((function(t){t.isNull&&(t.y=e.baseValue,t.isNull=!1)})),this.flag._prepareRender()},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.type=fF.LineSeriesType,e.defaults=(0,dF.extend)(wF.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1,baseValue:void 0}),e}(wF);MG.LineSeries=PF;var AF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type=fF.SplineSeriesType,e}(PF);MG.SplineSeries=AF;var OF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e}(mF);MG.AreaSeriesPoint=OF;var CF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e);var i=this.chart;this.marker.visible=i&&i.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>1){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=(0,hF.pickNum)(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,r=this._areas=[];if(e&&e._stacked){var n=[].concat.apply([],pF([],cF(i),!1));r.push(n),r.push(t(n))}else i.forEach((function(e){var i=e.slice(0);r.push(i),r.push(t(i))}))},e.prototype._createLegendMarker=function(t,e){return new yF.AreaLegendMarkerView(t)},e.prototype._createPoint=function(t){return new OF(t)},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._doBuildLines=function(e){if(!this.chart.isPolar()&&this._containsNull&&this._group&&this._group._stacked){for(var i=e.length,r=[],n=0;n<i;){var o=e[n].isNull,s=[];do{s.push(e[n++])}while(n<i&&e[n].isNull==o);r.push(s)}return r}return t.prototype._doBuildLines.call(this,e)},e.type=fF.AreaSeriesType,e.defaults=(0,dF.extend)(wF.defaults,{}),e}(PF);MG.AreaSeries=CF;var EF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.labelCount=function(){return 2},e.prototype._assignTo=function(e){return(0,hF.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,r=e.length>2?1:0;this.low=e[(0,hF.pickNum)(i.lowField,0+r)],this.y=e[(0,hF.pickNum)(i.yField,1+r)],r>0&&(this.x=e[(0,hF.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,hF.pickProp)(i[e.options.lowField],i.low),this.y=(0,hF.pickProp3)(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,hF.incv)(t.lowValue,this.lowValue,e)},e}(OF);MG.AreaRangeSeriesPoint=EF;var VF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype.getPosition=function(){return"default"===this._op.position||null==this._op.position?"foot":this._op.position},e}(xF);MG.AreaRangePointLabel=VF;var TF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLabel=function(t){return new VF(t)},e.prototype._createLegendMarker=function(t,e){return new gF.AreaRangeLegendMarkerView(t)},e.prototype._createPoint=function(t){return new EF(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._visPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doBuildLines=function(e){var i=t.prototype._doBuildLines.call(this,e),r=[];return i.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var n=t[i],o=n.toPoint();o.py=n.yLow,e.push(o)}r.push(t,e)})),r},e.type=fF.ArearangeSeriesType,e.defaults=(0,dF.extend)(wF.defaults,{curved:!1,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(wF);MG.AreaRangeSeries=TF;var kF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype._canContain=function(t){return t instanceof PF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,hF.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=fF.LineSeriesGroupType,e.seriesType=fF.LineSeriesType,e.defaults=(0,dF.extend)(_F.SeriesGroup.defaults,{lineType:"default"}),e}(_F.SeriesGroup);MG.LineSeriesGroup=kF;var LF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uF(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],r=t._areas,n=i._areas,o=0;o<r.length;o+=2)r[o+1]=n[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof CF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,hF.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=fF.AreaSeriesGroupType,e.seriesType=fF.AreaSeriesType,e.defaults=(0,dF.extend)(_F.SeriesGroup.defaults,{lineType:"default"}),e}(_F.SeriesGroup);MG.AreaSeriesGroup=LF;var NF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(NG,"__esModule",{value:!0}),NG.BellCurveSeries=NG.BellCurveSeriesPoint=void 0;var MF=iM,jF=qB,RF=LM,BF=MG,DF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NF(e,t),e}(BF.AreaSeriesPoint);NG.BellCurveSeriesPoint=DF;var IF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NF(e,t),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new DF(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if((0,MF.isArray)(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=t._visPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),r=this._loadTable(i);this._doLoadPoints(r),this._prepareRunPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var r=i-t;return{x:i,y:Math.exp(-r*r/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var r=this._op,n=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-n,2)}))/(i-1)),s=o/r.pointsInSigma,a=n-r.sigmas*o,l=n+r.sigmas*o,u=n,c=[];for(c.push(e(n,o,u));u>a;)u-=s,c.unshift(e(n,o,u));for(u=n;u<l;)u+=s,c.push(e(n,o,u));return c}},e.type=jF.BellCurveSeriesType,e.defaults=(0,RF.extend)(BF.AreaSeries.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(BF.AreaSeries);NG.BellCurveSeries=IF;var GF={},FF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(GF,"__esModule",{value:!0}),GF.BoxPlotSeries=GF.BoxPlotSeriesPoint=void 0;var zF=iM,$F=IB,HF=qB,WF=LM,UF=DB,YF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FF(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 0===e?t.prototype.getPointLabel.call(this,e):this.minValue},e.prototype.getPointText=function(e){return 0===e?t.prototype.getPointText.call(this,e):this.minLabel},e.prototype._assignTo=function(e){return(0,zF.assignObj)(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,r=e.length>5?1:0;r>0&&(this.x=e[(0,zF.pickNum)(i.xField,0)]),this.min=e[(0,zF.pickNum)(i.minField,0+r)],this.low=e[(0,zF.pickNum)(i.lowField,1+r)],this.mid=e[(0,zF.pickNum)(i.midField,2+r)],this.high=e[(0,zF.pickNum)(i.highField,3+r)],this.y=e[(0,zF.pickNum3)(i.maxField,t.options.yField,4+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.min=(0,zF.pickProp)(i[r.minField],i.min),this.low=(0,zF.pickProp)(i[r.lowField],i.low),this.mid=(0,zF.pickProp)(i[r.midField],i.mid),this.high=(0,zF.pickProp)(i[r.highField],i.high),this.y=(0,zF.pickProp)(i[r.maxField],this.y),this.minLabel=i.minLabel},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=(0,zF.incv)(t.minValue,this.minValue,e),this.lowValue=(0,zF.incv)(t.lowValue,this.lowValue,e),this.midValue=(0,zF.incv)(t.midValue,this.midValue,e),this.highValue=(0,zF.incv)(t.highValue,this.highValue,e)},e}(ZB.DataPoint);GF.BoxPlotSeriesPoint=YF;var XF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FF(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new YF(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return $F.RectElement.create(t,UF.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=HF.BoxPlotSeriesType,e.defaults=(0,WF.extend)(UF.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(UF.LowRangedSeries);GF.BoxPlotSeries=XF;var qF={},ZF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(qF,"__esModule",{value:!0}),qF.BubbleSeries=qF.BubbleSeriesPoint=void 0;var KF=iM,JF=nM,QF=qB,tz=LM,ez=DB,iz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZF(e,t),e}(ZB.ZValuePoint);qF.BubbleSeriesPoint=iz;var rz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZF(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:(0,JF.calcPercent)(this._minSizeDim,t),max:(0,JF.calcPercent)(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var r=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(r=Math.sqrt(r)),r=Math.ceil(e+r*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new iz(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,KF.isBoolean)(i)||i},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._visPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=(0,KF.minv)(e,t.zValue),i=(0,KF.maxv)(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.type=QF.BubbleSeriesType,e.defaults=(0,tz.extend)(ez.MarkerSeries.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>",paddingRate:2}),e}(ez.MarkerSeries);qF.BubbleSeries=rz;var nz={},oz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nz,"__esModule",{value:!0}),nz.BumpSeriesGroup=void 0;var sz=iM,az=rM,lz=qB,uz=MG,cz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oz(e,t),e.prototype._canContain=function(t){return t instanceof uz.LineSeries},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._visPoints.forEach((function(t){if(!1!==t.visible){var i=t.xValue,r=e[i];r?r.push(t):e[i]=[t]}}))})),e)e[i].sort((function(t,e){return t.yValue-e.yValue})).forEach((function(t,e){t.yLabel=(0,sz.pickProp)(t.yLabel,t.yValue),t.yValue=t.yGroup=e}));return az.Utils.makeIntArray(0,t.length)},e.type=lz.BumpSeriesType,e.seriesType=lz.LineSeriesType,e}(DB.ConstraintSeriesGroup);nz.BumpSeriesGroup=cz;var pz={},hz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(pz,"__esModule",{value:!0}),pz.CandlestickSeries=pz.CandlestickSeriesPoint=void 0;var fz=iM,dz=kj,_z=fj,yz=qB,gz=LM,vz=DB,mz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hz(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return(0,fz.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,r=e.length>4?1:0;r>0&&(this.x=e[(0,fz.pickNum)(i.xField,0)]),this.low=e[(0,fz.pickNum)(i.lowField,0+r)],this.close=e[(0,fz.pickNum)(i.closeField,1+r)],this.open=e[(0,fz.pickNum)(i.openField,2+r)],this.y=e[(0,fz.pickNum3)(i.highField,t.options.yField,3+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.low=(0,fz.pickProp)(i[r.lowField],i.low),this.open=(0,fz.pickProp)(i[r.openField],i.open),this.close=(0,fz.pickProp)(i[r.closeField],i.close),this.y=(0,fz.pickProp3)(i[r.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,fz.incv)(t.lowValue,this.lowValue,e),this.openValue=(0,fz.incv)(t.openValue,this.openValue,e),this.closeValue=(0,fz.incv)(t.closeValue,this.closeValue,e)},e}(ZB.DataPoint);pz.CandlestickSeriesPoint=mz;var bz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hz(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new mz(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new dz.PathBuilder;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new _z.PathElement(t,vz.Series.LEGEND_MARKER).setPath(i.end())},e.type=yz.CandlestickSeriesType,e.defaults=(0,gz.extend)(vz.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(vz.LowRangedSeries);pz.CandlestickSeries=bz;var xz={},wz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(xz,"__esModule",{value:!0}),xz.CircleBarSeriesGroup=xz.CircleBarSeries=xz.CircelBarPointLabel=void 0;var Sz=qB,Pz=LM,Az=DB,Oz=xG,Cz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wz(e,t),e.defaults=(0,Pz.extend)(Az.DataPointLabel.defaults,{position:"inside"}),e}(Az.BasedSeriesLabel);xz.CircelBarPointLabel=Cz;var Ez=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wz(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new Cz(t)},e.type=Sz.CircleBarSeriesType,e}(Oz.BarSeriesBase);xz.CircleBarSeries=Ez;var Vz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wz(e,t),e.prototype._canContain=function(t){return t instanceof Ez},e.type=Sz.CircleBarSeriesGroupType,e.seriesType=Sz.CircleBarSeriesType,e}(Oz.BarSeriesGroupBase);xz.CircleBarSeriesGroup=Vz;var Tz={},kz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Tz,"__esModule",{value:!0}),Tz.DumbbellSeries=Tz.DumbbellSeriesMarker=Tz.DumbbellSeriesPoint=void 0;var Lz=iM,Nz=qB,Mz=LM,jz=DB,Rz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kz(e,t),e}(ZB.RangedPoint);Tz.DumbbellSeriesPoint=Rz;var Bz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kz(e,t),e.defaults=(0,Mz.extend)(jz.SeriesMarker.defaults,{radius:4,shape:"circle"}),e}(jz.SeriesMarker);Tz.DumbbellSeriesMarker=Bz;var Dz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kz(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new Bz(this)).init(),e.lowMarker=(this._lowMarker=new Bz(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowMarker",{get:function(){return this._lowMarker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+(0,Lz.maxv)(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new Rz(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=this.lowMarker.options,r=e.radius,n=e.shape,o=(0,Lz.pickNum)(i.radius,r),s=i.shape||n;this._visPoints.forEach((function(t){t.radius=r,t.shape=n,t.lowRadius=o,t.lowShape=s})),t.prototype.prepareAfter.call(this)},e.type=Nz.DumbbellSeriesType,e}(jz.LowRangedSeries);Tz.DumbbellSeries=Dz;var Iz={},Gz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Iz,"__esModule",{value:!0}),Iz.EqualizerSeries=Iz.EqualizerSeriesPoint=void 0;var Fz=kj,zz=fj,$z=nM,Hz=qB,Wz=LM,Uz=DB,Yz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gz(e,t),e}(ZB.DataPoint);Iz.EqualizerSeriesPoint=Yz;var Xz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gz(e,t),e.prototype.getSegmentSize=function(t){return(0,$z.calcPercent)(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new Yz(t)},e.prototype._createLegendMarker=function(t,e){var i=new Fz.PathBuilder;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new zz.PathElement(t,Uz.Series.LEGEND_MARKER).setPath(i.end())},e.type=Hz.EqualizerSeriesType,e.defaults=(0,Wz.extend)(Uz.BasedSeries.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Uz.BasedSeries);Iz.EqualizerSeries=Xz;var qz={},Zz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(qz,"__esModule",{value:!0}),qz.ErrorBarSeries=void 0;var Kz=kj,Jz=fj,Qz=qB,t$=LM,e$=ZB,i$=DB,r$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zz(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new e$.RangedPoint(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new Kz.PathBuilder).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),r=new Jz.PathElement(t,i$.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=Qz.ErrorBarSeriesType,e.defaults=(0,t$.extend)(i$.LowRangedSeries.defaults,{pointPadding:.3,tooltipText:"<b>${name}</b><br>${series}: <b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(i$.LowRangedSeries);qz.ErrorBarSeries=r$;var n$={},o$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(n$,"__esModule",{value:!0}),n$.FunnelSeries=n$.FunnelSeriesLabel=n$.FunnelOthersPoint=n$.FunnelSeriesPoint=void 0;var s$=iM,a$=nM,l$=rM,u$=qB,c$=LM,p$=DB,h$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o$(e,t),e}(p$.WidgetSeriesPoint);n$.FunnelSeriesPoint=h$;var f$=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return o$(e,t),e}(h$);n$.FunnelOthersPoint=f$;var d$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o$(e,t),e.prototype.getDistance=function(){return isNaN(this._op.distance)?"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST:this._op.distance||0},e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e}(p$.WidgetSeriesLabel);n$.FunnelSeriesLabel=d$;var _$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o$(e,t),e.prototype.getSize=function(t,e){return{width:(0,s$.maxv)(.1*t,(0,a$.calcPercent)(this._widthDim,t)),height:(0,s$.maxv)(.1*e,(0,a$.calcPercent)(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:l$.Utils.clamp((0,a$.calcPercent)(this._neckWidthDim,t),this._minNeckWidth,t),height:l$.Utils.clamp((0,a$.calcPercent)(this._neckHeightDim,e),0,e)}},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new d$(t)},e.prototype._createPoint=function(t){return new h$(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new f$(t,e)},e.prototype._doApply=function(i){var r,n=this;t.prototype._doApply.call(this,i),(r=i.width)!==n._width&&(n._width=r,n._widthDim=(0,a$.parsePercentSize2)(n._width,e.defaults.width)),function(t){t!==n._height&&(n._height=t,n._heightDim=(0,a$.parsePercentSize2)(n._height,e.defaults.height))}(i.height),function(t){t!==n._neckWidth&&(n._neckWidth=t,n._neckWidthDim=(0,a$.parsePercentSize2)(n._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==n._neckHeight&&(n._neckHeight=t,n._neckHeightDim=(0,a$.parsePercentSize2)(n._neckHeight,e.defaults.neckHeight))}(i.neckHeight),this._minNeckWidth=Math.max(0,+i.minNeckWidth)},e.type=u$.FunnelSeriesType,e.defaults=(0,c$.extend)(p$.WidgetSeries.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",minNeckWidth:2,legendByPoint:!1}),e}(p$.WidgetSeries);n$.FunnelSeries=_$;var y$={},g$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(y$,"__esModule",{value:!0}),y$.HistogramSeries=y$.HistogramSeriesPoint=void 0;var v$=iM,m$=IB,b$=qB,x$=LM,w$=DB,S$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g$(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return(0,v$.assignObj)(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(ZB.DataPoint);y$.HistogramSeriesPoint=S$;var P$={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},A$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g$(e,t),e.prototype.getBinCount=function(t){var e=(0,v$.pickNum)(this._op.binWidth,0);return e>0?t/e:(0,v$.pickNum)(this._op.binsNumber,0)<1?P$[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new S$(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=(0,v$.isArray)(t)?t[(0,v$.pickNum)(this.yField,0)]:(0,v$.isObject)(t)?(0,v$.pickProp3)(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var r=this._op,n=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),r.minValue<o[0]&&o.unshift(r.minValue),r.maxValue>o[o.length-1]&&o.push(r.maxValue);var l=o.length,u=o[0],c=o[l-1],p=this.getBinCount(l),h=this._binInterval=(c-u)/p,f=0,d=u,_=d+h;for(s=0;s<p;s++){var y=0;if(s==p-1)y=l-f;else for(;f<l&&o[f]<_;)y++,f++;n.push({x:d,y:y,min:d,max:s===p-1?c:_}),_=(d=_)+h}}t.prototype._doLoadPoints.call(this,n)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._visPoints[this._visPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=(0,v$.pickNum3)(this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return m$.RectElement.create(t,w$.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=b$.HistogramSeriesType,e.defaults=(0,x$.extend)(w$.Series.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(w$.ConnectableSeries);y$.HistogramSeries=A$;var O$={},C$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),E$=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},V$=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(O$,"__esModule",{value:!0}),O$.LollipopSeries=O$.LollipopSeriesPoint=O$.LollipopSeriesMarker=void 0;var T$=iM,k$=qB,L$=LM,N$=ZB,M$=DB,j$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C$(e,t),e.defaults=(0,L$.extend)(M$.SeriesMarker.defaults,{radius:4,minRadius:2,maxRadius:8,shape:"circle"}),e}(M$.SeriesMarker);O$.LollipopSeriesMarker=j$;var R$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C$(e,t),e.prototype._assignTo=function(e){return(0,T$.assignObj)(t.prototype._assignTo.call(this,e),{radius:this.radius})},e.prototype._valuesChangd=function(e){return this.radius!==e.radius||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=+t.options.colorField,r=+t.options.iconField,n=t.options,o=e.length>1?1:0;o>0&&(this.x=e[(0,T$.pickNum)(n.xField,0)]),this.y=e[(0,T$.pickNum)(n.yField,0+o)],this.radius=e[(0,T$.pickNum)(n.radiusField,1+o)],isNaN(i)||(this.color=e[i]),isNaN(r)||(this.icon=e[r])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.radius=(0,T$.pickProp)(i[e.options.radiusField],i.radius)},e}(N$.DataPoint);O$.LollipopSeriesPoint=R$;var B$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C$(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new j$(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField","radiusField"]},e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new R$(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=e.radius,r=e.shape,n=this.options.radiusField,o=(0,T$.maxv)(e.minRadius,0),s=(0,T$.maxv)(e.maxRadius,o);if(n){var a=this._runPoints.map((function(t){return t.radius})).filter((function(t){return"number"==typeof t&&!Number.isNaN(t)})),l=Math.min.apply(Math,V$([],E$(a),!1)),u=Math.max.apply(Math,V$([],E$(a),!1))-l||1;this._runPoints.forEach((function(t){var e=(t.radius-l)/u;null!=t.radius&&(t.radius=o+e*(s-o)),t.shape=r}))}else this._runPoints.forEach((function(t){var e;t.radius=null!==(e=t.radius)&&void 0!==e?e:i,t.shape=r}));t.prototype.prepareAfter.call(this)},e.type=k$.LollipopSeriesType,e}(M$.BasedSeries);O$.LollipopSeries=B$;var D$={},I$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(D$,"__esModule",{value:!0}),D$.OhlcSeries=D$.OhlcSeriesPoint=void 0;var G$=kj,F$=fj,z$=qB,$$=DB,H$=pz,W$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e}(H$.CandlestickSeriesPoint);D$.OhlcSeriesPoint=W$;var U$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I$(e,t),e.prototype._createPoint=function(t){return new W$(t)},e.prototype._createLegendMarker=function(t,e){var i=new G$.PathBuilder;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var r=new F$.PathElement(t,$$.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.type=z$.OhlcSeriesType,e}(H$.CandlestickSeries);D$.OhlcSeries=U$;var Y$={},X$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Y$,"__esModule",{value:!0}),Y$.ParetoSeries=Y$.ParetoSeriesPoint=void 0;var q$=iM,Z$=qB,K$=LM,J$=MG,Q$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return X$(e,t),e}(J$.LineSeriesPoint);Y$.ParetoSeriesPoint=Q$;var tH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return X$(e,t),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new Q$(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=this;r=t._visPoints,n=[],o=r.reduce((function(t,e){return t+(0,q$.pickNum)(e.yValue,0)}),0),s=0,r.forEach((function(t){t.isNull||n.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(n),i._prepareRunPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var r,n,o,s},e.type=Z$.ParetoSeriesType,e.defaults=(0,K$.extend)(J$.LineSeriesBase.defaults,{curved:!1}),e}(J$.LineSeriesBase);Y$.ParetoSeries=tH;var eH={},iH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),rH=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},nH=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(eH,"__esModule",{value:!0}),eH.PieSeriesGroup=eH.PieSeries=eH.PieSeriesDepth=eH.PieSeriesLabel=eH.PieSeriesText=eH.PieOthersPoint=eH.PieSeriesPoint=void 0;var oH=iM,sH=nM,aH=qB,lH=LM,uH=DB,cH=function(t){function e(){var e=t.apply(this,nH([],rH(arguments),!1))||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return iH(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced,this.isNull=this.isNull||this.y<0},e.prototype._assignTo=function(e){return(0,oH.assignObj)(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(uH.WidgetSeriesPoint);eH.PieSeriesPoint=cH;var pH=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return iH(e,t),e}(cH);eH.PieOthersPoint=pH;var hH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iH(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(lH.IconedText);eH.PieSeriesText=hH;var fH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iH(e,t),e.prototype.getDistance=function(t,i,r){return r>0&&(i-=i*r),this._distanceDim?(0,sH.calcPercent)(this._distanceDim,i,0):t?(0,sH.calcPercent)(r?e.INNER_DIST:e.INSIDE_DIST,i):"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST},e.INSIDE_DIST=(0,sH.parsePercentSize)("30%",!1),e.INNER_DIST=(0,sH.parsePercentSize)("50%",!1),e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e.defaults=(0,lH.extend)(uH.WidgetSeriesLabel.defaults,{radius:.7,rotationMode:aH._PointLabelRotationMode.ARC}),e}(uH.WidgetSeriesLabel);eH.PieSeriesLabel=fH;var dH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iH(e,t),e.prototype.getLength=function(){return this.visible?this._op.length:0},e.prototype._isVisible=function(){return this._op.visible&&this._op.length>0},e.prototype._doSetSimple=function(e){return(0,oH.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),i.length=(0,oH.maxv)(0,(0,oH.pickNum)(i.length,0)),i.ratio=(0,oH.maxv)(.3,(0,oH.minv)(.8,(0,oH.pickNum)(i.ratio,e.DEPTH_RATIO)))},e.DEPTH_RATIO=.6,e.defaults=(0,lH.extend)(lH.ChartItem.defaults,{visible:!1,length:25,ratio:e.DEPTH_RATIO}),e}(lH.ChartItem);eH.PieSeriesDepth=dH;var _H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iH(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.innerText=(this._innerText=new hH(this.chart)).init(),e.depth=(this._depth=new dH(this.chart)).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?(0,sH.calcPercent)(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new fH(t)},e.prototype._createPoint=function(t){return new cH(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new pH(t,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset"),e.totalAngle<=0&&(e.totalAngle=360)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._innerText._prepareRender(),this._startRad=sH.ORG_ANGLE+sH.DEG_RAD*(0,oH.pickNum)(this._op.startAngle%360,0),this._totalRad=sH.DEG_RAD*(0,oH.maxv)(0,(0,oH.minv)(360,(0,oH.pickNum)(this._op.totalAngle,360))),this._groupPos=NaN},e.type=aH.PieSeriesType,e.defaults=(0,lH.extend)(uH.RadialSeries.defaults,{groupSize:1,sliceOffset:"7%",autoSlice:!0,sliceDuration:300}),e}(uH.RadialSeries);eH.PieSeries=_H;var yH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iH(e,t),e.prototype.getPolarSize=function(t,e){return(0,sH.calcPercent)(this._polarDim,(0,oH.minv)(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype.connectable=function(t){return!1},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==r._polarSize&&(r._polarSize=i,r._polarDim=(0,sH.parsePercentSize)(i,!0)||{size:80,fixed:!1}),function(t){t!==r._innerSize&&(r._innerSize=t,r._innerDim=(0,sH.parsePercentSize)(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof _H},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+(0,oH.pickNum)(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=(0,oH.pickNum)(t.options.groupSize,1)/e}))},e.type=aH.PieSeriesGroupType,e.seriesType=aH.PieSeriesType,e.defaults=(0,lH.extend)(uH.SeriesGroup.defaults,{polarSize:"80%",innerSize:0}),e}(uH.SeriesGroup);eH.PieSeriesGroup=yH;var gH={},vH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(gH,"__esModule",{value:!0}),gH.ScatterSeries=gH.ScatterSeriesPoint=void 0;var mH=iM,bH=qB,xH=LM,wH=DB,SH=RG,PH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vH(e,t),e}(ZB.DataPoint);gH.ScatterSeriesPoint=PH;var AH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vH(e,t),e.prototype._createPoint=function(t){return new PH(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,mH.isBoolean)(i)||i},e.prototype._createLegendMarker=function(t,e){return new SH.ShapeLegendMarkerView(t)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasShape=function(){return!0},e.prototype.legendMarker=function(e,i){var r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,mH.minv)(i/2,this._op.radius)),r},e.type=bH.ScatterSeriesType,e.defaults=(0,xH.extend)(wH.MarkerSeries.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(wH.MarkerSeries);gH.ScatterSeries=AH;var OH={},CH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),EH=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},VH=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(OH,"__esModule",{value:!0}),OH.WaterfallSeries=OH.WaterFallDataPointLabel=OH.WaterfallSeriesPoint=void 0;var TH=IB,kH=qB,LH=LM,NH=DB,MH=function(t){function e(){var e=t.apply(this,VH([],EH(arguments),!1))||this;return e.from=0,e}return CH(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._isMid=this.source.isMid,(this._isSum||this._isMid)&&(this.y=0)},e.prototype.getPointLabel=function(t){return this.y},e}(ZB.DataPoint);OH.WaterfallSeriesPoint=MH;var jH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CH(e,t),e.defaults=(0,LH.extend)(NH.DataPointLabel.defaults,{offset:0}),e}(NH.DataPointLabel);OH.WaterFallDataPointLabel=jH;var RH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CH(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:0},e.prototype._createLabel=function(t){return new jH(t)},e.prototype._createPoint=function(t){return new MH(t)},e.prototype._createLegendMarker=function(t,e){return TH.RectElement.create(t,NH.Series.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._visPoints;if(!(e.length<1))for(var i,r=e[0],n=r.y=r.save=r._isSum?0:r.y,o=n,s=n,a=r.from=0,l=0,u=r.to=n,c=0,p=1,h=e.length;p<h;p++){if(!0===(r=e[p])._isMid&&p<h)c=u=(a=c)+(i=s),n=i,s=0;else if(r._isSum)a=0,u=i=o,n=i;else{if(null==r.y)continue;u=(a=l+n)+(i=r.y),s+=i,o+=i,n=i}r.yGroup=r.yValue=i,r.from=a,r.to=u,r.y=Math.max(a,u),r.save=i,l=a}},e.prototype._getBottomValue=function(t){var e=Math.min(t.from,t.to);return t.y=t.save,delete t.save,e},e.type=kH.WaterfallSeriesType,e.defaults=(0,LH.extend)(NH.RangedSeries.defaults,{tooltipText:"<b>${name}</b><br>${series}:<b> ${y}</b>"}),e}(NH.RangedSeries);OH.WaterfallSeries=RH;var BH={},DH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(BH,"__esModule",{value:!0}),BH.LogAxis=BH.LogAxisTick=void 0;var IH=iM,GH=nM,FH=uD,zH=LM,$H=NI,HH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return DH(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>this._log(500)},e.prototype.buildSteps=function(e,i,r,n,o,s){return this._log=e._log,this._pow=e._pow,this._snap=e._snap,t.prototype.buildSteps.call(this,e,i,r,n,o,s)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=this._log,s=this._pow,a=this._snap;r>=i?r=i:n<=i&&(n=i);var l=n-r;if(0===l||t<=0)return isNaN(r)?[]:[r];var u=[],c=(0,IH.maxv)(1,(0,IH.floor)(t/e))+1;if(n-r>=.5){if(0===l)return isNaN(r)?[]:[r];var p=l/(c-1);if(p/=y=s(Math.floor(o(p))),(g=this._getStepMultiples(y))&&g.length>0)if(p>g[0]){for(var h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){p=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}}else p=g[0];((p*=y)<=0||!isFinite(p))&&(p=l/c),r=isNaN(i)?this._normalizeMin(r,p):i-(0,IH.ceil)((i-r)/p)*p;var f=this.axis,d=Math.pow(f._logBase,n-r)>f._roundThreshold,_=a(b=r);for(u.push(_);_<n;)b+=p,(_=a(d?Math.round(b):b))>u[u.length-1]&&(_<n&&(1==u.length&&_-u[u.length-1]<p||u.length>1&&_-u[u.length-1]<.5*(u[u.length-1]-u[u.length-2]))&&u.pop(),u.push(_))}else{r=s(r);var y,g,v=(n=s(n))-r;p=v/(c-1);if(p/=y=s((0,IH.floor)(o(p))),(g=this._getStepMultiples(y))&&g.length>0){var m=g[0];for(h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){m=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}p=m}((p*=y)<=0||!isFinite(p))&&(p=v/c);var b,x=1e-10*p;for((b=(0,IH.floor)(r/p)*p)<r&&(b+=p),u.push(o(b));b<=n+x;)(b+=p)>0&&u.push(o(b))}return u},e.defaults=(0,zH.extend)($H.ContinuousAxisTick.defaults,{arrangeDecimals:!0}),e}($H.ContinuousAxisTick);BH.LogAxisTick=HH;var WH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return DH(e,t),e.prototype._isLog=function(){return!0},e.prototype._createLabel=function(){return new $H.LinearAxisLabel(this)},e.prototype._createTickModel=function(){return new HH(this)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._logBase=(0,IH.maxv)(2,(0,IH.pickNum)(e.logBase,10));this._roundThreshold=(0,IH.pickNum)(e.roundThrrehold,500),this._log=this.$_createLog(i),this._pow=this.$_createPow(i),this._snap=this.$_createSnap(i,this._log)},e.prototype.$_createLog=function(t){return 10===t?Math.log10:function(e){return Math.log10(e)/Math.log10(t)}},e.prototype.$_createPow=function(t){return function(e){return Math.pow(t,e)}},e.prototype.$_createSnap=function(t,e){return function(i){var r=(0,IH.floor)(i);return i===r?i:r+e((i-r)*t)}},e.prototype.dataToAxis=function(t){return this._log(t)},e.prototype.axisToData=function(t){return this._pow(t)},e.prototype.getXStart=function(){return 1},e.prototype.valueMin=function(){return this._pow(this._min)},e.prototype.valueMax=function(){return this._pow(this._max)},e.prototype.getPos=function(e,i){return i=i>0?this._log(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._checkValues=function(t){return t.filter((function(t){return t>0}))},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,this._values);return i.min=this._log(i.min),i.max=this._log(i.max),i},e.prototype._createTick=function(e,i){return t.prototype._createTick.call(this,e,(0,GH.fixnum)(this._pow(i)))},e.prototype._calcUnitLen=function(e,i,r,n){if(e.length<2)return t.prototype._calcUnitLen.call(this,e,i,r,n);for(var o=this._log,s=o(e[1])-o(e[0]),a=2;a<e.length;a++)s=(0,IH.minv)(s,o(e[a])-o(e[a-1]));var l=n-r,u=s/l;return{len:(0,IH.pickNum)(i*=u,1),min:l*u}},e.type=FH.LogAxisType,e.defaults=(0,zH.extend)($H.ContinuousAxis.defaults,{logBase:10,roundThrrehold:500}),e}($H.ContinuousAxis);BH.LogAxis=WH;var UH={},YH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(UH,"__esModule",{value:!0}),UH.HtmlButtonCollection=UH.HtmlButton=void 0;var XH=iM,qH=LM,ZH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YH(e,t),e.prototype.isChartScope=function(){return"chart"===this.options.scope},e.prototype.getHoverEffect=function(){var t=this.options;return"auto"===t.hoverEffect?t.hoverImageUrl?"image":"background":t.hoverEffect},e.prototype.click=function(){if(this._op.onClick){var t={chart:this.chart.wrapper,button:this};this._op.onClick(t)}},e.defaults=(0,qH.extend)(qH.ChartItem.defaults,{scope:"chart",align:"center",verticalAlign:"middle",imageWidth:24,imageHeight:24,hoverEffect:"auto",hintMode:"custom"}),e}(qH.ChartItem);UH.HtmlButton=ZH;var KH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YH(e,t),e.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[];(0,XH.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t))})):t&&r.push(this.$_loadItem(i,t)),this.chart._op.button=this._items.map((function(t){return t.options}))},e.prototype.$_loadItem=function(t,e){var i=new ZH(t);return i.init(),i._load(e),i},e}(qH.ChartItemCollection);UH.HtmlButtonCollection=KH,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ChartObject=e.SectionDir=e.ChartOptions=e.PointHovering=e.Credits=e.CTRL=void 0;var r=iM,n=_M,o=dM,s=kM,a=FR,l=rB,u=nB,c=LM,p=xB,h=oB,f=CB,d=DB,_=jD,y=YD,g=tI,v=aI,m=dI,b=xI,x=lD,w=NI,S=QI,P=fG,A=xG,O=NG,C=GF,E=qF,V=nz,T=pz,k=xz,L=Tz,N=Iz,M=qz,j=n$,R=y$,B=MG,D=O$,I=D$,G=Y$,F=eH,z=gH,$=OH,H=BH,W=UH;e.CTRL="$ctrl";var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.prototype._doSetSimple=function(e){return(0,r.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,c.extend)(c.ChartItem.defaults,{text:"RealChart v1.4",url:"https://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(c.ChartItem);e.Credits=U;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getHintDistance=function(t){return isNaN(this._op.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this._op.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==(0,r.pickProp)(this._op.scope,"auto")?this._op.scope:this.chart.chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible&&t.needAxes()?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=(0,c.extend)(c.ChartItem.defaults,{scope:"auto"}),e}(c.ChartItem);e.PointHovering=Y;var X,q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.pointHovering=(this._pointHovering=new Y(this.chart)).init()},Object.defineProperty(e.prototype,"pointHovering",{get:function(){return this._pointHovering},enumerable:!1,configurable:!0}),e.prototype.getXStart=function(t){var e;return null!==(e=this._op.xStart)&&void 0!==e?e:t.getXStart()},e.defaults=(0,c.extend)(c.ChartItem.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0,resizeDelay:50}),e}(c.ChartItem);e.ChartOptions=q,function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right"}(X||(e.SectionDir=X={}));var Z=function(t){function n(e,i){var c=t.call(this)||this;return c._data=new o.ChartDataCollection,c._palColors={},c._params={},c._seriesIndex=0,c._dataDirty=!1,c._loadAnimatable=!0,c._wrapper=i,c._assets=new a.AssetCollection,(c._chartOptions=new q(c)).init(),(c._title=new y.Title(c)).init(),(c._subtitle=new y.Subtitle(c)).init(),(c._legend=new f.Legend(c)).init(),(c._credits=new U(c)).init(),(c._tooltip=new g.Tooltip(c)).init(),c._buttons=new W.HtmlButtonCollection(c),n.split_class&&(c._split=new n.split_class(c)).init(),(c._body=new u.Body(c)).init(),(c._navigator=new _.SeriesNavigator(c)).init(),(c._exporter=new p.Exporter(c)).init(),c._series=new d.PlottingItemCollection(c),c._xAxes=new l.AxisCollection(c,!0),c._yAxes=new l.AxisCollection(c,!1),c._gauges=new h.GaugeCollection(c),c._annotations=new s.AnnotationCollection(c),(0,r.isObject)(e)?c._load(e):c._initOptions(),c}return i(n,t),n.registerSplitClass=function(t){this.split_class=t},n.prototype._initOptions=function(){return this._op=Object.assign({},n.defaults)},Object.defineProperty(n.prototype,"win",{get:function(){var t;return(null===(t=this._wrapper)||void 0===t?void 0:t[e.CTRL]).win()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"chartOptions",{get:function(){return this._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"credits",{get:function(){return this._credits},enumerable:!1,configurable:!0}),n.prototype._createChart=function(t){return new n(t)},n.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},n.prototype.loadAnimatable=function(){return this._loadAnimatable},n.prototype.getAxisOf=function(t,e){return this._splitted?this._split.getAxisOf(t,e):e?this.xAxis:this.yAxis},n.prototype.isValidAxis=function(t){return t&&(!this._splitted||this._split.isValidAxis(t))},n.prototype.getTooltipContext=function(t,e,i){var r=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries().filter((function(t){return t.needAxes()}))}return t.prototype.getTooltipText=function(t,e){return d.SeriesGroup.collectTooltipText(this.axis.options,this.series,t,e)},t.prototype.getTooltipParam=function(t,e,i){return d.SeriesGroup.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new r(e._xAxisObj);case"group":return e._group?e._group:e;default:return e}},Object.defineProperty(n.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),n.prototype.anchorByName=function(t){var e=this.gaugeByName(t);return e instanceof h.GaugeBase?e:this._annotations.get(t)},Object.defineProperty(n.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._op.type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gaugeType",{get:function(){return this._op.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"polar",{get:function(){return this._op.polar},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"inverted",{get:function(){return this._op.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"timeOffset",{get:function(){return this._op.chart.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startOfWeek",{get:function(){return this._op.chart.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"seriesCount",{get:function(){return this._series.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"firstGauge",{get:function(){var t;return null===(t=this._gauges)||void 0===t?void 0:t.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),n.prototype.canOverflowRender=function(){return!1},n.prototype._needAxes=function(){return this._series.needAxes()},n.prototype._getSeries=function(){return this._series},n.prototype._getGauges=function(){return this._gauges},n.prototype._getAnnotations=function(){return this._annotations},n.prototype._getXAxes=function(){return this._xAxes},n.prototype._getYAxes=function(){return this._yAxes},n.prototype.getAnnotations=function(){return this._splitted?this._annotations.getVisibles().filter((function(t){return isNaN(t.row)||isNaN(t.col)})):this._annotations.getVisibles()},n.prototype._getButtons=function(){return this._buttons},n.prototype.isGauge=function(){return this._gaugeOnly},n.prototype.isPolar=function(){return this._polar&&this._series.canPolar()},n.prototype.isWidget=function(){return this._series.isWidget()},n.prototype.isInverted=function(){return this._inverted},n.prototype.isSplitted=function(){return this._splitted},n.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&(null==this._gauges||this._gauges.isEmpty(t))},n.prototype._getXAxesAt=function(t,e){return this._splitted?this._xAxes._internalItems().filter((function(i){return i.col===t&&(!e||i.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},n.prototype._getYAxesAt=function(t,e){return this._splitted?this._yAxes._internalItems().filter((function(i){return i.row===t&&(!e||i.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},n.prototype._getXAxesAtPane=function(t,e,i){return this._splitted?this._xAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},n.prototype._getYAxesAtPane=function(t,e,i){return this._splitted?this._yAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},n.prototype.seriesByName=function(t){return this._series.getSeries(t)},n.prototype.seriesByType=function(t){return this._series.seriesByType(t)},n.prototype.seriesAt=function(t){return this._series.get(t)},n.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},n.prototype.gaugeByName=function(t){var e;return null===(e=this._gauges)||void 0===e?void 0:e.getGauge(t)},n.prototype.gaugeAt=function(t){var e;return null===(e=this._gauges)||void 0===e?void 0:e.get(t)},n.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getBodyAnnotation(t):this._body.getAnnotation(t))},n.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},n.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},n.prototype.getXAxis=function(t){return this._xAxes.get(t)},n.prototype.getYAxis=function(t){return this._yAxes.get(t)},n.prototype.getAxes=function(t,e){var i,r=this._xAxes.items(),n=this._yAxes.items();if(this.isInverted())switch(t){case X.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case X.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case X.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case X.TOP:i=n.filter((function(t){return t._isOpposite}))}else switch(t){case X.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case X.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case X.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case X.TOP:i=r.filter((function(t){return t._isOpposite}))}return i?e?i.filter((function(t){return t.checkVisible()})):i:[]},n.prototype._setProperties=function(t,e){var i=this._op;for(var r in n.defaults)t.hasOwnProperty(r)&&(i[r]=t[r]);i.type=i.type||"bar",i.gaugeType=i.gaugeType||"circle",this._polar=!0===this.polar},n.prototype.loadBase=function(t,e,i){var n,o=this._bases[e];return(0,r.isObject)(o.base)&&(0,c.merge)(n={},o.base),(0,r.isObject)(o[i])&&(n||(n={}),(0,c.merge)(n,o[i])),n?(0,c.merge)(n,t):t},n.prototype._load=function(t){var e,i,n=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),n.asset=this._assets.load((0,r.pickProp)(t.asset,t.assets)),n.options=n.chart=this._chartOptions._load((0,r.pickProp)(t.chart,t.options)),(0,r.isObject)(t.chart)?this._credits._load(t.chart.credits):(0,r.isObject)(t.options)&&this._credits._load(t.options.credits),n.title=this._title._load(t.title),n.subtitle=this._subtitle._load(t.subtitle),n.legend=this._legend._load(t.legend),n.credits=this._credits._load(t.credits),this._buttons.load((0,r.pickProp)(t.button,t.buttons)),n.tooltip=this._tooltip._load(t.tooltip),this._seriesIndex=0,this._series.load(t.series),null===(e=this._gauges)||void 0===e||e.load((0,r.pickProp)(t.gauge,t.gauges)),this._gaugeOnly=0===this._series.count&&null!=this._gauges&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load((0,r.pickProp3)(t.xAxis,t.xAxes,{})),this._yAxes.load((0,r.pickProp3)(t.yAxis,t.yAxes,{}))),n.body=this._body._load(t.body||t.plot),null===(i=this._split)||void 0===i||i._load(t.split),this._annotations.load((0,r.pickProp)(t.annotation,t.annotations),!1),n.seriesNavigator=this._navigator._load(t.seriesNavigator),n.exporting=this._exporter._load(t.exporting),this},n.prototype.update=function(t,e){if((0,r.isObject)(t)){for(var i in this._setProperties(t,!1),t){var n=this[i];(n instanceof c.ChartItem||n instanceof c.ChartItemCollection||n instanceof a.AssetCollection)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)}},n.prototype.export=function(t){this._fireEvent("onExportRequest",t)},n.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},n.prototype._dataChanged=function(){this._dataDirty=!0},n.prototype._isDataChanged=function(){return this._dataDirty},n.prototype._prepareRender=function(){var t,e=this,i=this._xAxes,r=this._yAxes,n=this._split;return[i,r].forEach((function(t){t.count<1&&!e._gaugeOnly&&t.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n&&n.visible,this._assets.prepareRender(),i.disconnect(),r.disconnect(),this._series.connect(this),this._series.prepareRender(),i.prepare(),r.prepare(),i.collectValues(),r.collectValues(),i.collectReferentValues(),r.collectReferentValues(),r.collectRanges(),i.collectRanges(),i.prepareRender(),r.prepareRender(),this._splitted&&this._split.prepareRender(i,r),this._series.prepareAfter(),this._legend._prepareRender(),null===(t=this._gauges)||void 0===t||t.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender(),this},n.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},n.prototype.layoutAxes=function(t,e,i,r){this._xAxes._buildTicks(i?e:t,r),this._yAxes._buildTicks(i?t:e,r),this.$_calcAxesPoints(t,e,i,r)},n.prototype.$_calcAxesPoints=function(t,e,i,r){var n=i?e:t;this._xAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)})),n=i?t:e,this._yAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)}))},n.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},n.prototype.getParam=function(t,e){return this._params[e]},n.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},n.prototype.addSeries=function(t,e){var i=this._series.add(t,e);return i&&(this._dataChanged(),this._modelChanged(i)),i},n.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},n.prototype.render=function(){this._fireEvent("onRefreshRequest")},n.prototype.getPaletteColors=function(t){var e=this._palColors[t];if(!e){var i=document.querySelector(".rct-root");if(i){var r="data-palette",n=i.getAttribute(r);i.setAttribute(r,t);var o=getComputedStyle(i);this._palColors[t]=e=[];for(var s=1;s<=d.PALETTE_LEN;s++)e.push(o.getPropertyValue("--color-".concat(s)).trim());i.setAttribute(r,n)}}return e},n.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{},button:{}};if((0,r.isObject)(t)){var n=this._templates={};for(var o in t){var s=t[o];(0,r.isObject)(s)&&(n[o]=(0,r.assignObj)({},s))}["@xAxis","@yAxis","@series","@gauge","@annotation","@button"].forEach((function(e){t.hasOwnProperty(e)&&(0,r.isObject)(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if((0,r.isString)(i)){var n=e._templates[i];if(n)return(0,c.merge)((0,c.merge)({},n),t)}else(0,r.isArray)(i)&&i.forEach((function(i){var r=e._templates[i];return r?(0,c.merge)((0,c.merge)({},r),t):r}));return t}}else this.assignTemplates=void 0},n.prototype._getGroupType=function(t){return(0,r.isString)(t)&&d.series_group_types[t.toLowerCase()]},n.prototype._getSeriesType=function(t){return(0,r.isString)(t)&&d.series_types[t.toLowerCase()]},n.prototype._getAxisType=function(t){return(0,r.isString)(t)&&l.axis_types[t.toLowerCase()]},n.prototype._getGaugeType=function(t){return(0,r.isString)(t)&&h.gauge_types[t.toLowerCase()]},n.prototype._getGaugeGroupType=function(t){return(0,r.isString)(t)&&h.gauge_group_types[t.toLowerCase()]},n.prototype._getAnnotationType=function(t){return(0,r.isString)(t)&&s.annotation_types[t.toLowerCase()]},n.prototype.getAxesGap=function(){return(0,r.pickNum)(this._chartOptions.options.axisGap,0)},n.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},n.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},n.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},n.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1},n}(n.EventProvider);e.ChartObject=Z,l.Axis.register(x.CategoryAxis,w.LinearAxis,H.LogAxis,S.TimeAxis),d.Series.register(B.AreaSeries,B.AreaRangeSeries,P.BarRangeSeries,A.BarSeries,O.BellCurveSeries,C.BoxPlotSeries,E.BubbleSeries,T.CandlestickSeries,k.CircleBarSeries,L.DumbbellSeries,N.EqualizerSeries,M.ErrorBarSeries,j.FunnelSeries,R.HistogramSeries,B.LineSeries,B.SplineSeries,D.LollipopSeries,I.OhlcSeries,G.ParetoSeries,F.PieSeries,z.ScatterSeries,$.WaterfallSeries),d.SeriesGroup.register(B.AreaSeriesGroup,A.BarSeriesGroup,V.BumpSeriesGroup,k.CircleBarSeriesGroup,B.LineSeriesGroup,F.PieSeriesGroup),d.SeriesGroup.registerSeries(B.AreaSeriesGroup,A.BarSeriesGroup,k.CircleBarSeriesGroup,B.LineSeriesGroup,F.PieSeriesGroup),s.Annotation.register(v.ImageAnnotation,m.ShapeAnnotation,b.TextAnnotation)}(TM),Object.defineProperty(eM,"__esModule",{value:!0}),eM.ChartData=eM.Chart=void 0;var JH=iM,QH=rM,tW=dM,eW=TM,iW=LM,rW=function(){function t(t,e){this._modelCallback=e,this._obj=new eW.ChartObject(t,this),this._loaded=(0,JH.isObject)(t),null==e||e(this._obj,null)}return t.prototype.destroy=function(){var t;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[eW.CTRL]=null===(t=this[eW.CTRL])||void 0===t?void 0:t.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"assets",{get:function(){return this._obj._assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj.chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credits",{get:function(){return this._obj._credits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return(0,JH.isString)(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},t.prototype.seriesByType=function(t){return this._obj.seriesByType(t)},t.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var r;if(void 0===e&&(e=!1),(0,JH.isObject)(t)){var n="load chart";QH.Utils.LOGGING&&console.time(n);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new eW.ChartObject(null,this)):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,QH.Utils.log("chart-items:",iW.n_chart_item),QH.Utils.LOGGING&&console.timeEnd(n),null===(r=this._modelCallback)||void 0===r||r.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t.prototype.draw=function(){this[eW.CTRL].refresh()},t}();eM.Chart=rW;var nW=function(){function t(t,e){this._obj=new tW.DataObject(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}();eM.ChartData=nW;var oW={},sW={},aW={},lW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),uW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(aW,"__esModule",{value:!0}),aW.ElementPool=void 0;var cW=function(t){function e(e,i,r){var n=t.call(this)||this;return n._pool=[],n._views=[],n._owner=e,n._creator=i,n._styleName=r,n}return lW(e,t),e.prototype._doDestroy=function(){this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var r=uW(this._views),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.$_create=function(t,e,i){var r=this._pool.pop();return r||(r=new this._creator(t,this._styleName)),r},e.prototype.prepare=function(t,e,i){for(var r=this._owner.doc,n=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(r);s.push(a),null==i||i(a,s.length-1,t),n.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,r=e.length;i<r;i++)t(e[i],i,r)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){var e=this,i=this._views;return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),this},e.prototype.sortDom=function(t){var e=this,i=this._views.slice(0);return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e}(_M.RcObject);aW.ElementPool=cW;var pW={},hW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},fW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},dW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pW,"__esModule",{value:!0}),pW.inflateRect=pW.intersectsRect=pW.isColliding=pW.createRect=pW.RECT_Z=void 0,pW.rectToSize=function(t){return{width:t.width,height:t.height}},pW.isEmptyRect=function(t){return t.width<=0||t.height<=0},pW.RECT_Z=Object.freeze({x:0,y:0,width:0,height:0});pW.createRect=function(t,e,i,r){return{x:t,y:e,width:i,height:r}};var _W=function(t){var e=t.x+t.width/2,i=t.y+t.height/2,r=t.rotation*Math.PI/180,n=t.width/2,o=t.height/2;return[[-n,-o],[n,-o],[n,o],[-n,o]].map((function(t){var n=hW(t,2),o=n[0],s=n[1];return[e+(o*Math.cos(r)-s*Math.sin(r)),i+(o*Math.sin(r)+s*Math.cos(r))]}))},yW=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i],n=t[(i+1)%t.length],o=[n[0]-r[0],n[1]-r[1]],s=[-o[1],o[0]],a=Math.sqrt(s[0]*s[0]+s[1]*s[1]);e.push([s[0]/a,s[1]/a])}return e},gW=function(t,e){var i=t.map((function(t){var i=hW(t,2),r=i[0],n=i[1];return r*e[0]+n*e[1]}));return[Math.min.apply(Math,fW([],hW(i),!1)),Math.max.apply(Math,fW([],hW(i),!1))]},vW=function(t,e){return t[1]>=e[0]&&e[1]>=t[0]};pW.isColliding=function(t,e){var i,r,n=_W(t),o=_W(e),s=yW(n),a=yW(o);try{for(var l=dW(fW(fW([],hW(s),!1),hW(a),!1)),u=l.next();!u.done;u=l.next()){var c=u.value,p=gW(n,c),h=gW(o,c);if(!vW(p,h))return!1}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!0};pW.intersectsRect=function(t,e){return!(t.y>=e.y+e.height||e.y>=t.y+t.height||t.x>=e.x+t.width||e.x>=t.x+t.width)};pW.inflateRect=function(t,e,i,r,n){return void 0===e&&(e=0),i=void 0!==i?i:e,r=void 0!==r?r:e,n=void 0!==n?n:i,e&&(t.x=t.x-e),i&&(t.y=t.y-i),r&&(t.width=t.width+e+r),n&&(t.height=t.height+i+n),t};var mW={},bW={},xW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},wW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(bW,"__esModule",{value:!0}),bW.Sides=void 0;var SW=iM,PW=function(){function t(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.top=t,this.bottom=e,this.left=i,this.right=r}return t.create=function(e,i,r,n){return isNaN(r)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,r,n)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,wW([null],xW(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=(0,SW.pickNum)(t.paddingLeft,0),this.right=(0,SW.pickNum)(t.paddingRight,0),this.top=(0,SW.pickNum)(t.paddingTop,0),this.bottom=(0,SW.pickNum)(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=(0,SW.pickNum)(t.marginLeft,0),this.right=(0,SW.pickNum)(t.marginRight,0),this.top=(0,SW.pickNum)(t.marginTop,0),this.bottom=(0,SW.pickNum)(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}();bW.Sides=PW;var AW={},OW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(AW,"__esModule",{value:!0}),AW.GroupElement=void 0;var CW=nM,EW=function(t){function e(e,i){void 0===i&&(i=CW._undef);var r=t.call(this,e,i,"g")||this;return r._doInitChildren(e),r}return OW(e,t),e.prototype.setAttr=function(i,r){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,r),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(fj.RcElement);AW.GroupElement=EW;var VW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),TW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},kW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(mW,"__esModule",{value:!0}),mW.ContentView=mW.SectionView=mW.BoundableElement=mW.ChartElement=void 0;var LW=fj,NW=bW,MW=nM,jW=AW,RW=IB,BW=function(t){function e(e,i){void 0===i&&(i=MW._undef);var r=t.call(this,e,i,"g")||this;return LW.RcElement.DEBUGGING&&(r.add(r._debugRect=new RW.RectElement(e,"rct-debug")),r._debugRect.setAttr("pointerEvents","none")),r}return VW(e,t),e.prototype.chart=function(){return this.model.chart},Object.defineProperty(e.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this._model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,r,n){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,r,n);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),LW.RcElement.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new RW.RectElement(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,r,n){return{width:i,height:r}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(LW.RcElement);mW.ChartElement=BW;var DW=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n._margins=new NW.Sides,n._paddings=new NW.Sides,n.add(n._background=new RW.RectElement(e,r)),n}return VW(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,r,n){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,r,n);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var l=this._margins;o=getComputedStyle(this.dom),l.applyMargin(o),this.mw=a.width+=l.left+l.right,this.mh=a.height+=l.top+l.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e.prototype._inflaePaddings=function(t){var e=this._paddings;return t.width+=e.left+e.right,t.height+=e.top+e.bottom,t},e}(BW);mW.BoundableElement=DW;var IW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return VW(e,t),e.prototype.measure=function(t,e,i,r,n){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,r,n);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(jW.GroupElement);mW.SectionView=IW;var GW=function(t){function e(){var e=t.apply(this,kW([],TW(arguments),!1))||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return VW(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(BW);mW.ContentView=GW;var FW={},zW={},$W=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(zW,"__esModule",{value:!0}),zW.ImageElement=void 0;var HW=pW,WW=nM,UW=rM,YW=function(t){function e(e,i,r){var n=t.call(this,e,r,"image")||this;return n._bounds=HW.RECT_Z,n.onloadProxy=function(){var t=n.getBBox();n.resize(t.width,t.height)},i&&n.setAttr("preserveAspectRatio","xMidYMid slice"),n.dom.onload=function(){n.invalidate()},n.dom.onerror=function(){n.invalidate()},window.SVGGraphicsElement&&!UW.isIE||(n.setAttr("href",""),n._proxy=new Image,n._proxy.onload=function(){n.invalidate(),setTimeout((function(){n.onloadProxy()}),0)}),n}return $W(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){this.url=t,this.resize(e,i)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._proxy,e=this._bounds.width,i=this._bounds.height;e>0&&!i?i=e/t.width*t.height:0==i||e||(e=i/t.height*t.width),this._bounds={x:this._bounds.x,y:this._bounds.y,width:e,height:i}}return this._bounds},e.prototype.resize=function(e,i,r){var n=this._proxy;return n&&((0,WW.isNull)(e)||(0,WW.isNull)(i))&&(e>0&&(0,WW.isNull)(i)?i=e/n.width*n.height:i>0&&(0,WW.isNull)(e)?e=i/n.height*n.width:(e=n.width,i=n.height)),t.prototype.resize.call(this,e,i,r)},e}(fj.RcElement);zW.ImageElement=YW;var XW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(FW,"__esModule",{value:!0}),FW.ChartTextElement=void 0;var qW=cj,ZW=iM,KW=zW,JW=IB,QW=uj,tU=nM,eU=function(t){function e(e,i){void 0===i&&(i=tU._undef);var r=t.call(this,e)||this;return r.add(r._text=new QW.TextElement(e,i)),r._text.anchor=QW.TextAnchor.START,r}return XW(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text.text},enumerable:!1,configurable:!0}),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,r){var n=e.options.effect;return this._model=e,this._text.internalClearStyleAndClass(),this._text.internalSetStyleOrClass(e._style),r&&this._text.internalSetStyleOrClass(r),"background"===n?(this._outline&&this._outline.remove(),this._back||(this._back=new JW.RectElement(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===n?(this._back&&this._back.remove(),this._outline||(this._outline=new QW.TextElement(t),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?(this._icon||this.add(this._icon=new KW.ImageElement(t,!1)),this._icon.setImage(i,+e.options.iconWidth,+e.options.iconHeight)):this._icon&&(this._icon.remove(),this._icon=null),this._box=void 0,this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var r=qW.Color.getContrast(getComputedStyle(this._text.dom).fill);this._outline.internalSetStyles({fill:r,stroke:r,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._text,i=this._outline,r=this._icon,n=0,o=e.getBBox(),s=o.width,a=o.height,l=s,u=a,c=0,p=0,h=0,f=0;if(this._box=void 0,r){var d=r.getBBox();switch(n=(0,ZW.pickNum)(this._model.options.iconGap,0),c=d.width,p=d.height,this._model.getIconPos()){case"left":case"right":l+=n+c,u=Math.max(p,a);break;default:u+=n+p,l=Math.max(c,s)}}if(this._back&&this._back.parent){var _=getComputedStyle(this._back.dom);h=parseFloat(_.paddingLeft)||0,f=parseFloat(_.paddingTop)||0,this._back.setBounds(0,0,l+h+(parseFloat(_.paddingRight)||0),u+f+(parseFloat(_.paddingBottom)||0),_.rx)}if(r)switch(this._model.getIconPos()){case"left":r.trans(h,(u-p)/2),h+=c+n,l-=c+n;break;case"right":r.trans(h+l-c,(u-p)/2),l-=c+n;break;case"top":r.trans((l-c)/2,f),f+=p+n;break;case"bottom":r.trans((l-c)/2,f+a+n)}switch(t){case"center":h+=l/2,e.anchor=QW.TextAnchor.MIDDLE;break;case"right":h+=l,e.anchor=QW.TextAnchor.END;break;default:e.anchor=QW.TextAnchor.START}return e.trans(h,f),i&&(i.anchor=e.anchor,i.setAttr("y",e.getAttr("y")),i.trans(e.tx,e.ty)),this},e.prototype.setOutline=function(t){this._back&&this._back.remove(),this._outline||(this._outline=new QW.TextElement(this.doc),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(t._style)},e.prototype.getBBox=function(){return this._box?this._box:this._box=t.prototype.getBBox.call(this)},e}(AW.GroupElement);FW.ChartTextElement=eU;var iU={},rU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(iU,"__esModule",{value:!0}),iU.AxisAnimation=void 0;var nU=function(t){function e(e,i,r,n,o){var s=t.call(this)||this;return s._axis=e,s._prevSize=i,s._prevMin=r,s._prevMax=n,s.start(o),s}return rU(e,t),e.prototype._doUpdate=function(t){if(this._axis.parent){var e=this._axis.model,i=this._prevMax-this._prevMin,r=(e.axisMax()-e.axisMin())/i;return t=r+(1-r)*t,e.setPrevRate(this._prevSize,t),this._axis.invalidate(),!0}return!1},e.prototype._doStop=function(){this._axis.model.setPrevRate(this._prevSize,NaN),this._axis=null},e}(Pj.RcAnimation);iU.AxisAnimation=nU,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisView=e.axis_label_reg=e.AxisScrollView=e.AxisLabelView=e.AxisTitleView=void 0;var o=iM,s=rM,a=aW,l=kj,u=fj,c=pW,p=FM,h=lD,f=nM,d=KG,_=IB,y=uj,g=mW,v=FW,m=iU,b=NI,x=function(t){function e(e){var i=t.call(this,e,"rct-axis-title","rct-axis-title-background")||this;return i.add(i._textView=new y.TextElement(e)),i._richText=new p.SvgRichText,i}return i(e,t),e.prototype.rotatedWidth=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,r,n){this._angle=e.getRotation();var o=e.options,s=o.writingMode;s&&this._textView.setStyle("writingMode",s),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._richText._isVertical="vertical"===s,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(this._textView,i,r,null,null);var a=(0,c.rectToSize)(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var l=a.width;a.width=a.height,a.height=l}return a},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),r=i===f._WritingMode.VERTICAL_LR||i===f._WritingMode.VERTICAL_RL;t?this.rotation=0:this.setRotation(0,(r?this.width:this.height)/2,this._angle);var n=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r||(o-=this.width/2);break;case"right":e.anchor=y.TextAnchor.END,r?n+=this.height:o+=this.width/2;break;default:e.anchor=y.TextAnchor.MIDDLE,r&&(n+=this.height/2)}e.trans(o,n)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e}(g.BoundableElement);e.AxisTitleView=x;var w=function(t){function e(e){var i=t.call(this,e,"rct-axis-unit-label","rct-axis-unit-label-background")||this;return i.add(i._textView=new y.TextElement(e)),i._textView.anchor=y.TextAnchor.START,i._richText=new p.SvgRichText,i}return i(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,c.rectToSize)(this._textView.getBBox())},e.prototype._doLayout=function(t){var e=this._textView,i=this._margins.top+this._paddings.top,r=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r-=this.width/2;break;case"right":e.anchor=y.TextAnchor.END,r+=this.width/2}e.trans(r,i)},e}(g.BoundableElement),S=function(t){function e(e){var i=t.call(this,e,C.TICK_CLASS)||this;return i.add(i._lineView=new d.LineElement(e)),i}return i(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(g.ChartElement),P=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e.hidden=!1,e}return i(e,t),e.prototype.setLabel=function(t,e,i,r,n,o){if(r){var s=t.getIcon(i);t.prepareRich(r),this.setModel(this.doc,t,s&&t.getUrl(s),e),t.buildSvg(this._text,this._outline,n,o,t,t._domain)}else t.prepareRich(""),this._text.text=""},e.prototype.applyBackgroundCallback=function(t,e){var i=t.options.backgroundStyleCallback;if("background"===t.options.effect&&i){var r=t.axis.getTickLabelArgs(e.index,e.value);this._back.setStyleOrClass(i(r))}},e.prototype.rotatedWidth=function(){var t=(this.rotation||0)*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},e.prototype.resizeBackByWeight=function(t,e,i,r,n,o,s,a,l,u){void 0===u&&(u=0);var c=this._back;if(c&&!t._isHorz){var p=this.getBBox(),h=n/a,f=e?o-s+u:i?o:u-s;c.transX(f-this.tx),c.shiftY((h-p.height)/-2-l),e?c.resize(r-u-2*(o+s),h-1):c.resize(r-o-u+s,h-1)}},e}(v.ChartTextElement);e.AxisLabelView=P;var A=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new u.PathElement(e,"rct-crosshair-flag")),i.add(i._text=new y.TextElement(e,"rct-crosshair-flag-text")),i}return i(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){var i=t.options.flag;this._text.text=(i.prefix||"")+e+(i.suffix||"");var r=this._text.getBBox(),n=new l.PathBuilder,s=(0,o.maxv)(i.minWidth||0,r.width+8);n.rect(0,0,s,r.height+4),this._back.setPath(n.end()),this._text.trans(s/2,2)}},e}(u.RcElement),O=function(t){function e(i){var r=t.call(this,i,"rct-axis-scrollbar")||this;return r._len=0,r._page=0,r._pos=0,r.add(r._trackView=new _.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new _.RectElement(i,e.THUMB_CLASS)),r}return i(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,r=t.end-t.start;this._len=(0,o.maxv)(0,i),this._page=(0,o.minv)(r,i),this._pos=(0,o.minv)(t.min+i-r,(0,o.maxv)(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=(0,o.maxv)(0,(0,o.minv)(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,r,n){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:r}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,r=this._szThumb=(0,o.pickNum)(e.getMinThumbSize(),32),n=this._len,s=0===this._len,a=this._page,l=s?0:this._pos-i.min,u=e.getGap(),c=u+e.getGapFar(),p=this.width,h=this.height;if(this._vertical){p-=c,this._trackView.setBounds(u,0,p,h),h-=r;var f=(s||a===n?h:h*a/n)+r;this._reversed,this._thumbView.setBounds(u+1,s?0:this.height-h*l/n-f,p-2,f)}else{h-=u+e.getGapFar(),this._trackView.setBounds(0,u,p,h),p-=r;var d=(s||a===n?p:p*a/n)+r;this._reversed,this._thumbView.setBounds(s?0:p*l/n,u+1,d,h-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(g.ChartElement);e.AxisScrollView=O,e.axis_label_reg=/\${label}.*?/g;var C=function(t){function r(e){var i=t.call(this,e,r.AXIS_CLASS)||this;return i._simpleMode=!1,i._markViews=[],i.add(i._lineView=new d.LineElement(e,r.LINE_CLASS)),i.add(i._titleView=new x(e)),i.add(i._markContainer=new u.RcElement(e,"rct-axis-ticks")),i.add(i._labelContainer=new u.RcElement(e,"rct-axis-labels")),i.add(i._unitView=new w(e)),i._labelViews=new a.ElementPool(i._labelContainer,P,"rct-axis-label"),i}return i(r,t),r.prototype.$_checkScrollView=function(t,e,i,r,n){if(this.model._isX){if(e.visible&&!this.model._isBetween)return this._scrollView||this.add(this._scrollView=new O(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,r,n,1)[i];this._scrollView&&this._scrollView.setVis(!1)}return 0},r.prototype.checkHeight=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsHorz(r,e,!0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).height)),a+=l,this._titleView.setVis(n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).height,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"height",e,i)},r.prototype.checkWidth=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsVert(r,i,!0,0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).width)),a+=l,(this._titleView.visible=n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).width,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"width",e,i)},r.prototype.prepareGuides=function(t,e,i,r,n){var o=this;[r,n].forEach((function(r,n){var s=o.model.guides.filter((function(t){return t.options.front==(1===n)&&t.canConstainedTo(e,i)}));r.setAll(t,s,!1)}))},r.prototype.showCrosshair=function(t,e){var i,r=this.model,n=this._crosshairView;n||this.add(n=this._crosshairView=new A(this.doc)),n.setVis(!0),n.setText(r.crosshair,e);var s=n.getBBox();r._isHorz?n.trans(t-s.width/2,r.tick._getLength()):(i="opposite"===r._runPos?(0,o.minv)(0,this.width-s.width):(0,o.maxv)(0,this.width-r.tick._getLength()-s.width),n.trans(i,t-s.height/2))},r.prototype.setMargins=function(t,e,i,r){},r.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},r.prototype.scroll=function(t){},r.prototype.prepare=function(t){this._model=t,this._chartEmpty=t.chart.isEmpty(!0)},r.prototype.checkExtents=function(t){var e=this,i=this._prevModel,r=this.model;if((!i||i===r)&&t){var n=this._prevMin,o=this._prevMax,s=this._prevMin=r.axisMin(),a=this._prevMax=r.axisMax();if(!isNaN(o)&&a!==o||!isNaN(n)&&s!==n){if(r._isX&&r._zooming)return{axis:r,from:this._prevMin,to:a};r.options.animatable&&new m.AxisAnimation(this,r._isHorz?this.mw:this.mh,n,o,(function(){e.invalidate()}))}}this._prevModel=r},r.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},r.prototype._doMeasure=function(t,e,i,n,o){var s,a=e.line,l=e.tick,u=e._isHorz,c=e._isBetween,p=this._titleView,h=this._unitView,f=0,_=0;return this._reversed=e.options.reversed,(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),c&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new d.LineElement(t,r.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=l._getLength(),this._tickGap=l._getGap(),e.label._inside||(f+=this._markLen,f+=this._tickGap,c&&(f*=2)),this.$_prepareTickMarks(t,e)&&this._markViews.forEach((function(r){return r.measure(t,e.tick,i,n,o)})),this.$_prepareLabels(e,u?i:n)&&(_=u?this.$_measureLabelsHorz(e,i):this.$_measureLabelsVert(e,n,!1,o),e.label._inside&&(_=0)),this._labelSize=_,h.setVis(e.unitLabel.visible)&&(_=u?Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).height):Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).width)),f+=_,this._simpleMode?(p.setVis(!1),h.setVis(!1)):(p.visible&&(f+=u?p.mh:p.mw,f+=+e.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(f+=u?this._scrollView.mh:this._scrollView.mw)),{width:u?i:f,height:u?f:n}},r.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,r=t._isBetween,n=t.label._inside,o=t._ticks,a=t._markPoints,l=this._labelViews,u=this._unitView,c=this._markLen,p=this._tickGap,h=this.width,f=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?f:0,0,h):this._lineView.setVLine(i?0:h,0,f),this._lineView2&&(e?this._lineView2.setHLine(f,0,h):this._lineView2.setVLine(0,0,f))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,r){e.resize(1,c),e.layout().trans(t.prev(a[r]),i?n?f:f-c:n?-c:0)})):this._markViews.forEach((function(e,r){e.resize(c,1),e.layout().trans(i?-c:n?h:h-c,f-t.prev(a[r]))})));var d=c+p;if(this._labelContainer.visible&&l.count>0&&(l.count>o.length?l.prepare(o.length):l.count<o.length&&s.Utils.warn("labelViews.count < ticks.length",l.count,o.length),e?this.$_layoutLabelsHorz(l,o,n,r,i,h,f,d):this.$_layoutLabelsVert(l,o,n,r,i,h,f,d)),u.visible&&(e?this.$_layoutUnitHorz(u,l,i,h,f,d):this.$_layoutUnitVert(u,l,i,h,f,d)),!this._simpleMode){var _=t.title.options,y=this._titleView,g=this._scrollView,v=this._labelSize,m=0,b=0;if(y.visible){var x=+_.offset||0,w=+_.gap||0;if(y.resizeByMeasured().layout(e),e){if(b+=i?0:(n?0:d+v)+w,t.options.reversed)switch(_.align){case"start":m=h-y.width/2-x;break;case"end":m=y.width/2+x;break;default:m=h/2-x}else switch(_.align){case"start":m=y.width/2+x;break;case"end":m=h-y.width/2-x;break;default:m=h/2+x}y.trans(m,b),b+=y.height}else{var S=0===y._angle?y.width:y.height;if(m=i?n?w+S/2:d+v+w+S/2:n?S/2:h-d-v-w-S/2,this._reversed)if(0===y._angle)switch(_.align){case"start":b=0+x;break;case"end":b=f-y.height-x;break;default:b=(f-y.height)/2+x}else switch(_.align){case"start":b=y.width/2-y.height/2+x;break;case"end":b=f-y.width/2-y.height/2-x;break;default:b=(f-y.height)/2+x}else if(0===y._angle)switch(_.align){case"start":b=f-y.height-x;break;case"end":b=0+x;break;default:b=(f-y.height)/2-x}else switch(_.align){case"start":b=f-y.width/2-y.height/2-x;break;case"end":b=y.width/2-y.height/2+x;break;default:b=(f-y.height)/2-x}y.trans(m,b)}}else b+=i?0:d+v;(null==g?void 0:g.visible)&&(e?(g.trans(0,b).resize(this.width,g.mh),g.setScroll(t._zoom,this._reversed)):(g.trans(0,0).resize(g.mw,this.height),g.setScroll(t._zoom,this._reversed)),g.layout())}},r.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var r=e._markPoints.length,n=this._markViews;n.length<r;){var o=new S(t);i.add(o),n.push(o)}for(;n.length>r;)n.pop().remove();return!0}},r.prototype._prepareLabel=function(t,i,r,n,o){if(o||t.value!==i.value){var s=r.getLabelText(i,n),a=i.label,l=r.getLabelStyle(i,n);if(t.value=i.value,null!=s)a&&s.match(e.axis_label_reg)?t.setLabel(r,l,i,s.replace(e.axis_label_reg,a),1e3,1e3):(r.prepareRich(s),r._paramTick=i,t.setModel(this.doc,r,null,l),r.buildSvg(t._text,t._outline,NaN,NaN,r,r._domain));else t.setLabel(r,l,i,a,1e3,1e3);t.applyBackgroundCallback(r,i),t.layout("center")}},r.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},r.prototype.$_getRows=function(t){return 2},r.prototype.$_getStep=function(t){return 2},r.prototype.$_checkOverlappedHorz2=function(t,e,i,r,n,s,a,l){for(var u,c=t.label,p=(0,o.maxv)(0,(0,o.minv)(r-1,c.options.startStep||0)),h=t._ticks,d=h.length,_=(r=(0,o.maxv)(1,r))*(n=(0,o.minv)((0,o.maxv)(1,n),h.length)),y=s||0,g=(0,o.absv)(y)*f.DEG_RAD,v=g<35*f.DEG_RAD,m=!1,b=0,x=0;x<n;x++){for(var w=x*r+p;w<d;w+=_){for(var S=0,P=w;P<w+_&&P<d;P++)S+=t.getLabelLength(i,h[P].value);if(w+_<d){(u=e.pull(b++)).rotation=y,u.row=x,u.index=w,this._prepareLabel(u,h[w],c,d,l),u.setVis(!0);var A=S;if(0===y&&u.getBBox().width>=A){m=!0;break}if(v&&u.getBBox().width*(0,o.cos)(g)>=A){m=!0;break}if(0!==y&&u.getBBox().height>=A){m=!0;break}}}if(m)return!0;var O=w-_;0<=O&&O<d&&((u=e.pull(b++)).row=x,u.rotation=y,u.index=O,this._prepareLabel(u,h[O],c,d,l),u.setVis(!0))}!a&&e.freeFrom(b)},r.prototype.$_applyStep=function(t,e,i){var r=t.label,n=(0,o.maxv)(0,(0,o.minv)(i-1,r.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var s=n;s<e.length;s+=i)e[s].index=s;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},r.prototype.$_measureLabelsHorz=function(t,e,i){var r=this;void 0===i&&(i=!1);var n,s=t.options.reversed,a=t.label,l=a.options,u=+l.step|0,c=+l.rows|0,p=+l.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i),d=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===l.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,n,o){e.rotation=p,e.row=0,e.index=n,r._prepareLabel(e,t._ticks[n],a,o,i),e.setVis(!0)})),d=this.$_applyStep(t,d,u||1);else{switch(u=c=0,a.options.autoArrange){case"rows":c=this.$_getRows(d);break;case"step":u=this.$_getStep(d)}if(u>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,u,1,0,!1,i);)u++;else if(c>1){for(;t._ticks.length>c&&(d.forEach((function(t,e){t.row=e%c,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,c,0,!1,i));)c++;this._labelRowPts=[]}else if((isNaN(p)||Math.abs(Math.tan(p*f.DEG_RAD))<1)&&(p=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i))for(u=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,0,!0,i)&&d.forEach((function(t,e){t.rotation=p}));break}u++}}else;if(d.length>0){if(c>1){for(var _=!isNaN(p)&&0!=p,y=this._labelRowPts,g=0;g<c;g++)y.push(0);d.forEach((function(t){y[t.row]=(0,o.maxv)(y[t.row],_?t.rotatedHeight():t.getBBox().height)})),y.unshift(0);for(g=2;g<y.length;g++)y[g]+=y[g-1];return y[y.length-1]}if(isNaN(p)||0==p){n=d[0].getBBox().height;for(g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].getBBox().height);if(d.length>1){var v=t._ticks,m=s?l.lastOverflow:l.firstOverflow;if("hidden"===m){var b=(S=d[0]).rotatedWidth(),x=v[S.index].pos-b/2,w=0;for(g=1;g<d.length;g++)w=(0,o.maxv)(w,d[g].getBBox().height);(x+b>d[1].tx||S.elementToSvg(0,0).x<0)&&S.getBBox().height>w?(n=w,S.hidden=!0):S.hidden=!1}if("hidden"===(m=s?l.firstOverflow:l.lastOverflow)){b=(S=d[d.length-1]).rotatedWidth();var S,P=d[d.length-2],A=v[S.index-1].pos+P.getBBox().width/2;for(x=v[S.index].pos-b/2,w=0,g=0;g<d.length-1;g++)w=(0,o.maxv)(w,d[g].getBBox().height);(x<=A||S.elementToSvg(S.getBBox().width,0).x>this.control.getBounds().width)&&S.getBBox().height>w?(n=w,S.hidden=!0):S.hidden=!1}}}else{n=d[0].rotatedHeight();for(var g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].rotatedHeight())}return n}return 0},r.prototype.$_checkOverlappedVert2=function(t,e,i,r,n){for(var s,a=t.label,l=t._ticks,u=l.length,c=(0,o.maxv)(1,r),p=a.options.startStep||0,h=0;p<u;p+=c){for(var f=0,d=p;d<p+c&&d<u;d++)f+=t.getLabelLength(i,l[d].value);if(p+c<u&&((s=e.pull(h++)).rotation=0,s.index=p,this._prepareLabel(s,l[p],a,u,n),s.setVis(!0),s._text.getBBox().height>=f))return!0}var _=p-c;0<=_&&_<u&&((s=e.pull(h++)).rotation=0,s.index=_,this._prepareLabel(s,l[_],a,u,n),s.setVis(!0)),e.freeFrom(h)},r.prototype.$_measureLabelsVert=function(t,e,i,r){var n=this;if(void 0===i&&(i=!1),void 0===r&&(r=0),r>1&&t instanceof b.ContinuousAxis)return this._prevWidth;var s=t.label,a=(0,o.maxv)(1,+s.options.step|0),l=this.$_checkOverlappedVert2(t,this._labelViews,e,a,i),u=this._labelViews._internalItems();if(l)if("none"===s.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,o){e.rotation=0,e.index=r,n._prepareLabel(e,t._ticks[r],s,o,i),e.setVis(!0)})),u=this.$_applyStep(t,u,a||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++a,i););else;if(this._labelViews.freeHiddens(),(u=this._labelViews._internalItems()).length>0){var c=t._isOpposite?"left":t._isBetween?"center":"right",p=this._labelContainer.textAlign()||c,h=void 0;u[0].setContrast(null).layout(p),h=u[0].getBBox().width;for(var f=1;f<u.length;f++)u[f].setContrast(null).layout(p),h=(0,o.maxv)(h,u[f].getBBox().width);return this._prevWidth=h}return 0},r.prototype.$_layoutLabelsHorz=function(t,e,i,r,n,s,a,l){var u,c,p,h=this.model,d=h.label,_=this._reversed,y=this._labelContainer.textAlign()||"center",g=this._labelRowPts,v=t.get(0).rotation,m=v*f.DEG_RAD,b=+h.label.options.rows|0,x=v<-15&&v>=-90||v>15&&v<=90,w=t.count,S=(0,o.pickNum)(h._prevRate,1);if(t.freeHiddens(),t.forEach((function(t,r){var f=e[t.index];t.setVis(!!f)&&(t.setContrast(null).layout(y),u=t.getBBox(),c=h.prev(f.pos)+(_?s*(1-S):0),p=i?n?a+l+g[t.row]:-l-u.height-g[t.row]:n?a-l-u.height-g[t.row]:l+g[t.row],v<-15&&v>=-90?i?n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):n?(c-=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):v>15&&v<=90?i?n?(c+=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):(c-=u.width/2,t.setRotation(u.width/2,0,n?-v:v)),t.trans(c,p))})),!x&&b<2&&w>1){var P=t.get(_?w-1:0);P&&P.visible&&P.setVis(!P.hidden)&&function(t,e,i){var r,n=d.options,o=+n.overflowGap||2,s=!0,a=e.rotatedWidth(),l=_?n.lastOverflow:n.firstOverflow,u=e.tx;u+a>=i.tx?"pull"===l?u=i?i.tx-a-o:0:s="hidden"!==l:(r=e.elementToSvg(0,0).x)<0&&("pull"===l?u=Math.min(i.tx-o,r+4):s="hidden"!==l),s?e.transX(u):e.setVis(!1)}(0,P,t.get(_?w-2:1)),(P=t.get(_?0:w-1))&&P.visible&&P.setVis(!P.hidden)&&function(t,e,i){var r,n,o=d.options,a=+o.overflowGap||2,l=i.tx+i.rotatedWidth(),u=!0,c=e.tx,p=e.rotatedWidth(),h=_?o.firstOverflow:o.lastOverflow;c<=l?"pull"===h?c=Math.max(l+a,s-p):u="hidden"!==h:(r=e.elementToSvg(e.getBBox().width,0).x)>(n=t.control.getBounds().width)&&("pull"===h?c=Math.max(l+a,c-(r-n+4)):u="hidden"!==h),u?e.transX(c):e.setVis(!1)}(this,P,t.get(_?1:w-2))}},r.prototype.$_layoutLabelsVert=function(t,e,i,r,n,s,a,l){var u,c=this.model,p=c instanceof h.CategoryAxis&&c.label.options.fillToCategory,f=n?i?"right":"left":r?"center":i?"left":"right",d=p?c.label.options.verticalAlign:"middle",_=p?c.label.options.align:f,y=this._titleView,g=y.visible?y.rotatedWidth()+(null===(u=y.model)||void 0===u?void 0:u.options.gap):0,v=this._labelSize,m=c.tick._getGap();var b=this._reversed,x=b?(0,o.pickNum)(c._prevRate,1):1,w=b?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER;t.forEach((function(t,o){var u=e[t.index];if(t.setVis(!!u)){var h=t.getBBox(),f=function(t,e){if(i)if(n)switch(t){case"center":return(v-e)/2-v-m-l;case"left":return-v-m-l;default:return-e-m-l}else switch(t){case"right":return s+l+m+v-e;case"center":return!y.visible&&r?(s-e)/2:s+l+m+(v-e)/2;default:return s+l+m}else if(n)switch(t){case"center":return l+(s-g-e-l+m)/2;case"right":return s-e-g+m;default:return l}else switch(t){case"left":return g-m;case"center":return!y.visible&&r?(s-e)/2:g+(s-g-e-l-m)/2;default:return s-l-e}}(_,h.width),S=a*x-c.prev(u.pos)-h.height/2;if(t.trans(f,S),p){var P=c._weights.reduce((function(t,e){return t+e}))/c._weights[t.index],A=a/P,O="top"===d?(A-h.height)/-2:"bottom"===d?(A-h.height)/2:0;t.shiftY(O),t.resizeBackByWeight(c,r,n,s,a,l,m,P,O,g)}else!b&&t.ty+h.height>w+1||b&&t.ty<w-1?t.setVis(!1):w=b?t.ty+h.height:t.ty}}))},r.prototype.$_layoutUnitHorz=function(t,e,i,r,n,o){var s,a,l=this.model,u=l.options.reversed,c="end"===l.unitLabel.options.position,p=t.getBBox(),h=e.first,f=e.last,d=l.unitLabel.options.gap||0;u?c?(s=f.getBBox(),a=Math.min(f.tx-p.width-d,0)):(s=h.getBBox(),a=Math.max(h.tx+s.width+d,r-p.width)):c?(s=f.getBBox(),a=Math.max(f.tx+s.width+d,r-p.width)):(s=h.getBBox(),a=Math.min(h.tx-p.width-d,0)),t.layout().trans(a,o)},r.prototype.$_layoutUnitVert=function(t,e,i,r,n,o){var s,a=this.model,l=a.options.reversed,u="end"===a.unitLabel.options.position,c=t.getBBox(),p=e.first,h=e.last,f=a.unitLabel.options.gap||0,d=i?o:r-c.width-o;l?u?(h.getBBox(),s=Math.max(h.ty+c.height+f,n)):s=Math.min(p.ty-c.height-f,0):u?s=Math.min(h.ty-c.height-f,0):(p.getBBox(),s=Math.max(p.ty+c.height+f,n)),t.layout().trans(d,s)},r.AXIS_CLASS="rct-axis",r.LINE_CLASS="rct-axis-line",r.TICK_CLASS="rct-axis-tick",r}(g.ChartElement);e.AxisView=C}(sW);var oU={},sU={},aU={},lU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(aU,"__esModule",{value:!0}),aU.ButtonElement=void 0;var uU=iM,cU=bW,pU=IB,hU=uj,fU=function(t){function e(i,r,n){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new pU.RectElement(i,e.BACK_STYLE)),o.add(o._textView=new hU.TextElement(i)),n&&o.dom.classList.add(n),r&&o.setText(r),o}return lU(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new cU.Sides).applyPadding(e),r=this._textView.getBBox();this._back.rect={x:0,y:0,width:r.width+i.left+i.right,height:r.height+i.top+i.bottom,rx:(0,uU.pickNum)(parseFloat(e.rx),0),ry:(0,uU.pickNum)(parseFloat(e.ry),0)},this._textView.trans(r.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(fj.RcElement);aU.ButtonElement=fU;var dU={},_U=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},gU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(dU,"__esModule",{value:!0}),dU.ArcPolyElement=dU.ArcElement=dU.CircumElement=dU.CircleElement=void 0;var vU=fj,mU=GB,bU=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return _U(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(vU.RcElement);dU.CircleElement=bU;var xU=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.setFill("none"),r}return _U(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i},e}(bU);dU.CircumElement=xU;var wU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _U(e,t),e.prototype.setArc=function(t,e,i,r,n,o){this.setPath(mU.SvgShapes.arc(t,e,i,i,r,close?r+n:r-n,o))},e}(vU.PathElement);dU.ArcElement=wU;var SU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _U(e,t),e.prototype.setPolyline=function(t){this.setPath(mU.SvgShapes.polygon.apply(mU.SvgShapes,gU([],yU(t),!1)))},e}(wU);dU.ArcPolyElement=SU;var PU={},AU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(PU,"__esModule",{value:!0}),PU.SectorElement=void 0;var OU=GB,CU=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.cx=0,n.cy=0,n.rx=0,n.ry=0,n.innerRadius=0,n.start=0,n.angle=0,n.clockwise=!0,n.rate=1,r&&n._assignShape(r,!1),n.setAttr("role","img"),n}return AU(e,t),e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return OU.SvgShapes.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return OU.SvgShapes.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(fj.PathElement);PU.SectorElement=CU;var EU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationView=e.annotation_view_types=void 0;var r=fj,n=mW;e.annotation_view_types={};var o=function(t){function n(e,i){var o=t.call(this,e,n.CLASS_NAME+" "+i,"rct-annotation-background")||this;return o._transform=new r.RcElement(e,null,"g"),o.add(o._transform),o._transform.add(o._background),o}return i(n,t),n.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_view_types[t[0].type]=t[1]}))},n.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},n.prototype.addToTransform=function(t){this._transform.add(t)},n.prototype._layoutView=function(t,e,i,r,n,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,r,n,o,this.width,this.height))},n.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var r=t.getAnnotationAnchor(i);if(r){var n=e.getOffset(this.width,this.height),o=r.width,s=r.height,a=r.tx,l=r.ty;switch(this.options.align){case"left":a-=this.width+n.x;break;case"right":a+=o+n.x;break;default:a+=(o-this.width)/2+n.x}switch(this.options.verticalAlign){case"middle":l+=(s-this.height)/2+n.y;break;case"bottom":l+=s+n.y;break;default:l-=this.height+n.y}return{x:a,y:l}}}},n.prototype.resetClip=function(t,e,i){this.isClip(this._clip)||this.setClip(this._clip=t.clipBounds()),this._clip.setBounds(0,0,e,i)},n.prototype.clicked=function(){this.model.clicked()},n.prototype.pointerEnter=function(){},n.prototype.pointerLeave=function(){},n.prototype.remove=function(){var e;return this._clip&&(null===(e=this.control)||void 0===e||e.removeDef(this._clip.dom)),t.prototype.remove.call(this)},n.prototype._updateTransform=function(){this.model.needClip()?this._transform.dom.setAttribute("transform",this.getTransform()):t.prototype._updateTransform.call(this)},n.prototype._marginable=function(){return!1},n.prototype._resetBackBounds=function(){return!1},n.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},n.prototype._doLayout=function(t){var e=this.model.options.rotation;this.trans(t.x,t.y),this._background.resize(this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},n.CLASS_NAME="rct-annotation",n}(n.BoundableElement);e.AnnotationView=o}(EU);var VU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GaugeGroupView=e.ScaleView=e.ScaleLabelView=e.ValueGaugeView=e.GaugeView=e.gauge_view_types=void 0;var o=iM,s=dj,a=aW,l=NM,u=Pj,c=fj,p=KG,h=IB,f=mW,d=FW;e.gauge_view_types={};var _=function(t){function r(e,i){var n=t.call(this,e,i)||this;return n.dom.classList.add(n._defaultCalss()),n.add(n._paneElement=new h.RectElement(e,r.PANE_CLASS)),n.add(n._contentContainer=new c.LayerElement(e,null)),n._doInitContents(e,n._contentContainer),n}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_view_types[t[0].type]=t[1]}))},r.prototype._defaultCalss=function(){return r.GAUGE_CLASS},r.prototype.clicked=function(t){},r.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},r.prototype.getPosition=function(t,e){var i=this.model,r=i.getLeft(t),n=i.getTop(e);return isNaN(r)&&(r=i.getRight(t)-this.width,isNaN(r)&&(r=(t-this.width)/2)),isNaN(n)&&(n=i.getBottom(e)-this.height,isNaN(n)&&(n=(e-this.height)/2)),{x:r,y:n}},r.prototype.isEmptyView=function(){return!1},r.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},r.prototype._doMeasure=function(t,e,i,r,n){return e.getSize(i,r)},r.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=(0,o.assignObj)(s.Dom.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},r.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof b)return t;t=t.parent}},r.GAUGE_CLASS="rct-gauge",r.PANE_CLASS="rct-gauge-pane",r}(f.ContentView);e.GaugeView=_;var y=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return i(e,t),e.prototype._doUpdate=function(t){return this.view._setValueRate(t),!0},e}(u.RcAnimation),g=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.valueOf=function(t,e,i){var r=t.getParam(e);return(0,o.isNumber)(r)?l.NumberFormatter.getFormatter(i||t.label.numberFormat).toStr(r):r},e._valueRate=NaN,e}return i(e,t),e.prototype._setValueRate=function(t){isNaN(t)&&isNaN(this._valueRate)||t===this._valueRate||(this._valueRate=t,isNaN(t)?this.invalidate():this._doValueRateChanged(t))},e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this.stopAni(),t.prototype._doLayout.call(this),this.$_checkValueAnimation()},e.prototype.$_checkValueAnimation=function(){var t=this.model;this._animatable&&t.options.animatable&&t.options.value!==t._prevValue&&(this._ani=new y(this).start((function(){t._runValue=NaN,t._prevValue=t.options.value})))},e.prototype._doValueRateChanged=function(t){this.model._setValueRate(t),this._renderValue()},e}(_);e.ValueGaugeView=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d.ChartTextElement);e.ScaleLabelView=v;var m=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new c.LayerElement(e,"rct-gauge-scale-ticks")),i._ticks=new a.ElementPool(i._tickContainer,p.LineElement),i.add(i._labelContainer=new c.LayerElement(e,"rct-gauge-scale-tick-labels")),i._labels=new a.ElementPool(i._labelContainer,v),i}return i(e,t),e}(f.ChartElement);e.ScaleView=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new c.LayerElement(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,r){t.prototype._setChartOptions.call(this,e,i,r),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,r)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,r){i.prepareGauge(t,e.getVisible(r))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(_);e.GaugeGroupView=b}(VU);var TU={},kU={},LU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),NU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},MU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(kU,"__esModule",{value:!0}),kU.PrevAnimation=kU.SpreadAnimation=kU.GrowAnimation=kU.PointAnimation=kU.RevealAnimation2=kU.RevealAnimation=kU.StyleAnimation=kU.SeriesAnimation=void 0;var jU=rM,RU=Pj,BU=fj,DU=function(){function t(t,e){var i=this._createAnimation(t,e);jU.Utils.isAnimation(i)&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new FU(t,e)},t.grow=function(t,e){new $U(t,e)},t.spread=function(t,e){new HU(t,e)},t.fadeIn=function(t){new IU(t,{prop:"opacity",start:"0",end:"1"})},t}();kU.SeriesAnimation=DU;var IU=function(t){function e(e,i){return t.call(this,e,i)||this}return LU(e,t),e.prototype._createAnimation=function(t,e){var i={},r={};return i[e.prop]=e.start,r[e.prop]=e.end,t.dom.animate([i,r],{duration:RU.RcAnimation.DURATION,fill:"none"})},e}(DU);kU.StyleAnimation=IU;var GU=function(t){function e(e,i){return t.call(this,e,i)||this}return LU(e,t),e.clipRect=function(t,e){var i,r=e.view||t;if(t.model.needClip(!1))i=r.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else if(e.view)i=r.clipRect(0,0,t.width,t.height);else{var n=t.control;i=t.model.chart.isInverted()?r.clipRect(-n.width(),.1*-t.height,2*n.width(),1.2*t.height):r.clipRect(.1*-t.width,-n.height(),1.2*t.width,2*n.height())}return i},e.prototype._createAnimation=function(t,i){var r,n=e.clipRect(t,i);switch(i&&i.from){case"top":r=this.$_top(n,i);break;case"bottom":r=this.$_bottom(n,i);break;case"right":r=this.$_right(n,i);break;default:r=this.$_left(n,i)}return null==r||r.addEventListener("finish",(function(){n.dom.remove()})),r},e.prototype.$_aniOptions=function(t){return{duration:RU.RcAnimation.DURATION,fill:"none"}},e.prototype.$_left=function(t,e){return t.dom.firstElementChild.animate([{width:0},{width:""}],this.$_aniOptions(e))},e.prototype.$_right=function(t,e){return t.dom.firstElementChild.animate([{x:t.width},{x:""}],this.$_aniOptions(e))},e.prototype.$_top=function(t,e){return t.dom.firstElementChild.animate([{height:0},{height:""}],this.$_aniOptions(e))},e.prototype.$_bottom=function(t,e){return t.dom.firstElementChild.animate([{y:t.height},{y:""}],this.$_aniOptions(e))},e}(DU);kU.RevealAnimation=GU;var FU=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r._cr=GU.clipRect(e,i),r._from=i.from,r.endHandler=function(){e._animationFinished(r),r._cr.dom.remove()},r.start(),e._animationStarted(r),r}return LU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof BU.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e.prototype._doUpdate=function(t){var e=this._cr.dom.firstElementChild;switch(this._from){case"top":e.setAttribute("height",this._cr.height*t);break;case"bottom":e.setAttribute("y",this._cr.height*(1-t));break;case"right":e.setAttribute("x",this._cr.width*(1-t));break;default:e.setAttribute("width",this._cr.width*t)}return!0},e}(RU.RcAnimation);kU.RevealAnimation2=FU;var zU=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r.endHandler=i,r.start(),r}return LU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof BU.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e}(RU.RcAnimation);kU.PointAnimation=zU;var $U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LU(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(zU);kU.GrowAnimation=$U;var HU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LU(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(zU);kU.SpreadAnimation=HU;var WU=function(t){function e(){var e=t.apply(this,MU([],NU(arguments),!1))||this;return e.duration=500,e}return LU(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(zU);kU.PrevAnimation=WU;var UU={},YU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),XU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},qU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(UU,"__esModule",{value:!0}),UU.TrendLineView=void 0;var ZU=iM,KU=kj,JU=fj,QU=GB,tY=function(t){function e(e){return t.call(this,e,"rct-series-trendline-label")||this}return YU(e,t),e}(FW.ChartTextElement),eY=function(t){function e(e){var i=t.call(this,e,"rct-series-trendline")||this;return i.add(i._fixedArea=new JU.PathElement(e,"rct-series-trendline-fixed")),i.add(i._variableArea=new JU.PathElement(e,"rct-series-trendline-variable")),i.add(i._line=new JU.PathElement(e)),i.add(i._label=new tY(e)),i}return YU(e,t),e.prototype.layout=function(t,e,i,r,n){var o=e.chart.isInverted(),s=e.owner._xAxisObj.options.reversed,a=e.owner._yAxisObj.options.reversed,l=this.$_getPoints(e,i);this._line.setStyleOrClass(e._style),this._line.setPath(this.$_getLine(i,l)),e.marker.visible?(this._startMarker||(this.add(this._startMarker=new JU.PathElement(t,"rct-series-trendline-marker")),this.add(this._endMarker=new JU.PathElement(t,"rct-series-trendline-marker"))),this.$_layoutMarkers(e,l)):this._startMarker&&(this._startMarker.setVis(!1),this._endMarker.setVis(!1)),this._fixedArea.setVis(e.fixedArea.visible)&&(this._fixedArea.setStyleOrClass(e.fixedArea._style),this._fixedArea.setPath(this.$_getFixed(o,s,a,i,l,r,n))),this._variableArea.setVis(e.variableArea.visible)&&(this._variableArea.setStyleOrClass(e.variableArea._style),this._variableArea.setPath(this.$_getVariable(o,s,a,i,l,r,n))),this._label.setVis(e.label.visible)&&(this._label.setModel(t,e.label,null,e.label._style),this._label.setText(e.getLabel()),this.$_layoutLabel(i,e,o,s,a,l,r,n))},e.prototype.$_getPoints=function(t,e){var i=t.owner,r=i.chart.isInverted(),n=i._xAxisObj,o=i._yAxisObj,s=o._vlen,a=e?e.total:n._vlen;return e?t._points.map((function(t){var i=e.start+n.getPos(a,t.x),r=o.getPos(e.rd,t.y);return{x:e.cx+r*(0,ZU.cos)(i),y:e.cy+r*(0,ZU.sin)(i),a:i}})):t._points.map((function(t){var e,i;return r?(i=a-n.getPos(a,t.x),e=o.getPos(s,t.y)):(e=n.getPos(a,t.x),i=s-o.getPos(s,t.y)),{x:e,y:i}}))},e.prototype.$_getLine=function(t,e){var i=new KU.PathBuilder;return i.move(e[0].x,e[0].y),i.lines.apply(i,qU([],XU(e),!1)),i.end()},e.prototype.$_getVariable=function(t,e,i,r,n,o,s){var a=new KU.PathBuilder,l=n[0],u=n[n.length-1];if(r);else if(t)if(i){a.move(l.x,l.y);for(var c=0;c<n.length;c++)a.line(n[c].x,n[c].y);a.line(l.x,u.y)}else{a.move(l.x,l.y),a.line(l.x,u.y);for(c=n.length-1;c>=0;c--)a.line(n[c].x,n[c].y)}else if(i){a.move(l.x,l.y),a.line(u.x,l.y);for(c=n.length-1;c>=0;c--)a.line(n[c].x,n[c].y)}else{a.move(l.x,l.y);for(c=0;c<n.length;c++)a.line(n[c].x,n[c].y);a.line(u.x,l.y)}return a.end()},e.prototype.$_getFixed=function(t,e,i,r,n,o,s){var a=new KU.PathBuilder,l=n[0],u=n[n.length-1];return r||(t?i?a.polygon(l.x,l.y,o,l.y,o,u.y,l.x,u.y):a.polygon(0,l.y,l.x,l.y,l.x,u.y,0,u.y):i?a.polygon(l.x,0,u.x,0,u.x,l.y,l.x,l.y):a.polygon(l.x,l.y,u.x,l.y,u.x,s,l.x,s)),a.end()},e.prototype.$_layoutMarkers=function(t,e){var i=t.marker.getRadius();if(this._startMarker.setVis(i>0)&&this._endMarker.setVis(i>0)){var r=QU.SvgShapes.getDrawer(t.marker.options.shape);this._startMarker.setPath(r(i)),this._endMarker.setPath(r(i)),this._startMarker.setStyleOrClass(t.marker._style),this._endMarker.setStyleOrClass(t.marker._style),this._startMarker.trans(e[0].x,e[0].y),this._endMarker.trans(e[e.length-1].x,e[e.length-1].y)}},e.prototype.$_layoutLabel=function(t,e,i,r,n,o,s,a){var l=e.label,u=e.marker.visible?e.marker.getRadius():0,c=this._label;if(String(l.options.text)){l.prepareRich(l.options.text),l.buildSvg(c._text,c._outline,NaN,NaN,l,e.getLabelDomain());var p,h,f=l.options.position,d=t?function(t){var e,i=Math.floor((o.length-1)*t),r=(o.length-1)*t-i;if(i>=o.length-1)e=o[o.length-1].a;else{var n=o[i],s=o[i+1];e=n.a+(s.a-n.a)*r}return e}(f):0,_=t?l.getAlignPolar(d):l.getAlign(i,r,n,f),y=t?l.getVerticalAlignPolar(d):l.getVerticalAlign(i,r,n),g=l.getOffsetX(_)+("middle"===y?u:0),v=l.getOffsetY(y)+("center"===_?u:0),m=Math.floor((o.length-1)*f),b=(o.length-1)*f-m;if(m>=o.length-1)p=o[o.length-1].x,h=o[o.length-1].y;else{var x=o[m],w=o[m+1];p=x.x+(w.x-x.x)*b,h=x.y+(w.y-x.y)*b}var S=c.getBBox();switch(_){case"left":p-=S.width+g;break;case"center":p-=S.width/2+g;break;case"right":p+=g}switch(y){case"top":h-=S.height+v;break;case"middle":h-=S.height/2+v;break;case"bottom":h+=v}t||(p<0&&(p=0),h<0&&(h=0),p+S.width>s&&(p=s-S.width),h+S.height>a&&(h=a-S.height)),c.trans(p,h)}else c.setVis(!1)},e}(JU.LayerElement);UU.TrendLineView=eY,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.RangedSeriesView=e.BasedSeriesView=e.ClusterableSeriesView=e.RangeElement=e.Bar3DElement=e.BarElement=e.BoxPointElementEx=e.PointElementEx=e.BoxPointElement=e.PointElement=e.SeriesView=e.series_view_types=e.PointContainer=e.PointLabelLineContainer=e.PointLabelLineView=e.PointLabelContainer=e.PointLabelView=void 0;var o=rM,s=iM,a=aW,l=kj,u=Pj,c=fj,p=pW,h=nM,f=AW,d=IB,_=GB,y=DB,g=qB,v=mW,m=FW,b=kU,x=cj,w=UU,S=dj,P=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.duration=r?200:100,o._sv=e,o._focused=r,o._marker=i,r||(o._marker.setBoolData(L.DATA_UNFOCUS,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(n),o}return i(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(L.DATA_UNFOCUS,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(u.RcAnimation),A=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return i(e,t),e}(m.ChartTextElement);e.PointLabelView=A;var O=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new a.ElementPool(i,A),new a.ElementPool(i,A)],i._maps=[],i.ignorePointer(),i}return i(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.getWidth=function(t){var e=0;return this._labels[t].forEach((function(t){return e=(0,s.maxv)(e,t.getBBox().width)})),e},e.prototype.prepareLabel=function(t,e,i,r,n,o){var s=n.getPointText(r,i,o.options.text);e.point=r,e.setModel(t,o,r.icon?o.getUrl(r.icon):null,n.getPointLabelStyle(r)),null!=s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(r))):e.setText(o.getText(o.getValue(r,i)))},e.prototype.prepare=function(t,e){var i=this,r=e.model,n=r.pointLabel;if(r.isLabelsVisible()){this.setVis(!0);var o=r.pointLabelCount(),s=this._labels,a=r._getLabeledPoints(),l=this._maps,u=n._style;s[0].prepare(a.length),l[0]={},s[1].prepare(o>1?a.length:0),l[1]={},a.forEach((function(o,a){for(var u=0;u<o.labelCount();u++){var c=s[u].get(a);c.stopAni().setVis(e.isPointLabelVisible(o))&&(i.prepareLabel(t,c,u,o,r,n),l[u][o.pid]=c)}})),this.setStyleOrClass(u),this._textAlign=this.textAlign()||"center"}else this.clear(),this.setVis(!1)},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.$_checkIntersects=function(t){if(t.length>1)for(var e=t.length-1;e>0;e--){var i=t[e].inflateBBox(-1,-1),r=t[e-1].inflateBBox(-1,-1);if((0,p.intersectsRect)(i,r))return t}},e.prototype.dedupe=function(t,e,i){var r=0,n=t[r];if(i===g._PointLabelDedupeMode.LARGEST_FIRST)for(var o=1;o<t.length;o++){var s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(n.point.yValue<t[o].point.yValue?(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),n=s,r=o):(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1)),--o):(n=s,r=o),o===t.length-1){var h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),t[0].point.yValue<n.point.yValue?(e.get(t[0].point).setVis(!1),t[0].setVis(!1),t.splice(0,1)):(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1)))}}else for(o=1;o<t.length;o++){s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1),--o):(n=s,r=o),o===t.length-1){h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1))}}},e.prototype.arrangeVertical=function(t,e,i,r,n,o,s){var a=e.length;if(a<2)return 0;e.sort((function(t,e){return t.ty-e.ty}));for(var l=t.getBBox(),u=l.y+l.height/2,c=Number.MAX_SAFE_INTEGER,p=0,h=0;h<a;h++){var f=e[h].inflateBBox(0,-1),d=Math.abs(u-(f.y+f.height/2));d<c&&(c=d,p=h)}var _=function(t,i){0!==i&&e[t].shiftY(i)},y=function(t,i){var r=e[t].inflateBBox(0,-1),n=e[i].inflateBBox(0,-1);return r.y+r.height-n.y};for(h=0;h<p;h++){if((m=y(h,h+1))>0){_(h,-m);for(var v=h;v>0;v--){(b=y(v-1,v))>0&&_(v-1,-b)}}}for(h=a-1;h>=p&&h>0;h--){var m;if((m=y(h-1,h))>0){_(h,m);for(v=h;v<a-1;v++){var b;(b=y(v,v+1))>0&&_(v+1,b)}}}var x=this.control.chartView().bodyView().height;if(n){var w=function(t,i){for(var r=t;r<i;r++){var n=e[r].tbottom-e[r+1].ty;n>0&&_(r+1,n)}},S=function(t,i){for(var r=t;r>i;r--){var n=e[r].ty-e[r-1].tbottom;n<0&&_(r-1,n)}},P=e[0],A=e[a-1],O=e[p],C=P.ty,E=x-A.tbottom;for(h=0;h<a-1;h++){var V=e[h+1].ty-e[h].tbottom;h<p?C+=V:E+=V}if(P.ty<0)if(C>=0){P.transY(0),w(0,p-1),O.ty<e[p-1].tbottom&&S(p,0),C=0;for(h=0;h<p;h++)C+=e[h+1].ty-e[h].tbottom}else if(C+E>=0)P.transY(0),w(0,a-1),C=0;else{for(h=p;h>0;h--){var T=e[h].ty-e[h-1].tbottom;_(h-1,T)}C=P.ty}if(A.tbottom>x){var k=A.getBBox().height;if(E>0){A.transY(x-k),S(a-1,p+1),O.tbottom<e[p+1].ty&&w(p,a-1),E=0;for(h=p;h<a-1;h++)E+=e[h+1].ty-e[h].tbottom}else if(C+E>0)A.transY(x-k),S(a-1,0),E=0;else{if(C>=0){P.transY(0);for(h=1;h<a;h++)e[h].transY(e[h-1].tbottom)}else for(h=p;h<a-1;h++)e[h+1].transY(e[h].tbottom);E=x-A.tbottom}}if(P.ty<0&&E>0){var L=Math.min(P.ty+E,0);P.transY(L);for(h=1;h<a;h++)e[h-1].tbottom>e[h].ty&&e[h].transY(e[h-1].tbottom)}}return s===g._PointLabelOverflow.HIDDEN&&e.forEach((function(t,e){var r=t.ty+t.getBBox().height;(t.ty<0||r>x)&&(i.get(t.point).setVis(!1),t.setVis(!1))})),1},e}(c.LayerElement);e.PointLabelContainer=O;var C=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new c.PathElement(e)),i}return i(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(f.GroupElement);e.PointLabelLineView=C;var E=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new a.ElementPool(i,C),i}return i(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t._visPoints,r=t.pointLabel,n=this._map={};r.visible?e.prepare(i.length).forEach((function(t,e){var r=i[e];t.visible=r.visible,n[r.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(f.GroupElement);e.PointLabelLineContainer=E;var V=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.inverted=!1,e}return i(e,t),e.prototype.invert=function(t,e){return t===this.inverted&&e===this._hSave||((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform",""),this._hSave=e),this.inverted},e}(c.LayerElement);e.PointContainer=V,e.series_view_types={};var T="rct-point-hover",k="rct-point-unhover",L=function(t){function r(e,i){var r=t.call(this,e,"rct-series "+i)||this;return r._simpleMode=!1,r._growRate=NaN,r._posRate=NaN,r._prevRate=NaN,r._animations=[],r._hoverAnis=[],r._hoverPts=[],r.add(r._pointContainer=new V(e,"rct-series-points")),r._labelContainer=new O(e),r}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_view_types[t[0].type]=t[1]}))},r.isPointDom=function(t){for(;S.Dom.isSVGElement(t);){if(t.classList.contains(this.POINT_CLASS))return!0;t=t.parentElement}},r.prototype.depthEnabled=function(){return!1},r.prototype.clipInvertable=function(){return!0},r.prototype.getClipContainer=function(){return this._pointContainer},r.prototype.getClipContainer2=function(){return null},r.prototype.defaultAnimation=function(){return"reveal"},r.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},r.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},r.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},r.prototype.isPointLabelVisible=function(t){return t.visible&&!t.isNull&&!t.isEmpty()&&this.model.isPointLabelVisible(t)},r.prototype._doViewRateChanged=function(t){},r.prototype._doPosRateChanged=function(t){},r.prototype._doPrevRateChanged=function(t){},r.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},r.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},r.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},r.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},r.prototype.clicked=function(t){var e=this.pointByDom(t);e&&(this._clearHoverClasses(e),!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e))},r.prototype._doPointClicked=function(t){},r.prototype._getPointColors=function(){return"a"},r.prototype._setDepth=function(t){this._depthExt=t},r.prototype.setCircular=function(t){},r.prototype.prepareSeries=function(t,e,i,r){var n=getComputedStyle(this.dom);this.setModel(e),this._colorByPoint=e._colorByPoint(),this._randomPalette=e.chart.chartOptions.options.paletteMode===h._PaletteMode.RANDOM,this.setData("index",e._seriesIndex%y.PALETTE_LEN),this.setData("pointcolors",this._colorByPoint?this._getPointColors():h._undef),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=n[this._legendColorProp()],e._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:"",this._visPoints=this._collectVisPoints(e),this._yReversed=e._yAxisObj.options.reversed,this._prepareSeries(t,e,i,r)},r.prototype._setModelColor=function(t){this.setColor(t)},r.prototype._legendColorProp=function(){return"fill"},r.prototype.needDecoreateLegend=function(){return!1},r.prototype.decoreateLegend=function(t){},r.prototype.afterLayout=function(){this._doAfterLayout()},r.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},r.prototype.hoverPoint=function(t){var e=t&&this.getPointView(t);e&&e.visible?(this._clearHoverClasses(e),this._getPointPool().forEach((function(t){t!==e&&t.removeClass(T).addClass(k)}))):this._getPointPool().forEach((function(t){t.containsClass(k)&&t.removeClass(k).addClass(T)}))},r.prototype._clearHoverClasses=function(t){t instanceof c.RcElement&&t.removeClass(T).removeClass(k)},r.prototype.focusPointView=function(t,e){},r.prototype.focusPoints=function(t){var e=this,i="none"!==this.model.options.hoverEffect,n=this._hoverAnis,o=this._hoverPts,s=[],a=[];this.model.options.interactive&&i&&(o.forEach((function(i){if(i instanceof c.RcElement&&(!t||t.indexOf(i)<0)){var o=n.find((function(t){return t._marker===i}));o&&o.stop(),i.setBoolData(r.DATA_FOCUS,!1),e.focusPointView(i,!1),i.restoreStyles(),i instanceof $&&s.push(new P(e,i,!1,(function(){i.endHover(e,!1)})))}})),t&&t.forEach((function(t){if(t&&!t.point.isNull){var i=n.find((function(e){return e._marker===t}));i&&i.stop(),t instanceof c.RcElement&&(t.setBoolData(r.DATA_FOCUS,!0),e.focusPointView(t,!0),t.restoreStyles(),t.saveStyles(),e.setHoverStyle(t),t instanceof $?s.push(new P(e,t,!0,(function(){t.endHover(e,!0)}))):e instanceof U&&e.needFronting()&&e._getPointPool().front(t),a.push(t))}}))),n&&n.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},r.prototype._needFocusOrder=function(){return!0},r.prototype.getPointsAt=function(t,e){},r.prototype.getSiblings=function(t){return[t]},r.prototype.getSibling=function(t){},r.prototype.applyAutoRotation=function(t,e,i,r){if(this.model.pointLabel.options.autoRotation){var n=t.getBBox(),o=n.width,s=n.height,a=e/i*(r||360)+90;0!==a&&t.setRotation(o/2,s/2,a)}},r.prototype.isEmptyView=function(){return!1},r.prototype._doAttached=function(t){this.control.loaded&&(0,u.createAnimation)(this.dom,"opacity",0,1,500,null)},r.prototype._prepareStyleOrClass=function(t){},r.prototype._prepareViewRanges=function(t){},r.prototype._doMeasure=function(t,e,i,r,n){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e instanceof y.ConnectableSeries&&e.trendline.visible?(this._trendView||this.add(this._trendView=new w.TrendLineView(t)),this._trendView.setVis(!this._animating())):this._trendView&&this._trendView.setVis(!1),{width:i,height:r}},r.prototype._doLayout=function(){var t=this.width,e=this.height,i=this.model,r=i.pointLabel,n=this._trendView;this._labelOverlap={model:r,inverted:this._inverted,width:t,height:e,fit:r._overflowFit,outline:r.options.overlapOutline,contrast:r.options.overlapContrast},this._labelViews(),this._renderSeries(t,e),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable()||i._needAnimate),i._needAnimate=!1,n&&n.setVis(n.visible&&(!i.trendline.options.autoHide||!this._animating()))&&this.$_renderTrendline(n,this._inverted,t,e),this._labelContainer.visible&&this._depthExt&&this._labelContainer.trans(this._depthExt.base,0)},r.prototype._doAfterLayout=function(){var t=this;this.model._xAxisObj._seriesChanged&&new b.PrevAnimation(this,(function(){t.invalidate()}))},r.prototype._collectVisPoints=function(t){return t._visPoints},r.prototype._setColorIndex=function(t,e){if(this._colorByPoint){var i=this._randomPalette?Math.floor(Math.random()*y.PALETTE_LEN):e.index%y.PALETTE_LEN;t.setData("index",this._model._paletteColors[i].toString())}else t.unsetData("index")},r.prototype._setPointColor=function(t,e){t.setColor(e)},r.prototype._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},r.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this._animating()),this._labelContainer.visible?this._labelContainer:void 0},r.prototype._getGrowRate=function(){return(0,s.pickNum)(this._growRate,1)},r.prototype._getPosRate=function(){return(0,s.pickNum)(this._posRate,1)},r.prototype._animating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||!isNaN(this._prevRate)||this._animations.length>0||this.model.isDeleting()},r.prototype._lazyPrepareLabels=function(){return!1},r.prototype._getShowAnimation=function(){},r.prototype._runShowEffect=function(t){},r.prototype.$_renderTrendline=function(t,e,i,r){var n=this.model;n instanceof y.ConnectableSeries&&t.layout(this.doc,n.trendline,n.chart._body.getPolar(n._xAxisObj),i,r)},r.prototype._layoutLabel=function(t,e,i,r){var n=e.inverted,o=e.x,s=e.y,a=e.hPoint,l=e.labelView,u=e.labelOff;if(l.setVis(o>=0&&o<=i&&s>=0&&s<=r)){l.layout(e.textAlign);var c=e.below=e.reversed?a<=0:a<0,p=l.getBBox(),h=!0;n?(o-=e.distY,s+=e.distX,s-=p.height/2-p.height*t._vertAdjust):(o-=e.distX,s+=e.distY,o-=p.width/2);var f=o,d=s;switch(e.labelPos){case"inside":n?(o-=e.side,s+=e.base,o-=(a+p.width)/2+(e.reversed?u:-u)):(o-=e.base,s+=e.side,s+=(a-p.height)/2+(e.reversed?u:-u));break;case"head":n?(o-=e.side,s+=e.base,c?o+=u:o-=p.width+u):(o-=e.base,s+=e.side,c?s-=p.height+u:s+=u);break;case"foot":n?(o-=e.side,s+=e.base,o-=c?a+p.width+u:a-u):(o-=e.base,s+=e.side,s+=c?a+u:a-p.height-u);break;case"far":n?o=c?u:i-p.width-u:c?(o-=e.base,s=r-p.height-u):s=u,h=!1;break;default:n?c?o-=p.width+u:o+=u:c?(o-=e.base,s+=e.side,s+=u):s-=p.height+u,h=!1}this._checkLabelOverlap(l,p,f,d,0,0,o,s,h,e.pointView.dom),this._layoutLabelRotation(l,p,o,s)}},r.prototype._checkLabelOverlap=function(t,e,i,r,n,o,s,a,l,u){var c=this._labelOverlap,p=!1;if(!l){var h=c.fit;if(isFinite(h)&&(c.inverted?s+e.width>=c.width?p=(s=c.width+h-e.width)<i+n:s<=0&&(p=(s=-h)+e.width>i-n):a+e.height>=c.height?p=(a=c.height+h-e.height)<r+o:a<=0&&(p=(a=-h)+e.height>r-o)),p){if(!isFinite(h))return t.setVis(!1),!1;c.outline&&t.setOutline(c.model)}}return t.setContrast((l||p&&c.contrast)&&u),t.trans(s,a),!0},r.prototype._clipRange=function(t,e,i,r,n,o){if(o){var a=t;t=e,e=a}var l="x"===i,u=l?this.model._xAxisObj:this.model._yAxisObj,c=u.options.reversed,p=u.getPos(l?t:e,(0,s.maxv)(u.axisMin(),r.fromValue)),h=u.getPos(l?t:e,(0,s.minv)(u.axisMax(),r.toValue));o?l?c?n.setBounds(h,-e,(0,s.absv)(h-p),e):n.setBounds(p,-e,(0,s.absv)(h-p),e):n.setBounds(0,-(0,s.maxv)(p,h),t,(0,s.absv)(h-p)):l?c?n.setBounds(h,0,(0,s.absv)(h-p),e):n.setBounds(p,0,(0,s.absv)(h-p),e):n.setBounds(0,e-(0,s.maxv)(p,h),t,(0,s.absv)(h-p))},r.prototype._setFill=function(t,e){(0,s.isObject)(e)&&e[h.FILL]?t.internalSetStyle(h.FILL,e[h.FILL]):(0,s.isString)(e)&&t.dom.classList.add(e)},r.prototype._savePrevs=function(){},r.prototype._layoutLabelRotation=function(t,e,i,r){if(!this.model.chart.isInverted()){var n=this._labelOverlap,o=this.model.pointLabel.getRotation();e||(e=t.getBBox());var s=e.width/2,a=e.height/2;this._adjustRotatedLabelPosition(t,n,e,i,r),t.setRotation(s,a,o)}},r.prototype._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,a=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==a){var l,u=e.height,c=(0,s.pickNum)(e.fit,0),p=this.model._yAxisObj.options.reversed,h=this.model.chart.isInverted(),f=o.options.position,d=this._getRotatedLabelDisplacement(a,i);if(!h&&f!==g._PointLabelPosition.INSIDE)if(g._PointLabelPosition.FAR,g._PointLabelPosition.HEAD,p?f!==g._PointLabelPosition.FAR&&f!==g._PointLabelPosition.HEAD||(d*=-1):f===g._PointLabelPosition.HEAD&&(d*=-1),n-=d,p){if((l=n+(-2*d+i.height)/2+i.height/2)>u)n-=l-u-c}else(l=n-(2*d+i.height)/2)<0&&(n=d-c);t.trans(r,n)}},r.prototype._getRotatedLabelDisplacement=function(t,e){var i=t*Math.PI/180,r=Math.abs(Math.sin(i)),n=Math.abs(Math.cos(i)),o=e.width,s=e.height;return o/2*r+s/2*n-s/2},r.POINT_CLASS="rct-point",r.DATA_FOCUS="focus",r.DATA_UNFOCUS="unfocus",r.DATA_UNHOVER="unhover",r.LEGEND_MARKER="rct-legend-item-marker",r}(v.ContentView);e.SeriesView=L;var N=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.PathElement);e.PointElement=N;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(N);e.BoxPointElement=M;var j=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.RcElement);e.PointElementEx=j;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(j);e.BoxPointElementEx=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.layout=function(t,e,i,r,n,o,s){this.x=t,this.setPath(_.SvgShapes.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,r))},e}(M);e.BarElement=B;var D=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._topView=new c.PathElement(e)),i.add(i._frontView=new c.PathElement(e)),i.add(i._sideView=new c.PathElement(e)),i}return i(e,t),e.prototype.layout=function(t,e,i,r,n,s,a){var l=this.wPoint,u=this.hPoint,c=getComputedStyle(this._frontView.dom).fill,p=u<0?e:e-u;if(o.isIE&&(c=this.control.getIEColor(c)),this.x=t,t-=this.wPoint/2,a){var h=n;n=s,s=h}this._frontView.setPath(_.SvgShapes.rectangle(t-n,e+s,l,-u)),this._topView.setPath(_.SvgShapes.polygon(t,p,t+l,p,t+l-n,p+s,t-n,p+s)),this._topView.setStyle("fill",x.Color.interpolate(a?x.Color.BLACK:x.Color.WHITE,c,.2)),this._sideView.setPath(_.SvgShapes.polygon(t+l-n,e-u+s,t+l,e-u,t+l,e,t+l-n,e+s)),this._sideView.setStyle("fill",x.Color.interpolate(a?x.Color.WHITE:x.Color.BLACK,c,.2))},e}(R);e.Bar3DElement=D;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(f.GroupElement);e.RangeElement=I;var G=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._labelInfo={},e}return i(e,t),e.prototype._prepareSeries=function(t,e,i,r){this._preparePoints(t,e,this._visPoints,!!r)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&b.SeriesAnimation.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(L);e.ClusterableSeriesView=G;var F=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._labelContainer.add(r._labelLineContainer=new E(e)),r}return i(e,t),e.prototype.depthEnabled=function(){return!0},e.prototype._prepareSeries=function(e,i,r,n){n?(this._depthAngle=n.options.angle*h.DEG_RAD,this._base=(0,s.cos)(this._depthAngle)*i.depth,this._side=(0,s.sin)(this._depthAngle)*i.depth):this._depthAngle=this._base=this._side=0,t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._prepareLayoutPoints=function(t,e){},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=this._inverted,o=this._getGrowRate(),a=this._prevRate,u=r.pointLabel,c=this._labelViews(),p=this._labelLineContainer,h=r._xAxisObj,f=r._yAxisObj,d=this._yReversed,_=this._depthExt,y=r._group?r._groupDistance:r.distance,g=_?y*(n?(0,s.sin)(this._depthAngle):(0,s.cos)(this._depthAngle)):0,v=_?y*(n?(0,s.cos)(this._depthAngle):(0,s.sin)(this._depthAngle)):0,m=2*h.unitPad(),b=(0,s.pickNum)(r.options.minPointWidth,0),x=this._yLen=f.prev(n?t:e),w=h.prev(n?e:t),S=function(t){return f.getPos(x,t)},P=function(t){return h.getPos(w,t)},A=n?0:e,O=f.valueMin(),C=f.getPos(x,O),E=this._baseVal=r.getBaseValue(f),V=!isNaN(E),T=this._yBase=(0,s.pickNum)(S((0,s.maxv)(O,(0,s.pickNum)(E,C))),C),k=this._pointOff,L=c&&(0,s.assignObj)(this._labelInfo,{inverted:n,reversed:d,labelPos:r.getLabelPos(u),labelOff:r.getLabelOff(u.getOffset()),textAlign:this._labelContainer._textAlign,distX:g,distY:v,side:this._side,base:this._base});c&&p.setVis(r.pointLabel.line.visible)&&(p.internalClearStyleAndClass(),p.internalSetStyleOrClass(r.pointLabel.line._style),p.prepare(r),L.pb=new l.PathBuilder),this._prepareLayoutPoints(t,e),this._getPointPool().forEach((function(s,l){var p=s.point;if(s.setVis(!p.isNull)){var f=h.getUnitLen(w,p.xValue)*(1-m),d=r.getPointWidth(f,b),_=S(p.yGroup),y=T;if(p.yGroup!=p.yValue){var x=E>p.yGroup,O=p.yGroup<0,C=p.yValue<0,N=x&&O&&!C||x&&!O&&!C||!x&&O&&C||!x&&!O&&C,M=p.yGroup-p.yValue*(N?-1:1);y=S(M)}var j=(_-y)*o,R=P(p.xValue)-f/2,B=A-_;if(isNaN(R)){var D=h.getUnitLen(w,p.xValue)*(1-m);R=P(p.xValue)-D/2}isNaN(a+s.wSave)||(d=s.wSave+(d-s.wSave)*a),R+=r.getPointPos(f)+d/2,isNaN(a+s.xSave)||(R=s.xSave+(R-s.xSave)*a),p.xPos=R+=d*k,p.yPos=B,i._layoutPoint(s,l,R-g,A-T*(1-o)-y*o+v,d,j),n&&(B=w-P(p.xValue)+f/2,R=A,p.yPos=B-=r.getPointPos(f)+d/2+d*k,p.xPos=R+=V?S(p.yGroup)*o:S(p.yGroup*o)),L&&(L.labelView=c.get(p,0))&&(L.pointView=s,L.x=R,L.y=B,L.wPoint=d,L.hPoint=j,i._layoutLabel(u,L,t,e))}}))},e.prototype._layoutLabel=function(e,i,r,n){if(t.prototype._layoutLabel.call(this,e,i,r,n),i.pb){var o=this._labelLineContainer.get(i.pointView.point),s=i.labelView;i.pb.clear(),i.inverted?i.pb.hline(i.y-i.distX,i.x+i.distY,i.below?s.tx+s.getBBox().width:s.tx):i.pb.vline(i.x-i.distX,i.y+i.distY,i.below?s.ty:s.ty+s.getBBox().height),o.setLine(i.pb.end())}},e}(G);e.BasedSeriesView=F;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._getHighValue=function(t){return t.yValue},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=+i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=r.chart.isInverted(),o=this._getGrowRate(),a=this._prevRate,l=r.pointLabel,u=this._labelViews(),c=r._xAxisObj,p=r._yAxisObj,h=2*c.unitPad(),f=(0,s.pickNum)(r.options.minPointWidth,0),d=n?t:e,_=n?e:t,y=n?0:e,g=this._pointOff,v=u&&(0,s.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(l),labelOff:r.getLabelOff(l.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,base:0,side:0});this._getPointPool().forEach((function(s,m){var b=s.point;if(s.setVis(!b.isNull)){var x=c.getUnitLen(_,b.xValue)*(1-h),w=r.getPointWidth(x,f),S=(p.getPos(d,i._getHighValue(b))-p.getPos(d,i._getLowValue(b)))*o,P=c.getPos(_,b.xValue)-x/2,A=y-p.getPos(d,i._getHighValue(b))*o;isNaN(a+s.wSave)||(w=s.wSave+(w-s.wSave)*a),P+=r.getPointPos(x)+w/2,isNaN(a+s.xSave)||(P=s.xSave+(P-s.xSave)*a),b.xPos=P+=w*g,b.yPos=A,i._layoutPoint(s,m,P,A,w,S),n&&(A=_-c.getPos(_,b.xValue)+x/2,P=y,b.yPos=A-=r.getPointPos(x)+w/2+w*g,b.xPos=P+=p.getPos(d,i._getHighValue(b))*o),u&&(v.pointView=s,v.hPoint=S,v.x=P,v.y=A,(v.labelView=u.get(b,0))&&(v.hPoint=S,i._layoutLabel(l,v,t,e)),(v.labelView=u.get(b,1))&&(n?v.x-=S:v.y+=S,v.hPoint=-S,i._layoutLabel(l,v,t,e)))}}))},e}(G);e.RangedSeriesView=z;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}(N);e.MarkerSeriesPointView=$;var H=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._markers=r._createMarkers(r._pointContainer),r}return i(e,t),e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,s=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==s){var a=this.model.chart.isInverted(),l=o.options.position,u=this._getRotatedLabelDisplacement(s,i);if(!a&&l!==g._PointLabelPosition.INSIDE)(n-=u)-(2*u+i.height)/2<0&&(n=u),t.trans(r,n)}},e.prototype._layoutLabelView=function(t,e,i,r,n,o){var s=t.getBBox();if("default"===e&&(e=this._getDefaultPos(s.width>=2*r*.9)),t.setVis(null!=e)){n-=s.width/2;var a=o;"inside"===e?a=o-s.height/2:e&&(a=o-r-s.height-i),t.trans(n,a),this._layoutLabelRotation(t,s,n,a)}},e}(L);e.MarkerSeriesView=H;var W=function(t){function e(e,i){var r=t.call(this)||this;return r.series=e,r.duration=i,r}return i(e,t),e.prototype._doUpdate=function(t){var e=this.series;return!!e&&(e._zombieRate=e._zombie.visible?t:1-t,e._refreshZombie(),!0)},e.prototype._doStop=function(){var t=this.series;t&&(t._zombie=null,t._zombieAni=null,t.invalidate(),this.series=null)},e}(u.RcAnimation),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.togglePointVisible=function(t){var e;t.yValue<0||(this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(250))},e.prototype.needFronting=function(){return!0},e.prototype.clipInvertable=function(){return!1},e.prototype.isPointLabelVisible=function(e){return e===this._zombie||t.prototype.isPointLabelVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.stop(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new W(this,300),this._zombieAni.start())},e.prototype._getPointColors=function(){return"f"},e.prototype._createPointLegendMarker=function(t,e,i){return d.RectElement.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,r){this._clearHoverClasses(r),i.legendMarker()||i.setLegendMarker(this._createPointLegendMarker(t,i,this.chart()._legend.getMarkerSize())),this._setPointStyle(r,e,i);var n=getComputedStyle(r.dom);i._calcedColor=n.fill,i._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:""},e}(L);e.WidgetSeriesView=U}(TU);var iY={},rY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(iY,"__esModule",{value:!0}),iY.ImageAnnotationView=void 0;var nY=pW,oY=zW,sY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._imageView=new oY.ImageElement(i,!1)),r._imageView.onloadProxy=function(){r._imageView.resize(r._size.width,r._size.height)},r}return rY(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=this._size=e.getSize(i,r);this._deflatePaddings(o),this.$_setImage(this.model.options.imageUrl);var s=this._imageView.getBBox();return this._inflaePaddings(s),(0,nY.rectToSize)(s)},e.prototype._doLayout=function(e){this._imageView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype.$_setImage=function(t){this._imageView.setImage(t,this._size.width,this._size.height)},e.CLASS_NAME="rct-image-annotation",e}(EU.AnnotationView);iY.ImageAnnotationView=sY;var aY={},lY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(aY,"__esModule",{value:!0}),aY.ShapeAnnotationView=void 0;var uY=lI,cY=fj,pY=GB,hY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._shapeView=new cY.PathElement(i)),r}return lY(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a,l,u=e.getSize(i,r),c=null===(o=e.chart.xAxis)||void 0===o?void 0:o.getPos(i,e.options.x1),p=null===(s=e.chart.xAxis)||void 0===s?void 0:s.getPos(i,e.options.x2),h=null===(a=e.chart.yAxis)||void 0===a?void 0:a.getPos(r,e.options.y1),f=null===(l=e.chart.yAxis)||void 0===l?void 0:l.getPos(r,e.options.y2),d=0,_=0;switch(e.getShape()){case uY._ShapeAnnotationShape.HLINE:!Number.isNaN(p)&&Number.isNaN(c)&&(_=p),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:u.height/2),this._shapeView.setPath(pY.SvgShapes.line(_,d,_+u.width,d));break;case uY._ShapeAnnotationShape.VLINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:u.width/2),!Number.isNaN(f)&&Number.isNaN(h)&&(d=r-f),this._shapeView.setPath(pY.SvgShapes.line(_,d,_,d+u.height));break;case uY._ShapeAnnotationShape.LINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:c>p?u.width:0),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:h<f?u.height:0);var y=c>p?_-u.width:_+u.width,g=h<f?d-u.height:d+u.height;this._shapeView.setPath(pY.SvgShapes.line(_,d,y,g));break;default:pY.SvgShapes.setShape(this._shapeView,e.getShape(),u.width/2,u.height/2)}return this._deflatePaddings(u),u},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-shape-annotation",e}(EU.AnnotationView);aY.ShapeAnnotationView=hY;var fY={},dY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fY,"__esModule",{value:!0}),fY.TextAnnotationView=void 0;var _Y=iM,yY=pW,gY=FM,vY=uj,mY=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._textView=new vY.TextElement(i)),r._textView.anchor=vY.TextAnchor.START,r._richText=new gY.SvgRichText,r}return dY(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=e.options,s=e.getSize(i,r),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._deflatePaddings(s),this._richText._isVertical="vertical"===o.writingMode,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(a,i,r,null,e._domain);var l=(0,yY.rectToSize)(this._textView.getBBox());return{width:(0,_Y.pickNum)(s.width,l.width),height:(0,_Y.pickNum)(s.height,l.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(this._textView.tx,this._textView.ty),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-text-annotation",e}(EU.AnnotationView);fY.TextAnnotationView=mY;var bY={},xY={},wY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(xY,"__esModule",{value:!0}),xY.LineSeriesView=xY.LineSeriesBaseView=xY.LineContainer=xY.LineMarkerView=void 0;var SY=iM,PY=dj,AY=aW,OY=kj,CY=fj,EY=nM,VY=GB,TY=NI,kY=MG,LY=FW,NY=TU,MY=kU,jY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wY(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var r=this.point,n=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*n)):o=this._radius=this._saveRadius*(1+n-(isNaN(i)?n:n*i)),VY.SvgShapes.setShape(this,t.model.getShape(r),o,o),this.index>0?this.trans(r.px2-o,r.py2-o):this.trans(r.xPos-o,r.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var r=0===this.index?this.point.xPos:this.point.px2,n=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(r-e,2)+Math.pow(n-i,2))-t},e.prototype.distance2=function(t,e,i,r){var n=0===this.index?this.point.xPos:this.point.px2,o=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:r?Math.abs(o-i):Math.abs(n-e)},e}(NY.MarkerSeriesPointView);xY.LineMarkerView=jY;var RY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wY(e,t),e}(NY.PointContainer);xY.LineContainer=RY;var BY=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._based=!1,r._needBelow=!1,r._rangeClips=[],r.insertFirst(r._lineContainer=new RY(e,"rct-line-series-lines")),r._lineContainer.add(r._line=new CY.PathElement(e,"rct-line-series-line")),r._markers=new AY.ElementPool(r._pointContainer,jY),r.add(r._tester=new CY.PathElement(e)),r._tester.setFill("#ff000010"),r}return wY(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;if(i._line.setStyle("strokeWidth",e.strokeWidth),i._shape){var r=getComputedStyle(this.dom);i._marker.setStyles({fill:r.fill,stroke:r.stroke}),i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")}else i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e,i){e instanceof kY.LineSeries&&(this._based=e._minY<e.getBaseValue(e._yAxisObj),this._needBelow=this._based&&e.options.belowStyle,this._prepareBelow(e.chart.isPolar())),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.buildLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines(this._polar)},e.prototype._runShowEffect=function(t){this._polar?t&&MY.SeriesAnimation.grow(this):t&&MY.SeriesAnimation.reveal(this,{from:function(t){var e=t.model._xAxisObj.options.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._prepareBelow(!!this._polar),this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines(this._polar)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,r=this._markers._internalItems();if(r&&r.length>0){var n=r.reduce((function(r,n){return r.distance(i,t,e)<n.distance(i,t,e)?r:n}));return{pv:n,dist:n.distance(i,t,e)}}},e.prototype.getNearest2=function(t,e,i){var r=this.model.marker.options.radius,n=this._markers._internalItems();if(n&&n.length>0){var o=n.reduce((function(n,o){return n.distance2(r,t,e,i)<o.distance2(r,t,e,i)?n:o}));return{pv:o,dist:o.distance2(r,t,e,i)}}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,r=this.control,n=this._lowLine;if(this._needBelow||t)return n||(n=this._lowLine=new CY.PathElement(this.doc,"rct-line-series-line rct-line-series-line-below"),t?this._lineContainer.add(n):this._lineContainer.insertChild(n,this._line),t?this.isClip(this._innerClip)||(this._outerClip=r.clipPath(),this._innerClip=r.clipPath(),this._outerLineClip=r.clipPath(),this._innerLineClip=r.clipPath()):this.isClip(this._upperClip)||(this._upperClip=r.clipBounds(),this._lowerClip=r.clipBounds())),t?this._yReversed?(this._line.setClip(this._needBelow?this._innerLineClip:null),this._lowLine.setClip(this._outerLineClip)):(this._line.setClip(this._needBelow?this._outerLineClip:null),this._lowLine.setClip(this._innerLineClip)):(this._line.setClip(this._upperClip),n.setClip(this._lowerClip)),!0;null==n||n.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,r=this._rangeLines;if(e){for(r||(r=this._rangeLines=new AY.ElementPool(this._lineContainer,CY.PathElement)),r.prepare(e.length);i.length<e.length;){var n=new CY.ClipRectElement(this.doc);this.control.addClip(n),i.push(n)}for(;i.length>e.length;)i.pop().remove()}else r&&(r.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,r){var n,o=this._yReversed,s=this._needBelow;if(this._polar){var a=this._polar,l=a.cx,u=a.cy,c=a.rd,p=a.min,h=a.max,f=a.cyclic,d=(0,EY.fixnum)((0,SY.maxv)(0,(0,SY.minv)((EY.PI_2-(0,SY.absv)(p-h))/2,.2))),_=s?1:this._getGrowRate();this._model.isConnectEnds(s,f)?(s?(this._outerClip.setPath(VY.SvgShapes.donut(l,u,c*_,i*_)),this._outerLineClip.setPath(this._outerClip.getPath())):(this._outerClip.setPath(VY.SvgShapes.circle(l,u,c*_)),this._outerLineClip.setPath(this._outerClip.getPath())),this._innerClip.setPath(VY.SvgShapes.circle(l,u,i*_)),this._innerLineClip.setPath(this._innerClip.getPath())):(s?(this._outerClip.setPath(VY.SvgShapes.sector(l,u,c*_,c*_,i/e,p,h,!0)),this._outerLineClip.setPath(f?this._outerClip.getPath():VY.SvgShapes.sector(l,u,c*_,c*_,i/e,p-d,h+d,!0))):(this._outerClip.setPath(VY.SvgShapes.circle(l,u,c*_)),this._outerLineClip.setPath(this._outerClip.getPath())),this._innerClip.setPath(VY.SvgShapes.sector(l,u,i*_,i*_,0,p,h,!0)),this._innerLineClip.setPath(f?this._innerClip.getPath():VY.SvgShapes.sector(l,u,i*_,i*_,0,p-d,h+d,!0)))}else(n=this._upperClip)&&(r?o?n.setBounds(0,-i,e,t):n.setBounds(0,-t,e,t-i):o?n.setBounds(0,0+i,t,e-i):n.setBounds(0,0,t,i)),(n=this._lowerClip)&&(this._inverted?o?n.setBounds(0,-t,e,t-i):n.setBounds(0,-i,e,i):o?n.setBounds(0,0,t,i):n.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i=this,r=t instanceof kY.LineSeries&&this._needBelow,n=r?t.getBaseValue(t._yAxisObj):NaN,o=[t.marker._style,null];if(this._pointContainer.setVis(!t._simpleMode)){var s=this._markersPerPoint(),a=r&&t.options.belowStyle,l=e.length;this._markers.prepare(l*s,(function(s,u){var c=e[u%l];c.isNull||(s.point=c,o[1]=r&&c.yValue<n?a:null,i._setPointStyle(s,t,c,o)),s.point=c,s.index=u<l?0:1}))}else this._markers.prepare(0)},e.prototype._prepareMakrer=function(t){var e=this.model,i=t.point;t._shape=e.getShape(i),t._radius=e.getRadius(i)},e.prototype._layoutMarker=function(t,e,i,r){var n=t._radius;e&&t.internalSetStyleOrClass(e),VY.SvgShapes.setShape(t,t._shape,n,n),t.setPos(i,r),t.trans(i-=n,r-=n)},e.prototype._layoutMarkers=function(t,e,i){var r=this,n=this.model,o=n.marker,s=o._style,a=this._inverted,l=n.needClip(!1),u=this._getGrowRate(),c=o.visible,p=o.options.firstVisible,h=o.options.lastVisible,f=o.options.maxVisible,d=o.options.minVisible,_=n.pointLabel,y=_.options.align,g=_.getAlignOffset(),v=_.getOffset(),m=_.getPosition(),b=this._labelContainer._textAlign,x=this._labelViews(),w=n._xAxisObj,S=n._yAxisObj,P=this._polar=n.chart._body.getPolar(w),A=!!P,O=P||{},C=O.cx,E=O.cy,V=O.rd,T=O.start,k=O.total,L=S.prev(a?e:i),N=w.prev(P?k:a?i:e),M=a?0:i,j=t.length,R=S.axisMax(),B=this._yReversed,D=S instanceof TY.LinearAxis?n.getBaseValue(S):NaN,I=D>S.axisMin(),G=S.getPos(V,D);t.forEach((function(t,o){var _,O,F,z;P?(F=T+w.getPos(N,t.xValue),z=B?isNaN(t.yGroup)?I?G:V:I?G+(S.getPos(V,t.yGroup)-G)*u:V-S.getPos(V,R-t.yGroup)*u:isNaN(t.yGroup)?I?G:0:I?G+(S.getPos(V,t.yGroup)-G)*u:S.getPos(V,t.yGroup)*u,_=t.px=C+z*(0,SY.cos)(F),O=t.py=E+z*(0,SY.sin)(F),t.angle=F):(_=t.px=w.getPos(N,t.xValue),O=t.py=M-S.getPos(L,t.yGroup),a&&(_=S.getPos(L,t.yGroup),O=i-w.getPos(N,t.xValue))),t.xPos=_,t.yPos=O;var $=_,H=O,W=r._markers.get(o),U=x&&x.get(t,0);if(W&&W.setVis(!t.isNull&&(A||!l||_>=0&&_<=e&&O>=0&&O<=i))){r._prepareMakrer(W),r._layoutMarker(W,s,_,O),n._maxY,t.yGroup,n._minY,t.yGroup;var Y=0==o&&null!=p?p:o==j-1&&null!=h?h:n._maxY==t.yGroup&&null!=f?f:n._minY==t.yGroup&&null!=d?d:c;if(W.setStyle("opacity",Y?"1":"0"),U){U.setContrast(null).layout(b);var X=U.getBBox(),q=W._radius;if(U.visible=!0,P){switch(m){case"inside":B?t.yValue<D?z-=v:z+=v:t.yValue<D?z+=v:z-=v;break;case"foot":B?t.yValue<D?z-=X.height/2+v:z+=X.height/2+v:t.yValue<D?z+=X.height/2+v:z-=X.height/2+v;break;default:B?t.yValue<D?z+=X.height/2+v:z-=X.height/2+v:t.yValue<D?z-=X.height/2+v:z+=X.height/2+v}_=C+z*(0,SY.cos)(F),O=E+z*(0,SY.sin)(F)-X.height/2,r.applyAutoRotation(U,F,k,w.options.totalAngle)}else switch(m){case"inside":O-=X.height/2+v;break;case"foot":O+=v+(c?q:0);break;default:O-=X.height+v+(c?q:0)}switch(y){case"left":_-=X.width+(c?q:0)+g;break;case"right":_+=(c?q:0)+g;break;default:_-=X.width/2+g}r._checkLabelOverlap(U,X,$,H,q,q,_,O,!1,null),r._layoutLabelRotation(U,X,_,O)}}else U&&U.setVis(!1)}))},e.prototype._layoutLines=function(t){var e=this,i=this.model;if(this._lineContainer.setVis(i._lines.length>0)){var r=this.width,n=this.height,o=this._inverted,s=i instanceof kY.LineSeries&&this._needBelow,a=this._buildLines(t,i._lines);if(i._runRanges)this._rangeLines.forEach((function(t,s){var l=i._runRanges[s];t.setPath(a),t.internalClearStyleAndClass(),t.internalSetStyle("stroke",l.color),t.internalSetStyleOrClass(l.style),PY.Dom.setImportantStyle(t.dom.style,EY.FILL,"none"),t.setClip(e._rangeClips[s]),e._clipRange(r,n,i._runRangeValue,l,e._rangeClips[s],o)}));else{var l=this._line;l.setPath(a),l.internalClearStyleAndClass(),l.internalSetStyle("stroke",i._runColor),l.internalSetStyleOrClass(i._style),PY.Dom.setImportantStyle(l.dom.style,EY.FILL,"none")}if(s||t){var u=this._lowLine,c=i._yAxisObj,p=i.getBaseValue(c);t?this.$_resetClips(r,n/2,c.getPos(n/2,p),!0):o?this.$_resetClips(r,n,c.getPos(r,p),!0):this.$_resetClips(r,n,n-c.getPos(n,p),!1),u.setVis(s)&&(u.setPath(a),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",i._runColor),u.internalSetStyleOrClass(i._style),u.internalSetStyleOrClass(i.options.belowStyle),PY.Dom.setImportantStyle(u.dom.style,EY.FILL,"none"))}}},e.prototype._buildLine=function(t,e,i,r){var n=this.model;"spline"===e?this._drawCurve(t,i,r):n instanceof kY.LineSeries&&"step"===e?this._drawStep(t,i,r,i?n.backDir():n.options.stepDir):this.$_drawLine(t,i,r)},e.prototype._buildLines=function(t,e){var i=this.model,r=i.getLineType(),n=new OY.PathBuilder;return"spline"===r?this._drawCurves(t,e,n):i instanceof kY.LineSeries&&"step"===r?this._drawSteps(e,n,i.options.stepDir):this._drawLines(e,n),n.end(t&&t.cyclic)},e.prototype.$_drawLine=function(t,e,i){if(t.length>1){var r=this._model instanceof kY.LineSeries&&this._model.options.connectNullPoints;i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)t[n].isNull&&r||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i.$_drawLine(t,!1,e)}))},e.prototype._drawStep=function(t,e,i,r){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)switch(r){case"backward":i.line(t[n-1].px,t[n].py),i.line(t[n].px,t[n].py);break;case"center":i.line((t[n].px+t[n-1].px)/2,t[n-1].py),i.line((t[n].px+t[n-1].px)/2,t[n].py),n+1===t.length&&i.line(t[n].px,t[n].py);break;default:i.line(t[n].px,t[n-1].py),i.line(t[n].px,t[n].py)}}},e.prototype._drawSteps=function(t,e,i){var r=this;t.forEach((function(t){return r._drawStep(t,!1,e,i)}))},e.prototype._drawCurve=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),i.spline(t,0,t.length-1))},e.prototype._drawCurves=function(t,e,i){var r=this;if(t){var n=t.cx,o=t.cy,s=t.rd,a=t.cyclic,l=this.model,u=l._yAxisObj,c=u instanceof TY.LinearAxis?l.getBaseValue(u):NaN,p=c>u.axisMin()?u.getPos(s,c):0,h=e[0],f=h.length,d=void 0,_=void 0;a?(i.move(h[0].px,h[0].py),i.closedSpline(h,!0)):(d=n+p*(0,SY.cos)(h[0].angle),_=o+p*(0,SY.sin)(h[0].angle),i.move(d,_),i.line(h[0].xPos,h[0].yPos),i.closedSpline(h,!1),d=n+p*(0,SY.cos)(h[f-1].angle),_=o+p*(0,SY.sin)(h[f-1].angle),i.line(d,_))}else e.forEach((function(t){return r._drawCurve(t,!1,i)}))},e.prototype._buildAreas=function(t,e,i){var r=new OY.PathBuilder;i=i||e;for(var n=0;n<t.length;n+=2){var o=t[n],s=t[n+1];this._buildLine(o,e,!1,r),this._buildLine(s,i,!0,r)}return r.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(NY.SeriesView);xY.LineSeriesBaseView=BY;var DY=function(t){function e(i){var r=t.call(this,i,e.CLASS)||this;return r._flagView=new LY.ChartTextElement(i,"rct-line-series-flag"),r._pointContainer.add(r._flagView),r}return wY(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){var e;t.prototype._doLayout.call(this);var i,r=this.model,n=r.flag,o=this._flagView,s=this.parent.parent;if(o.setVis(n.visible&&!!(i=n.label()))){o.setText(i),o.setModel(this.doc,n,n.options.icon?n.getUrl(n.options.icon):null,null),o.setContrast(null).layout("left");var a=n.options.offset,l=o.getBBox(),u=void 0,c=void 0;u=this._markers.last.x,c=this._markers.last.y;var p=void 0,h={top:["top","right","left"],right:["right","top","bottom"],bottom:["bottom","right","left"],left:["left","top","bottom"]}[p=("step"==r.options.lineType&&"forward"==r.options.stepDir)!=this._inverted?c>this._markers.get(this._markers.count-2).y?"bottom":"top":u>this._markers.get(this._markers.count-2).x?"right":"left"],f=l.width,d=l.height,_=f/2,y=d/2,g=s.width,v=s.height,m=c>d+a,b=v>c+d+a,x=u>f+a,w=g>u+f+a,S={top:m,right:w,bottom:b,left:x},P=u>_&&g-u>_?u-_:u>g/2?g-f:0,A=c>y&&v>c+y?c-y:c>v/2?v-d:0;switch(p=null!==(e=h.find((function(t){return S[t]})))&&void 0!==e?e:p){case"top":u=P,c=m?c-d-a:0;break;case"bottom":u=P,c=b?c+a:v-d;break;case"left":u=x?u-f-a:0,c=A;break;case"right":u=w?u+a:g-f,c=A}o.trans(u,c)}},e.CLASS="rct-line-series",e}(BY);xY.LineSeriesView=DY;var IY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(bY,"__esModule",{value:!0}),bY.AreaRangeSeriesView=void 0;var GY=iM,FY=dj,zY=fj,$Y=xY,HY=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new $Y.LineContainer(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new zY.PathElement(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new zY.PathElement(e,"rct-areanrange-series-line")),FY.Dom.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return IY(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,r){t.prototype._layoutMarkers.call(this,e,i,r);var n=this.model,o=n.marker,s=o._style,a=o.visible,l=this._inverted,u=n._xAxisObj,c=n._yAxisObj,p=l?i:r,h=l?0:r,f=this._labelViews(),d=this._labelContainer._textAlign,_=this._polar=n.chart._body.getPolar(u),y=n.pointLabel,g=y.options.position,v=y.options.align,m=y.getAlignOffset(),b=y.getOffset();this._getGrowRate();for(var x=0,w=e.length;x<w;x++){(P=e[x]).yLow=h-c.getPos(p,P.lowValue)}var S=this._markers;for(x=0,w=e.length;x<w;x++){var P=e[x],A=S.get(w+x),O=f&&f.get(P,1),C=void 0,E=void 0,V=void 0;this._prepareMakrer(A),l?(C=P.px2=c.getPos(p,P.lowValue),E=P.py2=S.get(x).ty+A._radius):(C=P.px2=P.xPos,E=P.py2=P.yLow);var T=C,k=E;if(A&&A.setVis(!P.isNull&&C>=0&&C<=i&&E>=0&&E<=r)){if(this._layoutMarker(A,s,C,E),A.setStyle("opacity",a||0==x&&!0===o.options.firstVisible||x===w-1&&!0===o.options.lastVisible?"1":"0"),O){O.setContrast(null).layout(d).setVis(!0);var L=O.getBBox(),N=A._radius;if(_){switch(g){case"inside":E-=b;break;case"foot":E-=L.height/2+b;break;default:E+=L.height+b}C=_.cx+E*(0,GY.cos)(V),E=_.cy+E*(0,GY.sin)(V)-L.height/2,this.applyAutoRotation(O,V,_.total,u.options.totalAngle)}else switch(g){case"inside":E-=L.height/2+b;break;case"foot":E+=b+(a?N:0);break;default:E-=L.height+b+(a?N:0)}switch(v){case"left":C-=L.width+(a?N:0)+m;break;case"right":C+=(a?N:0)+m;break;default:C-=L.width/2+m}this._checkLabelOverlap(O,L,T,k,N,N,C,E,!1,null),this._layoutLabelRotation(O,L)}}else O&&O.setVis(!1)}},e.prototype._layoutLines=function(e){t.prototype._layoutLines.call(this,e);var i=this._area,r=this.model;if(this._areaContainer.setVis(r._lines.length>0)){var n=this._buildAreas(r._lines,r.getLineType());i.setPath(n),i.unsetData("polar"),i.setBoolData("simple",this._simpleMode),i.internalClearStyleAndClass(),r._runColor&&i.setFill(r._runColor),this._setFill(i,r._style),r.options.areaStyle&&i.internalSetStyleOrClass(r.options.areaStyle)}},e}($Y.LineSeriesBaseView);bY.AreaRangeSeriesView=HY;var WY={},UY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),YY=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},XY=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(WY,"__esModule",{value:!0}),WY.AreaSeriesView=void 0;var qY=GB,ZY=iM,KY=dj,JY=aW,QY=kj,tX=fj,eX=nM,iX=NI,rX=xY,nX=function(t){function e(e,i){var r=t.call(this,e,i||"rct-area-series")||this;return r._rangeAreaClips=[],r.insertFirst(r._areaContainer=new rX.LineContainer(e,"rct-area-series-areas")),r._areaContainer.insertFirst(r._area=new tX.PathElement(e,"rct-area-series-area")),r}return UY(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._area,r=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return r||this._areaContainer.add(r=this._lowArea=new tX.PathElement(this.doc,"rct-area-series-area")),e?this._yReversed?(i.setClip(this._innerClip),r.setClip(this._outerClip)):(i.setClip(this._outerClip),r.setClip(this._innerClip)):(i.setClip(this._upperClip),r.setClip(this._lowerClip)),!0;null==r||r.setClip(),i.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var r=this.doc,n=this._rangeAreaClips,o=this._rangeAreas;if(i){o||(o=this._rangeAreas=new JY.ElementPool(this._areaContainer,tX.PathElement,"rct-area-series-area")),o.prepare(i.length);for(var s=0;s<(0,ZY.minv)(i.length,n.length);s++)this.isClip(n[s])||(n[s]=this.control.addClip(new tX.ClipRectElement(r)));for(;n.length<i.length;)n.push(this.control.addClip(new tX.ClipRectElement(r)));for(;n.length>i.length;)n.pop().remove()}else o&&(o.freeAll(),n.forEach((function(t){return t.remove()})),n.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,r){t.prototype._layoutMarkers.call(this,e,i,r);for(var n=this._inverted,o=this.model._yAxisObj,s=n?i:r,a=n?0:r,l=0,u=e.length;l<u;l++){var c=e[l];c.isNull?c.yLow=NaN:c.yLow=a-o.getPos(s,c.yGroup-c.yValue)}this._polar&&this.$_layoutPolar(this._area,this._lowArea,this._visPoints)},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar||this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,r=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var n=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,l=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,r){var a=i._runRanges[r];t.setBoolData("simple",e._simpleMode),t.setPath(l),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[r]),e._clipRange(n,o,i._runRangeValue,a,e._rangeAreaClips[r],s)})):(t.setPath(l),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle(eX.FILL,i._runColor),this._setFill(t,r.style),i.options.areaStyle&&t.internalSetStyleOrClass(r.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(l),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle(eX.FILL,i._runColor),r.areaStyle&&a.internalSetStyleOrClass(r.areaStyle),this._setFill(a,i.options.belowStyle),r.belowAreaStyle&&a.internalSetStyleOrClass(r.belowAreaStyle))}},e.prototype.setCircular=function(t){this._circular=t},e.prototype.$_layoutPolar=function(t,e,i){var r=this.model,n=r._group,o=r._xAxisObj,s=r._yAxisObj,a=this._yReversed,l=s instanceof iX.LinearAxis?r.getBaseValue(s):NaN,u=this._polar,c=u.cx,p=u.cy,h=u.rd,f=u.cyclic,d=new QY.PathBuilder,_=i.length;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){var y=l>s.axisMin(),g=y?s.getPos(h,l):0,v=r.chart._body.options.circular,m=!1,b=!1,x=void 0,w=void 0,S=void 0,P=void 0;if("spline"===r.options.lineType)this._drawCurves(this._polar,r.buildLines(i),d);else{f?d.move(i[0].xPos,i[0].yPos):(x=c+g*(0,ZY.cos)(i[0].angle),w=p+g*(0,ZY.sin)(i[0].angle),d.move(x,w),d.line(i[0].xPos,i[0].yPos));for(L=1;L<_;L++)d.line(i[L].xPos,i[L].yPos);f||(x=c+g*(0,ZY.cos)(i[_-1].angle),w=p+g*(0,ZY.sin)(i[_-1].angle),d.line(x,w))}var A=i.map((function(t){return t.angle})),O=this._polar.min=ZY.minv.apply(void 0,XY([],YY(A),!1)),C=this._polar.max=ZY.maxv.apply(void 0,XY([],YY(A),!1)),E=(new QY.PathBuilder).push(d.end());if(y)f?d.circle(c,p,g):a&&d.push.apply(d,XY([],YY(qY.SvgShapes.arc(c,p,g,g,O,C,!0)),!1)),S=d.end(),m=!0,f?E.circle(c,p,g):E.push.apply(E,XY([],YY(qY.SvgShapes.arc(c,p,g,g,O,C,!0)),!1)),P=E.end(),b=!0;else if(a){var V=o.getStartAngle(),T=o.getTotalAngle(),k=o._ticks;d.push("Z"),f?v?d.circle(c,p,h):d.polygon.apply(d,XY([],YY(k.map((function(t){return console.log(t.value,t.pos),{x:c+(0,ZY.cos)(V+t.pos/h*T/eX.PI_2)*h,y:p+(0,ZY.sin)(V+t.pos/h*T/eX.PI_2)*h}}))),!1)):v?d.push.apply(d,XY([],YY(qY.SvgShapes.sector(c,p,h,h,0,O,C,!0)),!1)):d.polygon.apply(d,XY([{x:c,y:p}],YY(k.map((function(t){return{x:c+(0,ZY.cos)(V+t.pos/h*T/eX.PI_2)*h,y:p+(0,ZY.sin)(V+t.pos/h*T/eX.PI_2)*h}}),{x:c,y:p})),!1)),S=d.end(!0),m=!0}else S=d.end();t.setPath(S),t.setAttr("fill-rule",m?"evenodd":""),e&&(e.setPath(P||""),e.setAttr("fill-rule",b?"evenodd":""))}else{d.move((0,ZY.pickNum)(i[0].xPos,c),(0,ZY.pickNum)(i[0].yLow,p)),d.line((0,ZY.pickNum)(i[0].xPos,c),(0,ZY.pickNum)(i[0].yPos,p));for(var L=1;L<i.length;L++)d.line((0,ZY.pickNum)(i[L].xPos,c),(0,ZY.pickNum)(i[L].yPos,p));d.line((0,ZY.pickNum)(i[i.length-1].xPos,c),(0,ZY.pickNum)(i[i.length-1].yLow,p));for(var L=i.length-1;L>=0;L--)d.line((0,ZY.pickNum)(i[L].xPos,c),(0,ZY.pickNum)(i[L].yLow,p));t.setPath(d.end())}if(t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(r._runColor),t.addStyleOrClass(r._style),KY.Dom.setImportantStyle(t.dom.style,eX.STROKE,"none"),e&&(e.setBoolData("polar",!0),e.clearStyleAndClass(),e.setFill(r._runColor),e.addStyleOrClass(r._style),e.internalSetStyleOrClass(r.options.belowStyle),KY.Dom.setImportantStyle(e.dom.style,eX.STROKE,"none")),r._xAxisObj.isArced()){this.isClip(this._arcClip)||(this._arcClip=this.control.addClip(new tX.ClipPathElement(this.doc)));var N=qY.SvgShapes.arc(c,p,h,h,u.start,u.start+u.total,!0);N.push("L",c,p),this._arcClip.setPath(N),this._areaContainer.setClip(this._arcClip)}else this._areaContainer.setClip()},e}(rX.LineSeriesBaseView);WY.AreaSeriesView=nX;var oX={},sX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(oX,"__esModule",{value:!0}),oX.BarRangeSeriesView=void 0;var aX=iM,lX=aW,uX=TU,cX=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new lX.ElementPool(i._pointContainer,uX.BarElement),i}return sX(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,aX.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r+o,this._rd,this._rd,0,0,this._inverted)},e}(uX.RangedSeriesView);oX.BarRangeSeriesView=cX;var pX={},hX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fX=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},dX=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(pX,"__esModule",{value:!0}),pX.BarSeriesView=pX.BarSeriesViewBase=void 0;var _X=iM,yX=aW,gX=TU,vX=NI,mX=function(t){function e(e){return t.call(this,e,gX.SeriesView.POINT_CLASS)||this}return hX(e,t),e.prototype.savePrevs=function(){},e}(PU.SectorElement),bX=function(t){function e(){var e=t.apply(this,dX([],fX(arguments),!1))||this;return e._labelInfo={},e}return hX(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._prepareSeries=function(e,i,r,n){this._polar=r,t.prototype._prepareSeries.call(this,e,i,r,n)},e.prototype._preparePoints=function(t,e,i,r){this._polar?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints,r)},e.prototype._setPointStyle=function(e,i,r){t.prototype._setPointStyle.call(this,e,i,r),r.yValue<i.getBaseValue(i._yAxisObj)&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this._polar?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i,r){var n=this;this._polar?this._bars||(this._bars=this._createBarPool(this._pointContainer,!1)):(r!=this._deep&&this._bars&&(this._bars.prepare(0),this._bars=null),this._bars||(this._bars=this._createBarPool(this._pointContainer,this._deep=r))),this._bars.prepare(i.length,(function(t,r){var o=t.point=i[r];n._setPointStyle(t,e,o)}))},e.prototype.$_parepareSectors=function(t,e,i){var r=this;this._sectors||(this._sectors=new yX.ElementPool(this._pointContainer,mX)),this._sectors.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,r,n,o=this,s=this.model,a=this._getGrowRate(),l=s.pointLabel,u=this._labelViews(),c=s.chart._body,p=s._xAxisObj,h=s._yAxisObj,f=h.options.reversed,d=2*p.unitPad(),_=c.getPolar(p),y=_.cx,g=_.cy,v=_.rd,m=h instanceof vX.LinearAxis?s.getBaseValue(h):NaN,b=m>h.axisMin(),x=h.getPos(v,m),w=this._pointOff,S=p.getTotalAngle();u&&(t=this._labelInfo,e=s.getLabelPos(l),i=s.getLabelOff(l.getOffset()),r=this._labelContainer._textAlign),this._sectors.forEach((function(l,c){var P=l.point;if(l.setVis(!P.isNull)){var A=h.getPos(v,P.yGroup)*a,O=p.getUnitLen(S,P.xValue)*(1-d),C=s.getPointWidth(O,0),E=_.start+p.getPos(S,P.xValue)-O/2,V=void 0,T=void 0;if(E+=C*w,E+=s.getPointPos(O)+C/2,f?b?(V=x+(h.getPos(v,P.yGroup)-x)*a,T=x):(V=v,T=h.getPos(v,P.yGroup*a)):b?(V=x+(h.getPos(v,P.yGroup)-x)*a,T=x):(V=A,T=0),l.setSector({cx:y,cy:g,rx:V,ry:V,innerRadius:T/V,start:E-C/2,angle:C,clockwise:!0}),E=l.start+l.angle/2,P.xPos=y+l.rx*(0,_X.cos)(E),P.yPos=g+l.ry*(0,_X.sin)(E),u&&(n=t.labelView=u.get(P,0))){n.layout(r);var k,L=n.getBBox(),N=L.width,M=L.height,j=l.ry,R=l.innerRadius*v,B=void 0;B=f?b?P.yValue<m?"outside"===e?j+M/2+i:"head"===e?j-M/2-i:"foot"===e?x+M/2+i:j-(j-x)/2+i:"outside"===e?j-M/2-i:"head"===e?(0,_X.minv)(x,j+M/2+i):"foot"===e?x-M/2-i:x-(x-j)/2-i:"outside"===e?R-M/2-i:"head"===e?(0,_X.minv)(v,R+M/2+i):"foot"===e?v-M/2-i:v-(v-R)/2-i:b?P.yValue<m?"outside"===e?j-M/2-i:"head"===e?j+M/2+i:"foot"===e?x-M/2-i:x-(x-j)/2-i:"outside"===e?j+M/2+i:"head"===e?j-M/2-i:"foot"===e?x+M/2+i:j-(j-x)/2+i:"outside"===e?j+M/2+i:"head"===e?j-M/2-i:.7*j+i,k=g+B*(0,_X.sin)(E),B=y+B*(0,_X.cos)(E),"outside"!==e&&n.setContrast(l.dom),o.applyAutoRotation(n,E,_.total,p.options.totalAngle),n.trans(B-N/2,k-M/2)}}}))},e}(gX.BasedSeriesView);pX.BarSeriesViewBase=bX;var xX=function(t){function e(e,i){return t.call(this,e,null!=i?i:"rct-bar-series")||this}return hX(e,t),e.prototype._createBarPool=function(t,e){return e&&this._side>0?new yX.ElementPool(t,gX.Bar3DElement):new yX.ElementPool(t,gX.BarElement)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n);var o=i.options;this._rdTop=+o.topRadius||0,this._rdBottom=+o.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,_X.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r,this._rdTop,this._rdBottom,this._base,this._side,this._inverted)},e}(bX);pX.BarSeriesView=xX;var wX={},SX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(wX,"__esModule",{value:!0}),wX.BellCurveSeriesView=void 0;var PX=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return SX(e,t),e}(WY.AreaSeriesView);wX.BellCurveSeriesView=PX;var AX={},OX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(AX,"__esModule",{value:!0}),AX.BoxPlotSeriesView=void 0;var CX=aW,EX=KG,VX=IB,TX=TU,kX=function(t){function e(e){return t.call(this,e,TX.SeriesView.POINT_CLASS+" rct-boxplot-point")||this}return OX(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.minValue,n=t/2,o=0+e-e*(i.lowValue-i.minValue)/r,s=0+e-e*(i.highValue-i.minValue)/r,a=e*(i.highValue-i.lowValue)/r;i.color&&this._box.setFill(i.color),this.x=this.tx+n,this._stemUp.setVLine(n,0,s),this._stemDown.setVLine(n,o,e),this._max.setHLine(0,t/4,3*t/4),this._min.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/r,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new EX.LineElement(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new EX.LineElement(t,"rct-boxplot-point-stem")),this.add(this._box=new VX.RectElement(t,"rct-boxplot-point-box")),this.add(this._mid=new EX.LineElement(t,"rct-boxplot-point-mid")),this.add(this._min=new EX.LineElement(t,"rct-boxplot-point-min")),this.add(this._max=new EX.LineElement(t,"rct-boxplot-point-max"))},e}(TX.RangeElement),LX=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new CX.ElementPool(i._pointContainer,kX),i}return OX(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._boxes.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(TX.RangedSeriesView);AX.BoxPlotSeriesView=LX;var NX={},MX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(NX,"__esModule",{value:!0}),NX.BubbleSeriesView=NX.BubbleSeriesPointView=void 0;var jX=GB,RX=iM,BX=aW,DX=nM,IX=TU,GX=kU,FX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return MX(e,t),e}(IX.MarkerSeriesPointView);NX.BubbleSeriesPointView=FX;var zX=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return MX(e,t),e.prototype._createMarkers=function(t){return new BX.ElementPool(t,FX)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&GX.SeriesAnimation.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;t.getShape();var r=e.length;this._markers.prepare(r,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,r=this,n=this.model,o=n.options,s=this._inverted,a=n.needClip(!1),l=this._getGrowRate(),u=+o.rotation||0,c=n.pointLabel,p=c.options.position,h=c.getOffset(),f=this._labelContainer._textAlign,d=this._labelViews(),_=n._xAxisObj,y=n._yAxisObj,g=this._polar=n.chart._body.getPolar(_),v=y.prev(s?t:e),m=_.prev(g?DX.PI_2:s?e:t),b=(n._xAxisObj._vlen<n._yAxisObj._vlen?n._xAxisObj:n._yAxisObj)._vlen,x=n.getPixelMinMax(b),w=x.min,S=x.max,P=s?0:e,A=jX.SvgShapes.getDrawer(o.shape);this._markers.forEach((function(o,c){var b=o.point,x=d&&(i=d.get(b,0));if(o.setVis(!b.isNull&&!isNaN(b.zValue))){var O=(o._radius=n.getRadius(b.zValue,w,S))*l,C=void 0,E=void 0;if(g){var V=g.start+_.getPos(m,b.xValue),T=y.getPos(g.rd,b.yValue);C=g.cx+T*(0,RX.cos)(V),E=g.cy+T*(0,RX.sin)(V)}else C=_.getPos(m,b.xValue),E=P-y.getPos(v,b.yValue),s&&(C=y.getPos(v,b.yValue),E=e-_.getPos(m,b.xValue));b.xPos=C,b.yPos=E,o.setVis(!a||C>=0&&C<=t&&E>=0&&E<=e)?(o.setPath(A(O)).trans(C,E).rotate(u),x&&(i.setContrast(o.dom).layout(f),r._layoutLabelView(i,p,h,O,C,E))):x&&x.setVis(!1)}else x&&x.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=i.reduce((function(i,r){return i.distance(i._radius,t,e)<r.distance(r._radius,t,e)?i:r}));return{pv:r,dist:r.distance(r._radius,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(IX.MarkerSeriesView);NX.BubbleSeriesView=zX;var $X={},HX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty($X,"__esModule",{value:!0}),$X.CandlestickSeriesView=void 0;var WX=iM,UX=aW,YX=KG,XX=IB,qX=TU,ZX=function(t){function e(e){return t.call(this,e,qX.SeriesView.POINT_CLASS)||this}return HX(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=0+e-e*(0===r?1:((0,WX.minv)(i.openValue,i.closeValue)-i.lowValue)/r),o=0+e-e*(0===r?1:((0,WX.maxv)(i.openValue,i.closeValue)-i.lowValue)/r),s=(0,WX.minv)(o,n),a=(0,WX.maxv)(1,(0,WX.absv)(n-o)),l=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,n,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",l)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new YX.LineElement(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new YX.LineElement(t,"rct-candlestick-point-wick")),this.add(this._body=new XX.RectElement(t))},e}(qX.RangeElement),KX=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new UX.ElementPool(i._pointContainer,ZX),i}return HX(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._sticks.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r),t.layout(n,o)},e}(qX.RangedSeriesView);$X.CandlestickSeriesView=KX;var JX={},QX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(JX,"__esModule",{value:!0}),JX.CircleBarSeriesView=void 0;var tq=aW,eq=kj,iq=pX,rq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return QX(e,t),e.prototype.layout=function(t,e,i){var r=new eq.PathBuilder;r.circle(t,e,i),this.setPath(r.end())},e}(TU.PointElement),nq=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return QX(e,t),e.prototype._createBarPool=function(t){return new tq.ElementPool(t,rq)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.layout(i,r-o/2,o/2-1)},e}(iq.BarSeriesViewBase);JX.CircleBarSeriesView=nq;var oq={},sq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(oq,"__esModule",{value:!0}),oq.DumbbellSeriesView=void 0;var aq=aW,lq=fj,uq=KG,cq=GB,pq=TU,hq=function(t){function e(e){var i=t.call(this,e,pq.SeriesView.POINT_CLASS)||this;return i.add(i._line=new uq.LineElement(e,"rct-dumbbell-point-bar")),i.add(i._hmarker=new lq.PathElement(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new lq.PathElement(e,"rct-dumbbell-point-marker")),i}return sq(e,t),e.prototype.layout=function(t,e,i,r){var n=this._hmarker,o=this._lmarker,s=this.point,a=s.radius,l=s.lowRadius,u=i/2;t._style&&n.setStyleOrClass(t._style),t._style&&o.setStyleOrClass(t._style),e._style&&o.internalSetStyleOrClass(e._style);var c=t.getMarkerStyle(s);c&&n.internalSetStyleOrClass(c),(c=e.getMarkerStyle(s))&&o.internalSetStyleOrClass(c),n.setStyle("opacity",t.visible?"1":"0"),o.setStyle("opacity",e.visible?"1":"0"),this.x=this.tx+u,this._line.setVLine(u,0,r),cq.SvgShapes.setShape(n,s.shape,a,a),cq.SvgShapes.setShape(o,s.lowShape,l,l),n.trans(u-a,0-a),o.trans(u-l,r-a)},e}(pq.RangeElement),fq=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new aq.ElementPool(i._pointContainer,hq),i}return sq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(this.model.marker,this.model.lowMarker,n,o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._hmarker.setFill(e),t._lmarker.setFill(e)},e}(pq.RangedSeriesView);oq.DumbbellSeriesView=fq;var dq={},_q=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(dq,"__esModule",{value:!0}),dq.EqualizerSeriesView=void 0;var yq=aW,gq=fj,vq=GB,mq=TU,bq=function(t){function e(e){var i=t.call(this,e,mq.SeriesView.POINT_CLASS)||this;return i._segments=new yq.ElementPool(i,gq.PathElement),i._decimal=0,i.add(i._back=new gq.PathElement(e)),i._back.setTransparent(!0),i}return _q(e,t),e.prototype.prepareSegments=function(t,e,i,r){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var r=this,n=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=n/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setPath(vq.SvgShapes.rectangle(e,i,n,-o)),this._segments.forEach((function(a,l,u){l===u-1&&r._decimal>0?a.setPath(vq.SvgShapes.rectangle(e,i-t[2*l],n,o<0?s(1,r._decimal):s(-1,-r._decimal))):a.setPath(vq.SvgShapes.rectangle(e,i-t[2*l],n,s(-1,t[2*l]-t[2*l+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(AW.GroupElement),xq=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new yq.ElementPool(i._pointContainer,bq),i}return _q(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._layoutPoints=function(e,i){var r=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,r),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){var s=this._prevRate;isNaN(s+t.wSave)||(n=t.wSave+(n-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=n,t.hPoint=o,t.layout(this._pts,i,r)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,r,n=t.options,o=t._yAxisObj.axisMax(),s=n.segmented,a=n.segmentGap||0,l=this._pts=[],u=0,c=t._yAxisObj,p=c.axisMin(),h=t.getBaseValue(c)||0,f=c.getPos(c.options.reversed?0:e,h);for(r=n.maxCount>0?n.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(r-1))/r;l.length<2*r;)l.push(u,u+i),u+=i+a;l[l.length-1]=e;var d=l.length/2;this._bars.forEach((function(t){var r=t.point;if(t.setVis(!r.isNull)){for(var a=r.yValue>=h?(e-f)/e*(r.yValue-h)/(o-h):f/e*(h-r.yValue)/(h-p),u=-1,c=0,_=0;_<d-1;_++)if(a>=l[2*_]/e&&a<l[2*(_+1)]/e){u=_+1,c=!s&&a<l[2*_+1]/e?a*e-l[2*_]:i;break}u<0&&(u=d,c=i),0===a&&(u=0),t.prepareSegments(d,u,c,n.backStyle)}}))},e}(mq.BasedSeriesView);dq.EqualizerSeriesView=xq;var wq={},Sq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(wq,"__esModule",{value:!0}),wq.ErrorBarSeriesView=void 0;var Pq=aW,Aq=KG,Oq=IB,Cq=TU,Eq=function(t){function e(e){return t.call(this,e,Cq.SeriesView.POINT_CLASS)||this}return Sq(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new Aq.LineElement(t)),this.add(this._whiskerUp=new Aq.LineElement(t)),this.add(this._whiskerDown=new Aq.LineElement(t)),this.add(this._back=new Oq.RectElement(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(Cq.RangeElement),Vq=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new Pq.ElementPool(i._pointContainer,Eq),i}return Sq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(Cq.RangedSeriesView);wq.ErrorBarSeriesView=Vq;var Tq={},kq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Tq,"__esModule",{value:!0}),Tq.FunnelSeriesView=void 0;var Lq=iM,Nq=aW,Mq=kj,jq=nM,Rq=TU,Bq=kU,Dq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kq(e,t),e}(Rq.PointElement),Iq=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new Nq.ElementPool(i._pointContainer,Dq),i.add(i._lineContainer=new Rq.PointLabelLineContainer(e)),i}return kq(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype.getClipContainer=function(){return null},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&Bq.SeriesAnimation.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._refreshZombie=function(){this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var r=this;this._segments.prepare(i.length,(function(n,o){var s=n.point=i[o];r._preparePoint(t,e,s,n)}))},e.prototype.$_calcRates=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=0,o=0;if(t.forEach((function(t){n+=t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})),r>1||r>0&&!e)if(1==r&&t[0]._isDeleted())(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr;else if(1===r&&t[0]._vr<1){(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr}else{for(var s=0;s<r-1;s++){var a=t[s],l=(0,jq.fixnum)(a.yValue*(a===e?i:a._isDeleted()?a._vr:1)/n)||0;a.yRate=100*l,a.yPos=o,a.height=l,o+=l}t[s].yPos=o,t[s].height=1-o}else if(1==r){a=t[0];o=1-(l=(0,jq.fixnum)(i)),a.yRate=100*l,a.yPos=o,a.height=l,a.yPos=o,a.height=1-o}},e.prototype.$_layoutSegments=function(t,e){var i,r,n=this,o=function(t){return _?x+(O-x)*(S-t)/(S-C):x+(O-x)*(t-w)/(C-w)},s=this.model,a=this._labelViews(),l=s.pointLabel,u="inside"===s.getLabelPos(l),c=l.getOffset(),p=l.getDistance(),h=l.getAlign(),f=null==a?void 0:a.textAlign(),d=this._lineContainer.setVis(l.connector.visible)?this._lineContainer:null,_=s.options.reversed,y=l.options.opposite,g=s.getSize(t,e),v=s.getNeckSize(g.width,g.height),m=new Mq.PathBuilder,b=s.getCenter(t,e),x=b.x-g.width/2,w=b.y-g.height/2,S=w+g.height,P=x+g.width/2,A=g.height-v.height,O=x+(g.width-v.width)/2,C=_?S-A:w+A,E=[],V=new Mq.PathBuilder,T=(null==a?void 0:a.getWidth(0))||0;this._lineContainer.setStyleOrClass(l.connector.options.style),this._segments.forEach((function(s){var l=s.point;if(s.setVis(!l.isNull)){var b=l.yPos*g.height,x=(l.yPos+l.height)*g.height,k=_?S-b:w+b,L=_?S-x:w+x,N=x<A,M=void 0,j=void 0,R=void 0,B=void 0;if(r=null==d?void 0:d.get(l),b>=A?(j=(M=O)+v.width,m.move(M,k).lines(j,k,j,L,M,L),s.ny=s.nx1=NaN):N?(j=(M=o(k))+2*(P-M),B=(R=o(L))+2*(P-R),m.move(M,k).lines(j,k,B,L,R,L),s.ny=NaN,s.nx1=R-M,s.nx2=B-M):(j=(M=o(k))+2*(P-M),B=(R=O)+v.width,m.move(M,k).lines(j,k,B,C,B,L,R,L,R,C),s.nx1=R-M,s.nx2=B-M,s.ny=(0,Lq.absv)(C-k),s.nx3=R,s.nx4=B),s.setPath(m.close(!0)),l.xPos=P,l.yPos=k+(L-k)/2,a&&(i=a.get(l,0))&&i.visible){if(u){null==r||r.setVis(!1);var D=i.isDomAnimating(),I=i.getBBox(),G=N?(j-M+(B-R))/2:v.width;switch(!D&&i.layout(f||"center"),h){case-1:i.trans(l.xPos-G/2+c,l.yPos-I.height/2);break;case 1:i.trans(l.xPos+G/2-I.width-c,l.yPos-I.height/2);break;default:i.trans(l.xPos-I.width/2,l.yPos-I.height/2)}}else-1===h?n.$_layoutLabelAligned(!1,l,s,i,f,y,r,V,g,P,c,p):1==h?n.$_layoutLabelEnded(!1,l,s,i,f,y,r,V,P,c,p,T,t,e):n.$_layoutLabelOutside(!1,l,s,i,f,y,r,V,P,c,p);i.setContrast(u&&s.dom),E.push(i),i.setPosY(i.ty),n._layoutLabelRotation(i)}else r&&r.setVis(!1)}}));var k=l.options.convergent,L=l.options.dedupeMode,N=l.options.overflow;a&&(u||0===h?"preserveOrder"!==L&&"largestFirst"!==L||a.dedupe(E,d,L):(null==a?void 0:a.arrangeVertical(this,E,d,e,k,L,N))&&this._segments.forEach((function(o){var s=o.point;s.isNull||(i=a.get(s,0),r=null==d?void 0:d.get(s),(null==i?void 0:i.visible)&&(-1===h?n.$_layoutLabelAligned(!0,s,o,i,f,y,r,V,g,P,c,p):1==h?n.$_layoutLabelEnded(!0,s,o,i,f,y,r,V,P,c,p,T,t,e):n.$_layoutLabelOutside(!0,s,o,i,f,y,r,V,P,c,p)))})))},e.prototype.$_calcX=function(t,e,i,r){var n=e.getBBox(),o=r?-1:1,s=n.height,a=i+o*n.width/2;return isNaN(e.ny)?isNaN(e.nx1)||(a-=0===s?0:o*(e.nx1*s/2)/s):e.ny>n.height/2?a-=o*(e.nx1*s/2)/e.ny:a=r?e.nx3:e.nx4,a},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u,c,p){var h=r.isDomAnimating(),f=t?r.getBBoxEx():r.getBBox(),d=e.yPos;!t&&!h&&r.layout(n||(o?"right":"left"));var _=e.xPos=this.$_calcX(e,i,u,o),y=u;if(o?y-=l.width/2:y+=l.width/2,s){var g=t?f.y+f.height/2-d:0;o?s.setLine(a.reset(0,0).line(y-_-p,g).end()):s.setLine(a.reset(0,0).line(y+p-_,g).end()),s.trans(_,d)}t||(o?y-=c+p+f.width:y+=p+c,r.trans(y,d-f.height/2))},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h,f){var d=r.isDomAnimating(),_=t?r.getBBoxEx():r.getBBox(),y=e.yPos;!t&&!d&&r.layout(n||(o?"right":"left"));var g,v=e.xPos=this.$_calcX(e,i,l,o);if(g=o?c+u+p:h-c-p-u,s){var m=t?_.y+_.height/2-y:0;o?s.setLine(a.reset(0,0).line(g-v-c,m).end()):s.setLine(a.reset(0,0).line(g+c-v,m).end()),s.trans(v,y)}t||(o?g-=u+c+_.width:g+=c+u,r.trans(g,y-_.height/2))},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u,c){var p=r.isDomAnimating(),h=t?r.getBBoxEx():r.getBBox(),f=e.yPos;!t&&!p&&r.layout(n||(o?"right":"left"));var d=this.$_calcX(e,i,l,o);if(s){var _=t?h.y+h.height/2-f:0;o?s.setLine(a.reset(0,0).line(-c,_).end()):s.setLine(a.reset(0,0).line(c,_).end()),s.trans(d,f)}t||(o?d-=c+u+h.width:d+=c+u,r.trans(d,f-h.height/2))},e}(Rq.WidgetSeriesView);Tq.FunnelSeriesView=Iq;var Gq={},Fq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Gq,"__esModule",{value:!0}),Gq.HistogramSeriesView=void 0;var zq=iM,$q=aW,Hq=GB,Wq=TU,Uq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fq(e,t),e.prototype.layout=function(t,e){this.setPath(Hq.SvgShapes.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(Wq.BoxPointElement),Yq=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new $q.ElementPool(i._pointContainer,Uq),i}return Fq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n,t.hPoint=o,t.layout(i,r)},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=this._inverted,o=this._getGrowRate(),s=r.pointLabel,a=this._labelViews(),l=r._xAxisObj,u=r._yAxisObj,c=n?t:e,p=n?e:t,h=u.getPos(c,r.getBaseValue(u)),f=n?0:e,d=a&&(0,zq.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(s),labelOff:r.getLabelOff(s.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,side:0,base:0});this._getPointPool().forEach((function(r,_){var y=r.point,g=l.getPos(p,y.min),v=l.getPos(p,y.max),m=u.getPos(c,y.yValue),b=v-g+(v>g?-1:1),x=m-h,w=g+(v-g)/2,S=f;y.xPos=w,y.yPos=S-=m,i._layoutPoint(r,_,w,S+x,b,x*o),d&&(d.labelView=a.get(y,0))&&(n&&(S=p-w,w=f,y.yPos=S,y.xPos=w+=u.getPos(c,y.yGroup)),d.pointView=r,d.x=w,d.y=S,d.wPoint=b,d.hPoint=x,i._layoutLabel(s,d,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,r=this.model._yAxisObj,n=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var l=s.point,u=i.getPos(t,l.min),c=i.getPos(t,l.max),p=u+(c-u)/2,h=r.getPos(e,s.point.yValue)*o,f=(0,zq.maxv)(1,c-u-1);l.xPos=p,l.yPos=n-h,s.wPoint=f,s.hPoint=h,s.layout(p,n)}))},e}(Wq.ClusterableSeriesView);Gq.HistogramSeriesView=Yq;var Xq={},qq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Xq,"__esModule",{value:!0}),Xq.LollipopSeriesView=void 0;var Zq=aW,Kq=fj,Jq=KG,Qq=GB,tZ=TU,eZ=function(t){function e(e){var i=t.call(this,e,tZ.SeriesView.POINT_CLASS)||this;return i.add(i._line=new Jq.LineElement(e,"rct-lollipop-point-bar")),i.add(i._marker=new Kq.PathElement(e,"rct-lollipop-point-marker")),i}return qq(e,t),e.prototype.layout=function(t){var e,i=null!==(e=this.point.radius)&&void 0!==e?e:0;this._line.setVLine(0,0,t),Qq.SvgShapes.setShape(this._marker,this.point.shape,i,i),this._marker.trans(-i,-i)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(AW.GroupElement),iZ=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return qq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r-o),t.layout(o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._marker.setFill(e)},e.prototype.$_parepareBars=function(t,e,i){var r=this,n=e.marker,o=n._style;n.options.styleCallback,this._bars||(this._bars=new Zq.ElementPool(this._pointContainer,eZ)),this._bars.prepare(i.length,(function(t,s){var a=t.point=i[s];r._setPointStyle(t,e,a),o&&t._marker.setStyleOrClass(o);var l=n.getMarkerStyle(a);l&&t.internalSetStyleOrClass(l)}))},e}(tZ.BasedSeriesView);Xq.LollipopSeriesView=iZ;var rZ={},nZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(rZ,"__esModule",{value:!0}),rZ.OhlcSeriesView=void 0;var oZ=iM,sZ=aW,aZ=KG,lZ=IB,uZ=TU,cZ=function(t){function e(e){return t.call(this,e,uZ.SeriesView.POINT_CLASS)||this}return nZ(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=-t/2,o=0+e-e*((0,oZ.minv)(i.openValue,i.closeValue)-i.lowValue)/r,s=0+e-e*((0,oZ.maxv)(i.openValue,i.closeValue)-i.lowValue)/r,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(n,0,t,e),this._tickOpen.setHLine(o,n,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new aZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new aZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._bar=new aZ.LineElement(t)),this.add(this._back=new lZ.RectElement(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(uZ.RangeElement),pZ=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new sZ.ElementPool(i._pointContainer,cZ),i}return nZ(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r),t.layout(n,o)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e}(uZ.RangedSeriesView);rZ.OhlcSeriesView=pZ;var hZ={},fZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(hZ,"__esModule",{value:!0}),hZ.ParetoSeriesView=void 0;var dZ=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return fZ(e,t),e}(xY.LineSeriesBaseView);hZ.ParetoSeriesView=dZ;var _Z={},yZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(_Z,"__esModule",{value:!0}),_Z.PieSeriesView=void 0;var gZ=rM,vZ=GB,mZ=cj,bZ=iM,xZ=aW,wZ=kj,SZ=fj,PZ=nM,AZ=dU,OZ=PU,CZ=uj,EZ=qB,VZ=FW,TZ=TU,kZ=kU,LZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yZ(e,t),e.prototype.setOff=function(t){return this.off=(0,bZ.absv)(t),this},e}(SZ.PathElement),NZ=function(t){function e(e){return t.call(this,e,TZ.SeriesView.POINT_CLASS)||this}return yZ(e,t),e.prototype.render=function(t,e,i){this._assignShape(i,!1)},e}(OZ.SectorElement),MZ=function(t){function e(e){var i=t.call(this,e,TZ.SeriesView.POINT_CLASS)||this;return i._outPath={},i._inPath={},i.add(i._sectorView=new OZ.SectorElement(e)),i}return yZ(e,t),e.prototype.setSides=function(t,e,i,r,n){var o=this.point,s=(0,PZ.fixnum)(PZ.PI),a=(0,PZ.fixnum)(((t?o.startAngle:o.startAngle+o.angle)+PZ.PI/2+PZ.PI_2)%PZ.PI_2),l=(0,PZ.fixnum)(a+(t?o.angle:-o.angle)-1e-4+PZ.PI_2)%PZ.PI_2,u=s-(a+(0,bZ.absv)(a-l)/2);this._side1View=e.setOff(s-a),this._side2View=i.setOff(s-l),a<=PZ.PI/2&&!(l>=a&&l<PZ.PI/2)||l>=3*PZ.PI/2&&!(a<l&&a>3*PZ.PI/2)?(this._outArcView=r.setOff((0,bZ.minv)(e.off,i.off)),this._inArcView=n.setOff(1/0)):a>=3*PZ.PI/2&&l<=PZ.PI/2?(this._outArcView=r.setOff(1/0),this._inArcView=n.setOff(u)):a>=PZ.PI/2&&l<=3*PZ.PI/2?(this._outArcView=r.setOff((0,bZ.minv)(this._side2View.off,this._side1View.off)),this._inArcView=n.setOff(1/0)):(this._outArcView=r.setOff(u),a>=0&&a<=PZ.PI&&this._outArcView.setOff((0,bZ.minv)(this._outArcView.off,this._side1View.off)),l>=PZ.PI&&l<PZ.PI_2&&this._outArcView.setOff((0,bZ.minv)(this._outArcView.off,this._side2View.off)),this._inArcView=n.setOff(u))},e.prototype.render=function(t,e,i){var r=vZ.SvgShapes.isCircled(i.angle),n=getComputedStyle(this._sectorView.dom).fill,o=i.innerRadius>0,s=i.depth,a=this._outPath,l=this._inPath,u=i.clockwise?i.angle:-i.angle;gZ.isIE&&(n=this.control.getIEColor(n)),this._outArcView.setPath(vZ.SvgShapes.arc3d(i.cx,i.cy,i.rx,i.ry,s,i.start,i.start+u,i.clockwise,a)),this._inArcView.setVis(o)&&this._inArcView.setPath(vZ.SvgShapes.arc3dInner(i.cx,i.cy,i.rx*i.innerRadius,i.ry*i.innerRadius,s,i.start,i.start+u,i.clockwise,l)),this._side1View.setVis(!r),this._side2View.setVis(!r),this._side1View.visible&&(o?(this._side1View.setPath(vZ.SvgShapes.polygon(l.x1,l.y1,a.x1,a.y1,a.x1,a.y1+s,l.x1,l.y1+s)),this._side2View.setPath(vZ.SvgShapes.polygon(a.x2,a.y2,l.x2,l.y2,l.x2,l.y2+s,a.x2,a.y2+s))):(this._side1View.setPath(vZ.SvgShapes.polygon(i.cx,i.cy,a.x1,a.y1,a.x1,a.y1+s,i.cx,i.cy+s)),this._side2View.setPath(vZ.SvgShapes.polygon(i.cx,i.cy,a.x2,a.y2,a.x2,a.y2+s,i.cx,i.cy+s)))),this._sectorView._assignShape(i,!1),this._side1View.setStyle("fill",mZ.Color.interpolate("#000",n,.2)),this._side2View.setStyle("fill",mZ.Color.interpolate("#000",n,.2)),this._inArcView.visible&&this._inArcView.setStyle("fill",mZ.Color.interpolate("#000",n,.2)),this._outArcView.setStyle("fill",mZ.Color.interpolate("#000",n,.1))},e.prototype.focusView=function(t){this._side1View.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._side2View.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._inArcView.setBoolData(TZ.SeriesView.DATA_FOCUS,t),this._outArcView.setBoolData(TZ.SeriesView.DATA_FOCUS,t)},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._side1View.contains(e)||this._side2View.contains(e)||this._inArcView.contains(e)||this._outArcView.contains(e)},e.prototype.setVis=function(e){return this._side1View.setVis(e),this._side2View.setVis(e),this._inArcView.setVis(e),this._outArcView.setVis(e),t.prototype.setVis.call(this,e)},e.prototype.addClass=function(e){return this._side1View&&(this._side1View.addClass(e),this._side2View.addClass(e),this._inArcView.addClass(e),this._outArcView.addClass(e)),t.prototype.addClass.call(this,e)},e.prototype.removeClass=function(e){return this._side1View&&(this._side1View.removeClass(e),this._side2View.removeClass(e),this._inArcView.removeClass(e),this._outArcView.removeClass(e)),t.prototype.removeClass.call(this,e)},e.prototype.trans=function(e,i){return this._side1View.trans(e,i),this._side2View.trans(e,i),this._inArcView.trans(e,i),this._outArcView.trans(e,i),t.prototype.trans.call(this,e,i)},e.prototype.transEx=function(e,i,r,n){return this._side1View.transEx(e,i,r,n),this._side2View.transEx(e,i,r,n),this._inArcView.transEx(e,i,r,n),this._outArcView.transEx(e,i,r,n),t.prototype.transEx.call(this,e,i,r,n)},e}(SZ.RcElement),jZ=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._deep=!1,i._pb=new wZ.PathBuilder,i._cx=0,i._cy=0,i._depth=0,i._ratio=1,i._rx=0,i._ry=0,i._rxInner=0,i._ryInner=0,i._slicedOff=0,i.add(i._circle=new AZ.CircleElement(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new VZ.ChartTextElement(e,"rct-pie-series-inner")),i._textView._text.anchor=CZ.TextAnchor.MIDDLE,i._pointContainer.add(i._sideContainer=new SZ.LayerElement(e,"rct-pie-series-sides")),i._labelContainer.add(i._lineContainer=new TZ.PointLabelLineContainer(e)),i}return yZ(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var r=i.innerText,n=i.depth.getLength()>0;this._depth=i.depth.getLength(),this._ratio=this._depth>0?i.depth.options.ratio:1,this.setBoolData("deep",n),this.$_prepareSectors(e,i,this._visPoints,n),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&r.visible)&&(this._textView.setModel(e,r,r.options.icon?r.getUrl(r.options.icon):null,null),r.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this._deep?(this._ry=this._rx*this._ratio,this._ryInner=this._rxInner*this._ratio):(this._ry=this._rx,this._ryInner=this._rxInner),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rx=this.model.getRadius(t,e),this._rxInner=this.model.getInnerRadius(this._rx)},e.prototype.$_calcGroup=function(t,e){var i=this.model,r=i._group,n=Math.floor(r.getPolarSize(t,e)/2),o=r.getInnerRadius(n)*n,s=n-o;this._rx=o+(i._groupPos+i._groupSize)*s,this._rxInner=(o+i._groupPos*s)/this._rx},e.prototype._runShowEffect=function(t){var e=this;t&&kZ.SeriesAnimation.grow(this,(function(t){var i=e._sectors.count>1&&e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if((t instanceof NZ||t instanceof MZ)&&this.model.options.autoSlice){var e=this._sectors.count>1&&this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._refreshZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.focusPointView=function(t,e){t instanceof MZ&&t.focusView(e)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i,r){var n=this,o=i.length,s=this._sides;r!=this._deep&&this._sectors&&(this._sectors.prepare(0),this._sectors=null,s&&(s.prepare(0),s=this._sides=null)),this._sectors||(r?(this._sectors=new xZ.ElementPool(this._pointContainer,MZ,null),s=this._sides=new xZ.ElementPool(this._sideContainer,LZ,"rct-pie-series-side")):this._sectors=new xZ.ElementPool(this._pointContainer,NZ,null)),this._deep=r,s&&s.prepare(4*o,(function(t,e){return t.index=e})),this._sectors.prepare(o,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=this._model.options.clockwise?1:-1,o=t.filter((function(t){return(t.visible||t===e)&&!t.isNull})).map((function(t){return t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})).reduce((function(t,e){return t+e}),0),s=this.model._totalRad*this._getGrowRate(),a=this.model._startRad%PZ.PI_2;if(r>1||r>0&&!e)t.forEach((function(t){1===r&&t._isDeleted()||1===r&&t._vr<1?(t.startAngle=a,t.angle=s*n*t._vr,t.yRate=100):t.isNull||(t.yRate=(0,PZ.fixnum)(t.yValue*(t===e?i:t._isDeleted()?t._vr:1)/o)||0,t.startAngle=a,a+=t.angle=n*t.yRate*s,t.yRate*=100)}));else if(1==r){var l=t[0];l.startAngle=a,l.angle=n*i*s,l.yRate=100}},e.prototype.$_layoutSectors=function(t,e,i){var r,n,o=this,s=this.model,a=s.options.clockwise,l=this._getGrowRate(),u=s.getCenter(e,i),c=this._cx=u.x,p=this._cy=u.y,h=this._rx,f=this._rxInner,d=this._depth,_=this._ratio,y=this._sides,g=s.pointLabel,v=g.connector.options.curved,m=this._labelViews(),b="inside"===s.getLabelPos(g),x=(0,bZ.pickNum)(g.options.radius,.7),w=this._pb,S=g.getDistance(b,h,f),P=g.getAlign(),A=null==m?void 0:m.textAlign(),O=this._lineContainer.setVis(g.connector.visible)?this._lineContainer:null,C=this._slicedOff=s.getSliceOffset(h)*l,E=[],V=[],T=[],k=(null==m?void 0:m.getWidth(0))||0,L=this._sectors.count;if(this._lineContainer.setStyleOrClass(g.connector.options.style),!m||A||P||(A="center"),this._textView.visible){var N=this._textView._icon,M=this._textView._text.getBBox(),j=c,R=p;if(N){var B=(0,bZ.pickNum)(this.model.innerText.options.iconGap,0),D=M.width,I=M.height,G=N.getBBox(),F=G.width,z=G.height;switch(this.model.innerText.getIconPos()){case"right":N.trans(D/2+B,(I-z)/2),j-=(F+B)/2;break;case"top":N.trans(F/-2,-(z+B)),R+=z+B/2;break;case"bottom":N.trans(F/-2,I+B),R-=(z+B)/2;break;default:N.trans(-(D/2+F+B),(I-z)/2),j+=(F+B)/2}}this._textView.trans(j,R-M.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rx),this.$_calcAngles(t),this._sectors.forEach((function(t,u){var g=t.point;if(y){var N=4*u;t.setSides(a,y.get(N),y.get(N+1),y.get(N+2),y.get(N+3))}if(n=null==O?void 0:O.get(g),g.isNull)t.setVis(!1),m&&(r=m.get(g,0))&&r.setVis(!1),null==n||n.setVis(!1);else{var M=L>1&&g.sliced,j=g.startAngle,R=j+g.angle/2,B=0,D=0;if(M&&l>=1&&!t.isDomAnimating()&&(B+=(0,bZ.cos)(R)*C,D+=(0,bZ.sin)(R)*C),t.trans(B,D).setVis(!0),g.xPos=c+(0,bZ.cos)(R)*(C+h*x),g.yPos=p+(0,bZ.sin)(R)*(C+h*x),t.render(m,null,{cx:c,cy:p,rx:h,ry:h*_,innerRadius:f,start:j,angle:(0,bZ.absv)(g.angle),clockwise:a,depth:d}),m&&(r=m.get(g,0))){var I=s.getLabelOff2(g);b?(null==n||n.setVis(!1),o.$_layoutLabelInside(g,r,A,I,S,M?C:0)):(-1===P?o.$_layoutLabelAligned(!1,g,r,A,n,w,v,I,S,M?C:0):1==P?o.$_layoutLabelEnded(!1,g,r,A,n,w,v,I,S,M?C:0,k,e,i):o.$_layoutLabelOutside(!1,g,r,A,n,w,v,I,S,M?C:0))?E.push(r):V.push(r),r.setContrast(b&&t.dom).setVis(!0),T.push(r),o._layoutLabelRotation(r)}else null==n||n.setVis(!1)}})),y&&y.sortDom((function(t,e){var i=e.off-t.off;return 0===i&&(i=t.index-e.index),i}));var $=g.options.convergent,H=g.options.dedupeMode,W=g.options.overflow;m&&(b||0===P?"preserveOrder"!==H&&"largestFirst"!==H||m.dedupe(T,O,H):m.arrangeVertical(this,E,O,i,$,H,W)+m.arrangeVertical(this,V,O,i,$,H,W)>0&&this._sectors.forEach((function(t){var a=t.point;if(!a.isNull){var l=L>1&&a.sliced,u=s.getLabelOff2(a);r=m.get(a,0),n=null==O?void 0:O.get(a),(null==r?void 0:r.visible)&&(-1===P?o.$_layoutLabelAligned(!0,a,r,A,n,w,v,u,S,l?C:0):1==P?o.$_layoutLabelEnded(!0,a,r,A,n,w,v,u,S,l?C:0,k,e,i):o.$_layoutLabelOutside(!0,a,r,A,n,w,v,u,S,l?C:0))}})))},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating(),p=e.startAngle+e.angle/2,h=this._cx,f=this._cy,d=this._rx,_=this._ry,y=d+u,g=_+u,v=h+(0,bZ.cos)(p)*y,m=f+(0,bZ.sin)(p)*g,b=v<h;!t&&!c&&i.layout(r||(b?"right":"left"));var x,w,S=i.getBBox(),P=m-S.height/2,A=f+(0,bZ.sin)(p)*_;if(b?(w=(x=h+(0,bZ.cos)(Math.PI)*d-l)-S.width-a,h+(0,bZ.cos)(Math.PI)*y-l,S.width):(w=(x=h+(0,bZ.cos)(0)*d+l)+a,h+(0,bZ.cos)(0)*y+l),n&&n.setVis(y>0)){var O=t?i.ty-P:0;s?n.setLine(o.reset(0,O).quad(.7*(v-x),O,v-x,0).end()):n.setLine(o.reset(0,O).line(v-x,0).end()),n.setPos(x,A),!c&&n.trans(x,m)}return t||(i.setPos(w,A-S.height/2),!c&&i.trans(w,A-S.height/2)),b},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h){var f=i.isDomAnimating(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx,v=this._ry,m=g+u,b=v+u,x=_+(0,bZ.cos)(d)*m,w=y+(0,bZ.sin)(d)*b,S=x<_;!t&&!f&&i.layout(r||(S?"right":"left"));var P,A,O,C=i.getBBox(),E=w-C.height/2,V=y+(0,bZ.sin)(d)*v;if(S?(P=l+c+a,O=l+c-C.width,A=P):(O=p-l-c,A=P=p-l-c-a),n&&n.setVis(m>0)){var T=t?i.ty-E:0;s?n.setLine(o.reset(0,T).quad(0,T,x-A,0).end()):n.setLine(o.reset(0,T).line(x-A,0).end()),n.setPos(P,V),!f&&n.trans(A,w)}return t||(i.setPos(O,V-C.height/2),!f&&i.trans(O,V-C.height/2)),S},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating();!t&&!c&&i.layout(r);var p,h,f=i.getBBox(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx+.5*l,v=this._ry+.5*l,m=(0,bZ.cos)(d)*u,b=(0,bZ.sin)(d)*u,x=_+(0,bZ.cos)(d)*this._rx,w=y+(0,bZ.sin)(d)*this._ry,S=_+(0,bZ.cos)(d)*g,P=y+(0,bZ.sin)(d)*v,A=S<_;return h=p=A?S-.2*l:S+.2*l,n&&n.setVis(g>0)&&(s?n.setLine(o.reset(0,0).quad(S-x,P-w,p-x,P-w).end()):n.setLine(o.reset(0,0).lines(S-x,P-w,p-x,P-w).end()),n.setPos(x,w),!c&&n.trans(x+m,w+b)),t||(A?h-=f.width+a:h+=a,P-=f.height/2,i.setPos(h,P),!c&&i.trans(h+m,P+b)),A},e.prototype.$_layoutLabelInside=function(t,e,i,r,n,o){var s=e.isDomAnimating(),a=this.model,l=a.pointLabel,u=l.options.autoRotation,c=l.options.rotationMode,p=a.options.clockwise;!s&&e.layout(i||"center");var h=e.getBBox(),f=this._rx*this._rxInner,d=t.startAngle+t.angle/2;if(u){var _=a._totalRad,y=(0,bZ.minv)(a.options.totalAngle||360,360);if("angle"===c){var g=d/_*y+90,v=(g+a.options.startAngle)%360;g+=(v+=p?0:360)>180?90:-90,e.setRotation(h.width/2,h.height/2,g)}else this.applyAutoRotation(e,d,_,y)}var m=l.options.align===EZ._PointLabelAlign.NEAR?.3:l.options.align===EZ._PointLabelAlign.NONE?.5:.7,b=f>0?f+(this._rx-f)/2:u?"angle"===c?this._rx*m+r:.8*this._rx+r:.7*this._rx+r,x=this._deep?b*this._ratio:b,w=Math.cos(d),S=Math.sin(d),P=this._cx+w*b,A=this._cy+S*x;e.move(P-h.width/2,A-h.height/2),P=this._cx+w*(o+b),A=this._cy+S*(o+x),e.trans(P-h.width/2,A-h.height/2)},e.prototype.$_slice=function(t,e,i){if(!(e&&this._sectors.count<2)){var r=this.model,n=this._labelViews(),o=r.pointLabel.getAlign(),s=this._slicedOff,a=r.options.autoSlice?r.options.sliceDuration:0,l=t.point,u=l.startAngle+l.angle/2;if((l.sliced=e)?t.transEx((0,bZ.cos)(u)*s,(0,bZ.sin)(u)*s,a):t.transEx(0,0,a),n){var c=r.pointLabel,p=this._lineContainer,h=c.connector.options.curved,f="inside"===r.getLabelPos(c),d=n.get(l,0),_=r.pointLabel.getDistance(f,this._rx,this._rxInner);if(d){var y=!f&&p.get(l);if(i){var g=n.textAlign();!n||g||o||(g="center"),f?this.$_layoutLabelInside(l,d,g,c.getOffset(),_,s):0===o&&this.$_layoutLabelOutside(!1,l,d,g,y,this._pb,h,c.getOffset(),_,s)}if(e){var v=d.tx,m=d.ty,b=y.tx,x=y.ty;(f||0===o)&&(d.trans(d.x,d.y).transEx2(v,m,a),y&&y.trans(y.x,y.y).transEx(b,x,a))}else(f||0===o)&&(d.trans(d.tx,d.ty).transEx2(d.x,d.y,a),y&&y.trans(y.tx,y.ty).transEx(y.x,y.y,a))}}}},e}(TZ.WidgetSeriesView);_Z.PieSeriesView=jZ;var RZ={},BZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(RZ,"__esModule",{value:!0}),RZ.ScatterSeriesView=RZ.ScatterSeriesPointView=void 0;var DZ=iM,IZ=aW,GZ=rM,FZ=TU,zZ=kU,$Z=GB,HZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return BZ(e,t),e.prototype.setHoverRate=function(t,e,i){var r=this.point,n=$Z.SvgShapes.getDrawer(t.model.getShape(r)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._hoverRadius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(n(s)),this.trans(r.xPos,r.yPos)},e.prototype.endHover=function(t,e){delete this._hoverRadius},e}(FZ.MarkerSeriesPointView);RZ.ScatterSeriesPointView=HZ;var WZ=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return BZ(e,t),e.prototype._createMarkers=function(t){return new IZ.ElementPool(t,HZ)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&zZ.SeriesAnimation.grow(this)},e.prototype.$_prepareMarkers=function(t,e){var i=this,r=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(r,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,r=this,n=this.model,o=n.options,s=this._inverted,a=n.needClip(!1),l=n._xAxisObj,u=n._yAxisObj,c=this._polar=n.chart._body.getPolar(l),p=this._getGrowRate(),h=this._radius=Math.max(0,+n.options.radius||0)*p,f=+o.rotation||0,d=+o.jitterX||0,_=+o.jitterY||0,y=n.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=u.prev(s?t:e),x=l.prev(c?c.total:s?e:t),w=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var A=$Z.SvgShapes.getDrawer(n.getShape(S)),O=GZ.Utils.jitter(S.xValue,d),C=GZ.Utils.jitter(S.yGroup,_),E=void 0,V=void 0;if(c){var T=c.start+l.getPos(x,O),k=u.getPos(c.rd,C)*p;E=c.cx+k*(0,DZ.cos)(T),V=c.cy+k*(0,DZ.sin)(T)}else E=l.getPos(x,O),V=w-u.getPos(b,C),s&&(E=u.getPos(b,C),V=e-l.getPos(x,O));if(S.xPos=E,S.yPos=V,o.setVis(!!c||!a||E>=0&&E<=t&&V>=0&&V<=e)){var L=o._hoverRadius||h;o.setPath(A(L)),o.trans(E,V).rotate(f),P&&r._layoutLabelView(i,g,v,L,E,V)}else P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=this.model.options.radius,n=i.reduce((function(i,n){return i.distance(r,t,e)<n.distance(r,t,e)?i:n}));return{pv:n,dist:n.distance(r,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(FZ.MarkerSeriesView);RZ.ScatterSeriesView=WZ;var UZ={},YZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(UZ,"__esModule",{value:!0}),UZ.WaterfallSeriesView=void 0;var XZ=aW,qZ=fj,ZZ=KG,KZ=TU,JZ=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new XZ.ElementPool(i._pointContainer,KZ.BarElement),i.add(i._lineContainer=new qZ.LayerElement(e,"rct-waterfall-series-lines")),i._lines=new XZ.ElementPool(i._lineContainer,ZZ.LineElement),i}return YZ(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return Math.min(t.from,t.to)},e.prototype._getHighValue=function(t){return Math.max(t.from,t.to)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){var s=t.point;if(t.wPoint=n,t.hPoint=o,r+=o,t.layout(i,r,this._rd,this._rd,0,0,this._inverted),e>0){var a=this._lines.get(e-1),l=s.y,u=void 0;u=s._isSum||s._isMid?l<0?r:r-o:l<0?r-o:r,a.setHLine(u,this._xPrev+this._wPrev/2,i-n/2)}this._xPrev=i,this._wPrev=n},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i._isSum&&e.options.sumColor?this._setPointColor(t,e.options.sumColor):i.y<0&&e.options.negativeColor?this._setPointColor(t,e.options.negativeColor):i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o);var s=o._isMid?"rct-waterfall-point-mid":o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"";s&&t.setStyleOrClass(s)})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(KZ.RangedSeriesView);UZ.WaterfallSeriesView=JZ;var QZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),tK=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},eK=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},iK=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sU,"__esModule",{value:!0}),sU.BodyView=sU.ZoomButton=sU.AxisGuideContainer=sU.AxisGridRowContainer=sU.AxisGuideRangeView=sU.AxisGuideLineView=sU.AxisGuideView=sU.AxisBreakView=sU.AxisGridView=void 0,sU.createAnnotationView=gJ,sU.createSeriesView=vJ;var rK=aU,nK=iM,oK=aW,sK=kj,aK=fj,lK=nM,uK=rM,cK=dU,pK=zW,hK=KG,fK=IB,dK=PU,_K=GB,yK=rB,gK=DB,vK=lD,mK=NI,bK=fG,xK=xG,wK=xz,SK=qz,PK=NG,AK=GF,OK=qF,CK=pz,EK=Tz,VK=Iz,TK=n$,kK=y$,LK=MG,NK=O$,MK=D$,jK=Y$,RK=eH,BK=gH,DK=OH,IK=xI,GK=aI,FK=dI,zK=EU,$K=mW,HK=VU,WK=FW,UK=TU,YK=iY,XK=aY,qK=fY,ZK=bY,KK=WY,JK=oX,QK=pX,tJ=wX,eJ=AX,iJ=NX,rJ=$X,nJ=JX,oJ=oq,sJ=dq,aJ=wq,lJ=Tq,uJ=Gq,cJ=xY,pJ=Xq,hJ=rZ,fJ=hZ,dJ=_Z,_J=RZ,yJ=UZ;function gJ(t,e){return new(zK.annotation_view_types[e._type()])(t)}function vJ(t,e){return new(UK.series_view_types[e._viewType()])(t)}UK.SeriesView.register([LK.AreaSeries,KK.AreaSeriesView],[LK.AreaRangeSeries,ZK.AreaRangeSeriesView],[xK.BarSeries,QK.BarSeriesView],[bK.BarRangeSeries,JK.BarRangeSeriesView],[PK.BellCurveSeries,tJ.BellCurveSeriesView],[AK.BoxPlotSeries,eJ.BoxPlotSeriesView],[OK.BubbleSeries,iJ.BubbleSeriesView],[CK.CandlestickSeries,rJ.CandlestickSeriesView],[wK.CircleBarSeries,nJ.CircleBarSeriesView],[EK.DumbbellSeries,oJ.DumbbellSeriesView],[VK.EqualizerSeries,sJ.EqualizerSeriesView],[SK.ErrorBarSeries,aJ.ErrorBarSeriesView],[TK.FunnelSeries,lJ.FunnelSeriesView],[kK.HistogramSeries,uJ.HistogramSeriesView],[LK.LineSeries,cJ.LineSeriesView],[NK.LollipopSeries,pJ.LollipopSeriesView],[MK.OhlcSeries,hJ.OhlcSeriesView],[jK.ParetoSeries,fJ.ParetoSeriesView],[RK.PieSeries,dJ.PieSeriesView],[BK.ScatterSeries,_J.ScatterSeriesView],[DK.WaterfallSeries,yJ.WaterfallSeriesView]),zK.AnnotationView.register([IK.TextAnnotation,qK.TextAnnotationView],[GK.ImageAnnotation,YK.ImageAnnotationView],[FK.ShapeAnnotation,XK.ShapeAnnotationView]);var mJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new oK.ElementPool(i,hK.LineElement),i}return QZ(e,t),e.prototype._doMeasure=function(t,e,i,r,n){return{width:i,height:r}},e.prototype._doLayout=function(){var t,e=this._model,i=e.options,r=e.axis,n=r.options.reversed,o=this.width,s=this.height,a=r.isEmpty()?[]:e.getPoints(r,r._isHorz?o:s),l=this._lines.prepare(a.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),u=l.count-1;l.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",a[e]===(r._isHorz?o:s))}));var c=null==i.firstVisible?e.visible:i.firstVisible,p=null==i.lastVisible?e.visible:i.lastVisible;if(r._isHorz){var h=(0,nK.pickNum)(r._prevRate,1);l.forEach((function(i,l){t=0===l?c:l===u?p:e.visible,i.setVis(t)&&i.setVLine(r.prev(a[l])+(n?o*(1-h):0),0,s)}))}else{var f=n?(0,nK.pickNum)(r._prevRate,1):1;l.forEach((function(i,n){a[n],t=0===n?c:n===u?p:e.visible,i.setVis(t)&&i.setHLine(s*f-r.prev(a[n]),0,o)}))}},e}($K.ChartElement);sU.AxisGridView=mJ;var bJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new aK.PathElement(e)),i._mask.setStroke("none"),i.add(i._upLine=new aK.PathElement(e)),i._upLine.setFill("none"),i.add(i._downLine=new aK.PathElement(e)),i._downLine.setFill("none"),i}return QZ(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this.isClip(this._clip)?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var r=this._model._sect.len,n=new sK.PathBuilder;if(i){var o=0,s=r/2,a=r;for(n.move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(this._downLine.setPath(n.end(!1)),o=0,n.clear().move(s,o);o<e;)o+=20,n.line(a,o),o+=20,n.line(s,o);for(this._upLine.setPath(n.end(!1)),o=0,n.clear().move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(n.line(s,o);o>=0;)o-=20,n.line(a,o),o-=20,n.line(s,o);this._mask.setPath(n.end())}else{var l=0,u=r/2,c=r;for(n.move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(this._upLine.setPath(n.end(!1)),l=0,n.clear().move(l,c);l<t;)l+=20,n.line(l,u),l+=20,n.line(l,c);for(this._downLine.setPath(n.end(!1)),l=0,n.clear().move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(n.line(l,c);l>=0;)l-=20,n.line(l,u),l-=20,n.line(l,c);this._mask.setPath(n.end())}},e}(aK.RcElement);sU.AxisBreakView=bJ;var xJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new WK.ChartTextElement(e,"rct-axis-guide-label")),i}return QZ(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&this._labelView.setModel(t,e.label,null,null)},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,this.model.label,null),this._labelView.layout(this.textAlign()||"center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(aK.RcElement);sU.AxisGuideView=xJ;var wJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._line=new(i?cK.ArcPolyElement:hK.LineElement)(e,"rct-axis-guide-line")),r}return QZ(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this.setVis(i.visible&&i.axis.contains(i.options.value))&&this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,r,n=this.model,o=n.options.value,s=n.label,a=s.options,l=this._line,u=this._labelView.setVis(s.visible)&&this._labelView,c=u.getBBox(),p=(0,nK.pickNum)(a.offsetX,0),h=(0,nK.pickNum)(a.offsetY,0);if(this.vertical()){var f=n.axis.getPos(t,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setVLine(f,0,e),u)){switch(a.align){case"center":i=f-c.width/2+p;break;case"right":i=f+p;break;default:i=f-c.width-p}switch(a.verticalAlign){case"bottom":r="inside"===a.position?e-c.height-h:e+h;break;case"middle":r=(e-c.height)/2-h;break;default:r="inside"===a.position?h:-1*(c.height+h)}}}else{f=e-n.axis.getPos(e,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setHLine(f,0,t),u)){switch(a.align){case"center":i=(t-c.width)/2-p;break;case"right":i="inside"===a.position?t-c.width-p:t+p;break;default:i="inside"===a.position?p:-1*(c.width+p)}switch(a.verticalAlign){case"bottom":r=f+h;break;case"middle":r=f-c.height/2-h;break;default:r=f-c.height-h}}}u.visible&&u.trans(i,r)},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._line,o=this._labelView.setVis(r.axis.contains(r.options.value)&&r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.value);n.setArc(i.cx,i.cy,a,s,r.axis.getTotalAngle(),!1),n.setStyle(lK.FILL,"none"),o&&o.trans(i.cx+a*(0,nK.cos)(i.start),i.cy+a*(0,nK.sin)(i.start))},e}(xJ);sU.AxisGuideLineView=wJ;var SJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._box=new(i?dK.SectorElement:fK.BoxElement)(e,"rct-axis-guide-range")),r}return QZ(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i);var r=i.options,n=(0,nK.minv)(r.startValue,r.endValue),o=(0,nK.maxv)(r.startValue,r.endValue);this._range=i.axis.trimRange(n,o),this.setVis(i.visible&&this._range[1]>this._range[0])&&this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model;i.options;var r=i.label,n=r.options,o=this._box,s=tK(this._range,2),a=s[0],l=s[1],u=this._labelView.setVis(r.visible)&&this._labelView,c=u.getBBox(),p=(0,nK.pickNum)(n.offsetX,0),h=(0,nK.pickNum)(n.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),d=i.axis.getPos(t,l);if(!isNaN(f)&&!isNaN(d)&&u.setVis(o.setVis(d!==f))){var _=void 0,y=void 0;switch(n.align){case"center":_=f+(d-f-c.width)/2+p;break;case"right":_=d-c.width-p;break;default:_=f+p}switch(n.verticalAlign){case"bottom":y="inside"===n.position?e-c.height-h:e+h;break;case"middle":y=(e-c.height)/2-h;break;default:y="inside"===n.position?h:-1*(c.height+h)}o.setBox(f,0,d,e),u&&u.trans((0,nK.maxv)(0,(0,nK.minv)(t,_)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,l);if(!isNaN(g)&&!isNaN(v)&&u.setVis(o.setVis(g!==v))){_=void 0,y=void 0;switch(n.align){case"center":_=(t-c.width)/2-p;break;case"right":_="inside"===n.position?t-c.width-p:t+p;break;default:_="inside"===n.position?p:-1*(c.width+p)}switch(n.verticalAlign){case"bottom":y=g-c.height-h;break;case"middle":y=v+(g-v-c.height)/2-h;break;default:y=v+h}u&&u.trans(_,y),o.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._box,o=this._labelView.setVis(r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.startValue),l=r.axis.getPos(i.rd,r.options.endValue);if(n.setSector({cx:i.cx,cy:i.cy,rx:l,ry:l,innerRadius:a/l,start:s,angle:lK.PI_2,clockwise:!0}),o){var u=a+(l-a)/2;o.trans(i.cx+u*(0,nK.cos)(i.start),i.cy+u*(0,nK.sin)(i.start))}},e}(xJ);sU.AxisGuideRangeView=SJ;var PJ=function(t){function e(){var e=t.apply(this,eK([],tK(arguments),!1))||this;return e._views=new oK.ElementPool(e,aK.PathElement),e}return QZ(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,eK([],tK(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e){var i=this._rows;this._views.prepare(i.length),this._views.forEach((function(r,n){var o=i[n],s=o.axis,a=Math.max(s.axisMin(),o.from),l=Math.max(s.axisMax(),o.to);if(o.axis._isHorz){var u=(0,nK.maxv)(0,(0,nK.minv)(t,s.getPos(t,a))),c=(0,nK.maxv)(0,(0,nK.minv)(t,s.getPos(t,l)));r.setPath(_K.SvgShapes.rectangle(u,0,c-u,e))}else{var p=(0,nK.maxv)(0,(0,nK.minv)(e,s.getPos(e,a))),h=(0,nK.maxv)(0,(0,nK.minv)(e,s.getPos(e,l)));r.setPath(_K.SvgShapes.rectangle(0,e-p,t,p-h))}r.setFill(o.color)}))},e}(aK.LayerElement);sU.AxisGridRowContainer=PJ;var AJ=function(t){function e(){var e=t.apply(this,eK([],tK(arguments),!1))||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return QZ(e,t),e.prototype.clean=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof SJ?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var r=this;e.forEach((function(e){var n;e instanceof yK.AxisRangeGuide?n=r._rangePool.pop()||new SJ(t,i):e instanceof yK.AxisLineGuide&&(n=r._linePool.pop()||new wJ(t,i)),r.add(n),n.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(aK.LayerElement);sU.AxisGuideContainer=AJ;var OJ=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return QZ(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,r,n){var o=this.model.axis,s=o._isHorz,a=new sK.PathBuilder;if(this._bar){var l=o._isHorz?r:n,u=void 0;if(t?u=t.point.xValue:this.model.options.showAlways&&(u=o.options.reversed?o.xValueAt(s?r-e:i):o.xValueAt(s?e:n-i)),o instanceof vK.CategoryAxis&&(u=(0,nK.floor)(u)),!isNaN(u)){var c=o.getPos(l,u),p=o.getUnitLen(l,u);s?a.rect(c-p/2,0,p,n):a.rect(0,n-c-p/2,r,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,n):a.hline(i,0,r));this.setPath(a.end())},e}(aK.PathElement),CJ=function(t){function e(i){var r=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return r.setVis(!1),r}return QZ(e,t),e.CLASS_NAME="rct-reset-zoom",e}(rK.ButtonElement);sU.ZoomButton=CJ;var EJ=function(t){function e(e){var i=t.call(this,e,"rct-empty-view")||this;return i.add(i._backView=new fK.RectElement(e,"rct-empty-view-back")),i.add(i._labelView=new WK.ChartTextElement(e,"rct-empty-view-label")),i}return QZ(e,t),e.prototype.layout=function(t,e,i){this.setStyleOrClass(t._style),"background"===t.options.effect&&this._backView.setStyleOrClass(t.options.backgroundStyle),this._backView.resize(e,i);var r=this._labelView;t.buildSvg(r._text,r._outline,e,i,null,null),r.layout("center");var n=r.getBBox();r.trans((e-n.width)/2,(i-n.height)/2)},e}(aK.LayerElement),VJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth-grid")||this;return i._lines=new oK.ElementPool(i,hK.LineElement),i}return QZ(e,t),e.prototype.layout=function(t,e,i,r,n,o){var s=e.model,a=s.axis,l=r.side,u=r.base,c=a.isEmpty()?[]:s.getPoints(a,a._isHorz?n-u:o-l);this._lines.prepare(c.length,(function(e,r){e.internalClearStyleAndClass(),e.internalSetStyleOrClass(t.gridLine._style),e.setClass("rct-body-depth-grid-line"),i?e.setLine(0,o-c[r],n,o-l-c[r]):e.setLine(c[r]+u,0,c[r],o)}))},e}(aK.LayerElement),TJ=function(t){function e(e,i){var r=t.call(this,e,"rct-body-depth-side")||this;return r.isX=i,r._gridViews=new Map,r.add(r._backView=new aK.PathElement(e)),r.add(r._gridContainer=new aK.LayerElement(e,"rct-body-depth-grids")),r.add(r._lineView=new hK.LineElement(e,"rct-body-depth-side-line")),r.add(r._endView=new hK.LineElement(e,"rct-body-depth-side-line")),r}return QZ(e,t),e.prototype.layout=function(t,e,i,r,n){var o=this.width,s=this.height;this.$_renderBack(this._backView,e,i,r,o,s),this.$_renderGrids(t,e,n,i,r,o,s)},e.prototype.$_renderBack=function(t,e,i,r,n,o){var s=r.side,a=r.base,l=this._lineView,u=this._endView;t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),l.setVis(e.line.visible)&&(l.internalClearStyleAndClass(),l.internalSetStyleOrClass(e.line._style)),u.setVis(e.endLine.visible)&&(u.internalClearStyleAndClass(),u.internalSetStyleOrClass(e.endLine._style)),i?(t.setPath(_K.SvgShapes.polygon(0,s,a,0,a,o-s,0,o)),l.visible&&l.setVLineC(0,s,o),u.visible&&u.setLine(0,s,n,0)):(t.setPath(_K.SvgShapes.polygon(a,0,n,0,n-a,s,0,s)),l.visible&&l.setHLineC(o,0,n-a),u.visible&&u.setLine(n,0,n-a,o))},e.prototype.$_renderGrids=function(t,e,i,r,n,o,s){var a,l,u,c,p=this._gridContainer,h=this._gridViews;try{for(var f=iK(this._gridViews.entries()),d=f.next();!d.done;d=f.next()){var _=tK(d.value,2),y=_[0],g=_[1];i.has(y)||(h.delete(y),g.remove())}}catch(t){a={error:t}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var v=iK(i.entries()),m=v.next();!m.done;m=v.next()){var b=tK(m.value,2),x=(y=b[0],b[1]);if(y._isX===this.isX){var w=h.get(y);w||(w=new VJ(t),h.set(y,w),p.add(w)),w.layout(e,x,r,n,o,s)}}}catch(t){u={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}},e}(aK.LayerElement),kJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth")||this;return i.add(i._xSideView=new TJ(e,!0)),i.add(i._ySideView=new TJ(e,!1)),i.add(i._orgLineView=new hK.LineElement(e,"rct-body-depth-org-line")),i}return QZ(e,t),e.prototype.render=function(t,e,i,r,n,o,s){if(this.setVis(!!n)){var a=n.base,l=n.side,u=this._xSideView,c=this._ySideView;u.setVis(i.xSide.visible)&&(e?u.setBounds(0,0,a,s):u.setBounds(0,s-l,o,l),u.layout(t,i.xSide,e,n,r)),c.setVis(i.ySide.visible)&&(e?c.setBounds(0,s-l,o,l):c.setBounds(0,0,a,s),c.layout(t,i.ySide,!e,n,r)),this._orgLineView.setVis(i.orgLine.visible)&&this._orgLineView.setLine(a,s-l,0,s)}},e}(aK.LayerElement),LJ=function(t){function e(i,r){var n=t.call(this,i,e.BODY_CLASS)||this;return n._gridViews=new Map,n._baseViews=new Map,n._breakViews=[],n._seriesViews=[],n._seriesMap=new Map,n._annotationViews=[],n._annotationMap=new Map,n._gaugeViews=[],n._gaugeMap=new Map,n._hoverPointSeries=[],n._owner=r,n.add(n._hitTester=new fK.RectElement(i)),n._hitTester.setFill("transparent"),n.add(n._background=new aK.PathElement(i,"rct-body-background")),n.add(n._depthLayer=new kJ(i)),n.add(n._image=new pK.ImageElement(i,!0,"rct-body-image")),n.add(n._emptyView=new EJ(i)),n.add(n._gridRowContainer=new PJ(i,"rct-axis-grid-rows")),n.add(n._gridContainer=new aK.LayerElement(i,"rct-axis-grids")),n.add(n._baseContainer=new aK.LayerElement(i,"rct-axis-bases")),n.add(n._guideContainer=new AJ(i,"rct-axis-guides")),n.add(n._annotationContainer=new aK.LayerElement(i,"rct-annotations")),n.add(n._seriesContainer=new aK.LayerElement(i,"rct-series-container")),n.add(n._axisBreakContainer=new aK.LayerElement(i,"rct-axis-breaks")),n.add(n._labelContainer=new aK.LayerElement(i,"rct-label-container")),n.add(n._frontGuideContainer=new AJ(i,"rct-front-axis-guides")),n.add(n._frontAnnotationContainer=new aK.LayerElement(i,"rct-front-annotations")),n.add(n._feedbackContainer=new aK.LayerElement(i,"rct-feedbacks")),n.add(n._zoomButton=new CJ(i)),n._crosshairViews=new oK.ElementPool(n._feedbackContainer,OJ),n}return QZ(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.getCol=function(){return 0},e.prototype.getRow=function(){return 0},e.prototype.prepareRender=function(t,e,i){var r=e.chart,n=e.depth.visible;this._animatable=aK.RcControl._animatable&&r.animatable(),this._polar=i,this._prepareSeries(t,e,r._getSeries().getVisibleSeries(),n),r._getGauges()&&this._prepareGauges(t,r,r._getGauges().getVisibles()),this._prepareAnnotations(t,r._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.clean(),this._frontGuideContainer.clean()},e.prototype.checkDepth=function(t,e,i){return this._depthExt=t._body._getDepth(e,i)},e.prototype.pointerMoved=function(t,e){var i,r,n,o,s=this.width,a=this.height,l=this._inverted,u=this._polar,c=this._seriesViews,p=c.length,h=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(UK.SeriesView.isPointDom(e))for(var f=p-1;f>=0;f--)if(o=c[f].pointByDom(e)){n=c[f];break}var d=null==e?void 0:e.classList,_=(null==d?void 0:d.value)&&(d.contains("rct-contextmenu-item")||d.contains("rct-contextmenu-list")),y=h&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!_;if(this._crosshairViews.forEach((function(e){e.setVis(y)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(n,o,t);else if(p>0){var g,v,m=this.chart().chartOptions.pointHovering.getHintDistance(null==n?void 0:n.model),b=!u;try{for(var x=iK(c),w=x.next();!w.done;w=x.next()){if(!(w.value.model instanceof LK.LineSeriesBase)){b=!1;break}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(r=x.return)&&r.call(x)}finally{if(i)throw i.error}}if(n=null,b)if(p>1){var S=[];c.forEach((function(e){g=(0,nK.pickNum)(e.getHintDistance(),m),v=e.getNearest2(t.x,t.y,l),S.push({hint:g,sv:e,pv:v})}));var P=S.reduce((function(e,i){return e.pv&&i.pv?l?(0,nK.absv)(e.pv.pv.point.xPos-t.x)<(0,nK.absv)(i.pv.pv.point.xPos-t.x)?e:i:(0,nK.absv)(e.pv.pv.point.yPos-t.y)<(0,nK.absv)(i.pv.pv.point.yPos-t.y)?e:i:e||i}));n=P.sv,v=P.pv,g=P.hint}else n=c[0],g=(0,nK.pickNum)(n.getHintDistance(),m),v=n.getNearest2(t.x,t.y,l);else c.forEach((function(e){if(e.getHintDistance&&(g=(0,nK.pickNum)(e.getHintDistance(),m))>0){var i=e.getNearest(t.x,t.y);(!v||i.dist<v.dist)&&(n=e,v=i)}}));h&&v&&n.canHover(v.dist,v.pv,g)?this.$_setFocused(n,v.pv,t):this.$_setFocused(null,null,t)}return h},e.prototype.hoverSeries=function(t){this.$_hoverSeries(this._seriesMap.get(t))},e.prototype.$_setFocused=function(t,e,i){var r,n,o,s=this._owner,a=this.chart(),l=null==t?void 0:t.model,u=this.chart().chartOptions.pointHovering,c=this._focused,p=this._siblings,h=this._siblingSeries;if(l&&l.options.interactive&&e&&u.visible)switch(u.getScope(l,e.point)){case"axis":o=l._xAxisObj.getSeries();case"group":o||(o=l._group.getVisibleSeries());var f=o.map((function(t){if(t instanceof gK.MarkerSeries){for(var r=void 0,n=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof OK.BubbleSeries){var l=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,u=t.getPixelMinMax(l),c=u.min,p=u.max,h=t.getRadius(s.zValue,c,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-h}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<n&&(n=a,r=s)}return r}return t.getPoints().pointAt(e.point.xValue)}));r=o.map((function(t){return s.getSeriesView(t)})),n=[],f.forEach((function(t,e){n.push(r[e].getPointView(t))}));break;default:r=[t],n=[e]}var d=[];if(r&&r.forEach((function(t,e){d.push.apply(d,eK([],tK(t.getSiblings(n[e])),!1))})),d=d.length>1?d.sort((function(t,e){return t.hash-e.hash})):d.length>0?d:null,uK.Utils.equalArrays(p,d)||(r&&r.forEach((function(t,e){t.focusPoints(t.getSiblings(n[e]))})),h&&h.forEach((function(t){(!r||r.indexOf(t)<0)&&t.focusPoints(null)})),this._siblingSeries=r,this._siblings=d),e!==c){var _=this._focusedSeries;this._focused=e,t!==_&&(_&&this.$_focusSeries(_,!1),this._focusedSeries=t,l&&l.options.interactive&&this.$_focusSeries(t,!0),l&&a.chartOptions.options.seriesHovering&&l.options.interactive&&this.$_hoverSeries(t))}this._focused&&l&&l.options.interactive&&(this._focused!==c||!s.tooltipVisible()||a._tooltip.isFollowPointer(t.model))?i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?s.showTooltip(l,e,[],this,i):s.hideTooltip():!this._focused&&s.tooltipVisible()&&s.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(UK.SeriesView.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(UK.SeriesView.DATA_UNHOVER,t&&e!==t)}))},e.prototype.hoverPoint=function(t){var e=this.chart().seriesByPoint(t),i=this.getSeries(e);i?(i.hoverPoint(t),this._hoverPointSeries.push(i)):this._hoverPointSeries&&(this._hoverPointSeries.forEach((function(t){return t.hoverPoint(null)})),this._hoverPointSeries.length=0)},e.prototype.clearHover=function(){this.hoverPoint(null),this.hoverSeries(null),this._seriesViews.forEach((function(t){return t.focusPoints(null)})),this.removeFocus()},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.annotationByDom=function(t){return this._annotationViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,r){var n=this.chart(),o=n.isInverted(),s=n.xAxis,a=o?this.height:this.width,l=s.valueAt(a,o?a-r:t),u=s.valueAt(a,o?a-e:i);s.zoom(l,u)&&(this._zoomRequested=!0)},e.prototype.animating=function(){var t,e,i=!1;try{for(var r=iK(this._seriesViews),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.visible&&o._animating()){i=!0;break}}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return i},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof UK.MarkerSeriesPointView&&e.endHover(t,!1),e.setBoolData(UK.SeriesView.DATA_FOCUS,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.stop()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a=this,l=this.control,u=e.chart,c=this._depthExt,p=c?c.wBody:i,h=c?c.hBody:r;if(this._zoomRequested=!1,this.isClip(this._seriesClip)||(this._seriesClip=l.clipBounds(),this._seriesClip2=l.clipBounds(),this._bodyClip=l.clipBounds()),this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||u.isWidget()),this._seriesViews.forEach((function(e,i){e.measure(t,a._series[i],p,h,n)})),!this._polar){this.$_prepareGrids(t,u);try{for(var f=iK(this._gridViews.keys()),d=f.next();!d.done;d=f.next()){var _=d.value;this._gridViews.get(_).measure(t,_.grid,p,h,n)}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,u)}return this._gaugeViews.forEach((function(e,i){e.measure(t,a._gauges[i],p,h,n)})),this._annotationViews.forEach((function(e,i){e.measure(t,a._annotations[i],p,h,n)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:r}},e.prototype._clipSeries=function(t,e,i){var r=i?this._seriesClip:this._seriesClip2;t&&t.setClip(r),e&&e.setClip(r)},e.prototype._renderBackground=function(t,e,i){t.setPath(_K.SvgShapes.rectangle(0,0,e,i))},e.prototype._setImage=function(t,e,i,r){if(e.setVis(t.visible&&!!t.options.url))return e.setImage(t.options.url,i,r),e.setStyleOrClass(t._style),!0},e.prototype._doLayout=function(){var t,e,i,r,n=this,o=this.control,s=this.model;s.image;var a=this._depthExt,l=this.width,u=this.height,c=a?a.wBody:l,p=a?a.hBody:u,h=a?a.base:0;if(this._inverted){var f=a?a.side:0;this._seriesClip.setBounds(-f,-c,u,l),this._seriesClip2.setBounds(-f,0,l,u)}else this._seriesClip.setBounds(-h,0,l,u),this._seriesClip2.setBounds(-h,0,l,u);if(this._bodyClip.setBounds(0,0,c,p),this._hitTester.trans(h,0).resize(c,p),this._background.trans(h,0).resize(c,p),this._seriesContainer.trans(h,0),this._renderBackground(this._background,c,p),this._setImage(s.image,this._image,c,p),this._depthLayer.setVis(!this._polar&&a&&a.depth>0),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&n._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.depthEnabled&&t._setDepth(a),t.resize(c,p),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){this._depthLayer.render(o.doc(),this._inverted,s.depth,this._gridViews,a,this.width,this.height);try{for(var d=iK(this._gridViews.values()),_=d.next();!_.done;_=d.next()){(v=_.value).resize(c,p),v.trans(h,0),v.layout()}}catch(e){t={error:e}}finally{try{_&&!_.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}try{for(var y=iK(this._baseViews.values()),g=y.next();!g.done;g=y.next()){var v,m=(v=g.value).tag;v.setStyleOrClass(m.baseLine._style),m._isHorz?v.setVLine(m.getPos(c,m.getBaseValue()),0,p):v.setHLine(p-m.getPos(p,m.getBaseValue()),0,c)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(i)throw i.error}}if(this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(c-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,p-e._sect.pos-e._sect.len),t.layout(c,p,e.axis._isHorz)})),this.isClip(this._guideClip))this._guideClip.resize(o.width(),o.height());else{var b=o._padding;this._guideClip=o.clipBounds(-1*(b.left+this.tx),-1*(b.top+this.ty),o.width(),o.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t.setVis(t._views.length>0)&&(t._views.forEach((function(t){return t.visible&&t.layout(c,p)})),t.setClip(n._guideClip))})),this._gridRowContainer.layout(c,p),this._gridRowContainer.trans(h,0)}this.$_prepareCrosshairs(s.chart),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(c,p))})),this._layoutAnnotations(this._inverted,this,c,p),this._zoomButton.visible&&this._zoomButton.trans(c-this._zoomButton.getBBox().width-10,10),this._emptyView.setVis(this.$_isEmptyVisible(s))&&(this.model.emptyView._prepareRender(),this._emptyView.layout(s.emptyView,c,p))},e.prototype.$_isEmptyVisible=function(t){var e,i,r,n;if(!1!==t.emptyView.visible&&t.chart.isEmpty(!0))return!0;var o=!0;try{for(var s=iK(this._seriesViews),a=s.next();!a.done;a=s.next()){if(!a.value.isEmptyView()){o=!1;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}if(o)try{for(var l=iK(this._gaugeViews),u=l.next();!u.done;u=l.next()){if(!u.value.isEmptyView()){o=!1;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return o&&!1!==t.emptyView.visible},e.prototype.$_createGaugeView=function(t,e){return new(HK.gauge_view_types[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,r,n,o,s=e._needAxes(),a=this._gridContainer,l=this._gridViews,u=this._baseContainer,c=this._baseViews,p=this.getCol(),h=this.getRow();try{for(var f=iK(l.keys()),d=f.next();!d.done;d=f.next()){var _=d.value;s&&e.containsAxis(_)&&_.checkVisible()&&_.grid.visible||(l.get(_).remove(),l.delete(_))}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}try{for(var y=iK(c.keys()),g=y.next();!g.done;g=y.next()){_=g.value;s&&e.containsAxis(_)&&_.checkVisible()&&(!(_ instanceof mK.ContinuousAxis)||_.baseLine.visible)&&_.isBaseVisible()||(c.get(_).remove(),c.delete(_))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}s&&[e._getXAxesAtPane(p,h,!0),e._getYAxesAtPane(p,h,!0)].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!l.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var r=new mJ(t);l.set(e,r),a.add(r)}if(e instanceof mK.ContinuousAxis&&e.baseLine.visible&&e.isBaseVisible()&&!c.has(e)){r=new hK.LineElement(t,"rct-axis-baseline");c.set(e,r),u.add(r),r.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i,r){var n,o,s=this,a=e.chart,l=this._inverted=a.isInverted(),u=this._seriesMap,c=this._seriesViews,p=r?e.depth:null;try{for(var h=iK(u.keys()),f=h.next();!f.done;f=h.next()){var d=f.value;i.indexOf(d)<0&&(u.get(d).remove(),u.delete(d))}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}this._series=i,c.forEach((function(t){i.indexOf(t.model)<0&&(s.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),c.length=0,i.forEach((function(e){var i=u.get(e)||vJ(t,e);i._setChartOptions(l,s._animatable,a.loadAnimatable()),i.parent||(s._seriesContainer.add(i),s._labelContainer.add(i._labelContainer)),u.set(e,i),c.push(i),i.prepareSeries(t,e,s._polar,p)})),this._seriesContainer.sort(c),c.forEach((function(t){return s._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var r,n,o=this,s=this._seriesContainer,a=e.isInverted(),l=this._gaugeMap,u=this._gaugeViews;try{for(var c=iK(l.keys()),p=c.next();!p.done;p=c.next()){var h=p.value;i.indexOf(h)<0&&(l.get(h).remove(),l.delete(h))}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this._gauges=i,u.forEach((function(t){return t.remove()})),u.length=0,i.forEach((function(i){var r=l.get(i)||o.$_createGaugeView(t,i);s.add(r),l.set(i,r),u.push(r),r.prepareGauge(t,i),r._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=iK(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&(s.get(c).remove(),s.delete(c))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||gJ(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,r=this._breakViews,n=this.getCol(),o=this.getRow(),s=[];for([e._getXAxesAtPane(n,o,!1),e._getYAxesAtPane(n,o,!1)].forEach((function(t){return t.forEach((function(t){t instanceof mK.LinearAxis&&s.push.apply(s,eK([],tK(t._getBreaks()),!1))}))}));r.length<s.length;){var a=new bJ(t);i.add(a),r.push(a)}for(;r.length>s.length;)r.pop().remove();r.forEach((function(t,e){return t.setModel(s[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,r=this.getCol(),n=this.getRow(),o=[];t._needAxes()&&[t._getXAxesAtPane(r,n,!0),t._getYAxesAtPane(r,n,!0)].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&o.push(t.crosshair)}))})),i.prepare(o.length,(function(t,i){t.setModel(o[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,r){var n=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,r),!n._polar&&o.model.needClip()&&o.resetClip(n.control,i,r)}))},e.BODY_CLASS="rct-body",e}($K.ChartElement);sU.BodyView=LJ;var NJ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(oU,"__esModule",{value:!0}),oU.NavigatorView=oU.NavigatorHandleView=void 0;var MJ=kj,jJ=fj,RJ=IB,BJ=sW,DJ=sU,IJ=mW,GJ=iM,FJ=function(t){function e(e){var i=t.call(this,e,zJ.HANDLE_STYLE)||this;return i.add(i._back=new RJ.RectElement(e)),i.add(i._shape=new jJ.PathElement(e)),i._shape.setFill("white"),i}return NJ(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var r=1.3*(0,GJ.minv)(t,e),n=new MJ.PathBuilder;this._back.rect={x:-r/2,y:-r/2,width:r,height:r,rx:r/2},r/=3,n.polygon(-r-1,0,-1,-r,-1,r),n.polygon(r+1,0,1,-r,1,r),this._shape.setPath(n.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(jJ.RcElement);oU.NavigatorHandleView=FJ;var zJ=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.add(r._back=new RJ.RectElement(i,e.BACK_STYLE)),r.add(r._container=new jJ.LayerElement(i,null)),r.add(r._mask=new RJ.RectElement(i,e.MASK_STYLE)),r.add(r._trackView=new RJ.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new RJ.RectElement(i,e.THUMB_CLASS)),r.add(r._startHandle=new FJ(i)),r.add(r._endHandle=new FJ(i)),r._startHandle.setStyle("cursor","ew-resize"),r._endHandle.setStyle("cursor","ew-resize"),r._mask.setStyle("cursor","ew-resize"),r._mask.dom.addEventListener("dblclick",(function(){r.model.axis()._zoom&&r.model.axis().resetZoom()})),r}return NJ(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,r,n){var o=e._naviChart;o.firstSeries;var s=i,a=r;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,r=e.options,n=this.width,o=this.height;if(this._back.resize(n,o),e._vertical);else{var s=i?(i.start-i.min)*n/i.total():0,a=i?(i.end-i.min)*n/i.total():n;this._mask.setVis(r.mask.visible)&&(this._mask.setBounds(s,0,a-s,o),this._mask.setStyleOrClass(r.mask.style)),this._trackView.setBounds(-2,o,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(s,o,a-s,6),this._startHandle.setVis(r.handle.visible),this._endHandle.setVis(r.handle.visible),this._startHandle.visible&&this._endHandle&&(this._startHandle.layout(o/3,o/3,!1),this._startHandle.trans(s,o+3),this._endHandle.layout(o/3,o/3,!1),this._endHandle.trans(a,o+3),this._startHandle.setStyleOrClass(r.handle.style),this._endHandle.setStyleOrClass(r.handle.style))}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,o,1),this._seriesView.resize(n,o),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,o,1),this._xAxisView.resize(n,o),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,r=this._seriesView;r&&r.model!==i&&(r.remove(),r=this._seriesView=null),r||(this._container.add(r=this._seriesView=(0,DJ.createSeriesView)(t,i)),r._simpleMode=!0),r&&r.prepareSeries(t,i,!1,null)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,r=this._xAxisView;r&&r.model!==i&&(r.remove(),r=this._xAxisView=null),r||(this._container.add(r=this._xAxisView=new BJ.AxisView(t)),r._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,r=this._yAxisView;r&&r.model!==i&&(r.remove(),r=this._yAxisView=null),r||(this._container.add(r=this._yAxisView=new BJ.AxisView(t)),r._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(IJ.ChartElement);oU.NavigatorView=zJ;var $J={},HJ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty($J,"__esModule",{value:!0}),$J.NavigatorMaskTracker=$J.NavigatorHandleTracker=$J.ScrollTracker=$J.ZoomTracker=$J.ChartDragTracker=void 0;var WJ=iM,UJ=IB,YJ=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return HJ(e,t),e}(fj.DragTracker);$J.ChartDragTracker=YJ;var XJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._body=i,n._vertical=r,n}return HJ(e,t),e.prototype._doStart=function(t,e,i,r,n){if(this._body.chart().isPolar())return!1;var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=(0,WJ.maxv)(0,e-(s.x-o.x)),this._yStart=(0,WJ.maxv)(0,i-(s.y-o.y)),this._body.addFeedback(this._feedback=new UJ.RectElement(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._hideFeedback=function(){this._feedback.remove()},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),r=this._body.getBounds();this._vertical?(e=(0,WJ.maxv)(0,(0,WJ.minv)(r.height,e-(r.y-i.y))),this._body.setZoom(0,(0,WJ.minv)((0,WJ.maxv)(0,this._yStart),e),this._body.width,(0,WJ.maxv)((0,WJ.minv)(this._yStart,r.height),e))):(t=(0,WJ.maxv)(0,(0,WJ.minv)(r.width,t-(r.x-i.x))),this._body.setZoom((0,WJ.maxv)(0,(0,WJ.minv)(this._xStart,t)),0,(0,WJ.maxv)((0,WJ.minv)(this._xStart,r.width),t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,r,n){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(n=(0,WJ.maxv)(0,(0,WJ.minv)(s.height,n-(s.y-o.y))),this._feedback.setBounds(0,(0,WJ.minv)(this._yStart,n),this._body.width,(0,WJ.absv)(this._yStart-n))):(r=(0,WJ.maxv)(0,(0,WJ.minv)(s.width,r-(s.x-o.x))),this._feedback.setBounds((0,WJ.minv)(this._xStart,r),0,(0,WJ.absv)(this._xStart-r),this._body.height)),!0},e}(YJ);$J.ZoomTracker=XJ;var qJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r._view=i,r}return HJ(e,t),e.prototype._doStart=function(t,e,i,r,n){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=Math.floor(s.length()),!0}return!1},e.prototype._doDrag=function(t,e,i,r,n){var o,s=this._view;return s._vertical?(o=s.svgToElement(r,n).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height)):(o=s.svgToElement(r,n).x-this._startOff,o=s.getZoomPos(o)),s.model.axis.zoom(o,o+this._zoomLen),!0},e}(YJ);$J.ScrollTracker=qJ;var ZJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,(n._isStart=i._startHandle.contains(r))?n._handleView=i._startHandle:n._handleView=i._endHandle,n}return HJ(e,t),e.prototype.cancel=function(){t.prototype.cancel.call(this),this._handleView.setBoolData("select",!1)},e.prototype._doStart=function(t,e,i,r,n){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,r,n){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(r,n).x-this._startOff,l=s._zoom.total(),u=s._zoom.min,c=o.model.options.minSize,p=a*l/o.width+u;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(p,NaN,c):s.zoom(u,NaN,c):a>0&&a<o.width?s.zoom(NaN,p,c):a>=o.width&&s.zoom(NaN,s._zoom.max,c),!0},e}(YJ);$J.NavigatorHandleTracker=ZJ;var KJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,n._maskView=i._mask,n}return HJ(e,t),e.prototype._doStart=function(t,e,i,r,n){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,r,n){var o=this._view,s=o.svgToElement(r,n).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=(0,WJ.maxv)(0,(0,WJ.minv)(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(YJ);$J.NavigatorMaskTracker=KJ,Object.defineProperty(oW,"__esModule",{value:!0}),oW.ChartPointerHandler=void 0;var JJ=rM,QJ=iM,tQ=ZB,eQ=sW,iQ=oU,rQ=TU,nQ=$J,oQ=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=t.target,r=this.$_pointerToPoint(t),n=r.x,o=r.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var s=this.isDragging(),a=this._clickElement;n<0||n>=e.control.dom().offsetWidth||o<0||o>=e.control.dom().offsetHeight||(s?this.$_doDrag(t,a,n,o):(!this._dragTracker&&((0,QJ.absv)(this._clickX-n)>3||(0,QJ.absv)(this._clickY-o)>3)||this._dragTracker&&!s)&&this.$_startMove(t,a,n,o))}else this.$_stopDragTracker(t,i,n,o,!0);this._prevX=n,this._prevY=o,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(i)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleLeave=function(t){this._chart.chartView().pointerLeaved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,r,n,o,s,a=this._chart.model,l=this._chart.chartView(),u=this._clickElement,c=l.getButton(u),p=this._chart.chart.exporter;if(p.isContextMenuVisible()&&p.toggleContextMenu(),c)!0!==c.click()&&l.buttonClicked(c);else if(r=l.legendByDom(u)){var h=null===(e=r.legend.options)||void 0===e?void 0:e.onLegendItemClick;if("function"!=typeof h||!1!==h({chart:a.wrapper,source:r.legend.getSources(r)}))JJ.Utils.makeArray(r.legend.getSources(r),!0).forEach((function(t){if(t instanceof tQ.DataPoint){var e=t,i=a.seriesByPoint(e);if(i){i.setPointVisible(e,!e.visible);var n=l.findSeriesView(i);n instanceof rQ.WidgetSeriesView&&n.togglePointVisible(e)}}else r.source.visible=!r.source.visible,l.bodyView().hoverSeries(r.source.visible?r.source:null)}))}else(n=l.seriesByDom(u))?n.clicked(u):(s=l.htmlButtonByDom(u))?s.click():(o=l.annotationByDom(u))?o.clicked():(i=l.creditByDom(u))&&i.clicked(u)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var r=this._chart.chartView(),n=r.bodyOf(t);return eQ.AxisScrollView.isThumb(t)?new nQ.ScrollTracker(this._chart,r.getScrollView(t)):iQ.NavigatorView.isHandle(t)?new nQ.NavigatorHandleTracker(this._chart,r._navigatorView,t):iQ.NavigatorView.isMask(t)&&n&&n.model.isZoomed()?new nQ.NavigatorMaskTracker(this._chart,r._navigatorView,t):n&&n.model.canZoom()&&n.contains(t)?new nQ.ZoomTracker(this._chart,n,r._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,r){if(!this.$_drag(e,this._prevX,this._prevY,i,r))return this.$_stopDragTracker(t,e,i,r,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,r){this.$_startDrag(e,this._prevX,this._prevY,i,r)&&(i!==this._prevX||r!==this._prevY?this.$_doDrag(t,e,i,r):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,r,n){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,r-e,n-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,r,n))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,r,n){return this._dragTracker.drag(t,e,i,r,n)},t.prototype.$_stopDragTracker=function(t,e,i,r,n){void 0===n&&(n=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),n?this._dragTracker.cancel():this._dragTracker.drop(null,i,r),this._dragTracker=null)},t}();oW.ChartPointerHandler=oQ;var sQ={},aQ={},lQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(aQ,"__esModule",{value:!0}),aQ.HistoryView=void 0;var uQ=uj,cQ=function(t){function e(i){var r=t.call(this,i,e.TITLE_CLASS)||this;return r._itemViews=[],r._separators=[],r.itemGap=8,r.setVis(!1),r}return lQ(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,r=this._separators;i.length<e.length;){(n=new uQ.TextElement(t,"rct-history-item")).anchor=uQ.TextAnchor.START,i.push(n)}for(;i.length>e.length;)i.pop().remove();for(;r.length<e.length-1;){var n;(n=new uQ.TextElement(t)).anchor=uQ.TextAnchor.START,n.text=">",r.push(n)}for(;r.length>e.length-1;)r.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,r=this.itemGap,n=t.length,o=0,s=0;s<n;s++)e[s].text=t[s].name,e[s].transX(o),s<n-1&&(o+=e[s].width+r,i[s].transX(o),o+=i[s].width+r)},e.TITLE_CLASS="rct-history",e}(fj.LayerElement);aQ.HistoryView=cQ;var pQ={},hQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(pQ,"__esModule",{value:!0}),pQ.LegendView=pQ.LegendItemView=void 0;var fQ=iM,dQ=aW,_Q=pW,yQ=nM,gQ=IB,vQ=uj,mQ=mW,bQ=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new gQ.RectElement(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new vQ.TextElement(e,"rct-legend-item-label")),i._label.anchor=vQ.TextAnchor.START,i}return hQ(e,t),e.prototype.setMarker=function(t){t!==this._marker&&(this._marker&&this._marker.remove(),this.insertFirst(this._marker=t))},e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a=e.source;this._label.setBoolData("hidden",!a.visible),this._marker.setBoolData("hidden",!a.visible),this._label.setBoolData("empty",null===(o=a.isEmpty)||void 0===o?void 0:o.call(a)),this._marker.setBoolData("empty",null===(s=a.isEmpty)||void 0===s?void 0:s.call(a)),this._label.text=e.text()||yQ.ELLIPSIS;var l=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():_Q.RECT_Z,u=(0,_Q.rectToSize)(this._label.getBBox());return this._gap=(0,fQ.pickNum)(e.legend.options.markerGap,0),{width:l.width+this._gap+u.width,height:(0,fQ.maxv)(l.height,u.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=(0,fQ.pickNum)(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(mQ.ChartElement);pQ.LegendItemView=bQ;var xQ=function(t){function e(i){var r=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return r._itemViews=new dQ.ElementPool(r,bQ),r}return hQ(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,r,n){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=(0,fQ.pickNum)(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?(0,fQ.pickNum)(o.gap,0):0,a?r=e.getMaxHeight(r):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,r)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,r=this._rowViews,n=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,l=i.itemGap||0,u=this._margins,c=this._paddings,p=this._vertical,h=u.left+c.left,f=u.top+c.top,d=h,_=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor(),r=e.legendStroke();t._marker.setColor(i),r&&t._marker.setStroke(r),n&&e.visible?t._label.setFill(i):t._label.setFill("")})),r.forEach((function(i,r){p?(i.forEach((function(t){t.mw=o[r],t.resizeByMeasured().layout(e._wMarkers[r])})),_=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.top+u.bottom+c.top+c.bottom,_+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(d,_),_+=t.height+l})),d+=o[r]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),d=h,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.left+u.right+c.left+c.right,d+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(d,_),d+=t.width+l})),_+=o[r]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,r,n,o){var s,a,l,u,c=this,p=e.options,h=e.items(),f=this._itemViews,d=p.itemGap||0,_=p.lineGap||0,y=e.getMarkerSize(),g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(h[i].source.legendMarker(t,y)),e.measure(t,h[i],n,o,1)}));var b=0,x=0;if(i){for(;b<g;)u=f.get(b),x%r==0?(v.push(l=[u]),a=u.mh,x++,b++):(a+=d+u.mh)<=o?(l.push(u),x++,b++):x=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,r=0,n=0;t.forEach((function(t){r+=t.mh,i=(0,fQ.maxv)(i,t.mw),n=(0,fQ.maxv)(n,t._rMarker.width),t._col=e})),r+=d*(t.length-1),a=(0,fQ.maxv)(a,r),s+=i,m.push(i),c._wMarkers.push(n)})),s+=_*(v.length-1)}else{for(;b<g;)u=f.get(b),x%r==0?(v.push(l=[u]),s=u.mw,x++,b++):(s+=d+u.mw)<=n?(l.push(u),x++,b++):x=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=(0,fQ.maxv)(i,t.mh)})),e+=d*(t.length-1),s=(0,fQ.maxv)(s,e),a+=i,m.push(i)})),a+=_*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(mQ.BoundableElement);pQ.LegendView=xQ;var wQ={},SQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(wQ,"__esModule",{value:!0}),wQ.PolarBodyView=void 0;var PQ=iM,AQ=rM,OQ=aW,CQ=fj,EQ=GB,VQ=nM,TQ=dU,kQ=KG,LQ=sW,NQ=sU,MQ=NI,jQ=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new TQ.CircleElement(e)),i}return SQ(e,t),e.prototype.layout=function(){},e}(CQ.RcElement),RQ=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new CQ.LayerElement(e,"rct-polar-axis-markers")),o._markViews=new OQ.ElementPool(o._markContainer,jQ),o.add(o._gridContainer=new CQ.RcElement(e,"rct-polar-axis-grids")),o._labelViews=new OQ.ElementPool(o._labelContainer=r,LQ.AxisLabelView,n?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return SQ(e,t),e.prototype.prepare=function(t,e,i,r){this._model=e,this._circular=i,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,r)},e.prototype.layout=function(t,e,i,r){var n=this._model._ticks;return this._doLayout(this._model,e,i,r,n,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,r){var n=i.getLabelText(e,r),o=e.label,s=i.getLabelStyle(e,r);(t.value=e.value,null!=n)?o&&n.match(LQ.axis_label_reg)?t.setLabel(i,s,e,n.replace(LQ.axis_label_reg,o),1e3,1e3):(i.prepareRich(n),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,s,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,r=e.label;if(r.visible&&e.checkVisible()){var n=e._ticks,o=r.chart._body.getPolar(e),s=o.start,a=o.total,l="auto"===r.options.rotation,u=n.length;this._labelContainer.setStyleOrClass(r._style),this._labelViews.prepare(u,(function(t,o,c){t.setVis(!0),i._prepareLabel(t,n[o],r,c);var p=l?(s+e.getPos(u,n[o].value))/a*360+90:0,h=t.getBBox(),f=h.width,d=h.height;t.setRotation(f/2,d/2,p)}))}else this._labelViews.forEach((function(t){return t.setVis(!1)}))},e.prototype.prepareGuides=function(t,e,i){var r=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,r,!0),r=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,r,!0)},e}(CQ.RcElement),BQ=function(t){function e(i,r,n){var o=t.call(this,i,"rct-polar-xaxis",n,!0)||this;return o._gridLines=new OQ.ElementPool(o._gridContainer,kQ.LineElement,e.GRID_CLASS),r.insertFirst(o._startView=new kQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._endView=new kQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._lineView=new TQ.ArcPolyElement(i,e.LINE_CLASS)),o}return SQ(e,t),e.prototype._doPrepare=function(t,e,i){var r=t.line,n=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(r.visible)&&(o.setStyleOrClass(r._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&n.visible)?(this._startView.setStyleOrClass(n._style),this._endView.setVis(!0),this._endView.setStyleOrClass(n._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,r,n,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(n.forEach((function(t){return t.pos=t.pos/r*a/VQ.PI_2})),this._gridContainer.visible&&this._gridLines.forEach((function(o,a){var l=n[a].pos,u=e+(0,PQ.cos)(s+l)*r,c=i+(0,PQ.sin)(s+l)*r;o.setFill("none"),o.setLine(e,i,u,c),o.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var l=this._labelViews.count;if(l>0){var u=Math.ceil(9/(360/l)),c=r+t.tick._getLength(),p=this._labelContainer.textAlign()||"center",h=[];this._labelViews.forEach((function(t,r){if(t.setVis(r%u==0)){t.layout(p);var o=n[r],a=t.getBBox(),l=t.angle=s+o.pos,f=e+(0,PQ.cos)(l)*(c+a.width/2)-a.width/2,d=i+(0,PQ.sin)(l)*(c+a.height/2)-a.height/2;t.trans(f,d),h.push(t)}}));var f=h.length;f>2&&((0,PQ.absv)(h[f-1].angle-h[f-2].angle)<VQ.PI_2/24||AQ.Utils.diffAngle(h[f-1].angle,h[0].angle)<VQ.PI_2/24)&&h[f-1].setVis(!1)}}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,r,s,a,!0);else{var d=t.isArced(),_=[];d&&n[0].pos>0&&_.push(e+(0,PQ.cos)(s)*r,i+(0,PQ.sin)(s)*r),n.map((function(t){var n=t.pos;_.push(e+(0,PQ.cos)(s+n)*r,i+(0,PQ.sin)(s+n)*r)})),d&&n[n.length-1].pos<a&&_.push(e+(0,PQ.cos)(s+a)*r,i+(0,PQ.sin)(s+a)*r),this._lineView.setPolyline(_)}this._startView.visible&&(this._startView.setLine(e,i,e+(0,PQ.cos)(s)*r,i+(0,PQ.sin)(s)*r),this._endView.setLine(e,i,e+(0,PQ.cos)(s+a)*r,i+(0,PQ.sin)(s+a)*r))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(RQ),DQ=function(t){function e(e,i,r){var n=t.call(this,e,"rct-polar-yaxis",r,!1)||this;return n._gridViews=new OQ.ElementPool(n._gridContainer,TQ.ArcPolyElement,"rct-polar-yaxis-grid-line"),i.add(n._lineView=new kQ.LineElement(e,"rct-polar-yaxis-line")),i.add(n._baseView=new TQ.ArcPolyElement(e,"rct-polar-yaxis-baseline")),n}return SQ(e,t),e.prototype._doPrepare=function(t,e,i,r){var n=t.line,o=t instanceof MQ.ContinuousAxis&&t.baseLine;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridViews.prepare(e.length,null),this._lineView.setVis(n.visible)&&this._lineView.setStyleOrClass(n._style),this._baseView.setVis(o.visible&&t.isBaseVisible())&&this._baseView.setStyleOrClass(o._style)},e.prototype._doLayout=function(t,e,i,r,n,o){function s(t,r){if(t.setFill("none"),a)t.setArc(e,i,r,c,p,!0);else{var n=[];u&&l[0].pos>0&&n.push(e+(0,PQ.cos)(c)*r,i+(0,PQ.sin)(c)*r),l.forEach((function(t){var o=t.pos;n.push(e+(0,PQ.cos)(c+o)*r,i+(0,PQ.sin)(c+o)*r)})),u&&l[l.length-1].pos<p&&n.push(e+(0,PQ.cos)(c+p)*r,i+(0,PQ.sin)(c+p)*r),t.setPolyline(n)}}var a=this._circular,l=o._ticks,u=o.isArced(),c=o.getStartAngle(),p=o.getTotalAngle();if(this._gridContainer.visible&&this._gridViews.forEach((function(e,i){s(e,n[i].pos),e.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var h=this._labelContainer.textAlign()||"right",f="left"===h?0:"center"===h?.5:1,d="left"===h?3:"center"===h?0:-3;if(u){var _=o.getStartAngle();this._labelViews.forEach((function(t,r){var o=t.getBBox();t.setContrast(null).trans(e+(0,PQ.cos)(_)*n[r].pos-o.width*f+d,i+(0,PQ.sin)(_)*n[r].pos-o.height/2)}))}else this._labelViews.forEach((function(t,r){var o=t.getBBox();t.setContrast(null).trans(e-o.width*f+d,i-n[r].pos-o.height/2)}))}this._lineView.visible&&(u?this._lineView.setLine(e,i,e+r*(0,PQ.cos)(c),i+r*(0,PQ.sin)(c)):this._lineView.setVLine(e,i,i-r)),this._baseView.visible&&s(this._baseView,t.getPos(r,t.getBaseValue()))},e}(RQ),IQ=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._yAxisViews=[],r}return SQ(e,t),e.prototype._doMeasure=function(e,i,r,n,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,r,n,o);return this._circular=this.model.options.circular,this._prepareAxes(e,s.xAxis,s._getYAxes().visibles(),this._circular,s.xAxis.isArced()),a},e.prototype._renderBackground=function(t,e,i){var r=this.model.getPolar(null),n=r.cx,o=r.cy,s=r.rd;t.setPath(EQ.SvgShapes.circle(n,o,s))},e.prototype._setImage=function(e,i,r,n){var o=this.model.getPolar(null),s=o.cx,a=o.cy,l=o.rd;if(t.prototype._setImage.call(this,e,i,2*l,2*l))return i.trans(s-l,a-l),this.isClip(this._polarBodyClip)||(this._polarBodyClip=this.control.clipCircle()),this._polarBodyClip.setCircle(l,l,l),i.setClip(this._polarBodyClip),!0},e.prototype._doLayout=function(){var t=this,e=this.width,i=this.height,r=this.model.setPolar(e,i),n=r.getPolar(null),o=n.cx,s=n.cy,a=n.rd;this._renderBackground(this._background,e,i),this._setImage(r.image,this._image,e,i),this._seriesViews.forEach((function(e){var i;e.setCircular(t._circular),e.model.needClip(!0)&&(t.isClip(t._polarClip)||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(o,s,a),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*a,2*a),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisContainer.visible&&this._xAxisView.layout(r.chart.yAxis,o,s,a),this._yAxisViews.forEach((function(t){t.layout(r.chart.xAxis,o,s,a)})),[this._guideContainer,this._frontGuideContainer].forEach((function(e){e._views.forEach((function(e){return e.visible&&e.layout(t.width,t.height,r.getPolar(e.model.axis))}))})),this._layoutAnnotations(!1,this,e,i)},e.prototype._prepareAxes=function(t,e,i,r,n){var o=this;if(!this._xAxisContainer){var s=this._image;this.insertAfter(this._xAxisLabelContainer=new CQ.LayerElement(t,"rct-axis-labels rct-polar-axis-labels rct-polar-x-axis-labels"),s),this.insertAfter(this._yAxisLabelContainer=new CQ.LayerElement(t,"rct-axis-labels rct-polar-axis-labels rct-polar-y-axis-labels"),s),this.insertAfter(this._lineContainer=new CQ.LayerElement(t,"rct_axis-lines"),s),this.insertAfter(this._xAxisContainer=new CQ.LayerElement(t,"rct-polar-axes"),s),this.insertAfter(this._yAxisContainer=new CQ.LayerElement(t,"rct-polar-axes"),s)}for(var a=this._yAxisViews;a.length<i.length;){var l=new DQ(t,this._lineContainer,this._xAxisLabelContainer);this._yAxisContainer.add(l),a.push(l)}for(;a.length>i.length;)a.pop().remove();a.forEach((function(e,s){e.setVis(!0),e.prepare(t,i[s],r,n),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisContainer.setVis(e.checkVisible())&&(this._xAxisView||(this._xAxisView=new BQ(t,this._lineContainer,this._yAxisLabelContainer)),this._xAxisContainer.add(this._xAxisView),this._xAxisView.prepare(t,e,r,n))},e}(NQ.BodyView);wQ.PolarBodyView=IQ;var GQ={},FQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(GQ,"__esModule",{value:!0}),GQ.TitleView=void 0;var zQ=pW,$Q=FM,HQ=uj,WQ=function(t){function e(i,r){var n=t.call(this,i,r?e.SUBTITLE_CLASS:e.TITLE_CLASS,r?"rct-subtitle-background":"rct-title-background")||this;return n.isSub=r,n.add(n._textView=new HQ.TextElement(i)),n._richText=new $Q.SvgRichText,n}return FQ(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,zQ.rectToSize)(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(mW.BoundableElement);GQ.TitleView=WQ;var UQ={},YQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(UQ,"__esModule",{value:!0}),UQ.HtmlTooltipView=UQ.TooltipView=UQ.TooltipPosition=void 0;var XQ,qQ=iM,ZQ=Pj,KQ=fj,JQ=FM,QQ=uj,t0=DB,e0=tI;!function(t){t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right"}(XQ||(UQ.TooltipPosition=XQ={}));var i0=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r._hideHandler=function(){r.$_hide(),r._hideTimer=void 0},r.add(r._back=new KQ.PathElement(i,"rct-tooltip-back")),r.add(r._top=new KQ.PathElement(i,"rct-tooltip-top")),r.add(r._textView=new QQ.TextElement(i,"rct-tooltip-text")),r._back.setAttr("filter","url(#"+KQ.RcControl.SHADOW_FILTER+")"),r._textView.anchor=QQ.TextAnchor.START,r._richText=new JQ.SvgRichText,r.close(!0,!1),r}return YQ(e,t),e.prototype.show=function(t,e,i,r,n,o,s){var a=i.point,l=this._model=t.chart._tooltip,u=l.setTarget(t,a,r&&r.map((function(t){return t.point})));if(u){var c=l.options,p=c.text||u.getTooltipText(t,a);if(p&&p.trim()){this.setStyleOrClass(l._style);var h=e.contentWidth(),f=e.contentHeight(),d=this._textView,_=l.getHeaderHeight(),y=l.getTailSize(),g=t.chart.isInverted(),v=t._yAxisObj,m=v.options.reversed;t instanceof t0.BasedSeries&&t.getBaseValue(v)>i.point.yValue&&(m=!m),this._richText.setFormat(p),this._richText.build(d,NaN,NaN,null,l.getTextDomain());var b=d.getBBox(),x=(0,qQ.maxv)(c.minWidth||0,b.width+16),w=(0,qQ.maxv)(c.minHeight||0,b.height+12)+_,S=t._calcedColor;t instanceof t0.WidgetSeries?(t.options.legendByPoint||t._colorByPoint())&&(S=a._calcedColor):t._colorByPoint()&&(S=getComputedStyle(i.dom).fill),this._top.setFill(S);var P,A,O=this.isVisible()?300:0,C=c.offset+y,E=s.getFocusPointView().getBounds(),V=e.getBounds(),T=l.isFollowPointer(t);if(g&&!t.isWidget)P=o-w/2-(0,qQ.maxv)(0,(0,qQ.minv)(o-w/2,f-w)),(T?m?x+C>n:n+x+C>h:m?x+C>E.x-V.x+E.width:E.x-V.x-C>h-x)&&(m=!m),A=m?XQ.LEFT:XQ.RIGHT,this.$_drawTooltip(0,0,x,w,A,P),m?n-=x+C:n+=C,o-=w/2;else{P=n-x/2-(0,qQ.maxv)(0,(0,qQ.minv)(n-x/2,h-x));var k=T?o-e.getRootDistance().y:E.y-V.y-e._padding.top,L=T?f-o:V.bottom-E.bottom;if(k>=w+C||L>=w+C){(m?L>=w+C:k>=w+C)?A=m?XQ.BOTTOM:XQ.TOP:(A=m?XQ.TOP:XQ.BOTTOM,m=!m),this.$_drawTooltip(0,0,x,w,A,P),n-=x/2,m?o+=C:o-=w+C}else{P=o-w/2-(0,qQ.maxv)(0,(0,qQ.minv)(o-w/2,f-w));var N=E.x-V.x;A=h-N>=x+C||N<x+C?XQ.RIGHT:XQ.LEFT,this.$_drawTooltip(0,0,x,w,A,P),A===XQ.RIGHT?n+=C:n-=x+C,o-=w/2}}return n=(0,qQ.maxv)(0,(0,qQ.minv)(n,h-x)),o=(0,qQ.maxv)(0,(0,qQ.minv)(o,f-w)),isNaN(this.tx)||isNaN(this.tx)?(this.trans((0,qQ.maxv)(0,n-20),(0,qQ.maxv)(0,o-20)),this.transEx(n,o,O/2,!1)):this.transEx(n,o,O,!1),0===O&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),{x:n,y:o,w:x,h:w}}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:e0.Tooltip.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;(0,ZQ.createAnimation)(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.$_drawTooltip=function(t,e,i,r,n,o){var s=this._model,a=s.getTailSize(),l=s.getBorderRadius(),u=s.getHeaderHeight(),c=["M",t+l,e,"L",t+i-l,e,"Q",t+i,e,t+i,e+l,"L",t+i,e+r-l,"Q",t+i,e+r,t+i-l,e+r,"L",t+l,e+r,"Q",t,e+r,t,e+r-l,"L",t,e+l,"Q",t,e,t+l,e];if(a>0)switch(n){case XQ.TOP:c=c.concat(["M",t+i/2-a/2+o,e+r,"L",t+i/2+o,e+r+a,"L",t+i/2+a/2+o,e+r]);break;case XQ.BOTTOM:c=c.concat(["M",t+i/2-a/2+o,e,"L",t+i/2+o,e-a,"L",t+i/2+a/2+o,e]);break;case XQ.LEFT:c=c.concat(["M",t+i,e+r/2-a/2+o,"L",t+i+a,e+r/2+o,"L",t+i,e+r/2+a/2+o]);break;case XQ.RIGHT:c=c.concat(["M",t,e+r/2-a/2+o,"L",t-a,e+r/2+o,"L",t,e+r/2+a/2+o])}var p=n===XQ.BOTTOM,h=p?["M",t,e+r-u,"l",i,0,"l",0,u-l,"q",0,l,-l,l,"l",2*l-i,0,"q",-l,0,-l,-l]:["M",t+l,e,"l",i-2*l,0,"q",l,0,l,l,"l",0,u-l,"l",-i,0,"l",0,l-u,"q",0,-l,l,-l],f=this._textView,d=f.getBBox();t+=(i-d.width)/2,e+=(r-d.height+(p?-u:u))/2,f.trans(t,e),this._top.setPath(u>0?h:""),this._back.setPath(c)},e.CLASS_NAME="rct-tooltip",e}(KQ.RcElement);UQ.TooltipView=i0;var r0=function(t){function e(e,i){var r=t.call(this,e,i,!0)||this;return r.addSvg(r._tooltipView=new i0(e)),r}return YQ(e,t),e.prototype._doInitDom=function(e){t.prototype._doInitDom.call(this,e),e.style.pointerEvents="none",e.style.overflow="visible"},e.prototype.show=function(t,e,i,r,n,o){this.setVisibility(!0);var s=this._tooltipView.show(t,this.control,e,i,r,n,o),a=this.control.getRootDistance();this.setBounds(a.x,a.y,s.w,s.h)},e.prototype.close=function(t,e){this.setVisibility(!1),this._tooltipView.close(t,e)},e}(KQ.RcHtmlElement);UQ.HtmlTooltipView=r0;var n0={},o0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(n0,"__esModule",{value:!0}),n0.HtmlButtonView=void 0;var s0=dj,a0=nM,l0=rM,u0=function(t){function e(e){var i=t.call(this)||this;return i._dom=i.$_initDom(e),i}return o0(e,t),e.isButton=function(t){return t.classList.contains("rct-html-button")},e.prototype._doDestroy=function(){this._dom.remove(),this._dom=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.setVisible=function(t){return this._dom.style.display=t?"":"none",t},e.prototype.setModel=function(t){var e=this._dom,i=s0.Dom.isHoverAt(e),r=(this._model=t).options;return s0.Dom.setBoolData(e,"hoverBack","background"===t.getHoverEffect()),isNaN(r.width)?r.autoWidth?e.style.width="max-content":e.style.width="":e.style.width=(0,a0.dimStr)(r.width),isNaN(r.height)?e.style.height="":e.style.height=(0,a0.dimStr)(r.height),"custom"===r.hintMode?(r.hint?e.dataset.hint=r.hint:delete e.dataset.hint,delete e.title):(delete e.dataset.hint,e.title=r.hint||""),r.imageUrl?s0.Dom.setStyles(this._img,{display:"",width:(0,a0.pixel)(r.imageWidth),height:(0,a0.pixel)(r.imageHeight)}):s0.Dom.setStyles(this._img,{display:"none",width:"",height:""}),this.$_setImage(l0.isIE?this._hovered:i),this._span.textContent=r.text||"",this},e.prototype.layout=function(t){var e=this._dom,i=e.style,r=this._model.options,n=r.align,o=r.verticalAlign;i.left=(0,a0.pixel)("left"===n?t.x+(r.offsetX||0):"right"===n?t.x+t.width-e.offsetWidth-(r.offsetX||0):t.x+(t.width-e.offsetWidth)/2+(r.offsetX||0)),i.top=(0,a0.pixel)("top"===o?t.y+(r.offsetY||0):"bottom"===o?t.y+t.height-e.offsetHeight-(r.offsetY||0):t.y+(t.height-e.offsetHeight)/2+(r.offsetY||0))},e.prototype.pointerEnter=function(){this._hovered=!0,this.$_setImage(!0)},e.prototype.pointerLeave=function(){this._hovered=!1,this.$_setImage(!1)},e.prototype.click=function(){this._model.click()},e.prototype.$_initDom=function(t){var e=t.createElement("button"),i=t.createElement("div");return e.className="rct-html-button",s0.Dom.setStyles(e,{position:"absolute",textAlign:"center"}),s0.Dom.setStyles(i,{display:l0.isIE?"flex":"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),e.appendChild(i),this._img=t.createElement("span"),this._img.className="rct-html-button-image",s0.Dom.setStyles(this._img,{backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center",pointerEvents:"none"}),i.appendChild(this._img),this._span=t.createElement("span"),s0.Dom.setStyles(this._span,{whiteSpace:"pre-line",pointerEvents:"none",textAlign:"center",padding:"2px"}),l0.isIE&&s0.Dom.setStyles(this._span,{wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"}),i.appendChild(this._span),e},e.prototype.$_setImage=function(t){var e=this._model.options;e.imageUrl?t&&"image"===this._model.getHoverEffect()?this._img.style.backgroundImage="url(".concat(e.hoverImageUrl||e.imageUrl,")"):this._img.style.backgroundImage="url(".concat(e.imageUrl,")"):this._img.style.backgroundImage=""},e}(_M.RcObject);n0.HtmlButtonView=u0;var c0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),p0=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},h0=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},f0=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(sQ,"__esModule",{value:!0}),sQ.ChartView=sQ.PaneContainer=sQ.CreditView=void 0;var d0=iM,_0=rM,y0=fj,g0=uj,v0=TM,m0=ZB,b0=CB,x0=DB,w0=MG,S0=sW,P0=sU,A0=mW,O0=aQ,C0=pQ,E0=oU,V0=wQ,T0=GQ,k0=UQ,L0=lD,N0=n0,M0=function(t){function e(){var e=t.apply(this,h0([],p0(arguments),!1))||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return c0(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new T0.TitleView(t,!1)),this.add(this.subtitleView=new T0.TitleView(t,!0))},e.prototype._doMeasure=function(t,e,i,r,n){var o,s=e._title,a=e._subtitle,l=0,u=0,c=0,p=0,h=this.titleView,f=i,d=0,_=0;switch(h.setVis(s.visible)?(o=h.measure(t,s,i,r,n),u=this._hTitle=o.height,l=this._wTitle=o.width):h.setModel(s),(h=this.subtitleView).setVis(a.visible)?(o=h.measure(t,a,i,r,n),p=this._hSub=o.height,c=this._wSub=o.width,_=+a.options.titleGap||0):h.setModel(a),a.options.position){case"leftSide":case"left":case"rightSide":case"right":d=(0,d0.maxv)(u,p),f=l+_+c;break;default:d=u+_+p,f=(0,d0.maxv)(f,l+c)}return d>0&&(d+=this.titleView.visible?(0,d0.pickNum)(s.options.gap,0):(0,d0.pickNum)(a.options.gap,0)),{width:f,height:d}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,r=this.subtitleView,n=i.model,o=r.model,s=n&&n.options,a=o&&o.options,l=n&&n.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,u=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,c=this._wTitle>t.wPlot||n&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(l>0&&u>0){var h=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=(0,d0.maxv)(e._hTitle,e._hSub);g=(0,d0.maxv)(g,g+h(n,t,e._hTitle)),m=(0,d0.maxv)(m,m+h(o,t,e._hSub))},d=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},_=function(){if(v=(0,d0.maxv)(v,v+d(n,l,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=(0,d0.maxv)(b,b+d(o,u,e._wSub))},y=(0,d0.pickNum)(a.titleGap,0),g=0,v=c,m=0,b=p;switch(s.align){case"left":switch(a.position){case"leftSide":case"left":v=b+this._wSub+y,f();break;case"rightSide":b=v+this._wTitle+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=(0,d0.maxv)(b,b+(u-this._wTitle-this._wSub)/2);break;case"right":b=(0,d0.maxv)(b,p+u-this._wSub)}f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"leftSide":v+=l-this._wTitle,b=v-y-this._wSub,f();break;case"left":switch(v+=l-this._wTitle,a.align){case"center":b+=(l-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"rightSide":case"right":b+=u-this._wSub,v=b-y-this._wTitle,f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;default:switch(a.position){case"leftSide":v+=(l-this._wTitle)/2,b=v-this._wSub-y,f();break;case"left":switch(v+=(l-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-this._wSub-y}f();break;case"rightSide":v+=(l-this._wTitle)/2,b=v+this._wTitle+y,f();break;case"right":switch(v+=(l-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b+=v+this._wTitle+y,b+=(u-b-this._wSub)/2;break;case"right":b+=u-y-this._wSub}f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}}var x=(0,d0.pickNum)(s.offset,0),w=(0,d0.pickNum)(a.offset,0);0!==x&&(v+="right"===s.align?-x:x,"leftSide"!==a.position&&"rightSide"!==a.position||(b+="right"===s.align?-x:x)),0!==w&&"leftSide"!==a.position&&"rightSide"!==a.position&&(b+="right"===a.align?-w:w),i.resizeByMeasured().layout().trans(v,g),r.resizeByMeasured().layout().trans(b,m)}else if(l>0||u>0){var S=l?n:o,P=l?i:r,A=l||u,O=l?this._wTitle:this._wSub,C=l?c:p;switch(P.resizeByMeasured().layout(),S.options.align){case"left":break;case"right":C+=A-O;break;default:C+=(A-O)/2}P.trans(C,0)}},e}(A0.SectionView),j0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c0(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new C0.LegendView(t))},e.prototype._doMeasure=function(t,e,i,r,n){var o=e._legend,s=this._legendView.measure(t,o,i,r,n),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,r=this.height,n=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,n+=e;break;case"top":r-=e;break;default:o+=e,r-=e}t.trans(n,o).resize(i,r),t.layout()},e}(A0.SectionView),R0=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dir=i,r.views=[],r._gap=0,r}return c0(e,t),e.prototype.prepare=function(t,e,i,r,n,o){var s,a=this.views;for(a.length;a.length<r.length;)s=e.createAxisView(t),this.add(s),a.push(s);for(;a.length>r.length;)(s=a.pop()).parent&&s.remove();if(a.forEach((function(t,e){t.prepare(r[e])})),this.setVis(a.length>0)){var l=a[0].model;this.isX=l._isX,this.isHorz=l._isHorz,this._gap=l.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){this.views.forEach((function(r,n){r.prepareGuides(t,NaN,NaN,e,i)}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkHeight(e,i,r)})),n+=(this.views.length-1)*this._gap),n},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkWidth(e,i,r)})),n+=(this.views.length-1)*this._gap),n},e.prototype.getScrollView=function(t){var e,i,r;try{for(var n=f0(this.views),o=n.next();!o.done;o=n.next()){var s=o.value;if(null===(r=s._scrollView)||void 0===r?void 0:r.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype._doMeasure=function(t,e,i,r,n){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var l=(o.isX,i),u=(o.isX,r),c=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,l,u,n);e.setAttr("xy",e.model._isX?"x":"y"),c+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:c+=(e.length-1)*o._gap,s=(0,d0.maxv)(s,c),a=(0,d0.maxv)(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control,r=i.loaded,n=[],o=this.width,s=this.height,a=0,l=0;t=+t||0,[this.views].forEach((function(i){if(i){var u=0;i.forEach((function(t){if(t.visible){var i=t.checkExtents(r);i&&n.push(i),e.isHorz?(t.resize(o,t.mh),t.model._calcPoints(e.width,999)):(t.model._calcPoints(e.height,999),t.resize(t.mw,s)),t.layout(),e.isHorz?(t.trans(a,e.dir===v0.SectionDir.TOP?s-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===v0.SectionDir.RIGHT?u:o-u-t.mw,l),u+=t.mw+e._gap)}})),e.isHorz?a+=o+t:l+=s+t}}));var u=n.length>0&&i.chart.body.options.zoomCallback;u&&Promise.resolve().then((function(){n.forEach((function(t){var e=t.axis,i=t.from,r=t.to;u({chart:e.chart.wrapper,series:e.getConnectableSeries().slice(0),from:e instanceof L0.CategoryAxis?Math.floor(i):i,to:e instanceof L0.CategoryAxis?Math.floor(r):r})}))}))},e}(A0.SectionView),B0=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new g0.TextElement(e)),i._textView.anchor=g0.TextAnchor.START,i}return c0(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,r,n){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(A0.ChartElement);sQ.CreditView=B0;var D0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c0(e,t),e}(y0.LayerElement);sQ.PaneContainer=D0;var I0=function(t){function e(i){var r=t.call(this,i,"rct-chart")||this;for(var n in r._inverted=!1,r._axisSectionMap={},r._annotationViews=[],r._annotationMap=new Map,r._htmlButtons=[],r.add(r._annotationContainer=new y0.LayerElement(i,"rct-annotations")),r.add(r._plotContainer=new y0.LayerElement(i,"rct-plot-container")),r._plotContainer.add(r._currBody=r._bodyView=new P0.BodyView(i,r)),v0.SectionDir){var o=new R0(i,v0.SectionDir[n]);r._plotContainer.add(o),r._axisSectionMap[v0.SectionDir[n]]=o}return e.pane_class&&r.add(r._paneContainer=new e.pane_class(i,r)),r.add(r._titleSectionView=new M0(i)),r.add(r._legendSectionView=new j0(i)),r.add(r._frontAnnotationContainer=new y0.LayerElement(i,"rct-front-annotations")),r.add(r._creditView=new B0(i)),r.add(r._navigatorView=new E0.NavigatorView(i)),r.add(r._historyView=new O0.HistoryView(i)),r}return c0(e,t),e.registerPaneClass=function(t){this.pane_class=t},e.prototype._doDestroy=function(){var e;this._htmlTooltipView=null===(e=this._htmlTooltipView)||void 0===e?void 0:e.destroy(),t.prototype._doDestroy.call(this)},e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,r,n){var o,s,a,l,u=this,c=this._model=e,p=c.isPolar(),h=c._credits,f=c._legend,d=c._navigator,_=i,y=r;if(e._width=i,e._height=r,this._inverted=c.isInverted(),c.isSplitted()?(this._plotContainer.setVis(!1),null===(o=this._paneContainer)||void 0===o||o.setVis(!0),this.$_preparePanes(t,c._split)):(this._plotContainer.setVis(!0),null===(s=this._paneContainer)||void 0===s||s.setVis(!1),this.$_prepareBody(t,p)),this._creditView.setVis(h.visible)&&(l=this._creditView.measure(t,h,_,y,n),h.isFloating()||("middle"!==h.options.verticalAlign?y-=l.height+(+h.options.offsetY||0)+(+h.options.gap||0):"center"!==h.options.align&&(_-=l.width+(+h.options.offsetX||0)+(+h.options.gap||0)))),y-=(l=this._titleSectionView.measure(t,c,_,y,n)).height,this._legendSectionView.setVis(f.visible))switch(l=this._legendSectionView.measure(t,c,_,y,n),f._location){case"top":case"bottom":y-=l.height;break;case"right":case"left":_-=l.width}if(this._navigatorView.setVis(d.visible),null===(a=this._paneContainer)||void 0===a?void 0:a.visible)this._paneContainer.measure(t,c._split,_,y,1);else{if(this._navigatorView.visible){var g=c._navigator;g._vertical?_-=g.getSize():y-=g.getSize()}p?this.$_measurePolar(t,c,_,y,1):this.$_measurePlot(t,c,_,y,1)}if(this._navigatorView.visible){var v=p?this._polarView:this._bodyView;c._navigator._vertical?y=v.mh:_=v.mw,this._navigatorView.measure(t,d,_,y,n)}this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,u._annotations[o],i,r,n)}))},e.prototype.layout=function(){var t,e=this,i=this.width,r=this.height,n=i,o=r,s=this._model,a=s.isPolar(),l=s._legend,u=this._creditView,c=s._credits,p=c.options,h=+p.gap||0,f=this._bodyView._depthExt,d=0,_=0,y=0,g=0,v=0,m=0,b=0,x=0;u.visible&&(u.resizeByMeasured(),c.isFloating()||("middle"!==p.verticalAlign?(d=+p.offsetY||0,"top"===p.verticalAlign?o-=y=u.height+d+h:o-=g=u.height+d+h):(_=+p.offsetX||0,"left"===p.align?n-=v=u.width+_+h:n-=m=u.width+_+h)));var w=this._titleSectionView,S=0,P=x+y;w.visible&&(w.resizeByMeasured(),o-=S=w.height),b=v,x=r-g;var A=this._navigatorView,O=0;A.visible&&(A.model._vertical||(A.resize(A.mw,A.mh-A.model.getGap()-A.model.getGapFar()),o-=O=A.mh));var C,E,V=this._legendSectionView,T=0,k=0;if(V.visible)switch(V.resizeByMeasured().layout(),T=V.height,k=V.width,l._location){case"top":C=S+y,o-=T;break;case"bottom":o-=T,C=x-T,x-=T;break;case"right":n-=k,E=i-k;break;case"left":n-=k,b+=k,E=0}A.visible&&(x-=O,A.layout().transY(x+A.model.getGap()));var L,N=0,M=0;if(null===(t=this._paneContainer)||void 0===t?void 0:t.visible)this._paneContainer.trans(b,P+S).resize(n,o),this._paneContainer.layout(),N=o,M=n,L=this._paneContainer.getRect();else{var j,R=this._axisSectionMap;a||([v0.SectionDir.LEFT,v0.SectionDir.RIGHT].forEach((function(t){(j=R[t])&&j.visible&&(n-=j.mw)})),[v0.SectionDir.TOP,v0.SectionDir.BOTTOM].forEach((function(t){(j=R[t])&&j.visible&&(o-=j.mh)})),(j=R[v0.SectionDir.LEFT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0),b+=j.mw),(j=R[v0.SectionDir.RIGHT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0)),(j=R[v0.SectionDir.BOTTOM])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0),x-=j.mh),(j=R[v0.SectionDir.TOP])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0))),A.visible&&A.layout().transX(b);var B={x:b,y:x};this._plotWidth=n,this._plotHeight=o,a||((j=R[v0.SectionDir.LEFT])&&j.visible&&j.trans(B.x-j.mw,B.y-j.height),(j=R[v0.SectionDir.RIGHT])&&j.visible&&j.trans(B.x+n,B.y-j.height),(j=R[v0.SectionDir.BOTTOM])&&j.visible&&j.trans(B.x,B.y),(j=R[v0.SectionDir.TOP])&&j.visible&&j.trans(B.x,B.y-o-j.height));var D=this._currBody;N=this._plotHeight-0,M=this._plotWidth-0,b=B.x,x=B.y-this._plotHeight,D.resize(M,N),D.trans(b,x),D.layout(),L=D.getRect(),D._seriesViews.forEach((function(t){if(t.needDecoreateLegend()){var i=e._legendSectionView._legendView.legendOfSeries(t.model);i&&t.decoreateLegend(i)}}))}if(u.visible){var I=void 0,G=void 0;switch(u.layout(),p.verticalAlign){case"top":G=d;break;case"middle":G=(r-u.height)/2+d;break;default:G=g>0?r-g+h:r-u.height-d}switch(p.align){case"left":I=_;break;case"center":I=(i-u.width)/2+_;break;default:I=m>0?i-m+h:i-u.width-_}u.trans(I,G)}if(M+=0,w.visible&&w.layout({xPlot:b,wPlot:M,wChart:i}).trans(0,P),V.visible){var F=l.options,z=F.align,$=F.verticalAlign;if("body"===l._location){var H=+F.offsetX||0;switch(z){case"right":b+=M-k-H;break;case"center":b+=(M-k)/2+H;break;default:b+=H}switch(H=+F.offsetY||0,$){case"bottom":x+=N-T-H;break;case"middle":x+=(N-T)/2+H;break;default:x+=H}}else if(isNaN(C)){H=+F.offsetY||0;if(b=E,"chart"===F.alignBase){switch($){case"top":x=H;break;case"bottom":x=r-T-H;break;default:x=(r-T)/2+H}x+T>r&&(x=(r-T)/2)}else switch($){case"top":x+=H;break;case"bottom":x=x+o-T-H;break;default:x=x+(o-T)/2+H}x+T>r&&(x=(r-T)/2),x<0&&(x=0)}else{var H=+F.offsetX||0;if(x=C,"chart"===F.alignBase)switch(z){case"left":b=H;break;case"right":b=i-k-H;break;default:b=(i-k)/2+H}else switch(z){case"left":b+=H;break;case"right":b=b+n-k-H;break;default:b+=(n-k)/2+H}b+k>i&&(b=(i-k)/2),b<0&&(b=0)}V.trans(b,x)}this.$_layoutHtmlButtons(i,r),this.$_layoutAnnotations(this._inverted,i,r,L),this.hideTooltip()},e.prototype.showTooltip=function(t,e,i,r,n){var o,s=this.control,a=this._model.chart._tooltip,l=a.isFollowPointer(t),u=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},c=u.x,p=u.y,h=r.getTooltipPos(),f=l?n.x+h.x:c+h.x,d=l?n.y+h.y:p+h.y;a.getNoClip()?(this._htmlTooltipView||(this.control.appendSvg(this._htmlTooltipView=new k0.HtmlTooltipView(this.doc,s)),this._htmlTooltip=!0),this._htmlTooltipView.show(t,e,i,f,d,r)):(null===(o=this._htmlTooltipView)||void 0===o||o.setVisibility(!1),this._htmlTooltip=!1,this._tooltipView||this.add(this._tooltipView=new k0.TooltipView(this.doc)),this._tooltipView.show(t,s,e,i,f,d,r))},e.prototype.tooltipVisible=function(){var t,e;return this._htmlTooltip?null===(t=this._htmlTooltipView)||void 0===t?void 0:t.hasVisibility():null===(e=this._tooltipView)||void 0===e?void 0:e.isVisible()},e.prototype.hideTooltip=function(t){var e,i;void 0===t&&(t=!0),this._htmlTooltip?null===(e=this._htmlTooltipView)||void 0===e||e.close(!1,t):null===(i=this._tooltipView)||void 0===i||i.close(!1,t)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.createAxisView=function(t){return new S0.AxisView(t)},e.prototype.legendByDom=function(t){var e=this._legendSectionView._legendView.legendByDom(t);return!e&&this._model.isSplitted()&&(e=this._paneContainer.legendByDom(t)),e},e.prototype.seriesByDom=function(t){var e;return(null===(e=this._paneContainer)||void 0===e?void 0:e.visible)?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.annotationByDom=function(t){var e,i=this._annotationViews.find((function(e){return e.dom.contains(t)}));return i||((null===(e=this._paneContainer)||void 0===e?void 0:e.visible)?this._paneContainer.annotationByDom(t):this._currBody.annotationByDom(t))},e.prototype.htmlButtonByDom=function(t){return this._htmlButtons.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var r,n,o=this,s=i,a=this._model&&this.bodyOf(i),l=null==s?void 0:s.classList,u=(null==l?void 0:l.value)&&(l.contains("rct-contextmenu-item")||l.contains("rct-contextmenu-list")),c=this._hoverItem;if(this._hoverItem=null,(null===(r=this._model)||void 0===r?void 0:r.isSplitted())&&this._paneContainer.bodies.forEach((function(t){t!==a&&t.clearHover()})),a){var p=a.controlToElement(t,e),h=a.pointerMoved(p,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(s)){var f=this._hoverItem=this._legendSectionView._legendView.legendByDom(s);if(f){var d=f.legend;_0.Utils.makeArray(d.getSources(f),!0).forEach((function(t){d.options.seriesHovering&&t instanceof x0.Series?a.hoverSeries(t):d.options.pointHovering&&t instanceof m0.DataPoint&&a.hoverPoint(t)}))}}if(c instanceof b0.LegendItem&&!(this._hoverItem instanceof b0.LegendItem)&&(a.hoverPoint(null),a.hoverSeries(null)),this.$_handleAnnotationHover(i),!h)return void a.removeFocus();for(var _ in this._axisSectionMap)this._axisSectionMap[_].views.forEach((function(t){var e=t.model,i=e.crosshair,r=e._isHorz?a.width:a.height,n=e._isHorz?p.x:p.y,s=h&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(r,n);if(s){t.showCrosshair(n,s);var l=[];a._seriesViews.forEach((function(t){var i,r=Number.MAX_SAFE_INTEGER,n=o._model.inverted;t.model._visPoints.forEach((function(t){var o=t.xPos,s=t instanceof w0.AreaRangeSeriesPoint&&!n?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(p.x-o):Math.abs(p.y-s);a<r&&(r=a,i=t)})),l.push(i)})),i.moved(n,s,l)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus(),this.$_handleAnnotationHover(i)},e.prototype.pointerLeaved=function(t,e,i){this.$_clearAnnotationHover()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in v0.SectionDir){var i=this._axisSectionMap[v0.SectionDir[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype.isAnimating=function(){return this._bodyView.animating()},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,r;e?(this._polarView||(this._polarView=new V0.PolarBodyView(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(r=this._polarView)||void 0===r||r.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model._body,e)},e.prototype.$_prepareHtmlButtons=function(t){var e=this,i=this._model._getButtons(),r=[];i._internalItems().forEach((function(i,n){var o=e._htmlButtons[n];o||(o=new N0.HtmlButtonView(t),e.control.appendDom(o.dom),e._htmlButtons[n]=o),r.push(o)}));for(var n=i.count;n<this._htmlButtons.length;n++)this._htmlButtons[n].destroy();this._htmlButtons=r},e.prototype.$_layoutHtmlButtons=function(t,e){var i=this.control._padding,r=this._htmlButtons;if(r.length>0){var n={x:0,y:0,width:this.control.width(),height:this.control.height()},o={x:i.left,y:i.top,width:t,height:e},s=this._model._getButtons()._internalItems();r.forEach((function(t,e){var i=s[e];t.setVisible(i.visible)&&t.setModel(i).layout(i.isChartScope()?o:n)}))}},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,r=this._currBody._guideContainer,n=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var l=s[a];o?l.prepare(t,this,e,e.getAxes(a,!0),r,n):l.visible=!1}i.prepare()},e.prototype.$_prepareAxisGuides=function(t,e){var i=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,n=!e.isPolar()&&e._needAxes(),o=this._axisSectionMap;for(var s in o){var a=o[s];n&&a.visible&&a.prepareGuides(t,i,r)}},e.prototype.$_measurePlot=function(t,e,i,r,n){var o=this._axisSectionMap,s=i,a=r,l=this._bodyView.checkDepth(e,i,r),u=i-(l?l.base:0),c=r-(l?l.side:0);for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareHtmlButtons(t),this.$_prepareAxes(t,e),e.layoutAxes(u,c,this._inverted,n),i-=o[v0.SectionDir.LEFT].checkWidths(t,i,r),i-=o[v0.SectionDir.RIGHT].checkWidths(t,i,r),r-=o[v0.SectionDir.BOTTOM].checkHeights(t,i,r),r-=o[v0.SectionDir.TOP].checkHeights(t,i,r),u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),o){(h=o[p]).visible&&h.measure(t,e,u,c,n)}for(var p in i=s,r=a,o){(h=o[p]).visible&&(p===v0.SectionDir.LEFT||p===v0.SectionDir.RIGHT?i-=h.mw:p!==v0.SectionDir.BOTTOM&&p!==v0.SectionDir.TOP||(r-=h.mh))}for(var p in n++,u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),this.$_prepareAxisGuides(t,e),o){(h=o[p]).visible&&(h.measure(t,e,u,c,n),h.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=s,r=a,o){var h;(h=o[p]).visible&&(p===v0.SectionDir.LEFT||p===v0.SectionDir.RIGHT?i-=h.mw:p!==v0.SectionDir.BOTTOM&&p!==v0.SectionDir.TOP||(r-=h.mh))}u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.axesLayouted(u,c,this._inverted),this._bodyView.measure(t,e._body,i,r,n)},e.prototype.$_measurePolar=function(t,e,i,r,n){var o=e._body.getRadius(i,r),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,n),this.$_prepareAxisGuides(t,e),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,r,n)},e.prototype.$_prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=f0(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&(s.get(c).remove(),s.delete(c))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||(0,P0.createAnnotationView)(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,r){var n,o,s,a,l=this,u=this.control._padding;this._annotationViews.forEach((function(r){if("container"===r.model.options.scope)n=-u.left,o=-u.top,s=e+u.left+u.right,a=i+u.top+u.bottom;else n=o=0,s=e,a=i;r._layoutView(t,l,n,o,s,a)}))},e.prototype.$_handleAnnotationHover=function(t){var e,i;if(t){var r=this.htmlButtonByDom(t);if(r!==this._hoverButton)return null===(e=this._hoverButton)||void 0===e||e.pointerLeave(),this._hoverButton=r,void(null===(i=this._hoverButton)||void 0===i||i.pointerEnter());var n=this.annotationByDom(t),o=this._hoverAnnotation;n!==o&&(null==o||o.pointerLeave(),null==n||n.pointerEnter())}},e.prototype.$_clearAnnotationHover=function(){this._hoverButton&&(this._hoverButton.pointerLeave(),this._hoverButton=null),this._hoverAnnotation&&(this._hoverAnnotation.pointerLeave(),this._hoverAnnotation=null)},e}(y0.LayerElement);sQ.ChartView=I0;var G0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tM,"__esModule",{value:!0}),tM.ChartControl=void 0;var F0,z0=eM,$0=iM,H0=fj,W0=kM,U0=LM,Y0=oW,X0=sQ;!function(t){t.EXPORT="$$realchart_export"}(F0||(F0={}));var q0=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.addElement(r._chartView=r._createChartView(e)),r.setPointerHandler(r._createPointerHandler()),r._chart=new z0.Chart(null,(function(t,e){r.$_changeModel(t,e)})),r}return G0(e,t),e.prototype._createChartView=function(t){return new X0.ChartView(t)},e.prototype._createPointerHandler=function(){return new Y0.ChartPointerHandler(this)},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof W0.Annotation&&i===U0.ChartItem.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t instanceof z0.Chart&&t!==this._chart&&(this.$_changeModel(t._obj,this.model),this._chart=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.$_changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),this.clearClipDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===F0.EXPORT){var e=t.createExporter(this.doc(),this.dom(),this.model);this.chart.exporter.compose(e)}},e.prototype._canOverflowRender=function(){return!1},e.prototype._doRender=function(t){var e,i=this,r=this.model,n=r._chartOptions.options,o=this._chartView;if(this.clearTemporaryDefs(),r&&(this.setData("theme",n.theme,!0),this.setData("palette",n.palette),this.setResizeDelay(n.resizeDelay),r._prepareRender(),this._loadModules()),this.loaded||o.clean(),o.setVis(!1!==n.visible)&&(o.measure(this.doc(),r,t.width,t.height,1),o.setRect(t),o.layout(),r&&r.afterRender()),null===(e=this._chart)||void 0===e?void 0:e._loadCallback){var s=this._chart._loadCallback;setTimeout((function(){s({chart:i.chart})}),0),this._chart._loadCallback=void 0}},e.prototype._doRenderBackground=function(t,e,i,r){if(this.model){var n=this.model._chartOptions._style;if((0,$0.isObject)(n))for(var o in n)o.startsWith("padding")?e.setStyle(o,n[o]):t.style[o]=n[o]}},e.prototype._loadModules=function(){if(!this.chart.exporter.isCompose()){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this.chart)}},e.prototype._export=function(t){var e=this.model;if(e&&this.chart.exporter.isCompose()){var i=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this.chart.exporter.exportToImage(i,t,e._exporter.options)}}},e}(H0.RcControl);tM.ChartControl=q0,Object.defineProperty(QN,"__esModule",{value:!0}),QN.Globals=void 0;var Z0=tM,K0=eM,J0=iM,Q0=fj,t1=oM,e1=rM,i1=mj,r1=TM,n1=function(){function t(){}return t.getVersion=function(){return i1.globalRealChartInfo.version},t.setLicenseKey=function(t){i1.globalRealChartInfo.code=t},t.setLocale=function(t,e){e&&(0,t1.$_registerLocale)(t,e),(0,t1.$_setLocale)(t)},t.registerLocale=function(t,e){(0,t1.$_registerLocale)(t,e)},t.setDebugging=function(t){Q0.RcElement.DEBUGGING=J0.RcDebug._debugging=t},t.setLogging=function(t){e1.Utils.LOGGING=t},t.setAnimatable=function(t){Q0.RcControl._animatable=t},t.configure=function(t){return t},t.createChart=function(t,e,i,r,n){void 0===r&&(r=!0);var o=new Z0.ChartControl(t,e);return o.chart.load((0,J0.isObject)(i)?i:{},r,n),o.chart[r1.CTRL]=o,o.chart},t.createData=function(t,e){return new K0.ChartData(t||{},e)},t}();QN.Globals=n1;var o1={};Object.defineProperty(o1,"__esModule",{value:!0}),o1.Point=void 0;var s1=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();o1.Point=s1;var a1={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GaugeGroupTypes=t.GaugeTypes=t.LinearGaugeGroupType=t.LinearGaugeType=t.ClockGaugeType=t._ClockGaugeLabelPosition=t.CircleGaugeGroupType=t.CircleGaugeType=t._GaugeItemPosition=t.BulletGaugeGroupType=t.BulletGaugeType=void 0,t.BulletGaugeType="bullet",t.BulletGaugeGroupType="bulletgroup",t._GaugeItemPosition={DEFAULT:"default",OPPOSITE:"opposite",INSIDE:"inside"},t.CircleGaugeType="circle",t.CircleGaugeGroupType="circlegroup",t._ClockGaugeLabelPosition={TOP:"top",BOTTOM:"bottom"},t.ClockGaugeType="clock",t.LinearGaugeType="linear",t.LinearGaugeGroupType="lineargroup",t.GaugeTypes={BulletGaugeType:t.BulletGaugeType,CircleGaugeType:t.CircleGaugeType,ClockGaugeType:t.ClockGaugeType,LinearGaugeType:t.LinearGaugeType},t.GaugeGroupTypes={CircleGaugeGroupType:t.CircleGaugeGroupType,LinearGaugeGroupType:t.LinearGaugeGroupType,BulletGaugeGroupType:t.BulletGaugeGroupType}}(a1);var l1={};Object.defineProperty(l1,"__esModule",{value:!0}),l1.Size=void 0;var u1=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=t,this.height=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();return l1.Size=u1,function(e){var i=t&&t.__createBinding||(Object.create?function(t,e,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,r,n)}:function(t,e,i,r){void 0===r&&(r=i),t[r]=e[i]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisTick=e.AxisSectorLine=e.AxisScrollBar=e.AxisLine=e.AxisLabel=e.AxisItem=e.AxisGrid=e.AxisCollection=e.Axis=e.Exporter=e.SvgShapes=e.Tooltip=e.Subtitle=e.Title=e.NavigatorMask=e.NavigiatorHandle=e.SeriesNavigator=e.LegendItem=e.Legend=e.BodyDepth=e.Body=e.AssetCollection=e.Annotation=e.ZValuePoint=e.DataPointCollection=e.DataPoint=e.ChartObject=e.PointHovering=e.Credits=e.ChartOptions=e.extend=e.ChartText=e.IconedText=e.ChartItem=e.ChartPointerHandler=e.ChartControl=e.Point=e.RcObject=e.ChartData=e.Chart=e.ChartDataCollection=e.RcControl=e.setLicenseKey=e.createData=e.createChart=e.configure=e.setAnimatable=e.setLogging=e.setDebugging=e.getVersion=void 0,e.SeriesGroup=e.Series=e.BarSeriesGroupBase=e.BarSeriesBase=e.LineSeriesBase=e.WaterfallSeries=e.ScatterSeries=e.PieSeriesText=e.PieSeriesLabel=e.PieSeriesGroup=e.PieSeries=e.ParetoSeries=e.OhlcSeries=e.LollipopSeries=e.HistogramSeries=e.FunnelSeries=e.ErrorBarSeries=e.EqualizerSeries=e.DumbbellSeries=e.CircelBarPointLabel=e.CircleBarSeriesGroup=e.CircleBarSeries=e.CandlestickSeries=e.BumpSeriesGroup=e.BubbleSeries=e.BoxPlotSeries=e.BellCurveSeries=e.BarRangeSeries=e.BarSeriesGroup=e.BarSeries=e.BarSeriesPoint=e.LineSeriesPoint=e.LinePointLabel=e.AreaSeriesGroup=e.LineSeriesGroup=e.SplineSeries=e.LineSeries=e.AreaRangeSeries=e.AreaSeries=e.LogAxis=e.TimeAxis=e.AxisBaseLine=e.ContinuousAxis=e.LinearAxis=e.CategoryAxisLabel=e.CategoryAxisGrid=e.CategoryAxisTick=e.CategoryAxis=e.Crosshair=e.AxisTitle=void 0,e.CircleGaugeGroupType=e.CircleGaugeType=e.BulletGaugeGroupType=e.BulletGaugeType=e.LinearGaugeGroupType=e.LinearGaugeType=e.PictorialSeriesType=e.PictorialBarSeriesType=e.PictogramSeriesType=e.RaceLineSeriesType=e.RaceBarSeriesType=e.WordCloudSeriesType=e.VectorSeriesType=e.HeatmapSeriesType=e.TreemapSeriesType=e.ShapeAnnotation=e.ImageAnnotation=e.TextAnnotation=e.ValueGauge=e.GaugeRangeLabel=e.GaugeRangeBand=e.GaugeScale=e.GaugeGroup=e.GaugeItem=e.GaugeLabel=e.GaugeBase=e.Gauge=e.CircularGaugeLabel=e.CircularGaugeGroup=e.CircularGauge=e.Widget=e.TrendLineLabel=e.TrendLineArea=e.Trendline=e.OthersGroup=e.ConnectableSeries=e.SeriesMarker=e.MarkerSeries=e.DataPointLabel=e.WidgetSeriesConnector=e.WidgetSeriesLabel=e.WidgetSeriesPoint=e.WidgetSeries=e.RadialSeries=e.BasedSeries=e.RangedSeries=e.LowRangedSeries=e.ClusterableSeriesGroup=e.ClusterableSeries=e.ConstraintSeriesGroup=void 0,e.SVGNS=e.LayerElement=e.RcElement=e.PathElement=e.RcAnimation=e.PathBuilder=e.ImageElement=e.ArcElement=e.CircleElement=e.SectorElement=e.RectElement=e.LineElement=e.SeriesAnimation=e.LineSeriesBaseView=e.BarSeriesView=e.BarSeriesViewBase=e.BoxPointElementEx=e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.BasedSeriesView=e.SeriesView=e.PointLabelLineView=e.PointLabelLineContainer=e.PointElement=e.PointLabelView=e.LegendItemView=e.LegendView=e.BodyView=e.AxisScrollView=e.AxisView=e.PaneContainer=e.ChartView=e.SectionView=e.ContentView=e.ChartElement=e.ElementPool=e.Dom=e.Size=e.Color=e.pixel=e.fixnum=e.RAD_DEG=e.PI_2=e.ORG_ANGLE=e.buildValueRanges=e.parsePercentSize=e.calcPercent=e.toStr=e.ClockGaugeType=void 0,e.TextLayout=e.TextElement=e.TextAnchor=e.isEmptyRect=e.createRect=e.rectToSize=e.ValueGaugeView=e.GaugeGroupView=e.ScaleView=e.GaugeView=e.sin=e.cos=e.absv=e.copyObj=e.pickProp3=e.pickProp=e.incv=e.minv=e.pickNum=e.maxv=e.isObject=e.isArray=e.assignObj=e.isNumber=e.isString=void 0;var n=QN;e.getVersion=n.Globals.getVersion,e.setDebugging=n.Globals.setDebugging,e.setLogging=n.Globals.setLogging,e.setAnimatable=n.Globals.setAnimatable,e.configure=n.Globals.configure,e.createChart=n.Globals.createChart,e.createData=n.Globals.createData,e.setLicenseKey=n.Globals.setLicenseKey;var o=fj;Object.defineProperty(e,"RcControl",{enumerable:!0,get:function(){return o.RcControl}});var s=dM;Object.defineProperty(e,"ChartDataCollection",{enumerable:!0,get:function(){return s.ChartDataCollection}});var a=eM;Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return a.Chart}}),Object.defineProperty(e,"ChartData",{enumerable:!0,get:function(){return a.ChartData}});var l=_M;Object.defineProperty(e,"RcObject",{enumerable:!0,get:function(){return l.RcObject}});var u=o1;Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}});var c=tM;Object.defineProperty(e,"ChartControl",{enumerable:!0,get:function(){return c.ChartControl}});var p=oW;Object.defineProperty(e,"ChartPointerHandler",{enumerable:!0,get:function(){return p.ChartPointerHandler}});var h=LM;Object.defineProperty(e,"ChartItem",{enumerable:!0,get:function(){return h.ChartItem}}),Object.defineProperty(e,"IconedText",{enumerable:!0,get:function(){return h.IconedText}}),Object.defineProperty(e,"ChartText",{enumerable:!0,get:function(){return h.ChartText}}),Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return h.extend}});var f=TM;Object.defineProperty(e,"ChartOptions",{enumerable:!0,get:function(){return f.ChartOptions}}),Object.defineProperty(e,"Credits",{enumerable:!0,get:function(){return f.Credits}}),Object.defineProperty(e,"PointHovering",{enumerable:!0,get:function(){return f.PointHovering}}),Object.defineProperty(e,"ChartObject",{enumerable:!0,get:function(){return f.ChartObject}});var d=ZB;Object.defineProperty(e,"DataPoint",{enumerable:!0,get:function(){return d.DataPoint}}),Object.defineProperty(e,"DataPointCollection",{enumerable:!0,get:function(){return d.DataPointCollection}}),Object.defineProperty(e,"ZValuePoint",{enumerable:!0,get:function(){return d.ZValuePoint}});var _=kM;Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return _.Annotation}});var y=FR;Object.defineProperty(e,"AssetCollection",{enumerable:!0,get:function(){return y.AssetCollection}});var g=nB;Object.defineProperty(e,"Body",{enumerable:!0,get:function(){return g.Body}}),Object.defineProperty(e,"BodyDepth",{enumerable:!0,get:function(){return g.BodyDepth}});var v=CB;Object.defineProperty(e,"Legend",{enumerable:!0,get:function(){return v.Legend}}),Object.defineProperty(e,"LegendItem",{enumerable:!0,get:function(){return v.LegendItem}});var m=jD;Object.defineProperty(e,"SeriesNavigator",{enumerable:!0,get:function(){return m.SeriesNavigator}}),Object.defineProperty(e,"NavigiatorHandle",{enumerable:!0,get:function(){return m.NavigiatorHandle}}),Object.defineProperty(e,"NavigatorMask",{enumerable:!0,get:function(){return m.NavigatorMask}});var b=YD;Object.defineProperty(e,"Title",{enumerable:!0,get:function(){return b.Title}}),Object.defineProperty(e,"Subtitle",{enumerable:!0,get:function(){return b.Subtitle}});var x=tI;Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return x.Tooltip}});var w=GB;Object.defineProperty(e,"SvgShapes",{enumerable:!0,get:function(){return w.SvgShapes}});var S=xB;Object.defineProperty(e,"Exporter",{enumerable:!0,get:function(){return S.Exporter}});var P=rB;Object.defineProperty(e,"Axis",{enumerable:!0,get:function(){return P.Axis}}),Object.defineProperty(e,"AxisCollection",{enumerable:!0,get:function(){return P.AxisCollection}}),Object.defineProperty(e,"AxisGrid",{enumerable:!0,get:function(){return P.AxisGrid}}),Object.defineProperty(e,"AxisItem",{enumerable:!0,get:function(){return P.AxisItem}}),Object.defineProperty(e,"AxisLabel",{enumerable:!0,get:function(){return P.AxisLabel}}),Object.defineProperty(e,"AxisLine",{enumerable:!0,get:function(){return P.AxisLine}}),Object.defineProperty(e,"AxisScrollBar",{enumerable:!0,get:function(){return P.AxisScrollBar}}),Object.defineProperty(e,"AxisSectorLine",{enumerable:!0,get:function(){return P.AxisSectorLine}}),Object.defineProperty(e,"AxisTick",{enumerable:!0,get:function(){return P.AxisTick}}),Object.defineProperty(e,"AxisTitle",{enumerable:!0,get:function(){return P.AxisTitle}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return P.Crosshair}});var A=lD;Object.defineProperty(e,"CategoryAxis",{enumerable:!0,get:function(){return A.CategoryAxis}}),Object.defineProperty(e,"CategoryAxisTick",{enumerable:!0,get:function(){return A.CategoryAxisTick}}),Object.defineProperty(e,"CategoryAxisGrid",{enumerable:!0,get:function(){return A.CategoryAxisGrid}}),Object.defineProperty(e,"CategoryAxisLabel",{enumerable:!0,get:function(){return A.CategoryAxisLabel}});var O=NI;Object.defineProperty(e,"LinearAxis",{enumerable:!0,get:function(){return O.LinearAxis}}),Object.defineProperty(e,"ContinuousAxis",{enumerable:!0,get:function(){return O.ContinuousAxis}}),Object.defineProperty(e,"AxisBaseLine",{enumerable:!0,get:function(){return O.AxisBaseLine}});var C=QI;Object.defineProperty(e,"TimeAxis",{enumerable:!0,get:function(){return C.TimeAxis}});var E=BH;Object.defineProperty(e,"LogAxis",{enumerable:!0,get:function(){return E.LogAxis}});var V=MG;Object.defineProperty(e,"AreaSeries",{enumerable:!0,get:function(){return V.AreaSeries}}),Object.defineProperty(e,"AreaRangeSeries",{enumerable:!0,get:function(){return V.AreaRangeSeries}}),Object.defineProperty(e,"LineSeries",{enumerable:!0,get:function(){return V.LineSeries}}),Object.defineProperty(e,"SplineSeries",{enumerable:!0,get:function(){return V.SplineSeries}}),Object.defineProperty(e,"LineSeriesGroup",{enumerable:!0,get:function(){return V.LineSeriesGroup}}),Object.defineProperty(e,"AreaSeriesGroup",{enumerable:!0,get:function(){return V.AreaSeriesGroup}}),Object.defineProperty(e,"LinePointLabel",{enumerable:!0,get:function(){return V.LinePointLabel}}),Object.defineProperty(e,"LineSeriesPoint",{enumerable:!0,get:function(){return V.LineSeriesPoint}});var T=xG;Object.defineProperty(e,"BarSeriesPoint",{enumerable:!0,get:function(){return T.BarSeriesPoint}}),Object.defineProperty(e,"BarSeries",{enumerable:!0,get:function(){return T.BarSeries}}),Object.defineProperty(e,"BarSeriesGroup",{enumerable:!0,get:function(){return T.BarSeriesGroup}});var k=fG;Object.defineProperty(e,"BarRangeSeries",{enumerable:!0,get:function(){return k.BarRangeSeries}});var L=NG;Object.defineProperty(e,"BellCurveSeries",{enumerable:!0,get:function(){return L.BellCurveSeries}});var N=GF;Object.defineProperty(e,"BoxPlotSeries",{enumerable:!0,get:function(){return N.BoxPlotSeries}});var M=qF;Object.defineProperty(e,"BubbleSeries",{enumerable:!0,get:function(){return M.BubbleSeries}});var j=nz;Object.defineProperty(e,"BumpSeriesGroup",{enumerable:!0,get:function(){return j.BumpSeriesGroup}});var R=pz;Object.defineProperty(e,"CandlestickSeries",{enumerable:!0,get:function(){return R.CandlestickSeries}});var B=xz;Object.defineProperty(e,"CircleBarSeries",{enumerable:!0,get:function(){return B.CircleBarSeries}}),Object.defineProperty(e,"CircleBarSeriesGroup",{enumerable:!0,get:function(){return B.CircleBarSeriesGroup}}),Object.defineProperty(e,"CircelBarPointLabel",{enumerable:!0,get:function(){return B.CircelBarPointLabel}});var D=Tz;Object.defineProperty(e,"DumbbellSeries",{enumerable:!0,get:function(){return D.DumbbellSeries}});var I=Iz;Object.defineProperty(e,"EqualizerSeries",{enumerable:!0,get:function(){return I.EqualizerSeries}});var G=qz;Object.defineProperty(e,"ErrorBarSeries",{enumerable:!0,get:function(){return G.ErrorBarSeries}});var F=n$;Object.defineProperty(e,"FunnelSeries",{enumerable:!0,get:function(){return F.FunnelSeries}});var z=y$;Object.defineProperty(e,"HistogramSeries",{enumerable:!0,get:function(){return z.HistogramSeries}});var $=O$;Object.defineProperty(e,"LollipopSeries",{enumerable:!0,get:function(){return $.LollipopSeries}});var H=D$;Object.defineProperty(e,"OhlcSeries",{enumerable:!0,get:function(){return H.OhlcSeries}});var W=Y$;Object.defineProperty(e,"ParetoSeries",{enumerable:!0,get:function(){return W.ParetoSeries}});var U=eH;Object.defineProperty(e,"PieSeries",{enumerable:!0,get:function(){return U.PieSeries}}),Object.defineProperty(e,"PieSeriesGroup",{enumerable:!0,get:function(){return U.PieSeriesGroup}}),Object.defineProperty(e,"PieSeriesLabel",{enumerable:!0,get:function(){return U.PieSeriesLabel}}),Object.defineProperty(e,"PieSeriesText",{enumerable:!0,get:function(){return U.PieSeriesText}});var Y=gH;Object.defineProperty(e,"ScatterSeries",{enumerable:!0,get:function(){return Y.ScatterSeries}});var X=OH;Object.defineProperty(e,"WaterfallSeries",{enumerable:!0,get:function(){return X.WaterfallSeries}});var q=MG;Object.defineProperty(e,"LineSeriesBase",{enumerable:!0,get:function(){return q.LineSeriesBase}});var Z=xG;Object.defineProperty(e,"BarSeriesBase",{enumerable:!0,get:function(){return Z.BarSeriesBase}}),Object.defineProperty(e,"BarSeriesGroupBase",{enumerable:!0,get:function(){return Z.BarSeriesGroupBase}});var K=DB;Object.defineProperty(e,"Series",{enumerable:!0,get:function(){return K.Series}}),Object.defineProperty(e,"SeriesGroup",{enumerable:!0,get:function(){return K.SeriesGroup}}),Object.defineProperty(e,"ConstraintSeriesGroup",{enumerable:!0,get:function(){return K.ConstraintSeriesGroup}}),Object.defineProperty(e,"ClusterableSeries",{enumerable:!0,get:function(){return K.ClusterableSeries}}),Object.defineProperty(e,"ClusterableSeriesGroup",{enumerable:!0,get:function(){return K.ClusterableSeriesGroup}}),Object.defineProperty(e,"LowRangedSeries",{enumerable:!0,get:function(){return K.LowRangedSeries}}),Object.defineProperty(e,"RangedSeries",{enumerable:!0,get:function(){return K.RangedSeries}}),Object.defineProperty(e,"BasedSeries",{enumerable:!0,get:function(){return K.BasedSeries}}),Object.defineProperty(e,"RadialSeries",{enumerable:!0,get:function(){return K.RadialSeries}}),Object.defineProperty(e,"WidgetSeries",{enumerable:!0,get:function(){return K.WidgetSeries}}),Object.defineProperty(e,"WidgetSeriesPoint",{enumerable:!0,get:function(){return K.WidgetSeriesPoint}}),Object.defineProperty(e,"WidgetSeriesLabel",{enumerable:!0,get:function(){return K.WidgetSeriesLabel}}),Object.defineProperty(e,"WidgetSeriesConnector",{enumerable:!0,get:function(){return K.WidgetSeriesConnector}}),Object.defineProperty(e,"DataPointLabel",{enumerable:!0,get:function(){return K.DataPointLabel}}),Object.defineProperty(e,"MarkerSeries",{enumerable:!0,get:function(){return K.MarkerSeries}}),Object.defineProperty(e,"SeriesMarker",{enumerable:!0,get:function(){return K.SeriesMarker}}),Object.defineProperty(e,"ConnectableSeries",{enumerable:!0,get:function(){return K.ConnectableSeries}}),Object.defineProperty(e,"OthersGroup",{enumerable:!0,get:function(){return K.OthersGroup}});var J=PD;Object.defineProperty(e,"Trendline",{enumerable:!0,get:function(){return J.Trendline}}),Object.defineProperty(e,"TrendLineArea",{enumerable:!0,get:function(){return J.TrendlineArea}}),Object.defineProperty(e,"TrendLineLabel",{enumerable:!0,get:function(){return J.TrendlineLabel}});var Q=sB;Object.defineProperty(e,"Widget",{enumerable:!0,get:function(){return Q.Widget}});var tt=oB;Object.defineProperty(e,"CircularGauge",{enumerable:!0,get:function(){return tt.CircularGauge}}),Object.defineProperty(e,"CircularGaugeGroup",{enumerable:!0,get:function(){return tt.CircularGaugeGroup}}),Object.defineProperty(e,"CircularGaugeLabel",{enumerable:!0,get:function(){return tt.CircularGaugeLabel}}),Object.defineProperty(e,"Gauge",{enumerable:!0,get:function(){return tt.Gauge}}),Object.defineProperty(e,"GaugeBase",{enumerable:!0,get:function(){return tt.GaugeBase}}),Object.defineProperty(e,"GaugeLabel",{enumerable:!0,get:function(){return tt.GaugeLabel}}),Object.defineProperty(e,"GaugeItem",{enumerable:!0,get:function(){return tt.GaugeItem}}),Object.defineProperty(e,"GaugeGroup",{enumerable:!0,get:function(){return tt.GaugeGroup}}),Object.defineProperty(e,"GaugeScale",{enumerable:!0,get:function(){return tt.GaugeScale}}),Object.defineProperty(e,"GaugeRangeBand",{enumerable:!0,get:function(){return tt.GaugeRangeBand}}),Object.defineProperty(e,"GaugeRangeLabel",{enumerable:!0,get:function(){return tt.GaugeRangeLabel}}),Object.defineProperty(e,"ValueGauge",{enumerable:!0,get:function(){return tt.ValueGauge}});var et=xI;Object.defineProperty(e,"TextAnnotation",{enumerable:!0,get:function(){return et.TextAnnotation}});var it=aI;Object.defineProperty(e,"ImageAnnotation",{enumerable:!0,get:function(){return it.ImageAnnotation}});var rt=dI;Object.defineProperty(e,"ShapeAnnotation",{enumerable:!0,get:function(){return rt.ShapeAnnotation}});var nt=qB;Object.defineProperty(e,"TreemapSeriesType",{enumerable:!0,get:function(){return nt.TreemapSeriesType}}),Object.defineProperty(e,"HeatmapSeriesType",{enumerable:!0,get:function(){return nt.HeatmapSeriesType}}),Object.defineProperty(e,"VectorSeriesType",{enumerable:!0,get:function(){return nt.VectorSeriesType}}),Object.defineProperty(e,"WordCloudSeriesType",{enumerable:!0,get:function(){return nt.WordCloudSeriesType}}),Object.defineProperty(e,"RaceBarSeriesType",{enumerable:!0,get:function(){return nt.RaceBarSeriesType}}),Object.defineProperty(e,"RaceLineSeriesType",{enumerable:!0,get:function(){return nt.RaceLineSeriesType}}),Object.defineProperty(e,"PictogramSeriesType",{enumerable:!0,get:function(){return nt.PictogramSeriesType}}),Object.defineProperty(e,"PictorialBarSeriesType",{enumerable:!0,get:function(){return nt.PictorialBarSeriesType}}),Object.defineProperty(e,"PictorialSeriesType",{enumerable:!0,get:function(){return nt.PictorialSeriesType}});var ot=a1;Object.defineProperty(e,"LinearGaugeType",{enumerable:!0,get:function(){return ot.LinearGaugeType}}),Object.defineProperty(e,"LinearGaugeGroupType",{enumerable:!0,get:function(){return ot.LinearGaugeGroupType}}),Object.defineProperty(e,"BulletGaugeType",{enumerable:!0,get:function(){return ot.BulletGaugeType}}),Object.defineProperty(e,"BulletGaugeGroupType",{enumerable:!0,get:function(){return ot.BulletGaugeGroupType}}),Object.defineProperty(e,"CircleGaugeType",{enumerable:!0,get:function(){return ot.CircleGaugeType}}),Object.defineProperty(e,"CircleGaugeGroupType",{enumerable:!0,get:function(){return ot.CircleGaugeGroupType}}),Object.defineProperty(e,"ClockGaugeType",{enumerable:!0,get:function(){return ot.ClockGaugeType}});var st=nM;Object.defineProperty(e,"toStr",{enumerable:!0,get:function(){return st.toStr}}),Object.defineProperty(e,"calcPercent",{enumerable:!0,get:function(){return st.calcPercent}}),Object.defineProperty(e,"parsePercentSize",{enumerable:!0,get:function(){return st.parsePercentSize}}),Object.defineProperty(e,"buildValueRanges",{enumerable:!0,get:function(){return st.buildValueRanges}}),Object.defineProperty(e,"ORG_ANGLE",{enumerable:!0,get:function(){return st.ORG_ANGLE}}),Object.defineProperty(e,"PI_2",{enumerable:!0,get:function(){return st.PI_2}}),Object.defineProperty(e,"RAD_DEG",{enumerable:!0,get:function(){return st.RAD_DEG}}),Object.defineProperty(e,"fixnum",{enumerable:!0,get:function(){return st.fixnum}}),Object.defineProperty(e,"pixel",{enumerable:!0,get:function(){return st.pixel}});var at=cj;Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return at.Color}});var lt=l1;Object.defineProperty(e,"Size",{enumerable:!0,get:function(){return lt.Size}});var ut=dj;Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return ut.Dom}});var ct=aW;Object.defineProperty(e,"ElementPool",{enumerable:!0,get:function(){return ct.ElementPool}});var pt=mW;Object.defineProperty(e,"ChartElement",{enumerable:!0,get:function(){return pt.ChartElement}}),Object.defineProperty(e,"ContentView",{enumerable:!0,get:function(){return pt.ContentView}}),Object.defineProperty(e,"SectionView",{enumerable:!0,get:function(){return pt.SectionView}});var ht=sQ;Object.defineProperty(e,"ChartView",{enumerable:!0,get:function(){return ht.ChartView}}),Object.defineProperty(e,"PaneContainer",{enumerable:!0,get:function(){return ht.PaneContainer}});var ft=sW;Object.defineProperty(e,"AxisView",{enumerable:!0,get:function(){return ft.AxisView}}),Object.defineProperty(e,"AxisScrollView",{enumerable:!0,get:function(){return ft.AxisScrollView}});var dt=sU;Object.defineProperty(e,"BodyView",{enumerable:!0,get:function(){return dt.BodyView}});var _t=pQ;Object.defineProperty(e,"LegendView",{enumerable:!0,get:function(){return _t.LegendView}}),Object.defineProperty(e,"LegendItemView",{enumerable:!0,get:function(){return _t.LegendItemView}});var yt=TU;Object.defineProperty(e,"PointLabelView",{enumerable:!0,get:function(){return yt.PointLabelView}}),Object.defineProperty(e,"PointElement",{enumerable:!0,get:function(){return yt.PointElement}}),Object.defineProperty(e,"PointLabelLineContainer",{enumerable:!0,get:function(){return yt.PointLabelLineContainer}}),Object.defineProperty(e,"PointLabelLineView",{enumerable:!0,get:function(){return yt.PointLabelLineView}}),Object.defineProperty(e,"SeriesView",{enumerable:!0,get:function(){return yt.SeriesView}}),Object.defineProperty(e,"BasedSeriesView",{enumerable:!0,get:function(){return yt.BasedSeriesView}}),Object.defineProperty(e,"MarkerSeriesPointView",{enumerable:!0,get:function(){return yt.MarkerSeriesPointView}}),Object.defineProperty(e,"MarkerSeriesView",{enumerable:!0,get:function(){return yt.MarkerSeriesView}}),Object.defineProperty(e,"WidgetSeriesView",{enumerable:!0,get:function(){return yt.WidgetSeriesView}}),Object.defineProperty(e,"BoxPointElementEx",{enumerable:!0,get:function(){return yt.BoxPointElementEx}});var gt=pX;Object.defineProperty(e,"BarSeriesViewBase",{enumerable:!0,get:function(){return gt.BarSeriesViewBase}}),Object.defineProperty(e,"BarSeriesView",{enumerable:!0,get:function(){return gt.BarSeriesView}});var vt=xY;Object.defineProperty(e,"LineSeriesBaseView",{enumerable:!0,get:function(){return vt.LineSeriesBaseView}});var mt=kU;Object.defineProperty(e,"SeriesAnimation",{enumerable:!0,get:function(){return mt.SeriesAnimation}});var bt=KG;Object.defineProperty(e,"LineElement",{enumerable:!0,get:function(){return bt.LineElement}});var xt=IB;Object.defineProperty(e,"RectElement",{enumerable:!0,get:function(){return xt.RectElement}});var wt=PU;Object.defineProperty(e,"SectorElement",{enumerable:!0,get:function(){return wt.SectorElement}});var St=dU;Object.defineProperty(e,"CircleElement",{enumerable:!0,get:function(){return St.CircleElement}}),Object.defineProperty(e,"ArcElement",{enumerable:!0,get:function(){return St.ArcElement}});var Pt=zW;Object.defineProperty(e,"ImageElement",{enumerable:!0,get:function(){return Pt.ImageElement}});var At=kj;Object.defineProperty(e,"PathBuilder",{enumerable:!0,get:function(){return At.PathBuilder}});var Ot=Pj;Object.defineProperty(e,"RcAnimation",{enumerable:!0,get:function(){return Ot.RcAnimation}});var Ct=fj;Object.defineProperty(e,"PathElement",{enumerable:!0,get:function(){return Ct.PathElement}}),Object.defineProperty(e,"RcElement",{enumerable:!0,get:function(){return Ct.RcElement}}),Object.defineProperty(e,"LayerElement",{enumerable:!0,get:function(){return Ct.LayerElement}});var Et=iM;Object.defineProperty(e,"SVGNS",{enumerable:!0,get:function(){return Et.SVGNS}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return Et.isString}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return Et.isNumber}}),Object.defineProperty(e,"assignObj",{enumerable:!0,get:function(){return Et.assignObj}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return Et.isArray}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return Et.isObject}}),Object.defineProperty(e,"maxv",{enumerable:!0,get:function(){return Et.maxv}}),Object.defineProperty(e,"pickNum",{enumerable:!0,get:function(){return Et.pickNum}}),Object.defineProperty(e,"minv",{enumerable:!0,get:function(){return Et.minv}}),Object.defineProperty(e,"incv",{enumerable:!0,get:function(){return Et.incv}}),Object.defineProperty(e,"pickProp",{enumerable:!0,get:function(){return Et.pickProp}}),Object.defineProperty(e,"pickProp3",{enumerable:!0,get:function(){return Et.pickProp3}}),Object.defineProperty(e,"copyObj",{enumerable:!0,get:function(){return Et.copyObj}}),Object.defineProperty(e,"absv",{enumerable:!0,get:function(){return Et.absv}}),Object.defineProperty(e,"cos",{enumerable:!0,get:function(){return Et.cos}}),Object.defineProperty(e,"sin",{enumerable:!0,get:function(){return Et.sin}});var Vt=VU;Object.defineProperty(e,"GaugeView",{enumerable:!0,get:function(){return Vt.GaugeView}}),Object.defineProperty(e,"ScaleView",{enumerable:!0,get:function(){return Vt.ScaleView}}),Object.defineProperty(e,"GaugeGroupView",{enumerable:!0,get:function(){return Vt.GaugeGroupView}}),Object.defineProperty(e,"ValueGaugeView",{enumerable:!0,get:function(){return Vt.ValueGaugeView}});var Tt=pW;Object.defineProperty(e,"rectToSize",{enumerable:!0,get:function(){return Tt.rectToSize}}),Object.defineProperty(e,"createRect",{enumerable:!0,get:function(){return Tt.createRect}}),Object.defineProperty(e,"isEmptyRect",{enumerable:!0,get:function(){return Tt.isEmptyRect}});var kt=uj;Object.defineProperty(e,"TextAnchor",{enumerable:!0,get:function(){return kt.TextAnchor}}),Object.defineProperty(e,"TextElement",{enumerable:!0,get:function(){return kt.TextElement}}),Object.defineProperty(e,"TextLayout",{enumerable:!0,get:function(){return kt.TextLayout}}),r(rM,e)}(i),e(i)}));
7
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RealChart=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={},r=function(t){return t&&t.Math===Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o={},s=function(t){try{return!!t()}catch(t){return!0}},a=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=l,c=Function.prototype.call,p=u?c.bind(c):function(){return c.apply(c,arguments)},h={},f={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,_=d&&!f.call({1:2},1);h.f=_?function(t){var e=d(this,t);return!!e&&e.enumerable}:f;var y,g,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},m=l,b=Function.prototype,x=b.call,w=m&&b.bind.bind(x,x),S=m?w:function(t){return function(){return x.apply(t,arguments)}},P=S,A=P({}.toString),O=P("".slice),C=function(t){return O(A(t),8,-1)},V=s,E=C,k=Object,T=S("".split),L=V((function(){return!k("z").propertyIsEnumerable(0)}))?function(t){return"String"===E(t)?T(t,""):k(t)}:k,N=function(t){return null==t},M=N,j=TypeError,R=function(t){if(M(t))throw new j("Can't call method on "+t);return t},B=L,D=R,I=function(t){return B(D(t))},G="object"==typeof document&&document.all,F=void 0===G&&void 0!==G?function(t){return"function"==typeof t||t===G}:function(t){return"function"==typeof t},z=F,$=function(t){return"object"==typeof t?null!==t:z(t)},H=n,W=F,U=function(t,e){return arguments.length<2?(i=H[t],W(i)?i:void 0):H[t]&&H[t][e];var i},X=S({}.isPrototypeOf),Y=n.navigator,q=Y&&Y.userAgent,Z=q?String(q):"",K=n,J=Z,Q=K.process,tt=K.Deno,et=Q&&Q.versions||tt&&tt.version,it=et&&et.v8;it&&(g=(y=it.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!g&&J&&(!(y=J.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=J.match(/Chrome\/(\d+)/))&&(g=+y[1]);var rt=g,nt=rt,ot=s,st=n.String,at=!!Object.getOwnPropertySymbols&&!ot((function(){var t=Symbol("symbol detection");return!st(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&nt&&nt<41})),lt=at&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=U,ct=F,pt=X,ht=Object,ft=lt?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ct(e)&&pt(e.prototype,ht(t))},dt=String,_t=function(t){try{return dt(t)}catch(t){return"Object"}},yt=F,gt=_t,vt=TypeError,mt=function(t){if(yt(t))return t;throw new vt(gt(t)+" is not a function")},bt=mt,xt=N,wt=function(t,e){var i=t[e];return xt(i)?void 0:bt(i)},St=p,Pt=F,At=$,Ot=TypeError,Ct={exports:{}},Vt=n,Et=Object.defineProperty,kt=function(t,e){try{Et(Vt,t,{value:e,configurable:!0,writable:!0})}catch(i){Vt[t]=e}return e},Tt=n,Lt=kt,Nt="__core-js_shared__",Mt=Ct.exports=Tt[Nt]||Lt(Nt,{});(Mt.versions||(Mt.versions=[])).push({version:"3.47.0",mode:"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"});var jt=Ct.exports,Rt=jt,Bt=function(t,e){return Rt[t]||(Rt[t]=e||{})},Dt=R,It=Object,Gt=function(t){return It(Dt(t))},Ft=Gt,zt=S({}.hasOwnProperty),$t=Object.hasOwn||function(t,e){return zt(Ft(t),e)},Ht=S,Wt=0,Ut=Math.random(),Xt=Ht(1.1.toString),Yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Wt+Ut,36)},qt=Bt,Zt=$t,Kt=Yt,Jt=at,Qt=lt,te=n.Symbol,ee=qt("wks"),ie=Qt?te.for||te:te&&te.withoutSetter||Kt,re=function(t){return Zt(ee,t)||(ee[t]=Jt&&Zt(te,t)?te[t]:ie("Symbol."+t)),ee[t]},ne=p,oe=$,se=ft,ae=wt,le=function(t,e){var i,r;if("string"===e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;if(Pt(i=t.valueOf)&&!At(r=St(i,t)))return r;if("string"!==e&&Pt(i=t.toString)&&!At(r=St(i,t)))return r;throw new Ot("Can't convert object to primitive value")},ue=TypeError,ce=re("toPrimitive"),pe=function(t,e){if(!oe(t)||se(t))return t;var i,r=ae(t,ce);if(r){if(void 0===e&&(e="default"),i=ne(r,t,e),!oe(i)||se(i))return i;throw new ue("Can't convert object to primitive value")}return void 0===e&&(e="number"),le(t,e)},he=pe,fe=ft,de=function(t){var e=he(t,"string");return fe(e)?e:e+""},_e=$,ye=n.document,ge=_e(ye)&&_e(ye.createElement),ve=function(t){return ge?ye.createElement(t):{}},me=ve,be=!a&&!s((function(){return 7!==Object.defineProperty(me("div"),"a",{get:function(){return 7}}).a})),xe=a,we=p,Se=h,Pe=v,Ae=I,Oe=de,Ce=$t,Ve=be,Ee=Object.getOwnPropertyDescriptor;o.f=xe?Ee:function(t,e){if(t=Ae(t),e=Oe(e),Ve)try{return Ee(t,e)}catch(t){}if(Ce(t,e))return Pe(!we(Se.f,t,e),t[e])};var ke={},Te=a&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Le=$,Ne=String,Me=TypeError,je=function(t){if(Le(t))return t;throw new Me(Ne(t)+" is not an object")},Re=a,Be=be,De=Te,Ie=je,Ge=de,Fe=TypeError,ze=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,He="enumerable",We="configurable",Ue="writable";ke.f=Re?De?function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),"function"==typeof t&&"prototype"===e&&"value"in i&&Ue in i&&!i[Ue]){var r=$e(t,e);r&&r[Ue]&&(t[e]=i.value,i={configurable:We in i?i[We]:r[We],enumerable:He in i?i[He]:r[He],writable:!1})}return ze(t,e,i)}:ze:function(t,e,i){if(Ie(t),e=Ge(e),Ie(i),Be)try{return ze(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new Fe("Accessors not supported");return"value"in i&&(t[e]=i.value),t};var Xe=ke,Ye=v,qe=a?function(t,e,i){return Xe.f(t,e,Ye(1,i))}:function(t,e,i){return t[e]=i,t},Ze={exports:{}},Ke=a,Je=$t,Qe=Function.prototype,ti=Ke&&Object.getOwnPropertyDescriptor,ei=Je(Qe,"name"),ii={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Ke||Ke&&ti(Qe,"name").configurable)},ri=F,ni=jt,oi=S(Function.toString);ri(ni.inspectSource)||(ni.inspectSource=function(t){return oi(t)});var si,ai,li,ui=ni.inspectSource,ci=F,pi=n.WeakMap,hi=ci(pi)&&/native code/.test(String(pi)),fi=Yt,di=Bt("keys"),_i=function(t){return di[t]||(di[t]=fi(t))},yi={},gi=hi,vi=n,mi=$,bi=qe,xi=$t,wi=jt,Si=_i,Pi=yi,Ai="Object already initialized",Oi=vi.TypeError,Ci=vi.WeakMap;if(gi||wi.state){var Vi=wi.state||(wi.state=new Ci);Vi.get=Vi.get,Vi.has=Vi.has,Vi.set=Vi.set,si=function(t,e){if(Vi.has(t))throw new Oi(Ai);return e.facade=t,Vi.set(t,e),e},ai=function(t){return Vi.get(t)||{}},li=function(t){return Vi.has(t)}}else{var Ei=Si("state");Pi[Ei]=!0,si=function(t,e){if(xi(t,Ei))throw new Oi(Ai);return e.facade=t,bi(t,Ei,e),e},ai=function(t){return xi(t,Ei)?t[Ei]:{}},li=function(t){return xi(t,Ei)}}var ki={set:si,get:ai,has:li,enforce:function(t){return li(t)?ai(t):si(t,{})},getterFor:function(t){return function(e){var i;if(!mi(e)||(i=ai(e)).type!==t)throw new Oi("Incompatible receiver, "+t+" required");return i}}},Ti=S,Li=s,Ni=F,Mi=$t,ji=a,Ri=ii.CONFIGURABLE,Bi=ui,Di=ki.enforce,Ii=ki.get,Gi=String,Fi=Object.defineProperty,zi=Ti("".slice),$i=Ti("".replace),Hi=Ti([].join),Wi=ji&&!Li((function(){return 8!==Fi((function(){}),"length",{value:8}).length})),Ui=String(String).split("String"),Xi=Ze.exports=function(t,e,i){"Symbol("===zi(Gi(e),0,7)&&(e="["+$i(Gi(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!Mi(t,"name")||Ri&&t.name!==e)&&(ji?Fi(t,"name",{value:e,configurable:!0}):t.name=e),Wi&&i&&Mi(i,"arity")&&t.length!==i.arity&&Fi(t,"length",{value:i.arity});try{i&&Mi(i,"constructor")&&i.constructor?ji&&Fi(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Di(t);return Mi(r,"source")||(r.source=Hi(Ui,"string"==typeof e?e:"")),t};Function.prototype.toString=Xi((function(){return Ni(this)&&Ii(this).source||Bi(this)}),"toString");var Yi=Ze.exports,qi=F,Zi=ke,Ki=Yi,Ji=kt,Qi=function(t,e,i,r){r||(r={});var n=r.enumerable,o=void 0!==r.name?r.name:e;if(qi(i)&&Ki(i,o,r),r.global)n?t[e]=i:Ji(e,i);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=i:Zi.f(t,e,{value:i,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},tr={},er=Math.ceil,ir=Math.floor,rr=Math.trunc||function(t){var e=+t;return(e>0?ir:er)(e)},nr=rr,or=function(t){var e=+t;return e!=e||0===e?0:nr(e)},sr=or,ar=Math.max,lr=Math.min,ur=function(t,e){var i=sr(t);return i<0?ar(i+e,0):lr(i,e)},cr=or,pr=Math.min,hr=function(t){var e=cr(t);return e>0?pr(e,9007199254740991):0},fr=hr,dr=function(t){return fr(t.length)},_r=I,yr=ur,gr=dr,vr=function(t){return function(e,i,r){var n=_r(e),o=gr(n);if(0===o)return!t&&-1;var s,a=yr(r,o);if(t&&i!=i){for(;o>a;)if((s=n[a++])!=s)return!0}else for(;o>a;a++)if((t||a in n)&&n[a]===i)return t||a||0;return!t&&-1}},mr={includes:vr(!0),indexOf:vr(!1)},br=$t,xr=I,wr=mr.indexOf,Sr=yi,Pr=S([].push),Ar=function(t,e){var i,r=xr(t),n=0,o=[];for(i in r)!br(Sr,i)&&br(r,i)&&Pr(o,i);for(;e.length>n;)br(r,i=e[n++])&&(~wr(o,i)||Pr(o,i));return o},Or=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cr=Ar,Vr=Or.concat("length","prototype");tr.f=Object.getOwnPropertyNames||function(t){return Cr(t,Vr)};var Er={};Er.f=Object.getOwnPropertySymbols;var kr=U,Tr=tr,Lr=Er,Nr=je,Mr=S([].concat),jr=kr("Reflect","ownKeys")||function(t){var e=Tr.f(Nr(t)),i=Lr.f;return i?Mr(e,i(t)):e},Rr=$t,Br=jr,Dr=o,Ir=ke,Gr=function(t,e,i){for(var r=Br(e),n=Ir.f,o=Dr.f,s=0;s<r.length;s++){var a=r[s];Rr(t,a)||i&&Rr(i,a)||n(t,a,o(e,a))}},Fr=s,zr=F,$r=/#|\.prototype\./,Hr=function(t,e){var i=Ur[Wr(t)];return i===Yr||i!==Xr&&(zr(e)?Fr(e):!!e)},Wr=Hr.normalize=function(t){return String(t).replace($r,".").toLowerCase()},Ur=Hr.data={},Xr=Hr.NATIVE="N",Yr=Hr.POLYFILL="P",qr=Hr,Zr=n,Kr=o.f,Jr=qe,Qr=Qi,tn=kt,en=Gr,rn=qr,nn=function(t,e){var i,r,n,o,s,a=t.target,l=t.global,u=t.stat;if(i=l?Zr:u?Zr[a]||tn(a,{}):Zr[a]&&Zr[a].prototype)for(r in e){if(o=e[r],n=t.dontCallGetSet?(s=Kr(i,r))&&s.value:i[r],!rn(l?r:a+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof o==typeof n)continue;en(o,n)}(t.sham||n&&n.sham)&&Jr(o,"sham",!0),Qr(i,r,o,t)}},on=C,sn=Array.isArray||function(t){return"Array"===on(t)},an=TypeError,ln=function(t){if(t>9007199254740991)throw an("Maximum allowed index exceeded");return t},un=a,cn=ke,pn=v,hn=function(t,e,i){un?cn.f(t,e,pn(0,i)):t[e]=i},fn={};fn[re("toStringTag")]="z";var dn="[object z]"===String(fn),_n=dn,yn=F,gn=C,vn=re("toStringTag"),mn=Object,bn="Arguments"===gn(function(){return arguments}()),xn=_n?gn:function(t){var e,i,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=mn(t),vn))?i:bn?gn(e):"Object"===(r=gn(e))&&yn(e.callee)?"Arguments":r},wn=S,Sn=s,Pn=F,An=xn,On=ui,Cn=function(){},Vn=U("Reflect","construct"),En=/^\s*(?:class|function)\b/,kn=wn(En.exec),Tn=!En.test(Cn),Ln=function(t){if(!Pn(t))return!1;try{return Vn(Cn,[],t),!0}catch(t){return!1}},Nn=function(t){if(!Pn(t))return!1;switch(An(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Tn||!!kn(En,On(t))}catch(t){return!0}};Nn.sham=!0;var Mn=!Vn||Sn((function(){var t;return Ln(Ln.call)||!Ln(Object)||!Ln((function(){t=!0}))||t}))?Nn:Ln,jn=sn,Rn=Mn,Bn=$,Dn=re("species"),In=Array,Gn=function(t){var e;return jn(t)&&(e=t.constructor,(Rn(e)&&(e===In||jn(e.prototype))||Bn(e)&&null===(e=e[Dn]))&&(e=void 0)),void 0===e?In:e},Fn=function(t,e){return new(Gn(t))(0===e?0:e)},zn=s,$n=rt,Hn=re("species"),Wn=function(t){return $n>=51||!zn((function(){var e=[];return(e.constructor={})[Hn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Un=nn,Xn=s,Yn=sn,qn=$,Zn=Gt,Kn=dr,Jn=ln,Qn=hn,to=Fn,eo=Wn,io=rt,ro=re("isConcatSpreadable"),no=io>=51||!Xn((function(){var t=[];return t[ro]=!1,t.concat()[0]!==t})),oo=function(t){if(!qn(t))return!1;var e=t[ro];return void 0!==e?!!e:Yn(t)};Un({target:"Array",proto:!0,arity:1,forced:!no||!eo("concat")},{concat:function(t){var e,i,r,n,o,s=Zn(this),a=to(s,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(oo(o=-1===e?s:arguments[e]))for(n=Kn(o),Jn(l+n),i=0;i<n;i++,l++)i in o&&Qn(a,l,o[i]);else Jn(l+1),Qn(a,l++,o);return a.length=l,a}});var so=xn,ao=dn?{}.toString:function(){return"[object "+so(this)+"]"};dn||Qi(Object.prototype,"toString",ao,{unsafe:!0});var lo=xn,uo=String,co=function(t){if("Symbol"===lo(t))throw new TypeError("Cannot convert a Symbol value to a string");return uo(t)},po={},ho=Ar,fo=Or,_o=Object.keys||function(t){return ho(t,fo)},yo=a,go=Te,vo=ke,mo=je,bo=I,xo=_o;po.f=yo&&!go?Object.defineProperties:function(t,e){mo(t);for(var i,r=bo(e),n=xo(e),o=n.length,s=0;o>s;)vo.f(t,i=n[s++],r[i]);return t};var wo,So=U("document","documentElement"),Po=je,Ao=po,Oo=Or,Co=yi,Vo=So,Eo=ve,ko="prototype",To="script",Lo=_i("IE_PROTO"),No=function(){},Mo=function(t){return"<"+To+">"+t+"</"+To+">"},jo=function(t){t.write(Mo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ro=function(){try{wo=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;Ro="undefined"!=typeof document?document.domain&&wo?jo(wo):(e=Eo("iframe"),i="java"+To+":",e.style.display="none",Vo.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(Mo("document.F=Object")),t.close(),t.F):jo(wo);for(var r=Oo.length;r--;)delete Ro[ko][Oo[r]];return Ro()};Co[Lo]=!0;var Bo=Object.create||function(t,e){var i;return null!==t?(No[ko]=Po(t),i=new No,No[ko]=null,i[Lo]=t):i=Ro(),void 0===e?i:Ao.f(i,e)},Do={},Io=S([].slice),Go=C,Fo=I,zo=tr.f,$o=Io,Ho="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Do.f=function(t){return Ho&&"Window"===Go(t)?function(t){try{return zo(t)}catch(t){return $o(Ho)}}(t):zo(Fo(t))};var Wo=Yi,Uo=ke,Xo=function(t,e,i){return i.get&&Wo(i.get,e,{getter:!0}),i.set&&Wo(i.set,e,{setter:!0}),Uo.f(t,e,i)},Yo={},qo=re;Yo.f=qo;var Zo=n,Ko=Zo,Jo=$t,Qo=Yo,ts=ke.f,es=function(t){var e=Ko.Symbol||(Ko.Symbol={});Jo(e,t)||ts(e,t,{value:Qo.f(t)})},is=p,rs=U,ns=re,os=Qi,ss=function(){var t=rs("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,r=ns("toPrimitive");e&&!e[r]&&os(e,r,(function(t){return is(i,this)}),{arity:1})},as=ke.f,ls=$t,us=re("toStringTag"),cs=function(t,e,i){t&&!i&&(t=t.prototype),t&&!ls(t,us)&&as(t,us,{configurable:!0,value:e})},ps=C,hs=S,fs=function(t){if("Function"===ps(t))return hs(t)},ds=mt,_s=l,ys=fs(fs.bind),gs=function(t,e){return ds(t),void 0===e?t:_s?ys(t,e):function(){return t.apply(e,arguments)}},vs=gs,ms=L,bs=Gt,xs=dr,ws=Fn,Ss=S([].push),Ps=function(t){var e=1===t,i=2===t,r=3===t,n=4===t,o=6===t,s=7===t,a=5===t||o;return function(l,u,c,p){for(var h,f,d=bs(l),_=ms(d),y=xs(_),g=vs(u,c),v=0,m=p||ws,b=e?m(l,y):i||s?m(l,0):void 0;y>v;v++)if((a||v in _)&&(f=g(h=_[v],v,d),t))if(e)b[v]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return v;case 2:Ss(b,h)}else switch(t){case 4:return!1;case 7:Ss(b,h)}return o?-1:r||n?n:b}},As={forEach:Ps(0),map:Ps(1),filter:Ps(2),some:Ps(3),every:Ps(4),find:Ps(5),findIndex:Ps(6),filterReject:Ps(7)},Os=nn,Cs=n,Vs=p,Es=S,ks=a,Ts=at,Ls=s,Ns=$t,Ms=X,js=je,Rs=I,Bs=de,Ds=co,Is=v,Gs=Bo,Fs=_o,zs=tr,$s=Do,Hs=Er,Ws=o,Us=ke,Xs=po,Ys=h,qs=Qi,Zs=Xo,Ks=Bt,Js=yi,Qs=Yt,ta=re,ea=Yo,ia=es,ra=ss,na=cs,oa=ki,sa=As.forEach,aa=_i("hidden"),la="Symbol",ua="prototype",ca=oa.set,pa=oa.getterFor(la),ha=Object[ua],fa=Cs.Symbol,da=fa&&fa[ua],_a=Cs.RangeError,ya=Cs.TypeError,ga=Cs.QObject,va=Ws.f,ma=Us.f,ba=$s.f,xa=Ys.f,wa=Es([].push),Sa=Ks("symbols"),Pa=Ks("op-symbols"),Aa=Ks("wks"),Oa=!ga||!ga[ua]||!ga[ua].findChild,Ca=function(t,e,i){var r=va(ha,e);r&&delete ha[e],ma(t,e,i),r&&t!==ha&&ma(ha,e,r)},Va=ks&&Ls((function(){return 7!==Gs(ma({},"a",{get:function(){return ma(this,"a",{value:7}).a}})).a}))?Ca:ma,Ea=function(t,e){var i=Sa[t]=Gs(da);return ca(i,{type:la,tag:t,description:e}),ks||(i.description=e),i},ka=function(t,e,i){t===ha&&ka(Pa,e,i),js(t);var r=Bs(e);return js(i),Ns(Sa,r)?(i.enumerable?(Ns(t,aa)&&t[aa][r]&&(t[aa][r]=!1),i=Gs(i,{enumerable:Is(0,!1)})):(Ns(t,aa)||ma(t,aa,Is(1,Gs(null))),t[aa][r]=!0),Va(t,r,i)):ma(t,r,i)},Ta=function(t,e){js(t);var i=Rs(e),r=Fs(i).concat(ja(i));return sa(r,(function(e){ks&&!Vs(La,i,e)||ka(t,e,i[e])})),t},La=function(t){var e=Bs(t),i=Vs(xa,this,e);return!(this===ha&&Ns(Sa,e)&&!Ns(Pa,e))&&(!(i||!Ns(this,e)||!Ns(Sa,e)||Ns(this,aa)&&this[aa][e])||i)},Na=function(t,e){var i=Rs(t),r=Bs(e);if(i!==ha||!Ns(Sa,r)||Ns(Pa,r)){var n=va(i,r);return!n||!Ns(Sa,r)||Ns(i,aa)&&i[aa][r]||(n.enumerable=!0),n}},Ma=function(t){var e=ba(Rs(t)),i=[];return sa(e,(function(t){Ns(Sa,t)||Ns(Js,t)||wa(i,t)})),i},ja=function(t){var e=t===ha,i=ba(e?Pa:Rs(t)),r=[];return sa(i,(function(t){!Ns(Sa,t)||e&&!Ns(ha,t)||wa(r,Sa[t])})),r};Ts||(fa=function(){if(Ms(da,this))throw new ya("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Ds(arguments[0]):void 0,e=Qs(t),i=function(t){var r=void 0===this?Cs:this;r===ha&&Vs(i,Pa,t),Ns(r,aa)&&Ns(r[aa],e)&&(r[aa][e]=!1);var n=Is(1,t);try{Va(r,e,n)}catch(t){if(!(t instanceof _a))throw t;Ca(r,e,n)}};return ks&&Oa&&Va(ha,e,{configurable:!0,set:i}),Ea(e,t)},qs(da=fa[ua],"toString",(function(){return pa(this).tag})),qs(fa,"withoutSetter",(function(t){return Ea(Qs(t),t)})),Ys.f=La,Us.f=ka,Xs.f=Ta,Ws.f=Na,zs.f=$s.f=Ma,Hs.f=ja,ea.f=function(t){return Ea(ta(t),t)},ks&&(Zs(da,"description",{configurable:!0,get:function(){return pa(this).description}}),qs(ha,"propertyIsEnumerable",La,{unsafe:!0}))),Os({global:!0,constructor:!0,wrap:!0,forced:!Ts,sham:!Ts},{Symbol:fa}),sa(Fs(Aa),(function(t){ia(t)})),Os({target:la,stat:!0,forced:!Ts},{useSetter:function(){Oa=!0},useSimple:function(){Oa=!1}}),Os({target:"Object",stat:!0,forced:!Ts,sham:!ks},{create:function(t,e){return void 0===e?Gs(t):Ta(Gs(t),e)},defineProperty:ka,defineProperties:Ta,getOwnPropertyDescriptor:Na}),Os({target:"Object",stat:!0,forced:!Ts},{getOwnPropertyNames:Ma}),ra(),na(fa,la),Js[aa]=!0;var Ra=at&&!!Symbol.for&&!!Symbol.keyFor,Ba=nn,Da=U,Ia=$t,Ga=co,Fa=Bt,za=Ra,$a=Fa("string-to-symbol-registry"),Ha=Fa("symbol-to-string-registry");Ba({target:"Symbol",stat:!0,forced:!za},{for:function(t){var e=Ga(t);if(Ia($a,e))return $a[e];var i=Da("Symbol")(e);return $a[e]=i,Ha[i]=e,i}});var Wa=nn,Ua=$t,Xa=ft,Ya=_t,qa=Ra,Za=Bt("symbol-to-string-registry");Wa({target:"Symbol",stat:!0,forced:!qa},{keyFor:function(t){if(!Xa(t))throw new TypeError(Ya(t)+" is not a symbol");if(Ua(Za,t))return Za[t]}});var Ka=l,Ja=Function.prototype,Qa=Ja.apply,tl=Ja.call,el="object"==typeof Reflect&&Reflect.apply||(Ka?tl.bind(Qa):function(){return tl.apply(Qa,arguments)}),il=$,rl=ki.get,nl=S,ol=$t,sl=SyntaxError,al=parseInt,ll=String.fromCharCode,ul=nl("".charAt),cl=nl("".slice),pl=nl(/./.exec),hl={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},fl=/^[\da-f]{4}$/i,dl=/^[\u0000-\u001F]$/,_l=!s((function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})),yl=nn,gl=U,vl=el,ml=p,bl=S,xl=s,wl=sn,Sl=F,Pl=function(t){if(!il(t))return!1;var e=rl(t);return!!e&&"RawJSON"===e.type},Al=ft,Ol=C,Cl=co,Vl=Io,El=function(t,e){for(var i=!0,r="";e<t.length;){var n=ul(t,e);if("\\"===n){var o=cl(t,e,e+2);if(ol(hl,o))r+=hl[o],e+=2;else{if("\\u"!==o)throw new sl('Unknown escape sequence: "'+o+'"');var s=cl(t,e+=2,e+4);if(!pl(fl,s))throw new sl("Bad Unicode escape at: "+e);r+=ll(al(s,16)),e+=4}}else{if('"'===n){i=!1,e++;break}if(pl(dl,n))throw new sl("Bad control character in string literal at: "+e);r+=n,e++}}if(i)throw new sl("Unterminated string at: "+e);return{value:r,end:e}},kl=Yt,Tl=at,Ll=_l,Nl=String,Ml=gl("JSON","stringify"),jl=bl(/./.exec),Rl=bl("".charAt),Bl=bl("".charCodeAt),Dl=bl("".replace),Il=bl("".slice),Gl=bl([].push),Fl=bl(1.1.toString),zl=/[\uD800-\uDFFF]/g,$l=/^[\uD800-\uDBFF]$/,Hl=/^[\uDC00-\uDFFF]$/,Wl=kl(),Ul=Wl.length,Xl=!Tl||xl((function(){var t=gl("Symbol")("stringify detection");return"[null]"!==Ml([t])||"{}"!==Ml({a:t})||"{}"!==Ml(Object(t))})),Yl=xl((function(){return'"\\udf06\\ud834"'!==Ml("\udf06\ud834")||'"\\udead"'!==Ml("\udead")})),ql=Xl?function(t,e){var i=Vl(arguments),r=Kl(e);if(Sl(r)||void 0!==t&&!Al(t))return i[1]=function(t,e){if(Sl(r)&&(e=ml(r,this,Nl(t),e)),!Al(e))return e},vl(Ml,null,i)}:Ml,Zl=function(t,e,i){var r=Rl(i,e-1),n=Rl(i,e+1);return jl($l,t)&&!jl(Hl,n)||jl(Hl,t)&&!jl($l,r)?"\\u"+Fl(Bl(t,0),16):t},Kl=function(t){if(Sl(t))return t;if(wl(t)){for(var e=t.length,i=[],r=0;r<e;r++){var n=t[r];"string"==typeof n?Gl(i,n):"number"!=typeof n&&"Number"!==Ol(n)&&"String"!==Ol(n)||Gl(i,Cl(n))}var o=i.length,s=!0;return function(t,e){if(s)return s=!1,e;if(wl(this))return e;for(var r=0;r<o;r++)if(i[r]===t)return e}}};Ml&&yl({target:"JSON",stat:!0,arity:3,forced:Xl||Yl||!Ll},{stringify:function(t,e,i){var r=Kl(e),n=[],o=ql(t,(function(t,e){var i=Sl(r)?ml(r,this,Nl(t),e):e;return!Ll&&Pl(i)?Wl+(Gl(n,i.rawJSON)-1):i}),i);if("string"!=typeof o)return o;if(Yl&&(o=Dl(o,zl,Zl)),Ll)return o;for(var s="",a=o.length,l=0;l<a;l++){var u=Rl(o,l);if('"'===u){var c=El(o,++l).end-1,p=Il(o,l,c);s+=Il(p,0,Ul)===Wl?n[Il(p,Ul)]:'"'+p+'"',l=c}else s+=u}return s}});var Jl=Er,Ql=Gt;nn({target:"Object",stat:!0,forced:!at||s((function(){Jl.f(1)}))},{getOwnPropertySymbols:function(t){var e=Jl.f;return e?e(Ql(t)):[]}});var tu=n,eu=es,iu=ke.f,ru=o.f,nu=tu.Symbol;if(eu("asyncDispose"),nu){var ou=ru(nu,"asyncDispose");ou.enumerable&&ou.configurable&&ou.writable&&iu(nu,"asyncDispose",{value:ou.value,enumerable:!1,configurable:!1,writable:!1})}es("asyncIterator");var su=nn,au=a,lu=S,uu=$t,cu=F,pu=X,hu=co,fu=Xo,du=Gr,_u=n.Symbol,yu=_u&&_u.prototype;if(au&&cu(_u)&&(!("description"in yu)||void 0!==_u().description)){var gu={},vu=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:hu(arguments[0]),e=pu(yu,this)?new _u(t):void 0===t?_u():_u(t);return""===t&&(gu[e]=!0),e};du(vu,_u),vu.prototype=yu,yu.constructor=vu;var mu="Symbol(description detection)"===String(_u("description detection")),bu=lu(yu.valueOf),xu=lu(yu.toString),wu=/^Symbol\((.*)\)[^)]+$/,Su=lu("".replace),Pu=lu("".slice);fu(yu,"description",{configurable:!0,get:function(){var t=bu(this);if(uu(gu,t))return"";var e=xu(t),i=mu?Pu(e,7,-1):Su(e,wu,"$1");return""===i?void 0:i}}),su({global:!0,constructor:!0,forced:!0},{Symbol:vu})}var Au=n,Ou=es,Cu=ke.f,Vu=o.f,Eu=Au.Symbol;if(Ou("dispose"),Eu){var ku=Vu(Eu,"dispose");ku.enumerable&&ku.configurable&&ku.writable&&Cu(Eu,"dispose",{value:ku.value,enumerable:!1,configurable:!1,writable:!1})}es("hasInstance"),es("isConcatSpreadable"),es("iterator"),es("match"),es("matchAll"),es("replace"),es("search"),es("species"),es("split");var Tu=ss;es("toPrimitive"),Tu();var Lu=U,Nu=cs;es("toStringTag"),Nu(Lu("Symbol"),"Symbol"),es("unscopables"),cs(n.JSON,"JSON",!0),cs(Math,"Math",!0);var Mu=n,ju=cs;nn({global:!0},{Reflect:{}}),ju(Mu.Reflect,"Reflect",!0),Zo.Symbol;var Ru=re,Bu=Bo,Du=ke.f,Iu=Ru("unscopables"),Gu=Array.prototype;void 0===Gu[Iu]&&Du(Gu,Iu,{configurable:!0,value:Bu(null)});var Fu,zu,$u,Hu=function(t){Gu[Iu][t]=!0},Wu={},Uu=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Xu=$t,Yu=F,qu=Gt,Zu=Uu,Ku=_i("IE_PROTO"),Ju=Object,Qu=Ju.prototype,tc=Zu?Ju.getPrototypeOf:function(t){var e=qu(t);if(Xu(e,Ku))return e[Ku];var i=e.constructor;return Yu(i)&&e instanceof i?i.prototype:e instanceof Ju?Qu:null},ec=s,ic=F,rc=$,nc=tc,oc=Qi,sc=re("iterator"),ac=!1;[].keys&&("next"in($u=[].keys())?(zu=nc(nc($u)))!==Object.prototype&&(Fu=zu):ac=!0);var lc=!rc(Fu)||ec((function(){var t={};return Fu[sc].call(t)!==t}));lc&&(Fu={}),ic(Fu[sc])||oc(Fu,sc,(function(){return this}));var uc={IteratorPrototype:Fu,BUGGY_SAFARI_ITERATORS:ac},cc=uc.IteratorPrototype,pc=Bo,hc=v,fc=cs,dc=Wu,_c=function(){return this},yc=function(t,e,i,r){var n=e+" Iterator";return t.prototype=pc(cc,{next:hc(+!r,i)}),fc(t,n,!1),dc[n]=_c,t},gc=S,vc=mt,mc=$,bc=function(t){return mc(t)||null===t},xc=bc,wc=String,Sc=TypeError,Pc=function(t,e,i){try{return gc(vc(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}},Ac=$,Oc=R,Cc=function(t){if(xc(t))return t;throw new Sc("Can't set "+wc(t)+" as a prototype")},Vc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=Pc(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,r){return Oc(i),Cc(r),Ac(i)?(e?t(i,r):i.__proto__=r,i):i}}():void 0),Ec=nn,kc=p,Tc=F,Lc=yc,Nc=tc,Mc=Vc,jc=cs,Rc=qe,Bc=Qi,Dc=Wu,Ic=ii.PROPER,Gc=ii.CONFIGURABLE,Fc=uc.IteratorPrototype,zc=uc.BUGGY_SAFARI_ITERATORS,$c=re("iterator"),Hc="keys",Wc="values",Uc="entries",Xc=function(){return this},Yc=function(t,e,i,r,n,o,s){Lc(i,e,r);var a,l,u,c=function(t){if(t===n&&_)return _;if(!zc&&t&&t in f)return f[t];switch(t){case Hc:case Wc:case Uc:return function(){return new i(this,t)}}return function(){return new i(this)}},p=e+" Iterator",h=!1,f=t.prototype,d=f[$c]||f["@@iterator"]||n&&f[n],_=!zc&&d||c(n),y="Array"===e&&f.entries||d;if(y&&(a=Nc(y.call(new t)))!==Object.prototype&&a.next&&(Nc(a)!==Fc&&(Mc?Mc(a,Fc):Tc(a[$c])||Bc(a,$c,Xc)),jc(a,p,!0)),Ic&&n===Wc&&d&&d.name!==Wc&&(Gc?Rc(f,"name",Wc):(h=!0,_=function(){return kc(d,this)})),n)if(l={values:c(Wc),keys:o?_:c(Hc),entries:c(Uc)},s)for(u in l)(zc||h||!(u in f))&&Bc(f,u,l[u]);else Ec({target:e,proto:!0,forced:zc||h},l);return f[$c]!==_&&Bc(f,$c,_,{name:n}),Dc[e]=_,l},qc=function(t,e){return{value:t,done:e}},Zc=I,Kc=Hu,Jc=Wu,Qc=ki,tp=ke.f,ep=Yc,ip=qc,rp=a,np="Array Iterator",op=Qc.set,sp=Qc.getterFor(np);ep(Array,"Array",(function(t,e){op(this,{type:np,target:Zc(t),index:0,kind:e})}),(function(){var t=sp(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,ip(void 0,!0);switch(t.kind){case"keys":return ip(i,!1);case"values":return ip(e[i],!1)}return ip([i,e[i]],!1)}),"values");var ap=Jc.Arguments=Jc.Array;if(Kc("keys"),Kc("values"),Kc("entries"),rp&&"values"!==ap.name)try{tp(ap,"name",{value:"values"})}catch(t){}var lp={exports:{}},up=s((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),cp=s,pp=$,hp=C,fp=up,dp=Object.isExtensible,_p=cp((function(){dp(1)}))||fp?function(t){return!!pp(t)&&((!fp||"ArrayBuffer"!==hp(t))&&(!dp||dp(t)))}:dp,yp=!s((function(){return Object.isExtensible(Object.preventExtensions({}))})),gp=nn,vp=S,mp=yi,bp=$,xp=$t,wp=ke.f,Sp=tr,Pp=Do,Ap=_p,Op=yp,Cp=!1,Vp=Yt("meta"),Ep=0,kp=function(t){wp(t,Vp,{value:{objectID:"O"+Ep++,weakData:{}}})},Tp=lp.exports={enable:function(){Tp.enable=function(){},Cp=!0;var t=Sp.f,e=vp([].splice),i={};i[Vp]=1,t(i).length&&(Sp.f=function(i){for(var r=t(i),n=0,o=r.length;n<o;n++)if(r[n]===Vp){e(r,n,1);break}return r},gp({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Pp.f}))},fastKey:function(t,e){if(!bp(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!xp(t,Vp)){if(!Ap(t))return"F";if(!e)return"E";kp(t)}return t[Vp].objectID},getWeakData:function(t,e){if(!xp(t,Vp)){if(!Ap(t))return!0;if(!e)return!1;kp(t)}return t[Vp].weakData},onFreeze:function(t){return Op&&Cp&&Ap(t)&&!xp(t,Vp)&&kp(t),t}};mp[Vp]=!0;var Lp=lp.exports,Np=Wu,Mp=re("iterator"),jp=Array.prototype,Rp=function(t){return void 0!==t&&(Np.Array===t||jp[Mp]===t)},Bp=xn,Dp=wt,Ip=N,Gp=Wu,Fp=re("iterator"),zp=function(t){if(!Ip(t))return Dp(t,Fp)||Dp(t,"@@iterator")||Gp[Bp(t)]},$p=p,Hp=mt,Wp=je,Up=_t,Xp=zp,Yp=TypeError,qp=function(t,e){var i=arguments.length<2?Xp(t):e;if(Hp(i))return Wp($p(i,t));throw new Yp(Up(t)+" is not iterable")},Zp=p,Kp=je,Jp=wt,Qp=function(t,e,i){var r,n;Kp(t);try{if(!(r=Jp(t,"return"))){if("throw"===e)throw i;return i}r=Zp(r,t)}catch(t){n=!0,r=t}if("throw"===e)throw i;if(n)throw r;return Kp(r),i},th=gs,eh=p,ih=je,rh=_t,nh=Rp,oh=dr,sh=X,ah=qp,lh=zp,uh=Qp,ch=TypeError,ph=function(t,e){this.stopped=t,this.result=e},hh=ph.prototype,fh=function(t,e,i){var r,n,o,s,a,l,u,c=i&&i.that,p=!(!i||!i.AS_ENTRIES),h=!(!i||!i.IS_RECORD),f=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),_=th(e,c),y=function(t){return r&&uh(r,"normal"),new ph(!0,t)},g=function(t){return p?(ih(t),d?_(t[0],t[1],y):_(t[0],t[1])):d?_(t,y):_(t)};if(h)r=t.iterator;else if(f)r=t;else{if(!(n=lh(t)))throw new ch(rh(t)+" is not iterable");if(nh(n)){for(o=0,s=oh(t);s>o;o++)if((a=g(t[o]))&&sh(hh,a))return a;return new ph(!1)}r=ah(t,n)}for(l=h?t.next:r.next;!(u=eh(l,r)).done;){try{a=g(u.value)}catch(t){uh(r,"throw",t)}if("object"==typeof a&&a&&sh(hh,a))return a}return new ph(!1)},dh=X,_h=TypeError,yh=function(t,e){if(dh(e,t))return t;throw new _h("Incorrect invocation")},gh=re("iterator"),vh=!1;try{var mh=0,bh={next:function(){return{done:!!mh++}},return:function(){vh=!0}};bh[gh]=function(){return this},Array.from(bh,(function(){throw 2}))}catch(t){}var xh=function(t,e){try{if(!e&&!vh)return!1}catch(t){return!1}var i=!1;try{var r={};r[gh]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i},wh=F,Sh=$,Ph=Vc,Ah=function(t,e,i){var r,n;return Ph&&wh(r=e.constructor)&&r!==i&&Sh(n=r.prototype)&&n!==i.prototype&&Ph(t,n),t},Oh=nn,Ch=n,Vh=S,Eh=qr,kh=Qi,Th=Lp,Lh=fh,Nh=yh,Mh=F,jh=N,Rh=$,Bh=s,Dh=xh,Ih=cs,Gh=Ah,Fh=Qi,zh=function(t,e,i){for(var r in e)Fh(t,r,e[r],i);return t},$h=U,Hh=Xo,Wh=a,Uh=re("species"),Xh=function(t){var e=$h(t);Wh&&e&&!e[Uh]&&Hh(e,Uh,{configurable:!0,get:function(){return this}})},Yh=Bo,qh=Xo,Zh=zh,Kh=gs,Jh=yh,Qh=N,tf=fh,ef=Yc,rf=qc,nf=Xh,of=a,sf=Lp.fastKey,af=ki.set,lf=ki.getterFor,uf={getConstructor:function(t,e,i,r){var n=t((function(t,n){Jh(t,o),af(t,{type:e,index:Yh(null),first:null,last:null,size:0}),of||(t.size=0),Qh(n)||tf(n,t[r],{that:t,AS_ENTRIES:i})})),o=n.prototype,s=lf(e),a=function(t,e,i){var r,n,o=s(t),a=l(t,e);return a?a.value=i:(o.last=a={index:n=sf(e,!0),key:e,value:i,previous:r=o.last,next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),of?o.size++:t.size++,"F"!==n&&(o.index[n]=a)),t},l=function(t,e){var i,r=s(t),n=sf(e);if("F"!==n)return r.index[n];for(i=r.first;i;i=i.next)if(i.key===e)return i};return Zh(o,{clear:function(){for(var t=s(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Yh(null),of?t.size=0:this.size=0},delete:function(t){var e=this,i=s(e),r=l(e,t);if(r){var n=r.next,o=r.previous;delete i.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),i.first===r&&(i.first=n),i.last===r&&(i.last=o),of?i.size--:e.size--}return!!r},forEach:function(t){for(var e,i=s(this),r=Kh(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!l(this,t)}}),Zh(o,i?{get:function(t){var e=l(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),of&&qh(o,"size",{configurable:!0,get:function(){return s(this).size}}),n},setStrong:function(t,e,i){var r=e+" Iterator",n=lf(e),o=lf(r);ef(t,e,(function(t,e){af(this,{type:r,target:t,state:n(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?rf("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=null,rf(void 0,!0))}),i?"entries":"values",!i,!0),nf(e)}};(function(t,e,i){var r=-1!==t.indexOf("Map"),n=-1!==t.indexOf("Weak"),o=r?"set":"add",s=Ch[t],a=s&&s.prototype,l=s,u={},c=function(t){var e=Vh(a[t]);kh(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return n&&!Rh(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(n&&!Rh(t))&&e(this,0===t?0:t)}:function(t,i){return e(this,0===t?0:t,i),this})};if(Eh(t,!Mh(s)||!(n||a.forEach&&!Bh((function(){(new s).entries().next()})))))l=i.getConstructor(e,t,r,o),Th.enable();else if(Eh(t,!0)){var p=new l,h=p[o](n?{}:-0,1)!==p,f=Bh((function(){p.has(1)})),d=Dh((function(t){new s(t)})),_=!n&&Bh((function(){for(var t=new s,e=5;e--;)t[o](e,e);return!t.has(-0)}));d||((l=e((function(t,e){Nh(t,a);var i=Gh(new s,t,l);return jh(e)||Lh(e,i[o],{that:i,AS_ENTRIES:r}),i}))).prototype=a,a.constructor=l),(f||_)&&(c("delete"),c("has"),r&&c("get")),(_||h)&&c(o),n&&a.clear&&delete a.clear}u[t]=l,Oh({global:!0,constructor:!0,forced:l!==s},u),Ih(l,t),n||i.setStrong(l,t,r)})("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),uf);var cf=S,pf=Map.prototype,hf={Map:Map,set:cf(pf.set),get:cf(pf.get),has:cf(pf.has),remove:cf(pf.delete),proto:pf},ff=nn,df=mt,_f=R,yf=fh,gf=s,vf=hf.Map,mf=hf.has,bf=hf.get,xf=hf.set,wf=S([].push);ff({target:"Map",stat:!0,forced:gf((function(){return 1!==vf.groupBy("ab",(function(t){return t})).get("a").length}))},{groupBy:function(t,e){_f(t),df(e);var i=new vf,r=0;return yf(t,(function(t){var n=e(t,r++);mf(i,n)?wf(bf(i,n),t):xf(i,n,[t])})),i}});var Sf=S,Pf=or,Af=co,Of=R,Cf=Sf("".charAt),Vf=Sf("".charCodeAt),Ef=Sf("".slice),kf=function(t){return function(e,i){var r,n,o=Af(Of(e)),s=Pf(i),a=o.length;return s<0||s>=a?t?"":void 0:(r=Vf(o,s))<55296||r>56319||s+1===a||(n=Vf(o,s+1))<56320||n>57343?t?Cf(o,s):r:t?Ef(o,s,s+2):n-56320+(r-55296<<10)+65536}},Tf={codeAt:kf(!1),charAt:kf(!0)},Lf=Tf.charAt,Nf=co,Mf=ki,jf=Yc,Rf=qc,Bf="String Iterator",Df=Mf.set,If=Mf.getterFor(Bf);jf(String,"String",(function(t){Df(this,{type:Bf,string:Nf(t),index:0})}),(function(){var t,e=If(this),i=e.string,r=e.index;return r>=i.length?Rf(void 0,!0):(t=Lf(i,r),e.index+=t.length,Rf(t,!1))})),Zo.Map;var Gf=je,Ff=Qp,zf=gs,$f=p,Hf=Gt,Wf=function(t,e,i,r){try{return r?e(Gf(i)[0],i[1]):e(i)}catch(e){Ff(t,"throw",e)}},Uf=Rp,Xf=Mn,Yf=dr,qf=hn,Zf=qp,Kf=zp,Jf=Array,Qf=function(t){var e=Hf(t),i=Xf(this),r=arguments.length,n=r>1?arguments[1]:void 0,o=void 0!==n;o&&(n=zf(n,r>2?arguments[2]:void 0));var s,a,l,u,c,p,h=Kf(e),f=0;if(!h||this===Jf&&Uf(h))for(s=Yf(e),a=i?new this(s):Jf(s);s>f;f++)p=o?n(e[f],f):e[f],qf(a,f,p);else for(a=i?new this:[],c=(u=Zf(e,h)).next;!(l=$f(c,u)).done;f++)p=o?Wf(u,n,[l.value,f],!0):l.value,qf(a,f,p);return a.length=f,a};nn({target:"Array",stat:!0,forced:!xh((function(t){Array.from(t)}))},{from:Qf}),nn({target:"Array",stat:!0},{isArray:sn});var td=Mn,ed=hn,id=Array;nn({target:"Array",stat:!0,forced:s((function(){function t(){}return!(id.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,i=new(td(this)?this:id)(e);e>t;)ed(i,t,arguments[t++]);return i.length=e,i}});var rd=Gt,nd=dr,od=or,sd=Hu;nn({target:"Array",proto:!0},{at:function(t){var e=rd(this),i=nd(e),r=od(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:e[n]}}),sd("at");var ad=_t,ld=TypeError,ud=function(t,e){if(!delete t[e])throw new ld("Cannot delete property "+ad(e)+" of "+ad(t))},cd=Gt,pd=ur,hd=dr,fd=ud,dd=Math.min,_d=[].copyWithin||function(t,e){var i=cd(this),r=hd(i),n=pd(t,r),o=pd(e,r),s=arguments.length>2?arguments[2]:void 0,a=dd((void 0===s?r:pd(s,r))-o,r-n),l=1;for(o<n&&n<o+a&&(l=-1,o+=a-1,n+=a-1);a-- >0;)o in i?i[n]=i[o]:fd(i,n),n+=l,o+=l;return i},yd=Hu;nn({target:"Array",proto:!0},{copyWithin:_d}),yd("copyWithin");var gd=s,vd=function(t,e){var i=[][t];return!!i&&gd((function(){i.call(null,e||function(){return 1},1)}))},md=As.every;nn({target:"Array",proto:!0,forced:!vd("every")},{every:function(t){return md(this,t,arguments.length>1?arguments[1]:void 0)}});var bd=Gt,xd=ur,wd=dr,Sd=function(t){for(var e=bd(this),i=wd(e),r=arguments.length,n=xd(r>1?arguments[1]:void 0,i),o=r>2?arguments[2]:void 0,s=void 0===o?i:xd(o,i);s>n;)e[n++]=t;return e},Pd=Hu;nn({target:"Array",proto:!0},{fill:Sd}),Pd("fill");var Ad=As.filter;nn({target:"Array",proto:!0,forced:!Wn("filter")},{filter:function(t){return Ad(this,t,arguments.length>1?arguments[1]:void 0)}});var Od=nn,Cd=As.find,Vd=Hu,Ed="find",kd=!0;Ed in[]&&Array(1)[Ed]((function(){kd=!1})),Od({target:"Array",proto:!0,forced:kd},{find:function(t){return Cd(this,t,arguments.length>1?arguments[1]:void 0)}}),Vd(Ed);var Td=nn,Ld=As.findIndex,Nd=Hu,Md="findIndex",jd=!0;Md in[]&&Array(1)[Md]((function(){jd=!1})),Td({target:"Array",proto:!0,forced:jd},{findIndex:function(t){return Ld(this,t,arguments.length>1?arguments[1]:void 0)}}),Nd(Md);var Rd=gs,Bd=L,Dd=Gt,Id=dr,Gd=function(t){var e=1===t;return function(i,r,n){for(var o,s=Dd(i),a=Bd(s),l=Id(a),u=Rd(r,n);l-- >0;)if(u(o=a[l],l,s))switch(t){case 0:return o;case 1:return l}return e?-1:void 0}},Fd={findLast:Gd(0),findLastIndex:Gd(1)},zd=Fd.findLast,$d=Hu;nn({target:"Array",proto:!0},{findLast:function(t){return zd(this,t,arguments.length>1?arguments[1]:void 0)}}),$d("findLast");var Hd=Fd.findLastIndex,Wd=Hu;nn({target:"Array",proto:!0},{findLastIndex:function(t){return Hd(this,t,arguments.length>1?arguments[1]:void 0)}}),Wd("findLastIndex");var Ud=sn,Xd=dr,Yd=ln,qd=gs,Zd=function(t,e,i,r,n,o,s,a){for(var l,u,c=n,p=0,h=!!s&&qd(s,a);p<r;)p in i&&(l=h?h(i[p],p,e):i[p],o>0&&Ud(l)?(u=Xd(l),c=Zd(t,e,l,u,c,o-1)-1):(Yd(c+1),t[c]=l),c++),p++;return c},Kd=Zd,Jd=Kd,Qd=Gt,t_=dr,e_=or,i_=Fn;nn({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Qd(this),i=t_(e),r=i_(e,0);return r.length=Jd(r,e,e,i,0,void 0===t?1:e_(t)),r}});var r_=Kd,n_=mt,o_=Gt,s_=dr,a_=Fn;nn({target:"Array",proto:!0},{flatMap:function(t){var e,i=o_(this),r=s_(i);return n_(t),(e=a_(i,0)).length=r_(e,i,i,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var l_=As.forEach,u_=vd("forEach")?[].forEach:function(t){return l_(this,t,arguments.length>1?arguments[1]:void 0)};nn({target:"Array",proto:!0,forced:[].forEach!==u_},{forEach:u_});var c_=mr.includes,p_=Hu;nn({target:"Array",proto:!0,forced:s((function(){return!Array(1).includes()}))},{includes:function(t){return c_(this,t,arguments.length>1?arguments[1]:void 0)}}),p_("includes");var h_=nn,f_=mr.indexOf,d_=vd,__=fs([].indexOf),y_=!!__&&1/__([1],1,-0)<0;h_({target:"Array",proto:!0,forced:y_||!d_("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return y_?__(this,t,e)||0:f_(this,t,e)}});var g_,v_,m_=n,b_=jt,x_=F,w_=tc,S_=Qi,P_="USE_FUNCTION_CONSTRUCTOR",A_=re("asyncIterator"),O_=m_.AsyncIterator,C_=b_.AsyncIteratorPrototype;if(C_)g_=C_;else if(x_(O_))g_=O_.prototype;else if(b_[P_]||m_[P_])try{v_=w_(w_(w_(Function("return async function*(){}()")()))),w_(v_)===Object.prototype&&(g_=v_)}catch(t){}g_||(g_={}),x_(g_[A_])||S_(g_,A_,(function(){return this}));var V_=p,E_=je,k_=Bo,T_=wt,L_=zh,N_=ki,M_=Qp,j_=g_,R_=qc,B_=U("Promise"),D_="AsyncFromSyncIterator",I_=N_.set,G_=N_.getterFor(D_),F_=function(t,e,i,r,n){var o=t.done;B_.resolve(t.value).then((function(t){e(R_(t,o))}),(function(t){if(!o&&n)try{M_(r,"throw",t)}catch(e){t=e}i(t)}))},z_=function(t){t.type=D_,I_(this,t)};z_.prototype=L_(k_(j_),{next:function(){var t=G_(this);return new B_((function(e,i){var r=E_(V_(t.next,t.iterator));F_(r,e,i,t.iterator,!0)}))},return:function(){var t=G_(this).iterator;return new B_((function(e,i){var r=T_(t,"return");if(void 0===r)return e(R_(void 0,!0));var n=E_(V_(r,t));F_(n,e,i,t)}))}});var $_=z_,H_=function(t){return{iterator:t,next:t.next,done:!1}},W_=p,U_=$_,X_=je,Y_=qp,q_=H_,Z_=wt,K_=re("asyncIterator"),J_=n,Q_=function(t,e){var i=J_[t],r=i&&i.prototype;return r&&r[e]},ty=p,ey=U,iy=wt,ry=p,ny=mt,oy=je,sy=$,ay=ln,ly=U,uy=H_,cy=function(t,e,i,r){try{var n=iy(t,"return");if(n)return ey("Promise").resolve(ty(n,t)).then((function(){e(i)}),(function(t){r(t)}))}catch(t){return r(t)}e(i)},py=function(t){var e=0===t,i=1===t,r=2===t,n=3===t;return function(t,o,s){oy(t);var a=void 0!==o;!a&&e||ny(o);var l=uy(t),u=ly("Promise"),c=l.iterator,p=l.next,h=0;return new u((function(t,l){var f=function(t){cy(c,l,t,l)},d=function(){try{if(a)try{ay(h)}catch(t){f(t)}u.resolve(oy(ry(p,c))).then((function(p){try{if(oy(p).done)e?(s.length=h,t(s)):t(!n&&(r||void 0));else{var _=p.value;try{if(a){var y=o(_,h),g=function(o){if(i)d();else if(r)o?d():cy(c,t,!1,l);else if(e)try{s[h++]=o,d()}catch(t){f(t)}else o?cy(c,t,n||_,l):d()};sy(y)?u.resolve(y).then(g,f):g(y)}else s[h++]=_,d()}catch(t){f(t)}}}catch(t){l(t)}}),l)}catch(t){l(t)}};d()}))}},hy={toArray:py(0),forEach:py(1),every:py(2),some:py(3),find:py(4)},fy=gs,dy=S,_y=Gt,yy=Mn,gy=function(t,e){var i=arguments.length<2?Z_(t,K_):e;return i?X_(W_(i,t)):new U_(q_(Y_(t)))},vy=qp,my=H_,by=zp,xy=wt,wy=U,Sy=Q_,Py=$_,Ay=hy.toArray,Oy=re("asyncIterator"),Cy=dy(Sy("Array","values")),Vy=dy(Cy([]).next),Ey=function(){return new ky(this)},ky=function(t){this.iterator=Cy(t)};ky.prototype.next=function(){return Vy(this.iterator)};var Ty=nn,Ly=function(t){var e=this,i=arguments.length,r=i>1?arguments[1]:void 0,n=i>2?arguments[2]:void 0;return new(wy("Promise"))((function(i){var o=_y(t);void 0!==r&&(r=fy(r,n));var s=xy(o,Oy),a=s?void 0:by(o)||Ey,l=yy(e)?new e:[],u=s?gy(o,s):new Py(my(vy(o,a)));i(Ay(u,r,l))}))},Ny=s,My=Array.fromAsync,jy=!My||Ny((function(){var t=0;return My.call((function(){return t++,[]}),{length:0}),1!==t}));Ty({target:"Array",stat:!0,forced:jy},{fromAsync:Ly});var Ry=nn,By=L,Dy=I,Iy=vd,Gy=S([].join);Ry({target:"Array",proto:!0,forced:By!==Object||!Iy("join",",")},{join:function(t){return Gy(Dy(this),void 0===t?",":t)}});var Fy=el,zy=I,$y=or,Hy=dr,Wy=vd,Uy=Math.min,Xy=[].lastIndexOf,Yy=!!Xy&&1/[1].lastIndexOf(1,-0)<0,qy=Wy("lastIndexOf"),Zy=Yy||!qy?function(t){if(Yy)return Fy(Xy,this,arguments)||0;var e=zy(this),i=Hy(e);if(0===i)return-1;var r=i-1;for(arguments.length>1&&(r=Uy(r,$y(arguments[1]))),r<0&&(r=i+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}:Xy;nn({target:"Array",proto:!0,forced:Zy!==[].lastIndexOf},{lastIndexOf:Zy});var Ky=As.map;nn({target:"Array",proto:!0,forced:!Wn("map")},{map:function(t){return Ky(this,t,arguments.length>1?arguments[1]:void 0)}});var Jy=a,Qy=sn,tg=TypeError,eg=Object.getOwnPropertyDescriptor,ig=Jy&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Qy(t)&&!eg(t,"length").writable)throw new tg("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},rg=Gt,ng=dr,og=ig,sg=ln;nn({target:"Array",proto:!0,arity:1,forced:s((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=rg(this),i=ng(e),r=arguments.length;sg(i+r);for(var n=0;n<r;n++)e[i]=arguments[n],i++;return og(e,i),i}});var ag=mt,lg=Gt,ug=L,cg=dr,pg=TypeError,hg="Reduce of empty array with no initial value",fg=function(t){return function(e,i,r,n){var o=lg(e),s=ug(o),a=cg(o);if(ag(i),0===a&&r<2)throw new pg(hg);var l=t?a-1:0,u=t?-1:1;if(r<2)for(;;){if(l in s){n=s[l],l+=u;break}if(l+=u,t?l<0:a<=l)throw new pg(hg)}for(;t?l>=0:a>l;l+=u)l in s&&(n=i(n,s[l],l,o));return n}},dg={left:fg(!1),right:fg(!0)},_g=n,yg=Z,gg=C,vg=function(t){return yg.slice(0,t.length)===t},mg=vg("Bun/")?"BUN":vg("Cloudflare-Workers")?"CLOUDFLARE":vg("Deno/")?"DENO":vg("Node.js/")?"NODE":_g.Bun&&"string"==typeof Bun.version?"BUN":_g.Deno&&"object"==typeof Deno.version?"DENO":"process"===gg(_g.process)?"NODE":_g.window&&_g.document?"BROWSER":"REST",bg="NODE"===mg,xg=dg.left;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduce")},{reduce:function(t){var e=arguments.length;return xg(this,t,e,e>1?arguments[1]:void 0)}});var wg=dg.right;nn({target:"Array",proto:!0,forced:!bg&&rt>79&&rt<83||!vd("reduceRight")},{reduceRight:function(t){return wg(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Sg=nn,Pg=sn,Ag=S([].reverse),Og=[1,2];Sg({target:"Array",proto:!0,forced:String(Og)===String(Og.reverse())},{reverse:function(){return Pg(this)&&(this.length=this.length),Ag(this)}});var Cg=nn,Vg=sn,Eg=Mn,kg=$,Tg=ur,Lg=dr,Ng=I,Mg=hn,jg=re,Rg=Io,Bg=Wn("slice"),Dg=jg("species"),Ig=Array,Gg=Math.max;Cg({target:"Array",proto:!0,forced:!Bg},{slice:function(t,e){var i,r,n,o=Ng(this),s=Lg(o),a=Tg(t,s),l=Tg(void 0===e?s:e,s);if(Vg(o)&&(i=o.constructor,(Eg(i)&&(i===Ig||Vg(i.prototype))||kg(i)&&null===(i=i[Dg]))&&(i=void 0),i===Ig||void 0===i))return Rg(o,a,l);for(r=new(void 0===i?Ig:i)(Gg(l-a,0)),n=0;a<l;a++,n++)a in o&&Mg(r,n,o[a]);return r.length=n,r}});var Fg=As.some;nn({target:"Array",proto:!0,forced:!vd("some")},{some:function(t){return Fg(this,t,arguments.length>1?arguments[1]:void 0)}});var zg=Io,$g=Math.floor,Hg=function(t,e){var i=t.length;if(i<8)for(var r,n,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}else for(var s=$g(i/2),a=Hg(zg(t,0,s),e),l=Hg(zg(t,s),e),u=a.length,c=l.length,p=0,h=0;p<u||h<c;)t[p+h]=p<u&&h<c?e(a[p],l[h])<=0?a[p++]:l[h++]:p<u?a[p++]:l[h++];return t},Wg=Hg,Ug=Z.match(/firefox\/(\d+)/i),Xg=!!Ug&&+Ug[1],Yg=/MSIE|Trident/.test(Z),qg=Z.match(/AppleWebKit\/(\d+)\./),Zg=!!qg&&+qg[1],Kg=nn,Jg=S,Qg=mt,tv=Gt,ev=dr,iv=ud,rv=co,nv=s,ov=Wg,sv=vd,av=Xg,lv=Yg,uv=rt,cv=Zg,pv=[],hv=Jg(pv.sort),fv=Jg(pv.push),dv=nv((function(){pv.sort(void 0)})),_v=nv((function(){pv.sort(null)})),yv=sv("sort"),gv=!nv((function(){if(uv)return uv<70;if(!(av&&av>3)){if(lv)return!0;if(cv)return cv<603;var t,e,i,r,n="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(r=0;r<47;r++)pv.push({k:e+r,v:i})}for(pv.sort((function(t,e){return e.v-t.v})),r=0;r<pv.length;r++)e=pv[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}));Kg({target:"Array",proto:!0,forced:dv||!_v||!yv||!gv},{sort:function(t){void 0!==t&&Qg(t);var e=tv(this);if(gv)return void 0===t?hv(e):hv(e,t);var i,r,n=[],o=ev(e);for(r=0;r<o;r++)r in e&&fv(n,e[r]);for(ov(n,function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:rv(e)>rv(i)?1:-1}}(t)),i=ev(n),r=0;r<i;)e[r]=n[r++];for(;r<o;)iv(e,r++);return e}}),Xh("Array");var vv=nn,mv=Gt,bv=ur,xv=or,wv=dr,Sv=ig,Pv=ln,Av=Fn,Ov=hn,Cv=ud,Vv=Wn("splice"),Ev=Math.max,kv=Math.min;vv({target:"Array",proto:!0,forced:!Vv},{splice:function(t,e){var i,r,n,o,s,a,l=mv(this),u=wv(l),c=bv(t,u),p=arguments.length;for(0===p?i=r=0:1===p?(i=0,r=u-c):(i=p-2,r=kv(Ev(xv(e),0),u-c)),Pv(u+i-r),n=Av(l,r),o=0;o<r;o++)(s=c+o)in l&&Ov(n,o,l[s]);if(n.length=r,i<r){for(o=c;o<u-r;o++)a=o+i,(s=o+r)in l?l[a]=l[s]:Cv(l,a);for(o=u;o>u-r+i;o--)Cv(l,o-1)}else if(i>r)for(o=u-r;o>c;o--)a=o+i-1,(s=o+r-1)in l?l[a]=l[s]:Cv(l,a);for(o=0;o<i;o++)l[o+c]=arguments[o+2];return Sv(l,u-r+i),n}});var Tv=dr,Lv=function(t,e){for(var i=Tv(t),r=new e(i),n=0;n<i;n++)r[n]=t[i-n-1];return r},Nv=I,Mv=Hu,jv=Array;nn({target:"Array",proto:!0},{toReversed:function(){return Lv(Nv(this),jv)}}),Mv("toReversed");var Rv=dr,Bv=nn,Dv=mt,Iv=I,Gv=function(t,e,i){for(var r=0,n=arguments.length>2?i:Rv(e),o=new t(n);n>r;)o[r]=e[r++];return o},Fv=Hu,zv=Array,$v=S(Q_("Array","sort"));Bv({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&Dv(t);var e=Iv(this),i=Gv(zv,e);return $v(i,t)}}),Fv("toSorted");var Hv=nn,Wv=Hu,Uv=ln,Xv=dr,Yv=ur,qv=I,Zv=or,Kv=Array,Jv=Math.max,Qv=Math.min;Hv({target:"Array",proto:!0},{toSpliced:function(t,e){var i,r,n,o,s=qv(this),a=Xv(s),l=Yv(t,a),u=arguments.length,c=0;for(0===u?i=r=0:1===u?(i=0,r=a-l):(i=u-2,r=Qv(Jv(Zv(e),0),a-l)),n=Uv(a+i-r),o=Kv(n);c<l;c++)o[c]=s[c];for(;c<l+i;c++)o[c]=arguments[c-l+2];for(;c<n;c++)o[c]=s[c+r-i];return o}}),Wv("toSpliced"),Hu("flat"),Hu("flatMap");var tm=Gt,em=dr,im=ig,rm=ud,nm=ln;nn({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=tm(this),i=em(e),r=arguments.length;if(r){nm(i+r);for(var n=i;n--;){var o=n+r;n in e?e[o]=e[n]:rm(e,o)}for(var s=0;s<r;s++)e[s]=arguments[s]}return im(e,i+r)}});var om=dr,sm=or,am=RangeError,lm=function(t,e,i,r){var n=om(t),o=sm(i),s=o<0?n+o:o;if(s>=n||s<0)throw new am("Incorrect index");for(var a=new e(n),l=0;l<n;l++)a[l]=l===s?r:t[l];return a},um=I,cm=Array;nn({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(t){return 4!==t}}()},{with:function(t,e){return lm(um(this),cm,t,e)}});var pm,hm,fm,dm,_m=Mn,ym=_t,gm=TypeError,vm=je,mm=function(t){if(_m(t))return t;throw new gm(ym(t)+" is not a constructor")},bm=N,xm=re("species"),wm=function(t,e){var i,r=vm(t).constructor;return void 0===r||bm(i=vm(r)[xm])?e:mm(i)},Sm=TypeError,Pm=/(?:ipad|iphone|ipod).*applewebkit/i.test(Z),Am=n,Om=el,Cm=gs,Vm=F,Em=$t,km=s,Tm=So,Lm=Io,Nm=ve,Mm=function(t,e){if(t<e)throw new Sm("Not enough arguments");return t},jm=Pm,Rm=bg,Bm=Am.setImmediate,Dm=Am.clearImmediate,Im=Am.process,Gm=Am.Dispatch,Fm=Am.Function,zm=Am.MessageChannel,$m=Am.String,Hm=0,Wm={},Um="onreadystatechange";km((function(){pm=Am.location}));var Xm=function(t){if(Em(Wm,t)){var e=Wm[t];delete Wm[t],e()}},Ym=function(t){return function(){Xm(t)}},qm=function(t){Xm(t.data)},Zm=function(t){Am.postMessage($m(t),pm.protocol+"//"+pm.host)};Bm&&Dm||(Bm=function(t){Mm(arguments.length,1);var e=Vm(t)?t:Fm(t),i=Lm(arguments,1);return Wm[++Hm]=function(){Om(e,void 0,i)},hm(Hm),Hm},Dm=function(t){delete Wm[t]},Rm?hm=function(t){Im.nextTick(Ym(t))}:Gm&&Gm.now?hm=function(t){Gm.now(Ym(t))}:zm&&!jm?(dm=(fm=new zm).port2,fm.port1.onmessage=qm,hm=Cm(dm.postMessage,dm)):Am.addEventListener&&Vm(Am.postMessage)&&!Am.importScripts&&pm&&"file:"!==pm.protocol&&!km(Zm)?(hm=Zm,Am.addEventListener("message",qm,!1)):hm=Um in Nm("script")?function(t){Tm.appendChild(Nm("script"))[Um]=function(){Tm.removeChild(this),Xm(t)}}:function(t){setTimeout(Ym(t),0)});var Km={set:Bm,clear:Dm},Jm=n,Qm=a,tb=Object.getOwnPropertyDescriptor,eb=function(){this.head=null,this.tail=null};eb.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var ib,rb,nb,ob,sb,ab=eb,lb=/ipad|iphone|ipod/i.test(Z)&&"undefined"!=typeof Pebble,ub=/web0s(?!.*chrome)/i.test(Z),cb=n,pb=function(t){if(!Qm)return Jm[t];var e=tb(Jm,t);return e&&e.value},hb=gs,fb=Km.set,db=ab,_b=Pm,yb=lb,gb=ub,vb=bg,mb=cb.MutationObserver||cb.WebKitMutationObserver,bb=cb.document,xb=cb.process,wb=cb.Promise,Sb=pb("queueMicrotask");if(!Sb){var Pb=new db,Ab=function(){var t,e;for(vb&&(t=xb.domain)&&t.exit();e=Pb.get();)try{e()}catch(t){throw Pb.head&&ib(),t}t&&t.enter()};_b||vb||gb||!mb||!bb?!yb&&wb&&wb.resolve?((ob=wb.resolve(void 0)).constructor=wb,sb=hb(ob.then,ob),ib=function(){sb(Ab)}):vb?ib=function(){xb.nextTick(Ab)}:(fb=hb(fb,cb),ib=function(){fb(Ab)}):(rb=!0,nb=bb.createTextNode(""),new mb(Ab).observe(nb,{characterData:!0}),ib=function(){nb.data=rb=!rb}),Sb=function(t){Pb.head||ib(),Pb.add(t)}}var Ob=Sb,Cb=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Vb=n.Promise,Eb=n,kb=Vb,Tb=F,Lb=qr,Nb=ui,Mb=re,jb=mg,Rb=rt;kb&&kb.prototype;var Bb=Mb("species"),Db=!1,Ib=Tb(Eb.PromiseRejectionEvent),Gb=Lb("Promise",(function(){var t=Nb(kb),e=t!==String(kb);if(!e&&66===Rb)return!0;if(!Rb||Rb<51||!/native code/.test(t)){var i=new kb((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((i.constructor={})[Bb]=r,!(Db=i.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==jb&&"DENO"!==jb||Ib)})),Fb={CONSTRUCTOR:Gb,REJECTION_EVENT:Ib,SUBCLASSING:Db},zb={},$b=mt,Hb=TypeError,Wb=function(t){var e,i;this.promise=new t((function(t,r){if(void 0!==e||void 0!==i)throw new Hb("Bad Promise constructor");e=t,i=r})),this.resolve=$b(e),this.reject=$b(i)};zb.f=function(t){return new Wb(t)};var Ub,Xb,Yb,qb,Zb=nn,Kb=bg,Jb=n,Qb=Zo,tx=p,ex=Qi,ix=Vc,rx=cs,nx=Xh,ox=mt,sx=F,ax=$,lx=yh,ux=wm,cx=Km.set,px=Ob,hx=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}},fx=Cb,dx=ab,_x=ki,yx=Vb,gx=zb,vx="Promise",mx=Fb.CONSTRUCTOR,bx=Fb.REJECTION_EVENT,xx=Fb.SUBCLASSING,wx=_x.getterFor(vx),Sx=_x.set,Px=yx&&yx.prototype,Ax=yx,Ox=Px,Cx=Jb.TypeError,Vx=Jb.document,Ex=Jb.process,kx=gx.f,Tx=kx,Lx=!!(Vx&&Vx.createEvent&&Jb.dispatchEvent),Nx="unhandledrejection",Mx=function(t){var e;return!(!ax(t)||!sx(e=t.then))&&e},jx=function(t,e){var i,r,n,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&Gx(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),n=!0)),i===t.promise?u(new Cx("Promise-chain cycle")):(r=Mx(i))?tx(r,i,l,u):l(i)):u(o)}catch(t){c&&!n&&c.exit(),u(t)}},Rx=function(t,e){t.notified||(t.notified=!0,px((function(){for(var i,r=t.reactions;i=r.get();)jx(i,t);t.notified=!1,e&&!t.rejection&&Dx(t)})))},Bx=function(t,e,i){var r,n;Lx?((r=Vx.createEvent("Event")).promise=e,r.reason=i,r.initEvent(t,!1,!0),Jb.dispatchEvent(r)):r={promise:e,reason:i},!bx&&(n=Jb["on"+t])?n(r):t===Nx&&hx("Unhandled promise rejection",i)},Dx=function(t){tx(cx,Jb,(function(){var e,i=t.facade,r=t.value;if(Ix(t)&&(e=fx((function(){Kb?Ex.emit("unhandledRejection",r,i):Bx(Nx,i,r)})),t.rejection=Kb||Ix(t)?2:1,e.error))throw e.value}))},Ix=function(t){return 1!==t.rejection&&!t.parent},Gx=function(t){tx(cx,Jb,(function(){var e=t.facade;Kb?Ex.emit("rejectionHandled",e):Bx("rejectionhandled",e,t.value)}))},Fx=function(t,e,i){return function(r){t(e,r,i)}},zx=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,Rx(t,!0))},$x=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new Cx("Promise can't be resolved itself");var r=Mx(e);r?px((function(){var i={done:!1};try{tx(r,e,Fx($x,i,t),Fx(zx,i,t))}catch(e){zx(i,e,t)}})):(t.value=e,t.state=1,Rx(t,!1))}catch(e){zx({done:!1},e,t)}}};if(mx&&(Ox=(Ax=function(t){lx(this,Ox),ox(t),tx(Ub,this);var e=wx(this);try{t(Fx($x,e),Fx(zx,e))}catch(t){zx(e,t)}}).prototype,(Ub=function(t){Sx(this,{type:vx,done:!1,notified:!1,parent:!1,reactions:new dx,rejection:!1,state:0,value:null})}).prototype=ex(Ox,"then",(function(t,e){var i=wx(this),r=kx(ux(this,Ax));return i.parent=!0,r.ok=!sx(t)||t,r.fail=sx(e)&&e,r.domain=Kb?Ex.domain:void 0,0===i.state?i.reactions.add(r):px((function(){jx(r,i)})),r.promise})),Xb=function(){var t=new Ub,e=wx(t);this.promise=t,this.resolve=Fx($x,e),this.reject=Fx(zx,e)},gx.f=kx=function(t){return t===Ax||t===Yb?new Xb(t):Tx(t)},sx(yx)&&Px!==Object.prototype)){qb=Px.then,xx||ex(Px,"then",(function(t,e){var i=this;return new Ax((function(t,e){tx(qb,i,t,e)})).then(t,e)}),{unsafe:!0});try{delete Px.constructor}catch(t){}ix&&ix(Px,Ox)}Zb({global:!0,constructor:!0,wrap:!0,forced:mx},{Promise:Ax}),Yb=Qb.Promise,rx(Ax,vx,!1),nx(vx);var Hx=Vb,Wx=Fb.CONSTRUCTOR||!xh((function(t){Hx.all(t).then(void 0,(function(){}))})),Ux=p,Xx=mt,Yx=zb,qx=Cb,Zx=fh;nn({target:"Promise",stat:!0,forced:Wx},{all:function(t){var e=this,i=Yx.f(e),r=i.resolve,n=i.reject,o=qx((function(){var i=Xx(e.resolve),o=[],s=0,a=1;Zx(t,(function(t){var l=s++,u=!1;a++,Ux(i,e,t).then((function(t){u||(u=!0,o[l]=t,--a||r(o))}),n)})),--a||r(o)}));return o.error&&n(o.value),i.promise}});var Kx=nn,Jx=Fb.CONSTRUCTOR,Qx=Vb,tw=U,ew=F,iw=Qi,rw=Qx&&Qx.prototype;if(Kx({target:"Promise",proto:!0,forced:Jx,real:!0},{catch:function(t){return this.then(void 0,t)}}),ew(Qx)){var nw=tw("Promise").prototype.catch;rw.catch!==nw&&iw(rw,"catch",nw,{unsafe:!0})}var ow=p,sw=mt,aw=zb,lw=Cb,uw=fh;nn({target:"Promise",stat:!0,forced:Wx},{race:function(t){var e=this,i=aw.f(e),r=i.reject,n=lw((function(){var n=sw(e.resolve);uw(t,(function(t){ow(n,e,t).then(i.resolve,r)}))}));return n.error&&r(n.value),i.promise}});var cw=zb;nn({target:"Promise",stat:!0,forced:Fb.CONSTRUCTOR},{reject:function(t){var e=cw.f(this);return(0,e.reject)(t),e.promise}});var pw=je,hw=$,fw=zb,dw=nn,_w=Fb.CONSTRUCTOR,yw=function(t,e){if(pw(t),hw(e)&&e.constructor===t)return e;var i=fw.f(t);return(0,i.resolve)(e),i.promise};U("Promise"),dw({target:"Promise",stat:!0,forced:_w},{resolve:function(t){return yw(this,t)}}),Zo.Array;var gw=a,vw=S,mw=p,bw=s,xw=_o,ww=Er,Sw=h,Pw=Gt,Aw=L,Ow=Object.assign,Cw=Object.defineProperty,Vw=vw([].concat),Ew=!Ow||bw((function(){if(gw&&1!==Ow({b:1},Ow(Cw({},"a",{enumerable:!0,get:function(){Cw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!==Ow({},t)[i]||xw(Ow({},e)).join("")!==r}))?function(t,e){for(var i=Pw(t),r=arguments.length,n=1,o=ww.f,s=Sw.f;r>n;)for(var a,l=Aw(arguments[n++]),u=o?Vw(xw(l),o(l)):xw(l),c=u.length,p=0;c>p;)a=u[p++],gw&&!mw(s,l,a)||(i[a]=l[a]);return i}:Ow,kw=Ew;nn({target:"Object",stat:!0,arity:2,forced:Object.assign!==kw},{assign:kw}),nn({target:"Object",stat:!0,sham:!a},{create:Bo});var Tw=nn,Lw=a,Nw=ke.f;Tw({target:"Object",stat:!0,forced:Object.defineProperty!==Nw,sham:!Lw},{defineProperty:Nw});var Mw=nn,jw=a,Rw=po.f;Mw({target:"Object",stat:!0,forced:Object.defineProperties!==Rw,sham:!jw},{defineProperties:Rw});var Bw=a,Dw=s,Iw=S,Gw=tc,Fw=_o,zw=I,$w=Iw(h.f),Hw=Iw([].push),Ww=Bw&&Dw((function(){var t=Object.create(null);return t[2]=2,!$w(t,2)})),Uw=function(t){return function(e){for(var i,r=zw(e),n=Fw(r),o=Ww&&null===Gw(r),s=n.length,a=0,l=[];s>a;)i=n[a++],Bw&&!(o?i in r:$w(r,i))||Hw(l,t?[i,r[i]]:r[i]);return l}},Xw={entries:Uw(!0),values:Uw(!1)},Yw=Xw.entries;nn({target:"Object",stat:!0},{entries:function(t){return Yw(t)}});var qw=nn,Zw=yp,Kw=s,Jw=$,Qw=Lp.onFreeze,tS=Object.freeze;qw({target:"Object",stat:!0,forced:Kw((function(){tS(1)})),sham:!Zw},{freeze:function(t){return tS&&Jw(t)?tS(Qw(t)):t}});var eS=fh,iS=hn;nn({target:"Object",stat:!0},{fromEntries:function(t){var e={};return eS(t,(function(t,i){iS(e,t,i)}),{AS_ENTRIES:!0}),e}});var rS=nn,nS=s,oS=I,sS=o.f,aS=a;rS({target:"Object",stat:!0,forced:!aS||nS((function(){sS(1)})),sham:!aS},{getOwnPropertyDescriptor:function(t,e){return sS(oS(t),e)}});var lS=jr,uS=I,cS=o,pS=hn;nn({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,i,r=uS(t),n=cS.f,o=lS(r),s={},a=0;o.length>a;)void 0!==(i=n(r,e=o[a++]))&&pS(s,e,i);return s}});var hS=nn,fS=s,dS=Do.f;hS({target:"Object",stat:!0,forced:fS((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:dS});var _S=Gt,yS=tc,gS=Uu;nn({target:"Object",stat:!0,forced:s((function(){yS(1)})),sham:!gS},{getPrototypeOf:function(t){return yS(_S(t))}});var vS=nn,mS=hn,bS=U,xS=S,wS=mt,SS=R,PS=de,AS=fh,OS=s,CS=Object.groupBy,VS=bS("Object","create"),ES=xS([].push);vS({target:"Object",stat:!0,forced:!CS||OS((function(){return 1!==CS("ab",(function(t){return t})).a.length}))},{groupBy:function(t,e){SS(t),wS(e);var i=VS(null),r=0;return AS(t,(function(t){var n=PS(e(t,r++));n in i?ES(i[n],t):mS(i,n,[t])})),i}}),nn({target:"Object",stat:!0},{hasOwn:$t});var kS=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};nn({target:"Object",stat:!0},{is:kS});var TS=_p;nn({target:"Object",stat:!0,forced:Object.isExtensible!==TS},{isExtensible:TS});var LS=nn,NS=s,MS=$,jS=C,RS=up,BS=Object.isFrozen;LS({target:"Object",stat:!0,forced:RS||NS((function(){BS(1)}))},{isFrozen:function(t){return!MS(t)||(!(!RS||"ArrayBuffer"!==jS(t))||!!BS&&BS(t))}});var DS=nn,IS=s,GS=$,FS=C,zS=up,$S=Object.isSealed;DS({target:"Object",stat:!0,forced:zS||IS((function(){$S(1)}))},{isSealed:function(t){return!GS(t)||(!(!zS||"ArrayBuffer"!==FS(t))||!!$S&&$S(t))}});var HS=Gt,WS=_o;nn({target:"Object",stat:!0,forced:s((function(){WS(1)}))},{keys:function(t){return WS(HS(t))}});var US=nn,XS=$,YS=Lp.onFreeze,qS=yp,ZS=s,KS=Object.preventExtensions;US({target:"Object",stat:!0,forced:ZS((function(){KS(1)})),sham:!qS},{preventExtensions:function(t){return KS&&XS(t)?KS(YS(t)):t}});var JS=a,QS=Xo,tP=$,eP=bc,iP=Gt,rP=R,nP=Object.getPrototypeOf,oP=Object.setPrototypeOf,sP=Object.prototype,aP="__proto__";if(JS&&nP&&oP&&!(aP in sP))try{QS(sP,aP,{configurable:!0,get:function(){return nP(iP(this))},set:function(t){var e=rP(this);eP(t)&&tP(e)&&oP(e,t)}})}catch(t){}var lP=nn,uP=$,cP=Lp.onFreeze,pP=yp,hP=s,fP=Object.seal;lP({target:"Object",stat:!0,forced:hP((function(){fP(1)})),sham:!pP},{seal:function(t){return fP&&uP(t)?fP(cP(t)):t}}),nn({target:"Object",stat:!0},{setPrototypeOf:Vc});var dP=Xw.values;nn({target:"Object",stat:!0},{values:function(t){return dP(t)}});var _P=n,yP=Zg,gP=!s((function(){if(!(yP&&yP<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete _P[t]}})),vP=mt,mP=Gt,bP=ke;a&&nn({target:"Object",proto:!0,forced:gP},{__defineGetter__:function(t,e){bP.f(mP(this),t,{get:vP(e),enumerable:!0,configurable:!0})}});var xP=mt,wP=Gt,SP=ke;a&&nn({target:"Object",proto:!0,forced:gP},{__defineSetter__:function(t,e){SP.f(wP(this),t,{set:xP(e),enumerable:!0,configurable:!0})}});var PP=nn,AP=a,OP=gP,CP=Gt,VP=de,EP=tc,kP=o.f;AP&&PP({target:"Object",proto:!0,forced:OP},{__lookupGetter__:function(t){var e,i=CP(this),r=VP(t);do{if(e=kP(i,r))return e.get}while(i=EP(i))}});var TP=nn,LP=a,NP=gP,MP=Gt,jP=de,RP=tc,BP=o.f;LP&&TP({target:"Object",proto:!0,forced:NP},{__lookupSetter__:function(t){var e,i=MP(this),r=jP(t);do{if(e=BP(i,r))return e.set}while(i=RP(i))}}),Zo.Object;var DP=S(1.1.valueOf),IP="\t\n\v\f\r                 \u2028\u2029\ufeff",GP=R,FP=co,zP=IP,$P=S("".replace),HP=RegExp("^["+zP+"]+"),WP=RegExp("(^|[^"+zP+"])["+zP+"]+$"),UP=function(t){return function(e){var i=FP(GP(e));return 1&t&&(i=$P(i,HP,"")),2&t&&(i=$P(i,WP,"$1")),i}},XP={start:UP(1),end:UP(2),trim:UP(3)},YP=nn,qP=a,ZP=n,KP=Zo,JP=S,QP=qr,tA=$t,eA=Ah,iA=X,rA=ft,nA=pe,oA=s,sA=tr.f,aA=o.f,lA=ke.f,uA=DP,cA=XP.trim,pA="Number",hA=ZP[pA];KP[pA];var fA=hA.prototype,dA=ZP.TypeError,_A=JP("".slice),yA=JP("".charCodeAt),gA=function(t){var e,i,r,n,o,s,a,l,u=nA(t,"number");if(rA(u))throw new dA("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=cA(u),43===(e=yA(u,0))||45===e){if(88===(i=yA(u,2))||120===i)return NaN}else if(48===e){switch(yA(u,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+u}for(s=(o=_A(u,2)).length,a=0;a<s;a++)if((l=yA(o,a))<48||l>n)return NaN;return parseInt(o,r)}return+u},vA=QP(pA,!hA(" 0o1")||!hA("0b1")||hA("+0x1")),mA=function(t){var e,i=arguments.length<1?0:hA(function(t){var e=nA(t,"number");return"bigint"==typeof e?e:gA(e)}(t));return iA(fA,e=this)&&oA((function(){uA(e)}))?eA(Object(i),this,mA):i};mA.prototype=fA,vA&&(fA.constructor=mA),YP({global:!0,constructor:!0,wrap:!0,forced:vA},{Number:mA});vA&&function(t,e){for(var i,r=qP?sA(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),n=0;r.length>n;n++)tA(e,i=r[n])&&!tA(t,i)&&lA(t,i,aA(e,i))}(KP[pA],hA),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)});var bA=n.isFinite;nn({target:"Number",stat:!0},{isFinite:Number.isFinite||function(t){return"number"==typeof t&&bA(t)}});var xA=$,wA=Math.floor,SA=Number.isInteger||function(t){return!xA(t)&&isFinite(t)&&wA(t)===t};nn({target:"Number",stat:!0},{isInteger:SA}),nn({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var PA=nn,AA=SA,OA=Math.abs;PA({target:"Number",stat:!0},{isSafeInteger:function(t){return AA(t)&&OA(t)<=9007199254740991}}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),nn({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991});var CA=n,VA=s,EA=co,kA=XP.trim,TA=IP,LA=S("".charAt),NA=CA.parseFloat,MA=CA.Symbol,jA=MA&&MA.iterator,RA=1/NA(TA+"-0")!=-1/0||jA&&!VA((function(){NA(Object(jA))}))?function(t){var e=kA(EA(t)),i=NA(e);return 0===i&&"-"===LA(e,0)?-0:i}:NA;nn({target:"Number",stat:!0,forced:Number.parseFloat!==RA},{parseFloat:RA});var BA=n,DA=s,IA=S,GA=co,FA=XP.trim,zA=IP,$A=BA.parseInt,HA=BA.Symbol,WA=HA&&HA.iterator,UA=/^[+-]?0x/i,XA=IA(UA.exec),YA=8!==$A(zA+"08")||22!==$A(zA+"0x16")||WA&&!DA((function(){$A(Object(WA))}))?function(t,e){var i=FA(GA(t));return $A(i,e>>>0||(XA(UA,i)?16:10))}:$A;nn({target:"Number",stat:!0,forced:Number.parseInt!==YA},{parseInt:YA});var qA=or,ZA=co,KA=R,JA=RangeError,QA=function(t){var e=ZA(KA(this)),i="",r=qA(t);if(r<0||r===1/0)throw new JA("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(i+=e);return i},tO=Math.log,eO=Math.LOG10E,iO=Math.log10||function(t){return tO(t)*eO},rO=nn,nO=S,oO=or,sO=DP,aO=QA,lO=iO,uO=s,cO=RangeError,pO=String,hO=isFinite,fO=Math.abs,dO=Math.floor,_O=Math.pow,yO=Math.round,gO=nO(1.1.toExponential),vO=nO(aO),mO=nO("".slice),bO="-6.9000e-11"===gO(-69e-12,4)&&"1.25e+0"===gO(1.255,2)&&"1.235e+4"===gO(12345,3)&&"3e+1"===gO(25,0);rO({target:"Number",proto:!0,forced:!bO||!(uO((function(){gO(1,1/0)}))&&uO((function(){gO(1,-1/0)})))||!!uO((function(){gO(1/0,1/0),gO(NaN,1/0)}))},{toExponential:function(t){var e=sO(this);if(void 0===t)return gO(e);var i=oO(t);if(!hO(e))return String(e);if(i<0||i>20)throw new cO("Incorrect fraction digits");if(bO)return gO(e,i);var r,n,o,s,a="";if(e<0&&(a="-",e=-e),0===e)n=0,r=vO("0",i+1);else{var l=lO(e);n=dO(l);var u=_O(10,n-i),c=yO(e/u);2*e>=(2*c+1)*u&&(c+=1),c>=_O(10,i+1)&&(c/=10,n+=1),r=pO(c)}return 0!==i&&(r=mO(r,0,1)+"."+mO(r,1)),0===n?(o="+",s="0"):(o=n>0?"+":"-",s=pO(fO(n))),a+(r+="e"+o+s)}});var xO=nn,wO=S,SO=or,PO=DP,AO=QA,OO=s,CO=RangeError,VO=String,EO=Math.floor,kO=wO(AO),TO=wO("".slice),LO=wO(1.1.toFixed),NO=function(t,e,i){return 0===e?i:e%2==1?NO(t,e-1,i*t):NO(t*t,e/2,i)},MO=function(t,e,i){for(var r=-1,n=i;++r<6;)n+=e*t[r],t[r]=n%1e7,n=EO(n/1e7)},jO=function(t,e){for(var i=6,r=0;--i>=0;)r+=t[i],t[i]=EO(r/e),r=r%e*1e7},RO=function(t){for(var e=6,i="";--e>=0;)if(""!==i||0===e||0!==t[e]){var r=VO(t[e]);i=""===i?r:i+kO("0",7-r.length)+r}return i};xO({target:"Number",proto:!0,forced:OO((function(){return"0.000"!==LO(8e-5,3)||"1"!==LO(.9,0)||"1.25"!==LO(1.255,2)||"1000000000000000128"!==LO(0xde0b6b3a7640080,0)}))||!OO((function(){LO({})}))},{toFixed:function(t){var e,i,r,n,o=PO(this),s=SO(t),a=[0,0,0,0,0,0],l="",u="0";if(s<0||s>20)throw new CO("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return VO(o);if(o<0&&(l="-",o=-o),o>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(o*NO(2,69,1))-69)<0?o*NO(2,-e,1):o/NO(2,e,1),i*=4503599627370496,(e=52-e)>0){for(MO(a,0,i),r=s;r>=7;)MO(a,1e7,0),r-=7;for(MO(a,NO(10,r,1),0),r=e-1;r>=23;)jO(a,1<<23),r-=23;jO(a,1<<r),MO(a,1,1),jO(a,2),u=RO(a)}else MO(a,0,i),MO(a,1<<-e,0),u=RO(a)+kO("0",s);return u=s>0?l+((n=u.length)<=s?"0."+kO("0",s-n)+u:TO(u,0,n-s)+"."+TO(u,n-s)):l+u}});var BO=nn,DO=s,IO=DP,GO=S(1.1.toPrecision);BO({target:"Number",proto:!0,forced:DO((function(){return"1"!==GO(1,void 0)}))||!DO((function(){GO({})}))},{toPrecision:function(t){return void 0===t?GO(IO(this)):GO(IO(this),t)}}),Zo.Number;var FO,zO,$O=je,HO=function(){var t=$O(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},WO=s,UO=n.RegExp,XO=WO((function(){var t=UO("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),YO=XO||WO((function(){return!UO("a","y").sticky})),qO={BROKEN_CARET:XO||WO((function(){var t=UO("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:YO,UNSUPPORTED_Y:XO},ZO=s,KO=n.RegExp,JO=ZO((function(){var t=KO(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),QO=s,tC=n.RegExp,eC=QO((function(){var t=tC("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),iC=p,rC=S,nC=co,oC=HO,sC=qO,aC=Bo,lC=ki.get,uC=JO,cC=eC,pC=Bt("native-string-replace",String.prototype.replace),hC=RegExp.prototype.exec,fC=hC,dC=rC("".charAt),_C=rC("".indexOf),yC=rC("".replace),gC=rC("".slice),vC=(zO=/b*/g,iC(hC,FO=/a/,"a"),iC(hC,zO,"a"),0!==FO.lastIndex||0!==zO.lastIndex),mC=sC.BROKEN_CARET,bC=void 0!==/()??/.exec("")[1];(vC||bC||mC||uC||cC)&&(fC=function(t){var e,i,r,n,o,s,a,l=this,u=lC(l),c=nC(t),p=u.raw;if(p)return p.lastIndex=l.lastIndex,e=iC(fC,p,c),l.lastIndex=p.lastIndex,e;var h=u.groups,f=mC&&l.sticky,d=iC(oC,l),_=l.source,y=0,g=c;if(f&&(d=yC(d,"y",""),-1===_C(d,"g")&&(d+="g"),g=gC(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==dC(c,l.lastIndex-1))&&(_="(?: "+_+")",g=" "+g,y++),i=new RegExp("^(?:"+_+")",d)),bC&&(i=new RegExp("^"+_+"$(?!\\s)",d)),vC&&(r=l.lastIndex),n=iC(hC,f?i:l,g),f?n?(n.input=gC(n.input,y),n[0]=gC(n[0],y),n.index=l.lastIndex,l.lastIndex+=n[0].length):l.lastIndex=0:vC&&n&&(l.lastIndex=l.global?n.index+n[0].length:r),bC&&n&&n.length>1&&iC(pC,n[0],i,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n&&h)for(n.groups=s=aC(null),o=0;o<h.length;o++)s[(a=h[o])[0]]=n[a[1]];return n});var xC=fC;nn({target:"RegExp",proto:!0,forced:/./.exec!==xC},{exec:xC});var wC=nn,SC=S,PC=ur,AC=RangeError,OC=String.fromCharCode,CC=String.fromCodePoint,VC=SC([].join);wC({target:"String",stat:!0,arity:1,forced:!!CC&&1!==CC.length},{fromCodePoint:function(t){for(var e,i=[],r=arguments.length,n=0;r>n;){if(e=+arguments[n++],PC(e,1114111)!==e)throw new AC(e+" is not a valid code point");i[n]=e<65536?OC(e):OC(55296+((e-=65536)>>10),e%1024+56320)}return VC(i,"")}});var EC=nn,kC=S,TC=I,LC=Gt,NC=co,MC=dr,jC=kC([].push),RC=kC([].join);EC({target:"String",stat:!0},{raw:function(t){var e=TC(LC(t).raw),i=MC(e);if(!i)return"";for(var r=arguments.length,n=[],o=0;;){if(jC(n,NC(e[o++])),o===i)return RC(n,"");o<r&&jC(n,NC(arguments[o]))}}});var BC=Tf.codeAt;nn({target:"String",proto:!0},{codePointAt:function(t){return BC(this,t)}});var DC=nn,IC=R,GC=or,FC=co,zC=s,$C=S("".charAt);DC({target:"String",proto:!0,forced:zC((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=FC(IC(this)),i=e.length,r=GC(t),n=r>=0?r:i+r;return n<0||n>=i?void 0:$C(e,n)}});var HC=$,WC=C,UC=re("match"),XC=function(t){var e;return HC(t)&&(void 0!==(e=t[UC])?!!e:"RegExp"===WC(t))},YC=XC,qC=TypeError,ZC=function(t){if(YC(t))throw new qC("The method doesn't accept regular expressions");return t},KC=re("match"),JC=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[KC]=!1,"/./"[t](e)}catch(t){}}return!1},QC=nn,tV=fs,eV=o.f,iV=hr,rV=co,nV=ZC,oV=R,sV=JC,aV=tV("".slice),lV=Math.min,uV=sV("endsWith"),cV=!uV&&!!function(){var t=eV(String.prototype,"endsWith");return t&&!t.writable}();QC({target:"String",proto:!0,forced:!cV&&!uV},{endsWith:function(t){var e=rV(oV(this));nV(t);var i=arguments.length>1?arguments[1]:void 0,r=e.length,n=void 0===i?r:lV(iV(i),r),o=rV(t);return aV(e,n-o.length,n)===o}});var pV=nn,hV=ZC,fV=R,dV=co,_V=JC,yV=S("".indexOf);pV({target:"String",proto:!0,forced:!_V("includes")},{includes:function(t){return!!~yV(dV(fV(this)),dV(hV(t)),arguments.length>1?arguments[1]:void 0)}});var gV=nn,vV=R,mV=co,bV=S("".charCodeAt);gV({target:"String",proto:!0},{isWellFormed:function(){for(var t=mV(vV(this)),e=t.length,i=0;i<e;i++){var r=bV(t,i);if(55296==(63488&r)&&(r>=56320||++i>=e||56320!=(64512&bV(t,i))))return!1}return!0}});var xV=p,wV=Qi,SV=xC,PV=s,AV=re,OV=qe,CV=AV("species"),VV=RegExp.prototype,EV=function(t,e,i,r){var n=AV(t),o=!PV((function(){var e={};return e[n]=function(){return 7},7!==""[t](e)})),s=o&&!PV((function(){var e=!1,i=/a/;if("split"===t){var r={};r[CV]=function(){return i},(i={constructor:r,flags:""})[n]=/./[n]}return i.exec=function(){return e=!0,null},i[n](""),!e}));if(!o||!s||i){var a=/./[n],l=e(n,""[t],(function(t,e,i,r,n){var s=e.exec;return s===SV||s===VV.exec?o&&!n?{done:!0,value:xV(a,e,i,r)}:{done:!0,value:xV(t,i,e,r)}:{done:!1}}));wV(String.prototype,t,l[0]),wV(VV,n,l[1])}r&&OV(VV[n],"sham",!0)},kV=Tf.charAt,TV=function(t,e,i){return e+(i?kV(t,e).length:1)},LV=s,NV=n.RegExp,MV=!LV((function(){var t=!0;try{NV(".","d")}catch(e){t=!1}var e={},i="",r=t?"dgimsy":"gimsy",n=function(t,r){Object.defineProperty(e,t,{get:function(){return i+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(o.hasIndices="d"),o)n(s,o[s]);return Object.getOwnPropertyDescriptor(NV.prototype,"flags").get.call(e)!==r||i!==r})),jV=p,RV=$t,BV=X,DV={correct:MV},IV=HO,GV=RegExp.prototype,FV=DV.correct?function(t){return t.flags}:function(t){return DV.correct||!BV(GV,t)||RV(t,"flags")?t.flags:jV(IV,t)},zV=p,$V=je,HV=F,WV=C,UV=xC,XV=TypeError,YV=function(t,e){var i=t.exec;if(HV(i)){var r=zV(i,t,e);return null!==r&&$V(r),r}if("RegExp"===WV(t))return zV(UV,t,e);throw new XV("RegExp#exec called on incompatible receiver")},qV=p,ZV=EV,KV=je,JV=$,QV=hr,tE=co,eE=R,iE=wt,rE=TV,nE=FV,oE=YV,sE=S("".indexOf);ZV("match",(function(t,e,i){return[function(e){var i=eE(this),r=JV(e)?iE(e,t):void 0;return r?qV(r,e,i):new RegExp(e)[t](tE(i))},function(t){var r=KV(this),n=tE(t),o=i(e,r,n);if(o.done)return o.value;var s=tE(nE(r));if(-1===sE(s,"g"))return oE(r,n);var a=-1!==sE(s,"u");r.lastIndex=0;for(var l,u=[],c=0;null!==(l=oE(r,n));){var p=tE(l[0]);u[c]=p,""===p&&(r.lastIndex=rE(n,QV(r.lastIndex),a)),c++}return 0===c?null:u}]}));var aE=nn,lE=p,uE=fs,cE=yc,pE=qc,hE=R,fE=hr,dE=co,_E=je,yE=$,gE=XC,vE=FV,mE=wt,bE=Qi,xE=s,wE=wm,SE=TV,PE=YV,AE=ki,OE=re("matchAll"),CE="RegExp String",VE=CE+" Iterator",EE=AE.set,kE=AE.getterFor(VE),TE=RegExp.prototype,LE=TypeError,NE=uE("".indexOf),ME=uE("".matchAll),jE=!!ME&&!xE((function(){ME("a",/./)})),RE=cE((function(t,e,i,r){EE(this,{type:VE,regexp:t,string:e,global:i,unicode:r,done:!1})}),CE,(function(){var t=kE(this);if(t.done)return pE(void 0,!0);var e=t.regexp,i=t.string,r=PE(e,i);return null===r?(t.done=!0,pE(void 0,!0)):t.global?(""===dE(r[0])&&(e.lastIndex=SE(i,fE(e.lastIndex),t.unicode)),pE(r,!1)):(t.done=!0,pE(r,!1))})),BE=function(t){var e,i,r,n=_E(this),o=dE(t),s=wE(n,RegExp),a=dE(vE(n));return e=new s(s===RegExp?n.source:n,a),i=!!~NE(a,"g"),r=!!~NE(a,"u"),e.lastIndex=fE(n.lastIndex),new RE(e,o,i,r)};aE({target:"String",proto:!0,forced:jE},{matchAll:function(t){var e,i,r,n=hE(this);if(yE(t)){if(gE(t)&&(e=dE(hE(vE(t))),!~NE(e,"g")))throw new LE("`.matchAll` does not allow non-global regexes");if(jE)return ME(n,t);if(r=mE(t,OE))return lE(r,t,n)}else if(jE)return ME(n,t);return i=dE(n),new RegExp(t,"g")[OE](i)}}),OE in TE||bE(TE,OE,BE);var DE=S,IE=hr,GE=co,FE=R,zE=DE(QA),$E=DE("".slice),HE=Math.ceil,WE=function(t){return function(e,i,r){var n,o,s=GE(FE(e)),a=IE(i),l=s.length,u=void 0===r?" ":GE(r);return a<=l||""===u?s:((o=zE(u,HE((n=a-l)/u.length))).length>n&&(o=$E(o,0,n)),t?s+o:o+s)}},UE={start:WE(!1),end:WE(!0)},XE=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(Z),YE=UE.end;nn({target:"String",proto:!0,forced:XE},{padEnd:function(t){return YE(this,t,arguments.length>1?arguments[1]:void 0)}});var qE=UE.start;nn({target:"String",proto:!0,forced:XE},{padStart:function(t){return qE(this,t,arguments.length>1?arguments[1]:void 0)}}),nn({target:"String",proto:!0},{repeat:QA});var ZE=S,KE=Gt,JE=Math.floor,QE=ZE("".charAt),tk=ZE("".replace),ek=ZE("".slice),ik=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,rk=/\$([$&'`]|\d{1,2})/g,nk=function(t,e,i,r,n,o){var s=i+t.length,a=r.length,l=rk;return void 0!==n&&(n=KE(n),l=ik),tk(o,l,(function(o,l){var u;switch(QE(l,0)){case"$":return"$";case"&":return t;case"`":return ek(e,0,i);case"'":return ek(e,s);case"<":u=n[ek(l,1,-1)];break;default:var c=+l;if(0===c)return o;if(c>a){var p=JE(c/10);return 0===p?o:p<=a?void 0===r[p-1]?QE(l,1):r[p-1]+QE(l,1):o}u=r[c-1]}return void 0===u?"":u}))},ok=el,sk=p,ak=S,lk=EV,uk=s,ck=je,pk=F,hk=$,fk=or,dk=hr,_k=co,yk=R,gk=TV,vk=wt,mk=nk,bk=FV,xk=YV,wk=re("replace"),Sk=Math.max,Pk=Math.min,Ak=ak([].concat),Ok=ak([].push),Ck=ak("".indexOf),Vk=ak("".slice),Ek="$0"==="a".replace(/./,"$0"),kk=!!/./[wk]&&""===/./[wk]("a","$0");lk("replace",(function(t,e,i){var r=kk?"$":"$0";return[function(t,i){var r=yk(this),n=hk(t)?vk(t,wk):void 0;return n?sk(n,t,r,i):sk(e,_k(r),t,i)},function(t,n){var o=ck(this),s=_k(t);if("string"==typeof n&&-1===Ck(n,r)&&-1===Ck(n,"$<")){var a=i(e,o,s,n);if(a.done)return a.value}var l=pk(n);l||(n=_k(n));var u,c=_k(bk(o)),p=-1!==Ck(c,"g");p&&(u=-1!==Ck(c,"u"),o.lastIndex=0);for(var h,f=[];null!==(h=xk(o,s))&&(Ok(f,h),p);){""===_k(h[0])&&(o.lastIndex=gk(s,dk(o.lastIndex),u))}for(var d,_="",y=0,g=0;g<f.length;g++){for(var v,m=_k((h=f[g])[0]),b=Sk(Pk(fk(h.index),s.length),0),x=[],w=1;w<h.length;w++)Ok(x,void 0===(d=h[w])?d:String(d));var S=h.groups;if(l){var P=Ak([m],x,b,s);void 0!==S&&Ok(P,S),v=_k(ok(n,void 0,P))}else v=mk(m,s,b,x,S,n);b>=y&&(_+=Vk(s,y,b)+v,y=b+m.length)}return _+Vk(s,y)}]}),!!uk((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Ek||kk);var Tk=nn,Lk=p,Nk=S,Mk=R,jk=F,Rk=$,Bk=XC,Dk=co,Ik=wt,Gk=FV,Fk=nk,zk=re("replace"),$k=TypeError,Hk=Nk("".indexOf);Nk("".replace);var Wk=Nk("".slice),Uk=Math.max;Tk({target:"String",proto:!0},{replaceAll:function(t,e){var i,r,n,o,s,a,l,u,c,p=Mk(this),h=0,f="";if(Rk(t)){if(Bk(t)&&(i=Dk(Mk(Gk(t))),!~Hk(i,"g")))throw new $k("`.replaceAll` does not allow non-global regexes");if(r=Ik(t,zk))return Lk(r,t,p,e)}for(n=Dk(p),o=Dk(t),(s=jk(e))||(e=Dk(e)),a=o.length,l=Uk(1,a),u=Hk(n,o);-1!==u;)c=s?Dk(e(o,u,n)):Fk(o,n,u,[],void 0,e),f+=Wk(n,h,u)+c,h=u+a,u=u+l>n.length?-1:Hk(n,o,u+l);return h<n.length&&(f+=Wk(n,h)),f}});var Xk=p,Yk=je,qk=$,Zk=R,Kk=kS,Jk=co,Qk=wt,tT=YV;EV("search",(function(t,e,i){return[function(e){var i=Zk(this),r=qk(e)?Qk(e,t):void 0;return r?Xk(r,e,i):new RegExp(e)[t](Jk(i))},function(t){var r=Yk(this),n=Jk(t),o=i(e,r,n);if(o.done)return o.value;var s=r.lastIndex;Kk(s,0)||(r.lastIndex=0);var a=tT(r,n);return Kk(r.lastIndex,s)||(r.lastIndex=s),null===a?-1:a.index}]}));var eT=p,iT=S,rT=EV,nT=je,oT=$,sT=R,aT=wm,lT=TV,uT=hr,cT=co,pT=wt,hT=YV,fT=s,dT=qO.UNSUPPORTED_Y,_T=Math.min,yT=iT([].push),gT=iT("".slice),vT=!fT((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),mT="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;rT("split",(function(t,e,i){var r="0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:eT(e,this,t,i)}:e;return[function(e,i){var n=sT(this),o=oT(e)?pT(e,t):void 0;return o?eT(o,e,n,i):eT(r,cT(n),e,i)},function(t,n){var o=nT(this),s=cT(t);if(!mT){var a=i(r,o,s,n,r!==e);if(a.done)return a.value}var l=aT(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(dT?"g":"y"),p=new l(dT?"^(?:"+o.source+")":o,c),h=void 0===n?4294967295:n>>>0;if(0===h)return[];if(0===s.length)return null===hT(p,s)?[s]:[];for(var f=0,d=0,_=[];d<s.length;){p.lastIndex=dT?0:d;var y,g=hT(p,dT?gT(s,d):s);if(null===g||(y=_T(uT(p.lastIndex+(dT?d:0)),s.length))===f)d=lT(s,d,u);else{if(yT(_,gT(s,f,d)),_.length===h)return _;for(var v=1;v<=g.length-1;v++)if(yT(_,g[v]),_.length===h)return _;d=f=y}}return yT(_,gT(s,f)),_}]}),mT||!vT,dT);var bT=nn,xT=fs,wT=o.f,ST=hr,PT=co,AT=ZC,OT=R,CT=JC,VT=xT("".slice),ET=Math.min,kT=CT("startsWith"),TT=!kT&&!!function(){var t=wT(String.prototype,"startsWith");return t&&!t.writable}();bT({target:"String",proto:!0,forced:!TT&&!kT},{startsWith:function(t){var e=PT(OT(this));AT(t);var i=ST(ET(arguments.length>1?arguments[1]:void 0,e.length)),r=PT(t);return VT(e,i,i+r.length)===r}});var LT=nn,NT=R,MT=or,jT=co,RT=S("".slice),BT=Math.max,DT=Math.min;LT({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var i,r,n=jT(NT(this)),o=n.length,s=MT(t);return s===1/0&&(s=0),s<0&&(s=BT(o+s,0)),(i=void 0===e?o:MT(e))<=0||i===1/0||s>=(r=DT(s+i,o))?"":RT(n,s,r)}});var IT=nn,GT=p,FT=S,zT=R,$T=co,HT=s,WT=Array,UT=FT("".charAt),XT=FT("".charCodeAt),YT=FT([].join),qT="".toWellFormed,ZT=qT&&HT((function(){return"1"!==GT(qT,1)}));IT({target:"String",proto:!0,forced:ZT},{toWellFormed:function(){var t=$T(zT(this));if(ZT)return GT(qT,t);for(var e=t.length,i=WT(e),r=0;r<e;r++){var n=XT(t,r);55296!=(63488&n)?i[r]=UT(t,r):n>=56320||r+1>=e||56320!=(64512&XT(t,r+1))?i[r]="�":(i[r]=UT(t,r),i[++r]=UT(t,r))}return YT(i,"")}});var KT=ii.PROPER,JT=s,QT=IP,tL=function(t){return JT((function(){return!!QT[t]()||"​…᠎"!=="​…᠎"[t]()||KT&&QT[t].name!==t}))},eL=XP.trim;nn({target:"String",proto:!0,forced:tL("trim")},{trim:function(){return eL(this)}});var iL=XP.start,rL=tL("trimStart")?function(){return iL(this)}:"".trimStart;nn({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==rL},{trimLeft:rL});nn({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==rL},{trimStart:rL});var nL=XP.end,oL=tL("trimEnd")?function(){return nL(this)}:"".trimEnd;nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==oL},{trimRight:oL});nn({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==oL},{trimEnd:oL});var sL=R,aL=co,lL=/"/g,uL=S("".replace),cL=function(t,e,i,r){var n=aL(sL(t)),o="<"+e;return""!==i&&(o+=" "+i+'="'+uL(aL(r),lL,"&quot;")+'"'),o+">"+n+"</"+e+">"},pL=s,hL=function(t){return pL((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))},fL=cL;nn({target:"String",proto:!0,forced:hL("anchor")},{anchor:function(t){return fL(this,"a","name",t)}});var dL=cL;nn({target:"String",proto:!0,forced:hL("big")},{big:function(){return dL(this,"big","","")}});var _L=cL;nn({target:"String",proto:!0,forced:hL("blink")},{blink:function(){return _L(this,"blink","","")}});var yL=cL;nn({target:"String",proto:!0,forced:hL("bold")},{bold:function(){return yL(this,"b","","")}});var gL=cL;nn({target:"String",proto:!0,forced:hL("fixed")},{fixed:function(){return gL(this,"tt","","")}});var vL=cL;nn({target:"String",proto:!0,forced:hL("fontcolor")},{fontcolor:function(t){return vL(this,"font","color",t)}});var mL=cL;nn({target:"String",proto:!0,forced:hL("fontsize")},{fontsize:function(t){return mL(this,"font","size",t)}});var bL=cL;nn({target:"String",proto:!0,forced:hL("italics")},{italics:function(){return bL(this,"i","","")}});var xL=cL;nn({target:"String",proto:!0,forced:hL("link")},{link:function(t){return xL(this,"a","href",t)}});var wL=cL;nn({target:"String",proto:!0,forced:hL("small")},{small:function(){return wL(this,"small","","")}});var SL=cL;nn({target:"String",proto:!0,forced:hL("strike")},{strike:function(){return SL(this,"strike","","")}});var PL=cL;nn({target:"String",proto:!0,forced:hL("sub")},{sub:function(){return PL(this,"sub","","")}});var AL=cL;nn({target:"String",proto:!0,forced:hL("sup")},{sup:function(){return AL(this,"sup","","")}}),Zo.String;var OL=Math.log,CL=Math.log1p||function(t){var e=+t;return e>-1e-8&&e<1e-8?e-e*e/2:OL(1+e)},VL=nn,EL=CL,kL=Math.acosh,TL=Math.log,LL=Math.sqrt,NL=Math.LN2;VL({target:"Math",stat:!0,forced:!kL||710!==Math.floor(kL(Number.MAX_VALUE))||kL(1/0)!==1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?TL(e)+NL:EL(e-1+LL(e-1)*LL(e+1))}});var ML=nn,jL=Math.asinh,RL=Math.log,BL=Math.sqrt;ML({target:"Math",stat:!0,forced:!(jL&&1/jL(0)>0)},{asinh:function t(e){var i=+e;return isFinite(i)&&0!==i?i<0?-t(-i):RL(i+BL(i*i+1)):i}});var DL=nn,IL=Math.atanh,GL=Math.log;DL({target:"Math",stat:!0,forced:!(IL&&1/IL(-0)<0)},{atanh:function(t){var e=+t;return 0===e?e:GL((1+e)/(1-e))/2}});var FL=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1},zL=nn,$L=FL,HL=Math.abs,WL=Math.pow;zL({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return $L(e)*WL(HL(e),1/3)}});var UL=nn,XL=Math.floor,YL=Math.log,qL=Math.LOG2E;UL({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-XL(YL(e+.5)*qL):32}});var ZL=Math.expm1,KL=Math.exp,JL=!ZL||ZL(10)>22025.465794806718||ZL(10)<22025.465794806718||-2e-17!==ZL(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:KL(e)-1}:ZL,QL=nn,tN=JL,eN=Math.cosh,iN=Math.abs,rN=Math.E;QL({target:"Math",stat:!0,forced:!eN||eN(710)===1/0},{cosh:function(t){var e=tN(iN(t)-1)+1;return(e+1/(e*rN*rN))*(rN/2)}});var nN=JL;nn({target:"Math",stat:!0,forced:nN!==Math.expm1},{expm1:nN});var oN=4503599627370496,sN=FL,aN=function(t){return t+oN-oN},lN=Math.abs,uN=function(t,e,i,r){var n=+t,o=lN(n),s=sN(n);if(o<r)return s*aN(o/r/e)*r*e;var a=(1+e/2220446049250313e-31)*o,l=a-(a-o);return l>i||l!=l?s*(1/0):s*l},cN=uN;nn({target:"Math",stat:!0},{fround:Math.fround||function(t){return cN(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}});var pN=uN;nn({target:"Math",stat:!0},{f16round:function(t){return pN(t,.0009765625,65504,6103515625e-14)}});var hN=nn,fN=Math.hypot,dN=Math.abs,_N=Math.sqrt;hN({target:"Math",stat:!0,arity:2,forced:!!fN&&fN(1/0,NaN)!==1/0},{hypot:function(t,e){for(var i,r,n=0,o=0,s=arguments.length,a=0;o<s;)a<(i=dN(arguments[o++]))?(n=n*(r=a/i)*r+1,a=i):n+=i>0?(r=i/a)*r:i;return a===1/0?1/0:a*_N(n)}});var yN=nn,gN=s,vN=Math.imul;yN({target:"Math",stat:!0,forced:gN((function(){return-5!==vN(4294967295,5)||2!==vN.length}))},{imul:function(t,e){var i=65535,r=+t,n=+e,o=i&r,s=i&n;return 0|o*s+((i&r>>>16)*s+o*(i&n>>>16)<<16>>>0)}}),nn({target:"Math",stat:!0},{log10:iO}),nn({target:"Math",stat:!0},{log1p:CL});var mN=Math.log,bN=Math.LN2;nn({target:"Math",stat:!0},{log2:Math.log2||function(t){return mN(t)/bN}}),nn({target:"Math",stat:!0},{sign:FL});var xN=nn,wN=s,SN=JL,PN=Math.abs,AN=Math.exp,ON=Math.E;xN({target:"Math",stat:!0,forced:wN((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return PN(e)<1?(SN(e)-SN(-e))/2:(AN(e-1)-AN(-e-1))*(ON/2)}});var CN=nn,VN=S,EN=fh,kN=RangeError,TN=TypeError,LN=1/0,NN=Math.abs,MN=Math.pow,jN=VN([].push),RN=MN(2,1023),BN=MN(2,53)-1,DN=Number.MAX_VALUE,IN=MN(2,971),GN={},FN={},zN={},$N={},HN={},WN=function(t,e){var i=t+e;return{hi:i,lo:e-(i-t)}};CN({target:"Math",stat:!0},{sumPrecise:function(t){var e=[],i=0,r=$N;switch(EN(t,(function(t){if(++i>=BN)throw new kN("Maximum allowed index exceeded");if("number"!=typeof t)throw new TN("Value is not a number");r!==GN&&(t!=t?r=GN:t===LN?r=r===FN?GN:zN:t===-1/0?r=r===zN?GN:FN:0===t&&1/t!==LN||r!==$N&&r!==HN||(r=HN,jN(e,t)))})),r){case GN:return NaN;case FN:return-1/0;case zN:return LN;case $N:return-0}for(var n,o,s,a,l,u,c=[],p=0,h=0;h<e.length;h++){n=e[h];for(var f=0,d=0;d<c.length;d++){if(o=c[d],NN(n)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo,NN(a)===LN){var _=a===LN?1:-1;p+=_,NN(n=n-_*RN-_*RN)<NN(o)&&(u=n,n=o,o=u),a=(s=WN(n,o)).hi,l=s.lo}0!==l&&(c[f++]=l),n=a}c.length=f,0!==n&&jN(c,n)}var y=c.length-1;if(a=0,l=0,0!==p){var g=y>=0?c[y]:0;if(y--,NN(p)>1||p>0&&g>0||p<0&&g<0)return p>0?LN:-1/0;if(a=(s=WN(p*RN,g/2)).hi,l=s.lo,l*=2,NN(2*a)===LN)return a>0?a===RN&&l===-IN/2&&y>=0&&c[y]<0?DN:LN:a===-RN&&l===IN/2&&y>=0&&c[y]>0?-DN:-1/0;0!==l&&(c[++y]=l,l=0),a*=2}for(;y>=0&&(a=(s=WN(a,c[y--])).hi,0===(l=s.lo)););return y>=0&&(l<0&&c[y]<0||l>0&&c[y]>0)&&(o=2*l)===(n=a+o)-a&&(a=n),a}});var UN,XN,YN,qN,ZN=nn,KN=JL,JN=Math.exp;ZN({target:"Math",stat:!0},{tanh:function(t){var e=+t,i=KN(e),r=KN(-e);return i===1/0?1:r===1/0?-1:(i-r)/(JN(e)+JN(-e))}}),nn({target:"Math",stat:!0},{trunc:rr}),Zo.Math,function(){function t(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1}if("HTMLElement"in self&&"contains"in HTMLElement.prototype)try{delete HTMLElement.prototype.contains}catch(t){}"Node"in self?Node.prototype.contains=t:document.contains=Element.prototype.contains=t}(),function(t){Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},"Text"in t&&(Text.prototype.remove=Element.prototype.remove)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof t&&t||{}),UN=function(){function t(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&t.nodeName&&t.nodeType>=1&&t.nodeType<=12}return function(e){if(1===e.length)return t(e[0])?e[0]:document.createTextNode(e[0]+"");for(var i=document.createDocumentFragment(),r=0;r<e.length;r++)i.appendChild(t(e[r])?e[r]:document.createTextNode(e[r]+""));return i}}(),Document.prototype.append=Element.prototype.append=function(){this.appendChild(UN(arguments))},function(t,e){var i,r=function(){var t=!0,i=function(e,i,r,n){Object.defineProperty?Object.defineProperty(e,i,{configurable:!1===t||!!n,get:r}):e.__defineGetter__(i,r)};try{i({},"support")}catch(e){t=!1}return function(t,r){var n=this,o=[],s={},a=0,l=0,u=function(t){i(n,t,(function(){return p(),o[t]}),!1)},c=function(){if(a>=l)for(;l<a;++l)u(l)},p=function(){var e,i,n=arguments,l=/\s+/;if(n.length)for(i=0;i<n.length;++i)if(l.test(n[i]))throw(e=new SyntaxError('String "'+n[i]+'" contains an invalid character')).code=5,e.name="InvalidCharacterError",e;for(""===(o="object"==typeof t[r]?(""+t[r].baseVal).replace(/^\s+|\s+$/g,"").split(l):(""+t[r]).replace(/^\s+|\s+$/g,"").split(l))[0]&&(o=[]),s={},i=0;i<o.length;++i)s[o[i]]=!0;a=o.length,c()};return p(),i(n,"length",(function(){return p(),a})),n.toLocaleString=n.toString=function(){return p(),o.join(" ")},n.item=function(t){return p(),o[t]},n.contains=function(t){return p(),!!s[t]},n.add=function(){p.apply(n,e=arguments);for(var e,i,l=0,u=e.length;l<u;++l)s[i=e[l]]||(o.push(i),s[i]=!0);a!==o.length&&(a=o.length>>>0,"object"==typeof t[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c())},n.remove=function(){p.apply(n,e=arguments);for(var e,i={},l=0,u=[];l<e.length;++l)i[e[l]]=!0,delete s[e[l]];for(l=0;l<o.length;++l)i[o[l]]||u.push(o[l]);o=u,a=u.length>>>0,"object"==typeof t[r]?t[r].baseVal=o.join(" "):t[r]=o.join(" "),c()},n.toggle=function(t,i){return p.apply(n,[t]),e!==i?i?(n.add(t),!0):(n.remove(t),!1):s[t]?(n.remove(t),!1):(n.add(t),!0)},n.forEach=Array.prototype.forEach,n}}();"DOMTokenList"in(i=t)&&i.DOMTokenList&&(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg")||document.createElementNS("http://www.w3.org/2000/svg","svg").classList instanceof DOMTokenList)||(i.DOMTokenList=r),function(){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(t.classList.constructor.prototype.toggle=function(t){var i=arguments[1];if(i===e){var r=!this.contains(t);return this[r?"add":"remove"](t),r}return i=!!i,this[i?"add":"remove"](t),i}))}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a","b"),!t.classList.contains("b"))){var e=t.classList.constructor.prototype.add;t.classList.constructor.prototype.add=function(){for(var t=arguments,i=arguments.length,r=0;r<i;r++)e.call(this,t[r])}}}(),function(){var t=document.createElement("span");if("classList"in t&&(t.classList.add("a"),t.classList.add("b"),t.classList.remove("a","b"),t.classList.contains("b"))){var e=t.classList.constructor.prototype.remove;t.classList.constructor.prototype.remove=function(){for(var t=arguments,i=arguments.length,r=0;r<i;r++)e.call(this,t[r])}}}(),function(t){var e=!0,i=function(t,i,r,n){Object.defineProperty?Object.defineProperty(t,i,{configurable:!1===e||!!n,get:r}):t.__defineGetter__(i,r)};try{i({},"support")}catch(t){e=!1}var n=function(t,o,s){i(t.prototype,o,(function(){var t,a=this,l="__defineGetter__DEFINE_PROPERTY"+o;if(a[l])return t;if(a[l]=!0,!1===e){for(var u,c=n.mirror||document.createElement("div"),p=c.childNodes,h=p.length,f=0;f<h;++f)if(p[f]._R===a){u=p[f];break}u||(u=c.appendChild(document.createElement("div"))),t=DOMTokenList.call(u,a,s)}else t=new r(a,s);return i(a,o,(function(){return t})),delete a[l],t}),!0)};n(t.Element,"classList","className"),n(t.HTMLElement,"classList","className"),n(t.HTMLLinkElement,"relList","rel"),n(t.HTMLAnchorElement,"relList","rel"),n(t.HTMLAreaElement,"relList","rel")}(t)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof t&&t||{}),YN={},function(t){function e(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=p}function i(){return t.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(i,r,n){var o=new e;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof i||isNaN(i)?void 0!==i&&Object.getOwnPropertyNames(i).forEach((function(e){if("auto"!=i[e]){if(("number"==typeof o[e]||"duration"==e)&&("number"!=typeof i[e]||isNaN(i[e])))return;if("fill"==e&&-1==u.indexOf(i[e]))return;if("direction"==e&&-1==c.indexOf(i[e]))return;if("playbackRate"==e&&1!==i[e]&&t.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[e]=i[e]}})):o.duration=i,o}function n(t,e,i,r){return t<0||t>1||i<0||i>1?p:function(n){function o(t,e,i){return 3*t*(1-i)*(1-i)*i+3*e*(1-i)*i*i+i*i*i}if(n<=0){var s=0;return t>0?s=e/t:!e&&i>0&&(s=r/i),s*n}if(n>=1){var a=0;return i<1?a=(r-1)/(i-1):1==i&&t<1&&(a=(e-1)/(t-1)),1+a*(n-1)}for(var l=0,u=1;l<u;){var c=(l+u)/2,p=o(t,i,c);if(Math.abs(n-p)<1e-5)return o(e,r,c);p<n?l=c:u=c}return o(e,r,c)}}function o(t,e){return function(i){if(i>=1)return 1;var r=1/t;return(i+=e*r)-i%r}}function s(t){y||(y=document.createElement("div").style),y.animationTimingFunction="",y.animationTimingFunction=t;var e=y.animationTimingFunction;if(""==e&&i())throw new TypeError(t+" is not a valid value for easing");return e}function a(t){if("linear"==t)return p;var e=v.exec(t);if(e)return n.apply(this,e.slice(1).map(Number));var i=m.exec(t);if(i)return o(Number(i[1]),d);var r=b.exec(t);return r?o(Number(r[1]),{start:h,middle:f,end:d}[r[2]]):_[t]||p}function l(t,e,i){if(null==e)return x;var r=i.delay+t+i.endDelay;return e<Math.min(i.delay,r)?w:e>=Math.min(i.delay+t,r)?S:P}var u="backwards|forwards|both|none".split("|"),c="reverse|alternate|alternate-reverse".split("|"),p=function(t){return t};e.prototype={_setMember:function(e,i){this["_"+e]=i,this._effect&&(this._effect._timingInput[e]=i,this._effect._timing=t.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=t.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(t){this._setMember("delay",t)},get delay(){return this._delay},set endDelay(t){this._setMember("endDelay",t)},get endDelay(){return this._endDelay},set fill(t){this._setMember("fill",t)},get fill(){return this._fill},set iterationStart(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterationStart must be a non-negative number, received: "+t);this._setMember("iterationStart",t)},get iterationStart(){return this._iterationStart},set duration(t){if("auto"!=t&&(isNaN(t)||t<0)&&i())throw new TypeError("duration must be non-negative or auto, received: "+t);this._setMember("duration",t)},get duration(){return this._duration},set direction(t){this._setMember("direction",t)},get direction(){return this._direction},set easing(t){this._easingFunction=a(s(t)),this._setMember("easing",t)},get easing(){return this._easing},set iterations(t){if((isNaN(t)||t<0)&&i())throw new TypeError("iterations must be non-negative, received: "+t);this._setMember("iterations",t)},get iterations(){return this._iterations}};var h=1,f=.5,d=0,_={ease:n(.25,.1,.25,1),"ease-in":n(.42,0,1,1),"ease-out":n(0,0,.58,1),"ease-in-out":n(.42,0,.58,1),"step-start":o(1,h),"step-middle":o(1,f),"step-end":o(1,d)},y=null,g="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",v=new RegExp("cubic-bezier\\("+g+","+g+","+g+","+g+"\\)"),m=/steps\(\s*(\d+)\s*\)/,b=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,w=1,S=2,P=3;t.cloneTimingInput=function(t){if("number"==typeof t)return t;var e={};for(var i in t)e[i]=t[i];return e},t.makeTiming=r,t.numericTimingToObject=function(t){return"number"==typeof t&&(t=isNaN(t)?{duration:0}:{duration:t}),t},t.normalizeTimingInput=function(e,i){return r(e=t.numericTimingToObject(e),i)},t.calculateActiveDuration=function(t){return Math.abs(function(t){return 0===t.duration||0===t.iterations?0:t.duration*t.iterations}(t)/t.playbackRate)},t.calculateIterationProgress=function(t,e,i){var r=l(t,e,i),n=function(t,e,i,r,n){switch(r){case w:return"backwards"==e||"both"==e?0:null;case P:return i-n;case S:return"forwards"==e||"both"==e?t:null;case x:return null}}(t,i.fill,e,r,i.delay);if(null===n)return null;var o=function(t,e,i,r,n){var o=n;return 0===t?e!==w&&(o+=i):o+=r/t,o}(i.duration,r,i.iterations,n,i.iterationStart),s=function(t,e,i,r,n,o){var s=t===1/0?e%1:t%1;return 0!==s||i!==S||0===r||0===n&&0!==o||(s=1),s}(o,i.iterationStart,r,i.iterations,n,i.duration),a=function(t,e,i,r){return t===S&&e===1/0?1/0:1===i?Math.floor(r)-1:Math.floor(r)}(r,i.iterations,s,o),u=function(t,e,i){var r=t;if("normal"!==t&&"reverse"!==t){var n=e;"alternate-reverse"===t&&(n+=1),r="normal",n!==1/0&&n%2!=0&&(r="reverse")}return"normal"===r?i:1-i}(i.direction,a,s);return i._easingFunction(u)},t.calculatePhase=l,t.normalizeEasing=s,t.parseEasingFunction=a}(XN={}),function(t){function e(t,e){return t in a&&a[t][e]||e}function i(t,i,r){if(!function(t){return"display"===t||0===t.lastIndexOf("animation",0)||0===t.lastIndexOf("transition",0)}(t)){var s=n[t];if(s)for(var a in o.style[t]=i,s){var l=s[a],u=o.style[l];r[l]=e(l,u)}else r[t]=e(t,i)}}function r(t){var e=[];for(var i in t)if(!(i in["easing","offset","composite"])){var r=t[i];Array.isArray(r)||(r=[r]);for(var n,o=r.length,s=0;s<o;s++)(n={}).offset="offset"in t?t.offset:1==o?1:s/(o-1),"easing"in t&&(n.easing=t.easing),"composite"in t&&(n.composite=t.composite),n[i]=r[s],e.push(n)}return e.sort((function(t,e){return t.offset-e.offset})),e}var n={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},a={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};t.convertToArrayForm=r,t.normalizeKeyframes=function(e){if(null==e)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||(e=r(e));for(var n=e.map((function(e){var r={};for(var n in e){var o=e[n];if("offset"==n){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==n){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==n?t.normalizeEasing(o):""+o;i(n,o,r)}return null==r.offset&&(r.offset=null),null==r.easing&&(r.easing="linear"),r})),o=!0,s=-1/0,a=0;a<n.length;a++){var l=n[a].offset;if(null!=l){if(l<s)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");s=l}else o=!1}return n=n.filter((function(t){return t.offset>=0&&t.offset<=1})),o||function(){var t=n.length;null==n[t-1].offset&&(n[t-1].offset=1),t>1&&null==n[0].offset&&(n[0].offset=0);for(var e=0,i=n[0].offset,r=1;r<t;r++){var o=n[r].offset;if(null!=o){for(var s=1;s<r-e;s++)n[e+s].offset=i+(o-i)*s/(r-e);e=r,i=o}}}(),n}}(XN),function(t){var e={};t.isDeprecated=function(t,i,r,n){var o=n?"are":"is",s=new Date,a=new Date(i);return a.setMonth(a.getMonth()+3),!(s<a&&(t in e||console.warn("Web Animations: "+t+" "+o+" deprecated and will stop working on "+a.toDateString()+". "+r),e[t]=!0,1))},t.deprecated=function(e,i,r,n){var o=n?"are":"is";if(t.isDeprecated(e,i,r,n))throw new Error(e+" "+o+" no longer supported. "+r)}}(XN),function(){if(document.documentElement.animate){var t=document.documentElement.animate([],0),e=!0;if(t&&(e=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(i){void 0===t[i]&&(e=!0)}))),!e)return}!function(t,e){e.convertEffectInput=function(i){var r=function(t){for(var e={},i=0;i<t.length;i++)for(var r in t[i])if("offset"!=r&&"easing"!=r&&"composite"!=r){var n={offset:t[i].offset,easing:t[i].easing,value:t[i][r]};e[r]=e[r]||[],e[r].push(n)}for(var o in e){var s=e[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return e}(t.normalizeKeyframes(i)),n=function(i){var r=[];for(var n in i)for(var o=i[n],s=0;s<o.length-1;s++){var a=s,l=s+1,u=o[a].offset,c=o[l].offset,p=u,h=c;0==s&&(p=-1/0,0==c&&(l=a)),s==o.length-2&&(h=1/0,1==u&&(a=l)),r.push({applyFrom:p,applyTo:h,startOffset:o[a].offset,endOffset:o[l].offset,easingFunction:t.parseEasingFunction(o[a].easing),property:n,interpolation:e.propertyInterpolation(n,o[a].value,o[l].value)})}return r.sort((function(t,e){return t.startOffset-e.startOffset})),r}(r);return function(t,i){if(null!=i)n.filter((function(t){return i>=t.applyFrom&&i<t.applyTo})).forEach((function(r){var n=i-r.startOffset,o=r.endOffset-r.startOffset,s=0==o?0:r.easingFunction(n/o);e.apply(t,r.property,r.interpolation(s))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&e.clear(t,o)}}}(XN,YN),function(t,e){function i(t){return t.replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function r(t,e,i){n[i]=n[i]||[],n[i].push([t,e])}var n={};e.addPropertiesHandler=function(t,e,n){for(var o=0;o<n.length;o++)r(t,e,i(n[o]))};var o={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};e.propertyInterpolation=function(r,s,a){var l=r;/-/.test(r)&&!t.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=i(r)),"initial"!=s&&"initial"!=a||("initial"==s&&(s=o[l]),"initial"==a&&(a=o[l]));for(var u=s==a?[]:n[l],c=0;u&&c<u.length;c++){var p=u[c][0](s),h=u[c][0](a);if(void 0!==p&&void 0!==h){var f=u[c][1](p,h);if(f){var d=e.Interpolation.apply(null,f);return function(t){return 0==t?s:1==t?a:d(t)}}}}return e.Interpolation(!1,!0,(function(t){return t?a:s}))}}(XN,YN),function(t,e){e.KeyframeEffect=function(i,r,n,o){var s,a=function(e){var i=t.calculateActiveDuration(e),r=function(r){return t.calculateIterationProgress(i,r,e)};return r._totalDuration=e.delay+i+e.endDelay,r}(t.normalizeTimingInput(n)),l=e.convertEffectInput(r),u=function(){l(i,s)};return u._update=function(t){return null!==(s=a(t))},u._clear=function(){l(i,null)},u._hasSameTarget=function(t){return i===t},u._target=i,u._totalDuration=a._totalDuration,u._id=o,u}}(XN,YN),function(t){function e(t,e,i){i.enumerable=!0,i.configurable=!0,Object.defineProperty(t,e,i)}function i(t){this._element=t,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=t.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(t,e){return!(!e.namespaceURI||-1==e.namespaceURI.indexOf("/svg"))&&(n in t||(t[n]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(t.navigator.userAgent)),t[n])}(window,t),this._savedTransformAttr=null;for(var e=0;e<this._style.length;e++){var i=this._style[e];this._surrogateStyle[i]=this._style[i]}this._updateIndices()}function r(t){if(!t._webAnimationsPatchedStyle){var r=new i(t);try{e(t,"style",{get:function(){return r}})}catch(r){t.style._set=function(e,i){t.style[e]=i},t.style._clear=function(e){t.style[e]=""}}t._webAnimationsPatchedStyle=t.style}}var n="_webAnimationsUpdateSvgTransformAttr",o={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},a={removeProperty:1,setProperty:1};for(var l in i.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(t){for(var e={},i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(this._surrogateStyle.cssText=t,this._updateIndices(),i=0;i<this._surrogateStyle.length;i++)e[this._surrogateStyle[i]]=!0;for(var r in e)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(t){return function(){return this._surrogateStyle[t]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(e,i){this._style[e]=i,this._isAnimatedProperty[e]=!0,this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",t.transformToSvgMatrix(i)))},_clear:function(e){this._style[e]=this._surrogateStyle[e],this._updateSvgTransformAttr&&"transform"==t.unprefixedPropertyName(e)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[e]}},s)i.prototype[l]=function(t,e){return function(){var i=this._surrogateStyle[t].apply(this._surrogateStyle,arguments);return e&&(this._isAnimatedProperty[arguments[0]]||this._style[t].apply(this._style,arguments),this._updateIndices()),i}}(l,l in a);for(var u in document.documentElement.style)u in o||u in s||function(t){e(i.prototype,t,{get:function(){return this._surrogateStyle[t]},set:function(e){this._surrogateStyle[t]=e,this._updateIndices(),this._isAnimatedProperty[t]||(this._style[t]=e)}})}(u);t.apply=function(e,i,n){r(e),e.style._set(t.propertyName(i),n)},t.clear=function(e,i){e._webAnimationsPatchedStyle&&e.style._clear(t.propertyName(i))}}(YN),function(t){window.Element.prototype.animate=function(e,i){var r="";return i&&i.id&&(r=i.id),t.timeline._play(t.KeyframeEffect(this,e,i,r))}}(YN),function(t){function e(t,i,r){if("number"==typeof t&&"number"==typeof i)return t*(1-r)+i*r;if("boolean"==typeof t&&"boolean"==typeof i)return r<.5?t:i;if(t.length==i.length){for(var n=[],o=0;o<t.length;o++)n.push(e(t[o],i[o],r));return n}throw"Mismatched interpolation arguments "+t+":"+i}t.Interpolation=function(t,i,r){return function(n){return r(e(t,i,n))}}}(YN),function(t){var e=function(){function t(t,e){for(var i=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var n=0;n<4;n++)for(var o=0;o<4;o++)i[r][n]+=e[r][o]*t[o][n];return i}return function(e,i,r,n,o){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)s[a][3]=o[a];for(a=0;a<3;a++)for(var l=0;l<3;l++)s[3][a]+=e[l]*s[l][a];var u=n[0],c=n[1],p=n[2],h=n[3],f=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];f[0][0]=1-2*(c*c+p*p),f[0][1]=2*(u*c-p*h),f[0][2]=2*(u*p+c*h),f[1][0]=2*(u*c+p*h),f[1][1]=1-2*(u*u+p*p),f[1][2]=2*(c*p-u*h),f[2][0]=2*(u*p-c*h),f[2][1]=2*(c*p+u*h),f[2][2]=1-2*(u*u+c*c),s=t(s,f);var d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(d[2][1]=r[2],s=t(s,d)),r[1]&&(d[2][1]=0,d[2][0]=r[0],s=t(s,d)),r[0]&&(d[2][0]=0,d[1][0]=r[0],s=t(s,d)),a=0;a<3;a++)for(l=0;l<3;l++)s[a][l]*=i[a];return function(t){return 0==t[0][2]&&0==t[0][3]&&0==t[1][2]&&0==t[1][3]&&0==t[2][0]&&0==t[2][1]&&1==t[2][2]&&0==t[2][3]&&0==t[3][2]&&1==t[3][3]}(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}}();t.composeMatrix=e,t.quat=function(e,i,r){var n=t.dot(e,i);n=function(t,e,i){return Math.max(Math.min(t,i),e)}(n,-1,1);var o=[];if(1===n)o=e;else for(var s=Math.acos(n),a=1*Math.sin(r*s)/Math.sqrt(1-n*n),l=0;l<4;l++)o.push(e[l]*(Math.cos(r*s)-n*a)+i[l]*a);return o}}(YN),function(t,e){t.sequenceNumber=0;var i=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};e.Animation=function(e){this.id="",e&&e._id&&(this.id=e._id),this._sequenceNumber=t.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=e,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},e.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,e.timeline._animations.push(this))},_tickCurrentTime:function(t,e){t!=this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(t){t=+t,isNaN(t)||(e.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-t/this._playbackRate),this._currentTimePending=!1,this._currentTime!=t&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(t,!0),e.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(t){t=+t,isNaN(t)||this._paused||this._idle||(this._startTime=t,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),e.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(t){if(t!=this._playbackRate){var i=this.currentTime;this._playbackRate=t,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),e.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,e.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),e.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(t,e){"function"==typeof e&&"finish"==t&&this._finishHandlers.push(e)},removeEventListener:function(t,e){if("finish"==t){var i=this._finishHandlers.indexOf(e);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(t){if(this._isFinished){if(!this._finishedFlag){var e=new i(this,this._currentTime,t),r=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){r.forEach((function(t){t.call(e.target,e)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(t,e){this._idle||this._paused||(null==this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this._currentTimePending=!1,this._fireEvents(t))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var t=this._effect._target;return t._activeAnimations||(t._activeAnimations=[]),t._activeAnimations},_markTarget:function(){var t=this._targetAnimations();-1===t.indexOf(this)&&t.push(this)},_unmarkTarget:function(){var t=this._targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)}}}(XN,YN),function(t,e){function i(t){var e=l;l=[],t<d.currentTime&&(t=d.currentTime),d._animations.sort(r),d._animations=s(t,!0,d._animations)[0],e.forEach((function(e){e[1](t)})),o()}function r(t,e){return t._sequenceNumber-e._sequenceNumber}function n(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){h.forEach((function(t){t()})),h.length=0}function s(t,i,r){f=!0,p=!1,e.timeline.currentTime=t,c=!1;var n=[],o=[],s=[],a=[];return r.forEach((function(e){e._tick(t,i),e._inEffect?(o.push(e._effect),e._markTarget()):(n.push(e._effect),e._unmarkTarget()),e._needsTick&&(c=!0);var r=e._inEffect||e._needsTick;e._inTimeline=r,r?s.push(e):a.push(e)})),h.push.apply(h,n),h.push.apply(h,o),c&&requestAnimationFrame((function(){})),f=!1,[s,a]}var a=window.requestAnimationFrame,l=[],u=0;window.requestAnimationFrame=function(t){var e=u++;return 0==l.length&&a(i),l.push([e,t]),e},window.cancelAnimationFrame=function(t){l.forEach((function(e){e[0]==t&&(e[1]=function(){})}))},n.prototype={_play:function(i){i._timing=t.normalizeTimingInput(i.timing);var r=new e.Animation(i);return r._idle=!1,r._timeline=this,this._animations.push(r),e.restart(),e.applyDirtiedAnimation(r),r}};var c=!1,p=!1;e.restart=function(){return c||(c=!0,requestAnimationFrame((function(){})),p=!0),p},e.applyDirtiedAnimation=function(t){if(!f){t._markTarget();var i=t._targetAnimations();i.sort(r),s(e.timeline.currentTime,!1,i.slice())[1].forEach((function(t){var e=d._animations.indexOf(t);-1!==e&&d._animations.splice(e,1)})),o()}};var h=[],f=!1,d=new n;e.timeline=d}(XN,YN),function(t){function e(t,e){for(var i=0,r=0;r<t.length;r++)i+=t[r]*e[r];return i}function i(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function r(t){var e=t.rad||0;return((t.deg||0)/360+(t.grad||0)/400+(t.turn||0))*(2*Math.PI)+e}function n(t){switch(t.t){case"rotatex":var e=r(t.d[0]);return[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1];case"rotatey":return e=r(t.d[0]),[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1];case"rotate":case"rotatez":return e=r(t.d[0]),[Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var i=t.d[0],n=t.d[1],o=t.d[2],s=(e=r(t.d[3]),i*i+n*n+o*o);if(0===s)i=1,n=0,o=0;else if(1!==s){var a=Math.sqrt(s);i/=a,n/=a,o/=a}var l=Math.sin(e/2),u=l*Math.cos(e/2),c=l*l;return[1-2*(n*n+o*o)*c,2*(i*n*c+o*u),2*(i*o*c-n*u),0,2*(i*n*c-o*u),1-2*(i*i+o*o)*c,2*(n*o*c+i*u),0,2*(i*o*c+n*u),2*(n*o*c-i*u),1-2*(i*i+n*n)*c,0,0,0,0,1];case"scale":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0],0,0,0,0,1];case"scale3d":return[t.d[0],0,0,0,0,t.d[1],0,0,0,0,t.d[2],0,0,0,0,1];case"skew":var p=r(t.d[0]),h=r(t.d[1]);return[1,Math.tan(h),0,0,Math.tan(p),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return e=r(t.d[0]),[1,0,0,0,Math.tan(e),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return e=r(t.d[0]),[1,Math.tan(e),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=t.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=t.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,i=t.d[0].px||0,n=t.d[1].px||0,o=t.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,t.d[0].px?-1/t.d[0].px:0,0,0,0,1];case"matrix":return[t.d[0],t.d[1],0,0,t.d[2],t.d[3],0,0,0,0,1,0,t.d[4],t.d[5],0,1];case"matrix3d":return t.d}}function o(t){return 0===t.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(n).reduce(i)}var s=function(){function t(t){return t[0][0]*t[1][1]*t[2][2]+t[1][0]*t[2][1]*t[0][2]+t[2][0]*t[0][1]*t[1][2]-t[0][2]*t[1][1]*t[2][0]-t[1][2]*t[2][1]*t[0][0]-t[2][2]*t[0][1]*t[1][0]}function i(t){var e=r(t);return[t[0]/e,t[1]/e,t[2]/e]}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])}function n(t,e,i,r){return[i*t[0]+r*e[0],i*t[1]+r*e[1],i*t[2]+r*e[2]]}return function(o){var s=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==s[3][3])return null;for(var a=[],l=0;l<4;l++)a.push(s[l].slice());for(l=0;l<3;l++)a[l][3]=0;if(0===t(a))return null;var u,c=[];s[0][3]||s[1][3]||s[2][3]?(c.push(s[0][3]),c.push(s[1][3]),c.push(s[2][3]),c.push(s[3][3]),u=function(t,e){for(var i=[],r=0;r<4;r++){for(var n=0,o=0;o<4;o++)n+=t[o]*e[o][r];i.push(n)}return i}(c,function(t){return[[t[0][0],t[1][0],t[2][0],t[3][0]],[t[0][1],t[1][1],t[2][1],t[3][1]],[t[0][2],t[1][2],t[2][2],t[3][2]],[t[0][3],t[1][3],t[2][3],t[3][3]]]}(function(e){for(var i=1/t(e),r=e[0][0],n=e[0][1],o=e[0][2],s=e[1][0],a=e[1][1],l=e[1][2],u=e[2][0],c=e[2][1],p=e[2][2],h=[[(a*p-l*c)*i,(o*c-n*p)*i,(n*l-o*a)*i,0],[(l*u-s*p)*i,(r*p-o*u)*i,(o*s-r*l)*i,0],[(s*c-a*u)*i,(u*n-r*c)*i,(r*a-n*s)*i,0]],f=[],d=0;d<3;d++){for(var _=0,y=0;y<3;y++)_+=e[3][y]*h[y][d];f.push(_)}return f.push(1),h.push(f),h}(a)))):u=[0,0,0,1];var p=s[3].slice(0,3),h=[];h.push(s[0].slice(0,3));var f=[];f.push(r(h[0])),h[0]=i(h[0]);var d=[];h.push(s[1].slice(0,3)),d.push(e(h[0],h[1])),h[1]=n(h[1],h[0],1,-d[0]),f.push(r(h[1])),h[1]=i(h[1]),d[0]/=f[1],h.push(s[2].slice(0,3)),d.push(e(h[0],h[2])),h[2]=n(h[2],h[0],1,-d[1]),d.push(e(h[1],h[2])),h[2]=n(h[2],h[1],1,-d[2]),f.push(r(h[2])),h[2]=i(h[2]),d[1]/=f[2],d[2]/=f[2];var _=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(h[1],h[2]);if(e(h[0],_)<0)for(l=0;l<3;l++)f[l]*=-1,h[l][0]*=-1,h[l][1]*=-1,h[l][2]*=-1;var y,g,v=h[0][0]+h[1][1]+h[2][2]+1;return v>1e-4?(y=.5/Math.sqrt(v),g=[(h[2][1]-h[1][2])*y,(h[0][2]-h[2][0])*y,(h[1][0]-h[0][1])*y,.25/y]):h[0][0]>h[1][1]&&h[0][0]>h[2][2]?g=[.25*(y=2*Math.sqrt(1+h[0][0]-h[1][1]-h[2][2])),(h[0][1]+h[1][0])/y,(h[0][2]+h[2][0])/y,(h[2][1]-h[1][2])/y]:h[1][1]>h[2][2]?(y=2*Math.sqrt(1+h[1][1]-h[0][0]-h[2][2]),g=[(h[0][1]+h[1][0])/y,.25*y,(h[1][2]+h[2][1])/y,(h[0][2]-h[2][0])/y]):(y=2*Math.sqrt(1+h[2][2]-h[0][0]-h[1][1]),g=[(h[0][2]+h[2][0])/y,(h[1][2]+h[2][1])/y,.25*y,(h[1][0]-h[0][1])/y]),[p,f,d,g,u]}}();t.dot=e,t.makeMatrixDecomposition=function(t){return[s(o(t))]},t.transformListToMatrix=o}(YN),function(t){function e(t,e){var i=t.exec(e);if(i)return[i=t.ignoreCase?i[0].toLowerCase():i[0],e.substr(i.length)]}function i(t,e){var i=t(e=e.replace(/^\s*/,""));if(i)return[i[0],i[1].replace(/^\s*/,"")]}function r(t,e,i,r,n){for(var o=[],s=[],a=[],l=function(t,e){for(var i=t,r=e;i&&r;)i>r?i%=r:r%=i;return t*e/(i+r)}(r.length,n.length),u=0;u<l;u++){var c=e(r[u%r.length],n[u%n.length]);if(!c)return;o.push(c[0]),s.push(c[1]),a.push(c[2])}return[o,s,function(e){var r=e.map((function(t,e){return a[e](t)})).join(i);return t?t(r):r}]}t.consumeToken=e,t.consumeTrimmed=i,t.consumeRepeated=function(t,r,n){t=i.bind(null,t);for(var o=[];;){var s=t(n);if(!s)return[o,n];if(o.push(s[0]),!(s=e(r,n=s[1]))||""==s[1])return[o,n];n=s[1]}},t.consumeParenthesised=function(t,e){for(var i=0,r=0;r<e.length&&(!/\s|,/.test(e[r])||0!=i);r++)if("("==e[r])i++;else if(")"==e[r]&&(0==--i&&r++,i<=0))break;var n=t(e.substr(0,r));return null==n?void 0:[n,e.substr(r)]},t.ignore=function(t){return function(e){var i=t(e);return i&&(i[0]=void 0),i}},t.optional=function(t,e){return function(i){return t(i)||[e,i]}},t.consumeList=function(e,i){for(var r=[],n=0;n<e.length;n++){var o=t.consumeTrimmed(e[n],i);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),i=o[1]}if(""==i)return r},t.mergeNestedRepeated=r.bind(null,null),t.mergeWrappedNestedRepeated=r,t.mergeList=function(t,e,i){for(var r=[],n=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var l=i[a](t[s],e[s++]);r.push(l[0]),n.push(l[1]),o.push(l[2])}else!function(t){r.push(!1),n.push(!1),o.push((function(){return i[t]}))}(a);return[r,n,function(t){for(var e="",i=0;i<t.length;i++)e+=o[i](t[i]);return e}]}}(YN),function(t){function e(e){var i={inset:!1,lengths:[],color:null},r=t.consumeRepeated((function(e){var r=t.consumeToken(/^inset/i,e);return r?(i.inset=!0,r):(r=t.consumeLengthOrPercent(e))?(i.lengths.push(r[0]),r):(r=t.consumeColor(e))?(i.color=r[0],r):void 0}),/^/,e);if(r&&r[0].length)return[i,r[1]]}var i=function(e,i,r,n){function o(t){return{inset:t,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],l=0;l<r.length||l<n.length;l++){var u=r[l]||o(n[l].inset),c=n[l]||o(r[l].inset);s.push(u),a.push(c)}return t.mergeNestedRepeated(e,i,s,a)}.bind(null,(function(e,i){for(;e.lengths.length<Math.max(e.lengths.length,i.lengths.length);)e.lengths.push({px:0});for(;i.lengths.length<Math.max(e.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(e.inset==i.inset&&!!e.color==!!i.color){for(var r,n=[],o=[[],0],s=[[],0],a=0;a<e.lengths.length;a++){var l=t.mergeDimensions(e.lengths[a],i.lengths[a],2==a);o[0].push(l[0]),s[0].push(l[1]),n.push(l[2])}if(e.color&&i.color){var u=t.mergeColors(e.color,i.color);o[1]=u[0],s[1]=u[1],r=u[2]}return[o,s,function(t){for(var i=e.inset?"inset ":" ",o=0;o<n.length;o++)i+=n[o](t[0][o])+" ";return r&&(i+=r(t[1])),i}]}}),", ");t.addPropertiesHandler((function(i){var r=t.consumeRepeated(e,/^,/,i);if(r&&""==r[1])return r[0]}),i,["box-shadow","text-shadow"])}(YN),function(t){function e(t){return t.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function i(t,e,i){return Math.min(e,Math.max(t,i))}function r(t){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t))return Number(t)}function n(t,r){return function(n,o){return[n,o,function(n){return e(i(t,r,n))}]}}function o(t){var e=t.trim().split(/\s*[\s,]\s*/);if(0!==e.length){for(var i=[],n=0;n<e.length;n++){var o=r(e[n]);if(void 0===o)return;i.push(o)}return i}}t.clamp=i,t.addPropertiesHandler(o,(function(t,i){if(t.length==i.length)return[t,i,function(t){return t.map(e).join(" ")}]}),["stroke-dasharray"]),t.addPropertiesHandler(r,n(0,1/0),["border-image-width","line-height"]),t.addPropertiesHandler(r,n(0,1),["opacity","shape-image-threshold"]),t.addPropertiesHandler(r,(function(t,e){if(0!=t)return n(0,1/0)(t,e)}),["flex-grow","flex-shrink"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,function(t){return Math.round(i(1,1/0,t))}]}),["orphans","widows"]),t.addPropertiesHandler(r,(function(t,e){return[t,e,Math.round]}),["z-index"]),t.parseNumber=r,t.parseNumberList=o,t.mergeNumbers=function(t,i){return[t,i,e]},t.numberToString=e}(YN),function(t){t.addPropertiesHandler(String,(function(t,e){if("visible"==t||"visible"==e)return[0,1,function(i){return i<=0?t:i>=1?e:"visible"}]}),["visibility"])}(YN),function(t){function e(t){t=t.trim(),n.fillStyle="#000",n.fillStyle=t;var e=n.fillStyle;if(n.fillStyle="#fff",n.fillStyle=t,e==n.fillStyle){n.fillRect(0,0,1,1);var i=n.getImageData(0,0,1,1).data;n.clearRect(0,0,1,1);var r=i[3]/255;return[i[0]*r,i[1]*r,i[2]*r,r]}}function i(e,i){return[e,i,function(e){if(e[3])for(var i=0;i<3;i++)e[i]=Math.round(function(t){return Math.max(0,Math.min(255,t))}(e[i]/e[3]));return e[3]=t.numberToString(t.clamp(0,1,e[3])),"rgba("+e.join(",")+")"}]}var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=r.height=1;var n=r.getContext("2d");t.addPropertiesHandler(e,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),t.consumeColor=t.consumeParenthesised.bind(null,e),t.mergeColors=i}(YN),function(t){function e(t){function e(){var e=s.exec(t);o=e?e[0]:void 0}function i(){if("("!==o)return function(){var t=Number(o);return e(),t}();e();var t=n();return")"!==o?NaN:(e(),t)}function r(){for(var t=i();"*"===o||"/"===o;){var r=o;e();var n=i();"*"===r?t*=n:t/=n}return t}function n(){for(var t=r();"+"===o||"-"===o;){var i=o;e();var n=r();"+"===i?t+=n:t-=n}return t}var o,s=/([\+\-\w\.]+|[\(\)\*\/])/g;return e(),n()}function i(t,i){if("0"==(i=i.trim().toLowerCase())&&"px".search(t)>=0)return{px:0};if(/^[^(]*$|^calc/.test(i)){i=i.replace(/calc\(/g,"(");var r={};i=i.replace(t,(function(t){return r[t]=null,"U"+t}));for(var n="U("+t.source+")",o=i.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+n,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),s=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],a=0;a<s.length;)s[a].test(o)?(o=o.replace(s[a],"$1"),a=0):a++;if("D"==o){for(var l in r){var u=e(i.replace(new RegExp("U"+l,"g"),"").replace(new RegExp(n,"g"),"*0"));if(!isFinite(u))return;r[l]=u}return r}}}function r(t,e){return n(t,e,!0)}function n(e,i,r){var n,o=[];for(n in e)o.push(n);for(n in i)o.indexOf(n)<0&&o.push(n);return e=o.map((function(t){return e[t]||0})),i=o.map((function(t){return i[t]||0})),[e,i,function(e){var i=e.map((function(i,n){return 1==e.length&&r&&(i=Math.max(i,0)),t.numberToString(i)+o[n]})).join(" + ");return e.length>1?"calc("+i+")":i}]}var o="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=i.bind(null,new RegExp(o,"g")),a=i.bind(null,new RegExp(o+"|%","g")),l=i.bind(null,/deg|rad|grad|turn/g);t.parseLength=s,t.parseLengthOrPercent=a,t.consumeLengthOrPercent=t.consumeParenthesised.bind(null,a),t.parseAngle=l,t.mergeDimensions=n;var u=t.consumeParenthesised.bind(null,s),c=t.consumeRepeated.bind(void 0,u,/^/),p=t.consumeRepeated.bind(void 0,c,/^,/);t.consumeSizePairList=p;var h=t.mergeNestedRepeated.bind(void 0,r," "),f=t.mergeNestedRepeated.bind(void 0,h,",");t.mergeNonNegativeSizePair=h,t.addPropertiesHandler((function(t){var e=p(t);if(e&&""==e[1])return e[0]}),f,["background-size"]),t.addPropertiesHandler(a,r,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),t.addPropertiesHandler(a,n,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(YN),function(t){function e(e){return t.consumeLengthOrPercent(e)||t.consumeToken(/^auto/,e)}function i(i){var r=t.consumeList([t.ignore(t.consumeToken.bind(null,/^rect/)),t.ignore(t.consumeToken.bind(null,/^\(/)),t.consumeRepeated.bind(null,e,/^,/),t.ignore(t.consumeToken.bind(null,/^\)/))],i);if(r&&4==r[0].length)return r[0]}var r=t.mergeWrappedNestedRepeated.bind(null,(function(t){return"rect("+t+")"}),(function(e,i){return"auto"==e||"auto"==i?[!0,!1,function(r){var n=r?e:i;if("auto"==n)return"auto";var o=t.mergeDimensions(n,n);return o[2](o[0])}]:t.mergeDimensions(e,i)}),", ");t.parseBox=i,t.mergeBoxes=r,t.addPropertiesHandler(i,r,["clip"])}(YN),function(t){function e(t){return function(e){var i=0;return t.map((function(t){return t===l?e[i++]:t}))}}function i(t){return t}function r(e){if("none"==(e=e.toLowerCase().trim()))return[];for(var i,r=/\s*(\w+)\(([^)]*)\)/g,n=[],o=0;i=r.exec(e);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=p[s];if(!a)return;var l=i[2].split(","),h=a[0];if(h.length<l.length)return;for(var f=[],d=0;d<h.length;d++){var _,y=l[d],g=h[d];if(void 0===(_=y?{A:function(e){return"0"==e.trim()?c:t.parseAngle(e)},N:t.parseNumber,T:t.parseLengthOrPercent,L:t.parseLength}[g.toUpperCase()](y):{a:c,n:f[0],t:u}[g]))return;f.push(_)}if(n.push({t:s,d:f}),r.lastIndex==e.length)return n}}function n(t){return t.toFixed(6).replace(".000000","")}function o(e,i){if(e.decompositionPair!==i){e.decompositionPair=i;var r=t.makeMatrixDecomposition(e)}if(i.decompositionPair!==e){i.decompositionPair=e;var o=t.makeMatrixDecomposition(i)}return null==r[0]||null==o[0]?[[!1],[!0],function(t){return t?i[0].d:e[0].d}]:(r[0].push(0),o[0].push(1),[r,o,function(e){var i=t.quat(r[0][3],o[0][3],e[5]);return t.composeMatrix(e[0],e[1],e[2],i,e[4]).map(n).join(",")}])}function s(t){return t.replace(/[xy]/,"")}function a(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var l=null,u={px:0},c={deg:0},p={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],i],matrix3d:["NNNNNNNNNNNNNNNN",i],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",e([l,l,1]),i],scalex:["N",e([l,1,1]),e([l,1])],scaley:["N",e([1,l,1]),e([1,l])],scalez:["N",e([1,1,l])],scale3d:["NNN",i],skew:["Aa",null,i],skewx:["A",null,e([l,c])],skewy:["A",null,e([c,l])],translate:["Tt",e([l,l,u]),i],translatex:["T",e([l,u,u]),e([l,u])],translatey:["T",e([u,l,u]),e([u,l])],translatez:["L",e([u,u,l])],translate3d:["TTL",i]};t.addPropertiesHandler(r,(function(e,i){var r=t.makeMatrixDecomposition&&!0,n=!1;if(!e.length||!i.length){e.length||(n=!0,e=i,i=[]);for(var l=0;l<e.length;l++){var u=e[l].t,c=e[l].d,h="scale"==u.substr(0,5)?1:0;i.push({t:u,d:c.map((function(t){if("number"==typeof t)return h;var e={};for(var i in t)e[i]=h;return e}))})}}var f=[],d=[],_=[];if(e.length!=i.length){if(!r)return;f=[(w=o(e,i))[0]],d=[w[1]],_=[["matrix",[w[2]]]]}else for(l=0;l<e.length;l++){var y=e[l].t,g=i[l].t,v=e[l].d,m=i[l].d,b=p[y],x=p[g];if(function(t,e){return"perspective"==t&&"perspective"==e||("matrix"==t||"matrix3d"==t)&&("matrix"==e||"matrix3d"==e)}(y,g)){if(!r)return;var w=o([e[l]],[i[l]]);f.push(w[0]),d.push(w[1]),_.push(["matrix",[w[2]]])}else{if(y==g)u=y;else if(b[2]&&x[2]&&s(y)==s(g))u=s(y),v=b[2](v),m=x[2](m);else{if(!b[1]||!x[1]||a(y)!=a(g)){if(!r)return;f=[(w=o(e,i))[0]],d=[w[1]],_=[["matrix",[w[2]]]];break}u=a(y),v=b[1](v),m=x[1](m)}for(var S=[],P=[],A=[],O=0;O<v.length;O++)w=("number"==typeof v[O]?t.mergeNumbers:t.mergeDimensions)(v[O],m[O]),S[O]=w[0],P[O]=w[1],A.push(w[2]);f.push(S),d.push(P),_.push([u,A])}}if(n){var C=f;f=d,d=C}return[f,d,function(t){return t.map((function(t,e){var i=t.map((function(t,i){return _[e][1][i](t)})).join(",");return"matrix"==_[e][0]&&16==i.split(",").length&&(_[e][0]="matrix3d"),_[e][0]+"("+i+")"})).join(" ")}]}),["transform"]),t.transformToSvgMatrix=function(e){var i=t.transformListToMatrix(r(e));return"matrix("+n(i[0])+" "+n(i[1])+" "+n(i[4])+" "+n(i[5])+" "+n(i[12])+" "+n(i[13])+")"}}(YN),function(t){function e(e){return e=100*Math.round(e/100),400===(e=t.clamp(100,900,e))?"normal":700===e?"bold":String(e)}t.addPropertiesHandler((function(t){var e=Number(t);if(!(isNaN(e)||e<100||e>900||e%100!=0))return e}),(function(t,i){return[t,i,e]}),["font-weight"])}(YN),function(t){function e(t){var e={};for(var i in t)e[i]=-t[i];return e}function i(e){return t.consumeToken(/^(left|center|right|top|bottom)\b/i,e)||t.consumeLengthOrPercent(e)}function r(e,r){var n=t.consumeRepeated(i,/^/,r);if(n&&""==n[1]){var s=n[0];if(s[0]=s[0]||"center",s[1]=s[1]||"center",3==e&&(s[2]=s[2]||{px:0}),s.length==e){if(/top|bottom/.test(s[0])||/left|right/.test(s[1])){var a=s[0];s[0]=s[1],s[1]=a}if(/left|right|center|Object/.test(s[0])&&/top|bottom|center|Object/.test(s[1]))return s.map((function(t){return"object"==typeof t?t:o[t]}))}}}function n(r){var n=t.consumeRepeated(i,/^/,r);if(n){for(var s=n[0],a=[{"%":50},{"%":50}],l=0,u=!1,c=0;c<s.length;c++){var p=s[c];"string"==typeof p?(u=/bottom|right/.test(p),a[l={left:0,right:0,center:l,top:1,bottom:1}[p]]=o[p],"center"==p&&l++):(u&&((p=e(p))["%"]=(p["%"]||0)+100),a[l]=p,l++,u=!1)}return[a,n[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},s=t.mergeNestedRepeated.bind(null,t.mergeDimensions," ");t.addPropertiesHandler(r.bind(null,3),s,["transform-origin"]),t.addPropertiesHandler(r.bind(null,2),s,["perspective-origin"]),t.consumePosition=n,t.mergeOffsetList=s;var a=t.mergeNestedRepeated.bind(null,s,", ");t.addPropertiesHandler((function(e){var i=t.consumeRepeated(n,/^,/,e);if(i&&""==i[1])return i[0]}),a,["background-position","object-position"])}(YN),function(t){var e=t.consumeParenthesised.bind(null,t.parseLengthOrPercent),i=t.consumeRepeated.bind(void 0,e,/^/),r=t.mergeNestedRepeated.bind(void 0,t.mergeDimensions," "),n=t.mergeNestedRepeated.bind(void 0,r,",");t.addPropertiesHandler((function(r){var n=t.consumeToken(/^circle/,r);if(n&&n[0])return["circle"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),e,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],n[1]));var o=t.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),i,t.ignore(t.consumeToken.bind(void 0,/^at/)),t.consumePosition,t.ignore(t.consumeToken.bind(void 0,/^\)/))],o[1]));var s=t.consumeToken(/^polygon/,r);return s&&s[0]?["polygon"].concat(t.consumeList([t.ignore(t.consumeToken.bind(void 0,/^\(/)),t.optional(t.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),t.consumeSizePairList,t.ignore(t.consumeToken.bind(void 0,/^\)/))],s[1])):void 0}),(function(e,i){if(e[0]===i[0])return"circle"==e[0]?t.mergeList(e.slice(1),i.slice(1),["circle(",t.mergeDimensions," at ",t.mergeOffsetList,")"]):"ellipse"==e[0]?t.mergeList(e.slice(1),i.slice(1),["ellipse(",t.mergeNonNegativeSizePair," at ",t.mergeOffsetList,")"]):"polygon"==e[0]&&e[1]==i[1]?t.mergeList(e.slice(2),i.slice(2),["polygon(",e[1],n,")"]):void 0}),["shape-outside"])}(YN),function(t){function e(t,e){e.concat([t]).forEach((function(e){e in document.documentElement.style&&(i[t]=e),r[e]=t}))}var i={},r={};e("transform",["webkitTransform","msTransform"]),e("transformOrigin",["webkitTransformOrigin"]),e("perspective",["webkitPerspective"]),e("perspectiveOrigin",["webkitPerspectiveOrigin"]),t.propertyName=function(t){return i[t]||t},t.unprefixedPropertyName=function(t){return r[t]||t}}(YN)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var t=function(){return performance.now()};else t=function(){return Date.now()};var e=function(t,e,i){this.target=t,this.currentTime=e,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=t,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(r,n){var o=i.call(this,r,n);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new e(this,null,t()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(t){t.call(i.target,i)}))}),0)};var a=o.addEventListener;o.addEventListener=function(t,e){"function"==typeof e&&"cancel"==t?this._cancelHandlers.push(e):a.call(this,t,e)};var l=o.removeEventListener;return o.removeEventListener=function(t,e){if("cancel"==t){var i=this._cancelHandlers.indexOf(e);i>=0&&this._cancelHandlers.splice(i,1)}else l.call(this,t,e)},o}}}(),function(t){var e=document.documentElement,i=null,r=!1;try{var n="0"==getComputedStyle(e).getPropertyValue("opacity")?"1":"0";(i=e.animate({opacity:[n,n]},{duration:1})).currentTime=0,r=getComputedStyle(e).getPropertyValue("opacity")==n}catch(t){}finally{i&&i.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(e,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&e[Symbol.iterator]&&(e=Array.from(e)),Array.isArray(e)||null===e||(e=t.convertToArrayForm(e)),o.call(this,e,i)}}}(XN),Object.defineProperty(window.SVGElement.prototype,"parentElement",{get:function(){return this.parentNode}}),Element.prototype._getBoundingClientRect=Element.prototype.getBoundingClientRect,Element.prototype.getBoundingClientRect=function(){var t=Element.prototype._getBoundingClientRect.call(this);return t.x=t.left,t.y=t.top,t},function(){function t(t){var e=t&&t.getBoundingClientRect()||{x:0,y:0,width:0,height:0};return[e.left,e.top]}SVGElement.prototype.getBBox=function(){return"tspan"===this.nodeName?function(e){try{var i=e.ownerSVGElement,r=e.parentNode,n=t(i),o=n[0],s=n[1],a=t(r),l=a[0],u=a[1],c={x:0,y:0,width:0,height:0};e.viewportElement&&e.textContent.trim()&&(c=e.getExtentOfChar(0))}catch(t){console.error(t.message),console.log(e.textContent,e.textContent.trim().length,{tspanElement:e})}finally{return{x:o+l+c.x,y:s+u+c.y,width:c.width,height:c.height}}}(this):this.getBoundingClientRect()}}(),qN=CanvasRenderingContext2D.prototype.measureText,CanvasRenderingContext2D.prototype.measureText=function(t){var e=qN.call(this,t);if(void 0!==e.actualBoundingBoxAscent)return e;var i=this.font||"10px sans-serif",r=parseFloat(i);isNaN(r)&&(r=10);var n=.75*r,o=.25*r,s=.8*r;return e.actualBoundingBoxAscent=n,e.actualBoundingBoxDescent=o,e.fontBoundingBoxAscent=s,e};var QN={},tM={},eM={},iM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.RcDebug=t.getCallback=t.checkEnum=t.enumValues=t.incv=t.copyObj=t.pickProp4=t.pickProp3=t.pickProp=t.pickNum3=t.pickNum=t.distance=t.absv=t.maxv=t.minv=t.log10=t.pow10=t.sin=t.cos=t.round=t.ceil=t.floor=t.assignObj=t.isNone=t.isBoolean=t.isNumber=t.isStringL=t.isString=t.isFunc=t.isArrayEx=t.isArray=t.isObject=t.hasOwnProperty=t.SVGNS=void 0,t.SVGNS="http://www.w3.org/2000/svg",t.hasOwnProperty=Object.prototype.hasOwnProperty;t.isObject=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},t.isArray=Array.isArray;t.isArrayEx=function(t,e){return Array.isArray(t)&&t.length>=e};t.isFunc=function(t){return"function"==typeof t};t.isString=function(t){return"string"==typeof t};t.isStringL=function(t){return"string"==typeof t&&t.length>0};t.isNumber=function(t){return"number"==typeof t};t.isBoolean=function(t){return"boolean"==typeof t};t.isNone=function(t){return null==t||isNaN(t)},t.assignObj=Object.assign,t.floor=Math.floor,t.ceil=Math.ceil,t.round=Math.round,t.cos=Math.cos,t.sin=Math.sin;t.pow10=function(t){return Math.pow(10,t)},t.log10=Math.log10,t.minv=Math.min,t.maxv=Math.max,t.absv=Math.abs;t.distance=function(t,e,i,r){return Math.sqrt(Math.pow(t-i,2)+Math.pow(e-r,2))};t.pickNum=function(t,e){return t=parseFloat(t),isNaN(t)?parseFloat(e):t};t.pickNum3=function(t,e,i){var r=parseFloat(t);return isNaN(r)?(r=parseFloat(e),isNaN(r)?parseFloat(i):r):r};t.pickProp=function(t,e){return void 0!==t?t:e};t.pickProp3=function(t,e,i){return void 0!==t?t:void 0!==e?e:i};t.pickProp4=function(t,e,i,r){return void 0!==t?t:void 0!==e?e:null!=i?i:r};t.copyObj=function(e){return e&&(0,t.assignObj)({},e)};t.incv=function(t,e,i){return t+(e-t)*i};t.enumValues=function(t){return Object.keys(t).map((function(e){return t[e]}))};t.checkEnum=function(t,e,i){for(var r=Object.keys(t),n=r.length-1;n>=0;n--)if(t[r[n]]===e)return e;return i};t.getCallback=function(t){return"function"==typeof t?t:null};var e=function(){function t(){}return t.debug=function(){this._debugging},t._debugging=!1,t}();t.RcDebug=e}(iM);var rM={},nM={},oM={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.$_registerLocale=t.$_setLocale=t.locale=t.Locales=void 0;var e=iM;t.Locales={},t.Locales.ko={dateFormat:"yyyy.MM.dd",am:"오전",pm:"오후",notExistsDataField:"존재하지 않는 필드입니다: %1",notSpecifiedDataField:"하나 이상의 데이터필드가 설정돼야 합니다.",invalidFieldName:"잘못된 데이터필드 이름입니다: %1",invalidRowIndex:"잘못된 데이터행 index입니다: %1",invalidToIndex:"잘못된 'to' index입니다.: %1",requireSourceData:"원본 data가 반드시 지정돼야 합니다.",requireFilterName:"필터 이름이 반드시 지정돼야 합니다.",invalidDateFormat:"잘못된 시간 날짜 형식입니다: %1",invalidSizeValue:"잘못된 Size 값입니다: %1",invalidOuterDiv:"잘못된 외부 div 입니다: %1",dataMustSet:"데이터가 먼저 설정돼야 합니다.",requireTableName:"테이블모델의 이름이 지정돼야 합니다.",alreadyTableExists:"이미 존재하는 테이블모델입니다: %1"},t.Locales.en={dateFormat:"M/d/yyyy",am:"AM",pm:"PM",notExistsDataField:"A data field is not exists: %1",notSpecifiedDataField:"At least one datafield must be set.",invalidFieldName:"Invalid field name: %1",invalidRowIndex:"Invalid row index: %1",invalidToIndex:"Invalid 'to' index: %1",requireSourceData:"A source data must be set.",requireFilterName:"A filter name must be set.",invalidDateFormat:"Invalid datetime format: %1",invalidSizeValue:"Invalid size value: %1",invalidOuterDiv:"Invalid outer div element: %1",dataMustSet:"A data must be set first.",requireTableName:"The name of table model is required.",alreadyTableExists:"A table model is already exists: %1"};var i="ko";t.locale=t.Locales[i]||t.Locales[i="ko"];t.$_setLocale=function(e){return e&&(t.locale=t.Locales[i=e.substring(0,2)]),t.locale||(t.locale=t.Locales[i="ko"])};t.$_registerLocale=function(i,r){i&&(0,e.isObject)(r)&&(t.locale=t.Locales[i.substring(0,2)]=Object.assign(t.Locales.ko,t.Locales.en,r))}}(oM),function(e){var i,r=t&&t.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},i(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 r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e._TextOrientation=e._WritingMode=e._SeriesLoadAnimation=e._PaletteMode=e._TextOverflow=e.buildValueRanges=e._AlignBase=e.throwFormat2=e.throwFormat=e.throwError=e.formatMessage2=e.formatMessage=e.ZERO_SIDES=e.AlertError=e.checkNull=e.assert=e.AssertionError=e.RtAbortError=e.getCssProp=e.CAMEL2KEBAB=e.STROKE=e.FILL=e._ChartTextOverflow=e._ChartTextEffect=e._VerticalAlign=e._Align=e.sizeToCssEx=e.sizeToCss=e.NUMBER_FORMAT=e.NUMBER_SYMBOLS=e.RAD_DEG=e.DEG_RAD=e.ORG_ANGLE=e.PI_2=e.PI=e.ELLIPSIS=e.ZWSP=e.ONE_CHAR=e._undef=void 0,e.fixAngle=function(t){return t>e.PI_2?t%e.PI_2:t},e.fixnum=function(t){return parseFloat(t.toPrecision(12))},e.fixpos=function(t){return Math.floor(1e6*t)/1e6},e.toStr=function(t){return null==t?null:String(t)},e.pixel=function(t){return t+"px"},e.dimStr=function(t){return null!=t?"number"==typeof t?"".concat(t,"px"):t:null},e.isNull=function(t){return null==t||Number.isNaN(t)||""===t},e.pad2=function(t){return t<10?"0"+t:String(t)},e.pad3=function(t){return t<10?"00"+t:t<100?"0"+t:String(t)},e.newObject=function(t,e){var i={};return i[t]=e,i},e.utc=function(t,e,i,r,n,o,s){void 0===e&&(e=0);void 0===i&&(i=1);void 0===r&&(r=0);void 0===n&&(n=0);void 0===o&&(o=0);void 0===s&&(s=0);return new Date(Date.UTC(t,e,i,r,n,o,s))},e.isValidPercentSize=function(t){return!isNaN(t)||!("string"!=typeof t||!t.trimEnd().endsWith("%")||isNaN(parseFloat(t)))},e.parsePercentSize=a,e.parsePercentSize2=function(t,e){return a(t,!0)||a(e,!1)},e.getPercent=function(t){return t&&!t.fixed?t.size:NaN},e.calcPercent=function(t,e,i){void 0===i&&(i=NaN);return t?t.fixed?t.size:t.size*e/100:i},e.calcPercentF=function(t,e){return t.fixed?t.size:t.size*e/100};var n=iM,o=oM;e._undef=void 0,e.ONE_CHAR="①".charCodeAt(0),e.ZWSP="​",e.ELLIPSIS="…",e.PI=Math.PI,e.PI_2=2*e.PI,e.ORG_ANGLE=-e.PI/2,e.DEG_RAD=2*e.PI/360,e.RAD_DEG=360/e.PI/2,e.NUMBER_SYMBOLS="k,M,G,T,P,E",e.NUMBER_FORMAT="#,##0.#";var s="%".charCodeAt(0);e.sizeToCss=function(t){return t.fixed?t.size+"px":t.size+"%"};function a(t,i,r){var n,a=!1;if(null==t){if(i)return null;n=r||0,a=!0}else if("string"==typeof t){var l=t.trim();if(0===l.length?n=NaN:l.charCodeAt(l.length-1)===s?n=1===l.length?NaN:parseFloat(l):(n=parseFloat(l),a=!0),isNaN(n)){if(i)return null;(0,e.throwFormat)(o.locale.invalidSizeValue,t)}}else if(n=+t,isNaN(n)){if(i)return null;n=r||0,a=!0}else a=!0;return{size:n,fixed:a}}e.sizeToCssEx=function(t){return t?t.fixed?t.size+"px":t.size+"%":""},e._Align={LEFT:"left",CENTER:"center",RIGHT:"right"},e._VerticalAlign={TOP:"top",MIDDLE:"middle",BOTTOM:"bottom"},e._ChartTextEffect={NONE:"none",OUTLINE:"outline",BACKGROUND:"background"},e._ChartTextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e.FILL="fill",e.STROKE="stroke",e.CAMEL2KEBAB={fill:"fill",fillOpacity:"fill-opacity",stroke:"stroke",strokeWidth:"stroke-width",strokeDasharray:"stroke-dasharray",fontFamily:"font-family",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",padding:"padding",margin:"margin"};e.getCssProp=function(t){var i=e.CAMEL2KEBAB[t];if(!i){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return e.CAMEL2KEBAB[t]=r,r}return i};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.check=function(t){if(t instanceof e)return!0;throw t},e}(Error);e.RtAbortError=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.AssertionError=u;e.assert=function(t,e){if(!t)throw new u(e)};e.checkNull=function(t,e){if(!t)throw new Error(e||t+" is null.")};var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(Error);e.AlertError=c,e.ZERO_SIDES=Object.freeze({left:0,right:0,top:0,bottom:0,horz:0,vert:0});e.formatMessage=function(t,e){return t.replace("%1",e)};e.formatMessage2=function(t,e,i){return t.replace("%1",e).replace("%2",i)};e.throwError=function(t){throw new Error(t)};e.throwFormat=function(t,i){throw new Error((0,e.formatMessage)(t,i))};e.throwFormat2=function(t,i,r){throw new Error((0,e.formatMessage2)(t,i,r))},e._AlignBase={CHART:"chart",BODY:"body",PARENT:"parent"};e.buildValueRanges=function(t,i,r,o,s,a,l){var u,c;if(void 0===o&&(o=!0),void 0===s&&(s=!0),void 0===a&&(a=!1),o&&(i=-Number.MAX_VALUE,r=Number.MAX_VALUE),(0,n.isArray)(t))u=[],t.forEach((function(t){if((0,n.isObject)(t)&&(0,n.isString)(t.color)){var o={fromValue:(0,n.pickNum)(t.fromValue,c?c.toValue:i),toValue:(0,n.pickNum)(t.toValue,r),color:t.color,style:t.style?(0,n.assignObj)({},t.style):e._undef};o.fromValue<o.toValue&&(u.push(o),c=o)}})),u=u.sort((function(t,e){return t.fromValue-e.fromValue})).filter((function(t){return t.toValue>=i&&t.fromValue<r})),s&&u.forEach((function(t){t.fromValue=(0,n.maxv)(t.fromValue,i),t.toValue=(0,n.minv)(t.toValue,r)}));else if((0,n.isObject)(t)&&(0,n.isArray)(t.colors)&&t.colors.length>0){var p=t.colors,h=(0,n.isArray)(t.styles)?t.styles:null;if(u=[],(0,n.isArray)(t.steps)&&t.steps.length>0){var f=(0,n.isArray)(t.steps)?t.steps:null;i<f[0]&&f.unshift(i),r>f[f.length-1]&&f.push(r);for(var d=0;d<f.length-1;d++)u.push({fromValue:f[d],toValue:f[d+1],color:p[(0,n.minv)(d,p.length-1)],style:h?h[(0,n.minv)(d,h.length-1)]:e._undef})}else{var _=(0,n.pickNum)(t.fromValue,i),y=(0,n.pickNum)(t.toValue,r),g=(y-_)/p.length;for(d=0;_<y;)u.push({fromValue:_,toValue:_+=g,color:p[(0,n.minv)(d,p.length-1)],style:h?h[(0,n.minv)(d,h.length-1)]:e._undef}),d++}}if(a&&u&&u.length>0){d=0;for(var v=i;d<u.length;)u[d].fromValue>v&&u.splice(d,0,{fromValue:v,toValue:u[d].fromValue,color:l}),v=u[d].toValue,d++;u[d-1].toValue<r&&u.push({fromValue:u[d-1].toValue,toValue:r,color:l})}return u},e._TextOverflow={CLIP:"clip",ELLIPSIS:"ellipsis",WRAP:"wrap"},e._PaletteMode={NORMAL:"normal",SHUFFLE:"shuffle",RANDOM:"random"},e._SeriesLoadAnimation={DEFAULT:"default",REVEAL:"reveal",GROW:"grow",SPREAD:"spread",FADEIN:"fadein"},e._WritingMode={HORIZONTAL_TB:"horizontal-tb",VERTICAL_LR:"vertical-lr",VERTICAL_RL:"vertical-rl",VERTICAL:"vertical"},e._TextOrientation={MIXED:"mixed",UPRIGHT:"upright"}}(nM);var sM=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},aM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},lM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(rM,"__esModule",{value:!0}),rM.Utils=rM.isIE=void 0;var uM=iM,cM=nM,pM=(new Date).getTime();"undefined"==typeof window||Element.prototype.animate||(Element.prototype.animate=function(t){}),rM.isIE="undefined"!=typeof window&&"undefined"!=typeof document&&!!document.documentMode&&!!window.MSInputMethodContext;var hM=function(){function t(){}return t.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.log.apply(console,aM([],sM(t),!1))},t.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.LOGGING&&console.warn.apply(console,aM([],sM(t),!1))},t.now=function(){return+new Date},t.parseDate=function(t,e){var i=new Date(t);return isNaN(i.getTime())?e||new Date:i},t.isLeapYear=function(t){return t%4==0&&t%100!=0||t%400==0},t.dateOfYear=function(e){var i=e.getMonth(),r=e.getDate(),n=[0,31,59,90,120,151,181,212,243,273,304,334][i]+r;return i>1&&t.isLeapYear(e.getFullYear())&&n++,n},t.incMonth=function(e,i){var r=e.getDate();return e.setDate(1),e.setMonth(e.getMonth()+i),e.setDate((0,uM.minv)(r,t.month_days[t.isLeapYear(e.getFullYear())?1:0][e.getMonth()])),e},t.minDate=function(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e},t.maxDate=function(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e},t.weekOfMonth=function(t,e,i){var r=t.getMonth(),n=t.getFullYear(),o=new Date(n,r,1).getDay(),s=new Date(n,r+1,0).getDate(),a=t.getDate()+o-1,l=e+Math.ceil((s+o-7)/7),u=e+Math.floor(a/7);return i||u<2+e?u:u===l?e+5:u},t.weekOfYear=function(t,e){var i=t.getFullYear(),r=new Date(i,0,1).getDay(),n=this.dateOfYear(t)+r-1;return e+Math.floor(n/7)},t.isObject=function(t){return t&&"object"==typeof t&&!(0,uM.isArray)(t)},t.isValidObject=function(t){if(this.isObject(t))for(var e in t)if(t.hasOwnProperty(e))return!0},t.copyObject=function(t){if(t&&"object"==typeof t&&!(0,uM.isArray)(t))return(0,uM.assignObj)({},t)},t.checkArray=function(t){return(0,uM.isArray)(t)?t:void 0},t.makeArray=function(t,e){return void 0===e&&(e=!1),null!=t?(0,uM.isArray)(t)?t:[t]:e?[]:void 0},t.makeNumArray=function(t){return(0,uM.isArray)(t)?t.map((function(t){return+t})):null!=t?[+t]:[]},t.getIntArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=e,n=e+t;r<n;r++)i.push(r);return i},t.isValueArray=function(t){if((0,uM.isArray)(t)){for(var e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}return!1},t.toArray=function(t){return(0,uM.isArray)(t)?t:null!=t?[t]:null},t.copyArray=function(t){return(0,uM.isArray)(t)?t.slice(0):null!=t?[t]:void 0},t.push=function(t,e){if(e&&e.length>0)for(var i=0,r=e.length;i<r;i++)t.push(e[i])},t.isDefined=function(t){return null!=t},t.isNotDefined=function(t){return null==t},t.isNumber=function(t){return"number"==typeof t},t.canNumber=function(t){return!isNaN(t)&&!isNaN(parseFloat(t))},t.isValidNum=function(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)},t.getNumber=function(t,e){void 0===e&&(e=0);var i=parseFloat(t);return isFinite(i)?i:e},t.toNumber=function(t,e){return void 0===e&&(e=0),isNaN(t)||null===t||""===t?e:+t},t.compareText=function(t,e,i){return void 0===i&&(i=!1),t=t||"",e=e||"",i&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0},t.getTimeF=function(){return(new Date).getTime()/1e3},t.getTimer=function(){return(new Date).getTime()-pM},t.isWhiteSpace=function(t){return!t||!t.trim()},t.pad=function(t,e,i){return e=(0,uM.maxv)(e||2,1),i=i||"0",new Array(e-String(t).length+1).join(i)+t},t.pad16=function(t,e,i){return e=(0,uM.maxv)(e||2,1),i=i||"0",new Array(e-t.toString(16).length+1).join(i)+t.toString(16)},t.pick=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r=t.length,n=0;n<r;n++)if(null!=(i=t[n]))return i},t.toStr=function(t){return Number.isNaN(t)||null==t?"":String(t)},t.equalNumbers=function(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e},t.equalArrays=function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;var i=t.length;if(i!=e.length)return!1;for(var r=0;r<i;++r)if(t[r]!==e[r])return!1;return!0},t.parseTuples=function(t){if((0,uM.isArray)(t)){var e=[],i=-1/0;return t.forEach((function(r,n){(0,uM.isArray)(r)?!isNaN(r[0])&&!isNaN(r[1])&&r[0]>i&&(e.push([+r[0],+r[1]]),i=r[0]):isNaN(r)||n!==t.length-1||e.push([1/0,+r])})),e.length>0?e:void 0}if(!isNaN(t))return[[1/0,+t]]},t.isEmpty=function(t){if(t)for(var e in t)return!1;return!0},t.isNotEmpty=function(t){if(t)for(var e in t)return!0;return!1},t.setter=function(t){return"set"+t[0].toUpperCase()+t.slice(1)},t.isDate=function(t){return t.getTime&&"[object Date]"===Object.prototype.toString.call(t)},t.deepClone=function(t){var e,i;if(null==t||"object"!=typeof t)return t;if(this.isDate(t))return new Date(t);var r=(0,uM.isArray)(t)?[]:{};try{for(var n=lM(Object.keys(t)),o=n.next();!o.done;o=n.next()){var s=o.value;r[s]=this.deepClone(t[s])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}return r},t.getArray=function(t,e){for(var i=[],r=0;r<t;r++)i.push(e);return i},t.getNumArray=function(t,e){void 0===e&&(e=0);for(var i=[],r=0;r<t;r++)i.push(e);return i},t.dedupe=function(t,e){for(var i=(t=t.sort(e||function(t,e){return t>e?1:t<e?-1:0})).length-1;i>0;i--)t[i]===t[i-1]&&t.splice(i,1);return t},t.sortNum=function(t){return t.sort((function(t,e){return t-e}))},t.logElapsed=function(e,i){var r=+new Date;i(),t.log(e,+new Date-r+"ms")},t.clamp=function(t,e,i){return(0,uM.maxv)(e,(0,uM.minv)(i,t))},t.makeIntArray=function(t,e){for(var i=new Array((0,uM.maxv)(0,e-t)),r=t;r<e;r++)i[r-t]=r;return i},t.shuffle=function(t){for(var e=t.length;e;){var i=Math.floor(Math.random()*e),r=t[--e];t[e]=t[i],t[i]=r}return t},t.isAnimation=function(t){return"[object Animation]"===Object.prototype.toString.call(t)},t.isValidDate=function(t){return t.getTime()==t.getTime()},t.asFunction=function(t){return"function"==typeof t?t:void 0},t.getFieldProp=function(t){var e=t.indexOf(".");if(e>=0)return{field:t.substring(0,e),props:t.substring(e+1).split(".")}},t.startsWith=function(t,e){if(t&&e)return 0===t.indexOf(e)},t.endsWith=function(t,e){if(t&&e)return t.indexOf(e,-t.length)===t.length-e.length},t.scaleNumber=function(t,e,i){var r=(0,uM.absv)(t);if(r>=1e3)for(var n=e.length;n>0;){var o=Math.pow(1e3,n--);if(o<=Math.pow(10,Math.log(r)*Math.LOG10E)&&(i||10*r%o==0))return{value:t/o,symbol:e[n]}}},t.jitter=function(t,e){return t+(2*Math.random()-1)*e},t.randomLike=function(t){return(2654435761*(123456789^t)>>>16)/65536},t.diffAngle=function(t,e){var i=(0,uM.absv)(t-e);return(0,uM.minv)(i,cM.PI_2-i)},t.LOGGING=!1,t.week_days=["일","월","화","수","목","금","토"],t.long_week_days=["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],t.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"rr-chart-"+t+e++}}(),t}();rM.Utils=hM;var fM,dM={},_M={},yM=t&&t.__extends||(fM=function(t,e){return fM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},fM(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 i(){this.constructor=t}fM(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),gM=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},vM=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},mM=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(_M,"__esModule",{value:!0}),_M.EventProvider=_M.RcObject=void 0;var bM=0,xM=function(){function t(t){this.$_destroyed=!1,this.$_destroying=!1,t||(this.$_hash=String(bM++))}return t.destroy=function(t){return t&&t.destroy()},t.prototype.destroy=function(){return this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this._doDestroy(),this.$_destroyed=!0),null},t.prototype._doDestroy=function(){},Object.defineProperty(t.prototype,"destroying",{get:function(){return this.$_destroying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"orphaned",{get:function(){return this.$_destroying||this.$_destroyed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.$_hash},enumerable:!1,configurable:!0}),t.prototype.isMe=function(t){return t===this.$_hash},t.prototype.toString=function(){return this.constructor.name},t.prototype.toBool=function(t){return"string"==typeof t?"true"===t:t},t.prototype.toNum=function(t,e){return void 0===e&&(e=NaN),t=parseFloat(t),isNaN(t)?e:t},t}();_M.RcObject=xM;var wM=function(t){function e(){var e=t.apply(this,vM([],gM(arguments),!1))||this;return e._listeners=[],e}return yM(e,t),e.prototype._addListener=function(t){t&&this._listeners.indexOf(t)<0&&this._listeners.push(t)},e.prototype._removeListener=function(t){var e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)},e.prototype._fireEvent=function(t){var e,i,r=Array.prototype.slice.call(arguments,0);r[0]=this;try{for(var n=mM(this._listeners),o=n.next();!o.done;o=n.next()){var s=o.value,a=s[t];if(a){var l=a.apply(s,r);if(void 0!==l)return l}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e}(xM);_M.EventProvider=wM;var SM=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(dM,"__esModule",{value:!0}),dM.ChartDataCollection=dM.DataObject=void 0;var PM=iM,AM=oM,OM=nM,CM=function(t){return t&&"object"==typeof t},VM=function(t){function e(e,i){var r=t.call(this)||this;return r._rows=[],r.$_buildOptions(e||{}),(0,PM.isArray)(i)&&i.forEach((function(t){return r._rows.push(r.$_readRow(t))})),r}return SM(e,t),e.prototype.$_buildOptions=function(t){var e,i=t.fields;e=(0,PM.isArray)(i)?i.slice():(0,PM.isString)(i)?[i]:["x","y","z"],this._fields=e,this._field=t.field||"y",this._fieldMap={};for(var r=0;r<e.length;r++)this._fieldMap[e[r]]=r},Object.defineProperty(e.prototype,"rowCount",{get:function(){return this._rows.length},enumerable:!1,configurable:!0}),e.prototype._internalValues=function(){return this._rows},e.prototype.$_readRow=function(t){var e={};if((0,PM.isArray)(t))for(var i=0;i<this._fields.length;i++)e[this._fields[i]]=t[i];else CM(t)?Object.assign(e,t):e[this._field]=t;return e},e.prototype.getValue=function(t,e){return this._checkRow(t),this._rows[t][e]},e.prototype.setValue=function(t,e,i){this._checkRow(t);var r=this._rows[t],n=r[e];i!==n&&(r[e]=i,this._rows[t]=r,this._fireEvent("onDataValueChanged",t,e,i,n),this._changed())},e.prototype.getValues=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=-1);var r=this._rows,n=[];(isNaN(e)||e<0)&&(e=0),(isNaN(i)||i<0||i>r.length)&&(i=r.length);for(var o=e;o<i;o++)n.push(r[o][t]);return n},e.prototype.getRow=function(t){return this._checkRow(t),Object.assign({},this._rows[t])},e.prototype.addRow=function(t,e){isNaN(e)||e<0?e=this._rows.length:this._checkRow(e),this._rows.splice(e,0,t),this._fireEvent("onDataRowAdded",e),this._changed()},e.prototype.deleteRow=function(t){(isNaN(t)||t<0)&&(t=this._rows.length-1),this._checkRow(t);var e=this._rows[t];this._rows.splice(t,1),this._fireEvent("onDataRowDeleted",t,e),this._changed()},e.prototype._checkRow=function(t){(t<0||t>this._rows.length)&&(0,OM.throwFormat)(AM.locale.invalidRowIndex,t)},e.prototype._changed=function(){this._fireEvent("onDataChanged")},e}(_M.EventProvider);dM.DataObject=VM;var EM=function(){function t(){this._map={}}return t.prototype.get=function(t){return this._map[t]},t.prototype.load=function(t){for(var e in t){var i=t[e],r=void 0;(0,PM.isArray)(i)?r=new VM({},i):CM(i)&&(0,PM.isArray)(i.values)&&(r=new VM(i.options,i.values)),this._map[e]=r}},t}();dM.ChartDataCollection=EM;var kM={},TM={},LM={},NM={};Object.defineProperty(NM,"__esModule",{value:!0}),NM.NumberFormatter=void 0;var MM=iM,jM="0".charCodeAt(0),RM="#".charCodeAt(0),BM=",".charCodeAt(0),DM="s".charCodeAt(0),IM="a".charCodeAt(0),GM=function(){function t(t){t=t.trim(),this._options=t?this.$_parse(this._format=t):{useGrouping:!1},this._options2=Object.assign({},this._options),this._options2.useGrouping=!1}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter(t.DEFAULT_FORMAT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t){return t.toLocaleString(void 0,this._options)},t.prototype.toNum=function(t){return+t.toLocaleString(void 0,this._options2)},t.prototype.$_parse=function(t){var e=t.length;if(e>0){var i={useGrouping:!1,minimumIntegerDigits:0,minimumFractionDigits:0,maximumFractionDigits:0},r=t.indexOf(".");if(r>=0){for(var n=r+1;n<e&&t.charCodeAt(n)===jM;)i.minimumFractionDigits++,n++;for(i.maximumFractionDigits=i.minimumFractionDigits;n<e&&t.charCodeAt(n)===RM;)i.maximumFractionDigits++,n++;r-=1}else r=e-1;for(var o=r;o>=0&&t.charCodeAt(o)===jM;)i.minimumIntegerDigits++,o--;for(;o>=0;){if(t.charCodeAt(o--)===BM){i.useGrouping=!0;break}}for(o=r;o>=0;){if(t.charCodeAt(o--)===DM){i.signDisplay="always";break}}if(!i.signDisplay)for(o=r;o>=0;){if(t.charCodeAt(o--)===IM){i.signDisplay="never";break}}return i.minimumIntegerDigits=(0,MM.maxv)(1,i.minimumIntegerDigits),i}},t.DEFAULT_FORMAT="",t.Formatters={},t}();NM.NumberFormatter=GM;var FM={},zM={};Object.defineProperty(zM,"__esModule",{value:!0}),zM.DatetimeFormatter=void 0;var $M=oM,HM=nM,WM=rM,UM=["yy","yyyy","M","MM","d","dd","WW","W","w","ww","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],XM=[".","/","-",":"],YM="Z".charCodeAt(0),qM="z".charCodeAt(0),ZM="A".charCodeAt(0),KM="a".charCodeAt(0),JM="y".charCodeAt(0),QM="M".charCodeAt(0),tj="m".charCodeAt(0),ej="W".charCodeAt(0),ij="w".charCodeAt(0),rj="d".charCodeAt(0),nj="H".charCodeAt(0),oj="h".charCodeAt(0),sj="S".charCodeAt(0),aj="s".charCodeAt(0),lj=function(){function t(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}return t.getFormatter=function(e){var i=t.Formatters[e];return i||(t.Formatters[e]=i=new t(e)),i},Object.defineProperty(t,"Default",{get:function(){return t.getFormatter($M.locale.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this._format},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return this._formatString},set:function(t){(t=t||$M.locale.dateFormat)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)},enumerable:!1,configurable:!0}),t.prototype.toStr=function(t,e){if(!this._tokens)return"";for(var i=this._tokens,r="",n=0,o=i.length;n<o;n++){var s=i[n],a=s.length;switch(s.charCodeAt(0)){case JM:r+=a>2?t.getFullYear():(0,HM.pad2)(t.getFullYear()%100);break;case QM:r+=a>1?(0,HM.pad2)(t.getMonth()+1):t.getMonth()+1;break;case rj:r+=a>1?(0,HM.pad2)(t.getDate()):t.getDate();break;case ej:r+=a>1?(0,HM.pad2)(WM.Utils.weekOfYear(t,e)+1):WM.Utils.weekOfMonth(t,e,!0)+1;break;case ij:r+=a>1?WM.Utils.long_week_days[t.getDay()]:WM.Utils.week_days[t.getDay()];break;case nj:r+=a>1?(0,HM.pad2)(t.getHours()):t.getHours();break;case oj:if(this._hasAmPm){var l=t.getHours();0==l?l=12:l>12&&(l-=12),r+=a>1?(0,HM.pad2)(l):l}else r+=a>1?(0,HM.pad2)(t.getHours()):t.getHours();break;case tj:r+=a>1?(0,HM.pad2)(t.getMinutes()):t.getMinutes();break;case aj:r+=a>1?(0,HM.pad2)(t.getSeconds()):t.getSeconds();break;case KM:case ZM:t.getHours()<12?r+=$M.locale.am:r+=$M.locale.pm;break;case sj:var u=t.getMilliseconds();r+=3==a?(0,HM.pad3)(u):2==a?(0,HM.pad2)(u):u.toString().substring(0,a);break;default:r+=s}}return r},t.prototype.parseDateFormatTokens=function(t){var e=[];if(t)for(var i=t.trim(),r=i.length,n=0;n<r;){var o=i.charAt(n);if(XM.indexOf(o)>=0)e.push(o),n++;else{for(var s=n++;n<r&&i.charAt(n)==o;)n++;if(o=i.substring(s,n),UM.indexOf(o)<0){var a=o.charCodeAt(0);(a>=ZM&&a<=YM||a>=KM&&a<=qM)&&(0,HM.throwFormat)($M.locale.invalidDateFormat,t)}e.push(o)}if(n<r&&WM.Utils.isWhiteSpace(o=i.charAt(n)))for(e.push(o);n<r&&WM.Utils.isWhiteSpace(i.charAt(n));)n++}return e},t.prototype.parse=function(t){t&&(this._format=t||$M.locale.dateFormat,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0)},t.Formatters={},t}();zM.DatetimeFormatter=lj;var uj={},cj={};Object.defineProperty(cj,"__esModule",{value:!0}),cj.Color=void 0;var pj=rM,hj=function(){function t(t){this.r=0,this.g=0,this.b=0,this.a=1,(t=t&&t.trim())&&(pj.Utils.startsWith(t,"rgb(")&&pj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(4,t.length-1)):pj.Utils.startsWith(t,"rgba(")&&pj.Utils.endsWith(t,")")?this.$_parseRgb(t.substring(5,t.length-1)):pj.Utils.startsWith(t,"#")&&this.$_parseNumber(t.substr(1)))}return t.isBright=function(e){return new t(e).isBright()},t.getContrast=function(e,i,r){return new t(e).getContrast(i,r)},t.interpolate=function(e,i,r){var n=new t(e),o=new t(i),s=1-r,a=Math.round(n.r*r+o.r*s),l=Math.round(n.g*r+o.g*s),u=Math.round(n.b*r+o.b*s),c=n.a*r+o.a*(1-r);return c<1?"rgba(".concat(a,",").concat(l,",").concat(u,",").concat(c,")"):"rgb(".concat(a,",").concat(l,",").concat(u,")")},t.toColor=function(e){return pj.isIE?new t(e).toString():e},Object.defineProperty(t.prototype,"rgba",{get:function(){return"rgba("+[this.r,this.g,this.b,this.a].join(",")+")"},enumerable:!1,configurable:!0}),t.prototype.isBright=function(){return.299*this.r+.587*this.g+.114*this.b>140},t.prototype.getContrast=function(t,e){return this.isBright()?t||"#000000":e||"#FFFFFF"},t.prototype.brighten=function(e,i){return void 0===i&&(i=null),(i=i||new t(null)).r=Math.ceil(this.r+(255-this.r)*e),i.g=Math.ceil(this.g+(255-this.g)*e),i.b=Math.ceil(this.b+(255-this.b)*e),i.a=this.a,i},t.prototype.toString=function(){return this.rgba},t.prototype.$_parseRgb=function(t){var e=t.split(/\,\s*/);e.length>=3&&(this.r=+e[0],this.g=+e[1],this.b=+e[2],e.length>=4?this.a=+e[3]:this.a=1)},t.prototype.$_parseNumber=function(t){var e,i=t.length;i>6?(e=parseInt(t.substr(0,6),16),this.a=parseInt(t.substring(6),16)/255):i>0&&(3===i&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16)),this.r=(16711680&e)>>16,this.g=(65280&e)>>8,this.b=255&e},t.BLACK="#000",t.WHITE="#fff",t}();cj.Color=hj;var fj={},dj={};Object.defineProperty(dj,"__esModule",{value:!0}),dj.Dom=void 0;var _j=iM;"undefined"==typeof Element||Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var yj=function(){function t(){}return t.clearChildren=function(t){for(var e;e=t.lastChild;)t.removeChild(e)},t.remove=function(t){var e=t&&t.parentElement;return e&&e.removeChild(t),null},t.htmlEncode=function(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML},t.setAttrs=function(t,e){for(var i in e)t.setAttribute(i,e[i])},t.setStyles=function(t,e){return e&&Object.assign(t.style,e),t},t.setImportantStyle=function(t,e,i){t.setProperty(e,i,"important")},t.getPadding=function(t){var e=getComputedStyle(t);return{left:parseFloat(e.paddingLeft)||0,right:parseFloat(e.paddingRight)||0,top:parseFloat(e.paddingTop)||0,bottom:parseFloat(e.paddingBottom)||0}},t.hasFill=function(t){var e=window.getComputedStyle(t).fill;return e&&"none"!==e},t.setVisible=function(t,e,i){return void 0===i&&(i=""),t.style.display=e?i:"none",e},t.isHidden=function(t){return"none"===t.style.display},t.setClipPath=function(e,i){var r=null;"string"==typeof i?r=i:t.isSVGClipPathElement(i)&&(r=i.id||null),r?e.setAttribute("clip-path","url(#".concat(r,")")):e.removeAttribute("clip-path")},t.createClipRect=function(t,e){var i=t.createElementNS(_j.SVGNS,"clipPath");return i.id=e,i.append(t.createElementNS(_j.SVGNS,"rect")),i},t.setRect=function(t,e){return this.setBounds(t,e.x,e.y,e.width,e.height)},t.setBounds=function(t,e,i,r,n){return t.setAttribute("x",e),t.setAttribute("y",i),t.setAttribute("width",r),t.setAttribute("height",n),t},t.isSVGElement=function(e){return t.isElement(e)&&e.namespaceURI===_j.SVGNS},t.isSVGClipPathElement=function(e){return t.isSVGElement(e)&&"clipPath"===e.tagName},t.setBoolData=function(t,e,i){i?t.dataset[e]="1":delete t.dataset[e]},t.isHoverAt=function(t){return t.matches(":hover")},t.instanceOf=function(e,i){return t.isElement(e)&&e.tagName===i.toUpperCase()},t.isElement=function(t){return t&&1===t.nodeType},t}();dj.Dom=yj;var gj,vj={},mj={};Object.defineProperty(mj,"__esModule",{value:!0}),mj.globalRealChartInfo=mj.LicType=void 0,function(t){t.Developer="developer",t.Evaluation="evaluation",t.Limited="limited",t.Enterprise="enterprise"}(gj||(mj.LicType=gj={})),mj.globalRealChartInfo={name:"RealChart",version:"1.4.13",license:"enterprise",code:null},Object.defineProperty(vj,"__esModule",{value:!0}),vj.$_lc=vj.Cryptor=void 0;var bj=mj,xj=function(){function t(){}return t.decode=function(e){for(var i=t.CHARS,r=t.PAD,n=e.split(""),o=[],s=n.length;n[--s]==r;);for(var a=0;a<s;){var l=i.indexOf(n[a++])<<18;a<=s&&(l|=i.indexOf(n[a++])<<12),a<=s&&(l|=i.indexOf(n[a++])<<6),a<=s&&(l|=i.indexOf(n[a++])),o.push(l>>>16&255),o.push(l>>>8&255),o.push(255&l)}for(;0==o[o.length-1];)o.pop();return o},t.PAD="=",t.CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t}(),wj=function(){function t(){}return t.union=function(t,e){var i=e.s3[255&t];t>>=8;var r=e.s2[255&t];t>>=8;var n=e.s1[255&t];t>>=8;var o=e.s0[255&t],s=(o>>16)+(n>>16)+((65535&o)+(65535&n)>>16)<<16|(65535&o)+(65535&n)&65535;return((s=(s>>16^r>>16)<<16|65535&(65535&s^65535&r))>>16)+(i>>16)+((65535&s)+(65535&i)>>16)<<16|(65535&s)+(65535&i)&65535},t.xor=function(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)},t._encryptBlock=function(e,i){var r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[0]),s=r(s,r(n(o,i),i.p[1])),o=r(o,r(n(s,i),i.p[2])),s=r(s,r(n(o,i),i.p[3])),o=r(o,r(n(s,i),i.p[4])),s=r(s,r(n(o,i),i.p[5])),o=r(o,r(n(s,i),i.p[6])),s=r(s,r(n(o,i),i.p[7])),o=r(o,r(n(s,i),i.p[8])),s=r(s,r(n(o,i),i.p[9])),o=r(o,r(n(s,i),i.p[10])),s=r(s,r(n(o,i),i.p[11])),o=r(o,r(n(s,i),i.p[12])),s=r(s,r(n(o,i),i.p[13])),o=r(o,r(n(s,i),i.p[14])),s=r(s,r(n(o,i),i.p[15])),o=r(o,r(n(s,i),i.p[16])),e.right=o,e.left=r(s,i.p[17])},t._decryptBlock=function(e,i){var r=t.xor,n=t.union,o=e.left,s=e.right;o=r(o,i.p[17]),s=r(s,r(n(o,i),i.p[16])),o=r(o,r(n(s,i),i.p[15])),s=r(s,r(n(o,i),i.p[14])),o=r(o,r(n(s,i),i.p[13])),s=r(s,r(n(o,i),i.p[12])),o=r(o,r(n(s,i),i.p[11])),s=r(s,r(n(o,i),i.p[10])),o=r(o,r(n(s,i),i.p[9])),s=r(s,r(n(o,i),i.p[8])),o=r(o,r(n(s,i),i.p[7])),s=r(s,r(n(o,i),i.p[6])),o=r(o,r(n(s,i),i.p[5])),s=r(s,r(n(o,i),i.p[4])),o=r(o,r(n(s,i),i.p[3])),s=r(s,r(n(o,i),i.p[2])),o=r(o,r(n(s,i),i.p[1])),e.right=o,e.left=r(s,i.p[0])},t._init=function(e){var i,r,n,o=e.split("").map((function(t){return 255&t.charCodeAt(0)})),s=t.kb,a=t._encryptBlock,l=0,u=0,c={left:0,right:0},p={p:s.p.slice(0).map((function(e){var i,r=o.length;for(i=0;i<4;i++)u=u*t.POW8|o[l++%r];return(e>>16^u>>16)<<16|65535&(65535&e^65535&u)})),s0:s.s0.slice(0),s1:s.s1.slice(0),s2:s.s2.slice(0),s3:s.s3.slice(0)};for(i=0,n=p.p.length;i<n;)a(c,p),p.p[i++]=c.left,p.p[i++]=c.right;for(i=0;i<4;i++)for(r=0,n=p["s"+i].length;r<n;)a(c,p),p["s"+i][r++]=c.left,p["s"+i][r++]=c.right;return p},t.decrypt=function(e,i){for(var r=t._decryptBlock,n=t._init(i),o=[],s=xj.decode(e),a=s.length>>3,l=0,u={left:null,right:null},c=0;c<a;c++){u.left=s[l]*t.POW24|s[l+1]*t.POW16|s[l+2]*t.POW8|s[l+3],u.right=s[l+4]*t.POW24|s[l+5]*t.POW16|s[l+6]*t.POW8|s[l+7],r(u,n);var p=u.left,h=u.right;o.push(p>>24&255),o.push(p>>16&255),o.push(p>>8&255),o.push(255&p),o.push(h>>24&255),o.push(h>>16&255),o.push(h>>8&255),o.push(255&h),l+=8}if(o[o.length-1]==o[o.length-2]||1==o[o.length-1]){var f=o[o.length-1];o.splice(o.length-f,f)}return String.fromCharCode.apply(null,o)},t.POW2=Math.pow(2,2),t.POW3=Math.pow(2,3),t.POW4=Math.pow(2,4),t.POW8=Math.pow(2,8),t.POW16=Math.pow(2,16),t.POW24=Math.pow(2,24),t.kb={p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[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],s1:[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],s2:[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],s3:[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],k:[202,218,204,100]},t}();vj.Cryptor=wj;var Sj=function(){function t(){}return t.eqaulsUpperDomain=function(t,e){return t==e||0===t.indexOf("*")&&(t=t.substr(1,t.length-1),e.substr(e.indexOf(t),t.length)==t)},t._getLDKey=function(t){for(var e="",i=0,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]>>1);return e},t.includedDomains=function(t,e,i){for(var r=t.split(","),n=0,o=r.length;n<o;n++){var s=r[n];if(this.eqaulsUpperDomain(s,e))return!0;if(i&&s&&"*"===s[0]&&"*."!==s.substring(0,2))if(new RegExp("^/"+s.substring(1)+"/").exec(i))return!0}return!1},t.decrypt=function(t){for(var e={},i=wj.decrypt(t,"dkdl"+this._getLDKey(wj.kb.k)).split(";"),r=0,n=i.length;r<n;r++){var o=i[r].split("="),s=o[0],a=o[1];a&&a.length>0&&(e[s]=a)}return e},t}();vj.$_lc=function(){var t,e=location.hostname,i="RealChart를 사용하려면 도움말을 참조하세요.\nhttps://www.realchart.co.kr/";try{if(!(t=bj.globalRealChartInfo.code||window.realChartLic))throw new Error(i)}catch(t){throw new Error(i)}var r=Sj.decrypt(t);if("RealChart"!==r.name||"RealChart"!==bj.globalRealChartInfo.name)throw new Error(i);try{var n=r.server.toLowerCase(),o=location.pathname.toLowerCase();if(bj.globalRealChartInfo.license!=bj.LicType.Developer&&!Sj.includedDomains(n,e.toLowerCase(),o))throw new Error(i);var s=r.lic.toLowerCase();if(!Object.values(bj.LicType).includes(s))throw new Error(i);if(bj.globalRealChartInfo.license=r.lic,s==bj.LicType.Evaluation||s==bj.LicType.Limited){var a=r.expire.split(".").map((function(t){return parseInt(t)})),l=new Date(a[0],a[1],a[2],23,59,59,999);if(new Date>l)throw new Error("라이선스가 만료되었습니다.")}}catch(t){throw new Error(i)}return!0};var Pj={},Aj=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Pj,"__esModule",{value:!0}),Pj.createDomAnimation=Pj.DomAnimation=Pj.RcAnimation=Pj.createAnimation=void 0;var Oj=iM,Cj=nM,Vj={linear:function(t){return t},inOutSine:function(t){return-((0,Oj.cos)(Cj.PI*t)-1)/2}};Pj.createAnimation=function(t,e,i,r,n,o){var s=(0,Cj.newObject)(e,null!=i?i:"initial"),a=(0,Cj.newObject)(e,r),l=t.animate([s,a],{duration:n,fill:"none"});return o&&(l?l.addEventListener("finish",o):setTimeout(o,0)),l};var Ej=function(){function t(){var e=this;this.delay=0,this.duration=t.DURATION,this.easing="inOutSine",this._handler=function(){var t=+new Date,i=t-e._prev,r=t-e._started-e.delay,n=(0,Oj.minv)(1,(0,Oj.maxv)(0,(0,Cj.fixnum)(r/e.duration)));e._easing&&(n=e._easing(n)),e._rate=n,e._prev=t;try{(!e._canUpdate()||!1===e._doUpdate(n,i)||isFinite(e.duration)&&!e._timer)&&e._stop(!0)}finally{r>=e.duration?e._stop(!1):!e._started||isFinite(e.duration)&&!e._timer||(e._ani=window.requestAnimationFrame(e._handler))}}}return t.prototype.start=function(t){return this.endHandler||(this.endHandler=t),this._start(this.duration,this.delay,this.easing),this},t.prototype.cancel=function(){this._stop(!0)},t.prototype.rate=function(){return this._rate||0},t.prototype._start=function(e,i,r){var n=this;void 0===i&&(i=0),void 0===r&&(r=null),this._started&&this._stop(!0),this.duration=(0,Oj.pickNum)(e,t.DURATION),this.delay=i||0,this._easing=Vj[r],this._doStart(),this._started=this._prev=+new Date,isFinite(this.duration)&&(this._timer=setTimeout((function(){return n._stop(!1)}),1.2*this.duration)),this._handler()},t.prototype._stop=function(t){var e;this._started&&(cancelAnimationFrame(this._ani),clearTimeout(this._timer),this._timer=null,this._started=null,this._doStop(),null===(e=this.endHandler)||void 0===e||e.call(this,this,t))},t.prototype._doStart=function(){},t.prototype._doStop=function(){},t.prototype._canUpdate=function(){return!0},t.DURATION=700,t.SHORT_DURATION=300,t}();Pj.RcAnimation=Ej;var kj=function(t){function e(e){var i=t.call(this)||this;return i.props=e,e.duration>0&&(i.duration=e.duration),i.endHandler=function(t,e){var r,n;null===(n=(r=i.props).endHandler)||void 0===n||n.call(r,i,e),i.props.dom=null,i.props=null},i}return Aj(e,t),e.prototype._canUpdate=function(){return this.props.dom&&!!this.props.dom.parentElement},e.prototype._doUpdate=function(t){return!1!==this.props.update(this.props,t)},e}(Ej);Pj.DomAnimation=kj;Pj.createDomAnimation=function(t){return new kj(t).start()};var Tj={},Lj=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},Nj=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(Tj,"__esModule",{value:!0}),Tj.PathBuilder=void 0;var Mj=iM,jj=function(t){return isNaN(t)?0:t},Rj=function(){function t(){this._path=[]}return t.prototype.length=function(){return this._path.length},t.prototype.isEmpty=function(){return 0===this._path.length},t.prototype.clear=function(){return this._path=[],this},t.prototype.reset=function(t,e){return this._path=[],this.move(t,e),this},t.prototype.end=function(t){return void 0===t&&(t=!1),this._path.length>0?(t&&this._path.push("Z"),this._path.join(" ")):""},t.prototype.close=function(t){var e=this.end(!0);return t&&this.clear(),e},t.prototype.push=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return e.forEach((function(e){(0,Mj.isNumber)(e)||(0,Mj.isString)(e)?t._path.push(e):t._path.push(e.x,e.y)})),this},t.prototype.move=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("M",t,e):this._path.push("M",t.x,t.y),this},t.prototype.moveBy=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("m",t,e):this._path.push("m",t.x,t.y),this},t.prototype.line=function(t,e){return(0,Mj.isNumber)(t)?this._path.push("L",t,e):this._path.push("L",t.x,t.y),this},t.prototype.moveOrLine=function(t,e,i){return t?this._path.push("L",e,i):this._path.push("M",e,i),this},t.prototype.vline=function(t,e,i){return this._path.push("M",t,e,"L",t,i),this},t.prototype.hline=function(t,e,i){return this._path.push("M",e,t,"L",i,t),this},t.prototype.curve=function(t,e,i,r,n,o){return this._path.push("C",t,e,i,r,n,o),this},t.prototype.quad=function(t,e,i,r){return(0,Mj.isNumber)(t)?this._path.push("Q",t,e,i,r):this._path.push("Q",t.x1,t.y1,t.x2,t.y2),this},t.prototype.rect=function(t,e,i,r){return this._path.push("M",t,e,"l",i,0,"l",0,r,"l",-i,0),this},t.prototype.lines=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if((0,Mj.isNumber)(t[0]))for(var i=0;i<t.length;i+=2)this._path.push("L",jj(t[i]),jj(t[i+1]));else for(i=0;i<t.length;i++)this._path.push("L",jj(t[i].x),jj(t[i].y));return this},t.prototype.polygon=function(){for(var t,e,i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return(0,Mj.isNumber)(i[0])?(t=this.move(i[0],i[1])).lines.apply(t,Nj([],Lj(i.slice(2)),!1)):(e=this.move(i[0])).lines.apply(e,Nj([],Lj(i.slice(1)),!1)),this._path.push("Z"),this},t.prototype.circle=function(t,e,i){return this._path.push("M ".concat(t-i," ").concat(e," a ").concat(i," ").concat(i," 0 1 0 ").concat(2*i," 0 a ").concat(i," ").concat(i," 0 1 0 ").concat(2*-i," 0")),this},t.prototype.donut=function(t,e,i,r){return this._path.push("M ".concat(t-i," ").concat(e," a ").concat(i," ").concat(i," 0 1 1 ").concat(2*i," 0 a ").concat(i," ").concat(i," 0 1 1 ").concat(2*-i," 0 Z")),this._path.push("M ".concat(t-r," ").concat(e," a ").concat(r," ").concat(r," 0 1 0 ").concat(2*r," 0 a ").concat(r," ").concat(r," 0 1 0 ").concat(2*-r," 0 Z")),this},t.prototype.getMove=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"M"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getLine=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"L"===this._path[t]){var i={x:this._path[t+1],y:this._path[t+2]};return e&&this._path.splice(t,3),i}},t.prototype.getQuad=function(t,e){if(void 0===t&&(t=0),void 0===e&&(e=!0),t<this._path.length&&"Q"===this._path[t]){var i={x1:this._path[t+1],y1:this._path[t+2],x2:this._path[t+3],y2:this._path[t+4]};return e&&this._path.splice(t,5),i}},t.prototype.getPoints=function(t,e,i){void 0===i&&(i=!0);for(var r=[];t<this._path.length&&r.length<e&&t<this._path.length&&("M"===this._path[t]||"L"===this._path[t]);)r.push({x:this._path[t+1],y:this._path[t+2]}),i&&this._path.splice(t,3);return r},t.prototype.spline=function(t,e,i){var r=e;if(i<0&&(i=t.length-1),1!==Math.abs(i-e)){var n=.35,o={x:0,y:0},s={x:0,y:0},a={x:0,y:0},l={x:t[r+1].px-t[r].px,y:t[r+1].py-t[r].py},u={x:0,y:0},c=Math.sqrt(l.x*l.x+l.y*l.y);if(0!==c){l.x/=c,l.y/=c;var p=t[r+1].px-t[r].px,h=t[r].px,f=t[r].py;for(++r;r!=i;r++){a.x=-l.x,a.y=-l.y,l.x=t[r+1].px-t[r].px,l.y=t[r+1].py-t[r].py,c=Math.sqrt(l.x*l.x+l.y*l.y),l.x/=c,l.y/=c,l.x<a.x?(u.x=a.x-l.x,u.y=a.y-l.y):(u.x=l.x-a.x,u.y=l.y-a.y);var d=Math.sqrt(u.x*u.x+u.y*u.y);u.x/=d,u.y/=d,a.y*l.y>=0&&(u={x:1,y:0}),o.x=-u.x*p*n,o.y=-u.y*p*n;var _=h+s.x,y=f+s.y,g=t[r].px+o.x,v=t[r].py+o.y;this.curve(_,y,g,v,t[r].px,t[r].py),p=t[r+1].px-t[r].px,s.x=u.x*p*n,s.y=u.y*p*n,h=t[r].px,f=t[r].py}this.curve(h+s.x,f+s.y,t[r].px,t[r].py,t[r].px,t[r].py)}else this.line(t[i].px,t[i].py)}else this.line(t[r+1].px,t[r+1].py)},t.prototype.closedSpline=function(t,e){var i=t.length;if(i<3)this.line(t[1].px,t[1].py);else for(var r=.17,n=e?function(e){return t[(e+i)%i]}:function(e){return e<0?t[0]:e>=i?t[i-1]:t[e]},o=0,s=i-(e?0:1);o<s;o++){var a=n(o-1),l=n(o),u=n(o+1),c=n(o+2),p=l.px+(u.px-a.px)*r,h=l.py+(u.py-a.py)*r,f=u.px-(c.px-l.px)*r,d=u.py-(c.py-l.py)*r;this.curve(p,h,f,d,u.px,u.py)}},t}();Tj.PathBuilder=Rj;var Bj=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Dj=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ij=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},Gj=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(fj,"__esModule",{value:!0}),fj.DragTracker=fj.ClipDonutElement=fj.ClipCircleElement=fj.ClipPathElement=fj.PathElement=fj.ClipRectElement=fj.ClipElement=fj.LayerElement=fj.RcHtmlElement=fj.RcElement=fj.RcControl=void 0;var Fj=_M,zj=nM,$j=dj,Hj=oM,Wj=iM,Uj=rM,Xj=vj,Yj=mj,qj=Pj,Zj=Tj,Kj={position:"relative",width:"100%",height:"100%",boxSizing:"border-box","-webkit-touch-callout":"none","-webkit-user-select":"none","user-select":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"},Jj=function(t){function e(i,r,n){var o=t.call(this)||this;return o._inited=!1,o._testing=!1,o._dirty=!0,o._toAnimation=0,o._invalidateLock=!1,o._lockDirty=!1,o._cssVars={},o._wSave=NaN,o._hSave=NaN,o.loaded=!1,o._windowResizeHandler=function(t){o._domResized()},o._domResizeHandler=function(t){o._domResized()},o._clickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleClick(o.toOffset(t))},o._dblClickHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDblClick(o.toOffset(t))},o._touchMoveHandler=function(t){},o._pointerDownHandler=function(t){o._pointerHandler&&o._pointerHandler.handleDown(o.toOffset(t))},o._pointerMoveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleMove(o.toOffset(t))},o._pointerUpHandler=function(t){o._pointerHandler&&o._pointerHandler.handleUp(o.toOffset(t))},o._pointerCancelHandler=function(t){},o._pointerLeaveHandler=function(t){o._pointerHandler&&o._pointerHandler.handleLeave(o.toOffset(t))},o._keyPressHandler=function(t){},o._wheelHandler=function(t){},(0,Xj.$_lc)(),!i&&$j.Dom.instanceOf(r,"div")&&(i=r.ownerDocument),o._initControl(i||document,r,n||e.CLASS_NAME),"undefined"!=typeof window&&window.ResizeObserver&&(o._resizeObserver=new ResizeObserver(o._domResizeHandler)),o._resigterEventHandlers(o._dom),o._inited=!0,o.invalidate(!0),o}return Bj(e,t),e.prototype._doDestroy=function(){this._requestTimer&&(window.requestAnimationFrame?cancelAnimationFrame(this._requestTimer):clearTimeout(this._requestTimer)),this._unresigterEventHandlers(this._dom),$j.Dom.remove(this._dom),this._dom=null,this._container=null},e.prototype.isInited=function(){return this._inited},e.prototype.isTesting=function(){return this._testing},e.prototype.doc=function(){return this._dom.ownerDocument},e.prototype.win=function(){return this._dom.ownerDocument.defaultView},e.prototype.dom=function(){return this._dom},e.prototype.svg=function(){return this._svg},e.prototype.width=function(){return this._container.offsetWidth},e.prototype.height=function(){return this._container.offsetHeight},e.prototype.contentWidth=function(){return this.width()-this._padding.left-this._padding.right},e.prototype.contentHeight=function(){return this.height()-this._padding.top-this._padding.bottom},e.prototype.contentRight=function(){return this.width()-this._padding.right},e.prototype.canvasCtx=function(){return this._canvas.getContext("2d")},e.prototype.setData=function(t,e,i){(0,zj.isNull)(e)?(this._root.dom.removeAttribute("data-"+t),i&&this._dom.removeAttribute("data-"+t)):(this._root.dom.setAttribute("data-"+t,e),i&&this._dom.setAttribute("data-"+t,e))},e.prototype.addClip=function(t){return this._defs.appendChild(t.dom),t},e.prototype.clearDefs=function(){$j.Dom.clearChildren(this._defs)},e.prototype.$_clearDefs=function(t){for(var e=this._defs.children||[],i=e.length-1;i>=0;i--)e[i].hasAttribute(t)&&e[i].remove()},e.prototype.clearAssetDefs=function(){this.$_clearDefs(Qj.ASSET_KEY)},e.prototype.clearClipDefs=function(){Array.from(this._defs.getElementsByTagNameNS(Wj.SVGNS,"clipPath")).forEach((function(t){return t.remove()}))},e.prototype.clearTemporaryDefs=function(){this.$_clearDefs(Qj.TEMP_KEY)},e.prototype.appendDom=function(t){return t&&this._htmlRoot.append(t),t},e.prototype.appendSvg=function(t){return t&&this._htmlRoot.append(t.dom),t},e.prototype.addElement=function(t){return t&&this._root.add(t)},e.prototype.setPointerHandler=function(t){this._pointerHandler=t},e.prototype.invalidate=function(t){void 0===t&&(t=!1),t||!this._invalidateLock&&!this._dirty&&this._inited?(this._dirty=!0,this._requestTimer||this._testing||this.$_requestRender()):this._invalidateLock&&(this._lockDirty=!0)},e.prototype.invalidateLayout=function(t){void 0===t&&(t=!1),this.invalidate(t)},e.prototype.setLock=function(){this._invalidateLock=!0},e.prototype.releaseLock=function(t){void 0===t&&(t=!0),this._invalidateLock&&(this._invalidateLock=!1),this._lockDirty&&t&&this.invalidate(),this._lockDirty=!1},e.prototype.lock=function(t){this.setLock();try{t(this)}finally{this.releaseLock()}},e.prototype.silentLock=function(t){this.setLock();try{t(this)}finally{this.releaseLock(!1)}},e.prototype.setResizeDelay=function(t){this._resizeDelay=t},e.prototype.getBounds=function(){return this._bounds},e.prototype.setAnimation=function(t){this._toAnimation=t||0},e.prototype.fling=function(t,e){},e.prototype.getCssVar=function(t){var e=this._cssVars[t];return t in this._cssVars?this._cssVars[t]:(e=getComputedStyle(this._root.dom).getPropertyValue(t),this._cssVars[t]=e,e)},e.prototype.clipBounds=function(t,e,i,r,n){return void 0===t&&(t=NaN),void 0===e&&(e=NaN),void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=0),this.addClip(new nR(this.doc(),t,e,i,r,n,n))},e.prototype.clipCircle=function(){return this.addClip(new aR(this.doc()))},e.prototype.clipDonut=function(){return this.addClip(new lR(this.doc()))},e.prototype.clipPath=function(){return this.addClip(new sR(this.doc()))},e.prototype.addDef=function(t){this._defs.appendChild(t)},e.prototype.removeDef=function(t){var e,i;if((0,Wj.isString)(t))try{for(var r=Dj(Array.from(this._defs.children)),n=r.next();!n.done;n=r.next()){var o=n.value;if($j.Dom.isElement(o)&&o.id===t){t=o;break}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}$j.Dom.isElement(t)&&t.parentNode===this._defs&&this._defs.removeChild(t)},e.prototype.containerToElement=function(t,e,i){var r=this._container.getBoundingClientRect(),n=t.getBounds();return{x:e-n.x+r.x,y:i-n.y+r.y}},e.prototype.svgToElement=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e-n.left+r.left,y:i-n.top+r.top}},e.prototype.elementToSvg=function(t,e,i){var r=this._svg.getBoundingClientRect(),n=t.getBounds();return{x:e+n.left-r.left,y:i+n.top-r.top}},e.prototype.getIEColor=function(t){return!t||t.startsWith("#")||t.startsWith("rgb")||(this._tester.style.color=t,t=getComputedStyle(this._tester).color),t},e.prototype.getRootDistance=function(){var t=this._svg.getBoundingClientRect(),e=this._root.getBounds();return{x:e.x-t.x,y:e.y-t.y}},e.prototype._setTesting=function(){this._testing=!0,Qj.TESTING=!0},e.prototype._setSize=function(t,e){isNaN(t)||(this._container.style.width=t+"px"),isNaN(e)||(this._container.style.height=e+"px")},e.prototype.$_addListener=function(t,e,i,r){r?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i)},e.prototype._resigterEventHandlers=function(t){var e;window.addEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.observe(t),this.$_addListener(t,"click",this._clickHandler),this.$_addListener(t,"dblclick",this._dblClickHandler),this.$_addListener(t,"touchmove",this._touchMoveHandler,!0),this.$_addListener(t,"pointerdown",this._pointerDownHandler),this.$_addListener(t,"pointermove",this._pointerMoveHandler),this.$_addListener(t,"pointerup",this._pointerUpHandler),this.$_addListener(t,"pointercancel",this._pointerCancelHandler),this.$_addListener(t,"pointerleave",this._pointerLeaveHandler),this.$_addListener(t,"keypress",this._keyPressHandler),this.$_addListener(t,"wheel",this._wheelHandler,!0)},e.prototype._unresigterEventHandlers=function(t){var e,i;window.removeEventListener("resize",this._windowResizeHandler),null===(e=this._resizeObserver)||void 0===e||e.unobserve(t),null===(i=this._resizeObserver)||void 0===i||i.disconnect(),t.removeEventListener("click",this._clickHandler),t.removeEventListener("dblclick",this._dblClickHandler),t.removeEventListener("touchmove",this._touchMoveHandler),t.removeEventListener("pointerdown",this._pointerDownHandler),t.removeEventListener("pointermove",this._pointerMoveHandler),t.removeEventListener("pointerup",this._pointerUpHandler),t.removeEventListener("pointercancel",this._pointerCancelHandler),t.removeEventListener("pointerleave",this._pointerLeaveHandler),t.removeEventListener("keypress",this._keyPressHandler),t.removeEventListener("wheel",this._wheelHandler)},e.prototype._prepareRenderers=function(t){},e.prototype._initControl=function(t,e,i){if(!this._inited){var r=t.defaultView;e instanceof r.HTMLDivElement?this._container=e:this._container=t.getElementById(e),this._container instanceof r.HTMLDivElement||(0,zj.throwFormat)(Hj.locale.invalidOuterDiv,e),t=this._container.ownerDocument;var n=this._dom=t.createElement("div");(0,Wj.assignObj)(n.style,Kj),n.className=i,this._container.appendChild(n);var o=this._svg=t.createElementNS(Wj.SVGNS,"svg");o.classList.add("rct-svg"),o.setAttribute("width","100%"),o.setAttribute("height","100%");var s=t.createElement("desc");s.textContent="Created by RealChart v"+Yj.globalRealChartInfo.version,o.appendChild(s);var a=this._defs=t.createElementNS(Wj.SVGNS,"defs");this._initDefs(t,a),o.appendChild(a),n.appendChild(o),this._root=new iR(this),o.appendChild(this._root._dom),this._htmlRoot=t.createElement("div"),n.appendChild(this._htmlRoot),(0,Wj.assignObj)(this._htmlRoot.style,{position:"absolute",overflow:"visible"}),this._tester=t.createElement("div"),n.appendChild(this._tester),Uj.isIE&&(this._canvas=t.createElement("canvas"))}},e.prototype._initDefs=function(t,i){var r=t.createElementNS(Wj.SVGNS,"filter");r.setAttribute("id",e.SHADOW_FILTER);var n=t.createElementNS(Wj.SVGNS,"feGaussianBlur");n.setAttribute("stdDeviation","1.5"),n.setAttribute("in","SourceAlpha"),r.appendChild(n);var o=t.createElementNS(Wj.SVGNS,"feOffset");o.setAttribute("dx","1"),o.setAttribute("dy","1"),o.setAttribute("result","offsetblur"),r.appendChild(o);var s=t.createElementNS(Wj.SVGNS,"feFlood");s.setAttribute("flood-color","#000"),r.appendChild(s);var a=t.createElementNS(Wj.SVGNS,"feComposite");a.setAttribute("in2","offsetblur"),a.setAttribute("operator","in"),r.appendChild(a);var l=t.createElementNS(Wj.SVGNS,"feMerge"),u=t.createElementNS(Wj.SVGNS,"feMergeNode"),c=t.createElementNS(Wj.SVGNS,"feMergeNode");c.setAttribute("in","SourceGraphic"),l.appendChild(u),l.appendChild(c),r.appendChild(l),i.appendChild(r)},e.prototype._render=function(){this.$_render()},e.prototype.$_requestRender=function(){var t=this;this.orphaned||(window.requestAnimationFrame?this._requestTimer=window.requestAnimationFrame((function(){return t.$_render()})):this._requestTimer=setTimeout((function(){t.$_render()}),0))},e.prototype.updateNow=function(){this.$_render()},e.prototype._canOverflowRender=function(){return!1},e.prototype.$_render=function(){if(!this.orphaned)if(this._bounds=this._dom.getBoundingClientRect(),+new Date<=this._toAnimation)this.$_requestRender();else{Uj.Utils.LOGGING&&console.time("render chart");try{this._doBeforeRender();var t=this._dom.getBoundingClientRect(),e=this._svg.getBoundingClientRect(),i=this._svg.clientWidth,r=this._svg.clientHeight,n=this._canvas;!n||n.width===i&&n.height==r||(n.width=i,n.height=r,n.style.width=(0,zj.pixel)(i),n.style.height=(0,zj.pixel)(r)),(0,Wj.assignObj)(this._htmlRoot.style,{left:(0,zj.pixel)(e.left-t.left),top:(0,zj.pixel)(e.top-t.top)});var o=this._container.firstElementChild;o.removeAttribute("style"),(0,Wj.assignObj)(o.style,Kj),this._doRenderBackground(o,this._root,i,r);var s=this._padding=$j.Dom.getPadding(this._root.dom);this._doRender({x:s.left,y:s.top,width:i-s.left-s.right,height:r-s.top-s.bottom})}finally{this.loaded=!0,this._dirty=!1,this._requestTimer=null,this._doAfterRender(),Uj.Utils.LOGGING&&console.timeEnd("render chart")}}},e.prototype._doBeforeRender=function(){},e.prototype._doAfterRender=function(){},e.prototype._doRenderBackground=function(t,e,i,r){},e.prototype._domResized=function(){var t=this,e=this.width(),i=this.height(),r=this._resizeDelay;if(e!==this._wSave||i!==this._hSave){var n=!isNaN(this._wSave)&&!isNaN(this._hSave);this._wSave=e,this._hSave=i,this._resizeTimer&&clearTimeout(this._resizeTimer),r>0?this._resizeTimer=setTimeout((function(){n&&t.invalidateLayout(),t._resizeTimer=null}),r):this.invalidateLayout()}},e.prototype.toOffset=function(t){var e=this._container.getBoundingClientRect();return t.pointX=t.clientX-e.left,t.pointY=t.clientY-e.top,t},e.prototype.setPointerCapture=function(t){this._dom.setPointerCapture(t.pointerId)},e.prototype.releasePointerCapture=function(t){this._dom.releasePointerCapture(t.pointerId)},e.CLASS_NAME="rct-control",e.SHADOW_FILTER="rr-chart-shadow-filter",e._animatable=!0,e}(Fj.RcObject);fj.RcControl=Jj;var Qj=function(t){function e(e,i,r){void 0===r&&(r=zj._undef);var n=t.call(this)||this;return n._visible=!0,n._scaleX=1,n._scaleY=1,n._rotation=0,n._styles={},n._styleDirty=!1,n._dom=e.createElementNS(Wj.SVGNS,r||"g"),(n._styleName=i||"")&&n.setAttr("class",n._styleName),n}return Bj(e,t),e.prototype._doDestroy=function(){this.remove()},Object.defineProperty(e.prototype,"doc",{get:function(){return this._dom.ownerDocument},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"win",{get:function(){return this._dom.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._parent&&this._parent.control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(t){t!==this._x&&(this._x=t,this.setAttr("x",this._x))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this._tx},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(t){t!==this._y&&(this._y=t,this.setAttr("y",this._y))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this._ty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,isNaN(t)?this.removeAttr("width"):this.setAttr("width",t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,isNaN(t)?this.removeAttr("height"):this.setAttr("height",t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tright",{get:function(){return this._tx+this._dom.getBBox().width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tbottom",{get:function(){return this._ty+this._dom.getBBox().height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this.setVis(t)},enumerable:!1,configurable:!0}),e.prototype.setVis=function(t){return t!==this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=t?"":"none")),this._visible},Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){t!=this._rotation&&(this._rotation=t,this._updateTransform())},enumerable:!1,configurable:!0}),e.prototype.setRotation=function(t,e,i){return t===this._originX&&e===this._originY&&i===this._rotation||(this._originX=t,this._originY=e,this._rotation=i,this._updateTransform()),this},e.prototype.getStyle=function(t){return window.getComputedStyle(this._dom).getPropertyValue(t)},e.prototype.hasStyle=function(t){return this.dom.classList.contains(t)},e.prototype.add=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertChild=function(t,e){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,e._dom),t._doAttached(this)),t},e.prototype.insertAfter=function(t,e){return t&&t._parent!==this&&(t._parent=this,e._dom.nextSibling?this._dom.insertBefore(t._dom,e._dom.nextSibling):this._dom.appendChild(t._dom),t._doAttached(this)),t},e.prototype.insertFirst=function(t){return t&&t._parent!==this&&(t._parent=this,this._dom.insertBefore(t._dom,this._dom.firstChild),t._doAttached(this)),t},e.prototype.appendElement=function(t,e){var i=t.createElementNS(Wj.SVGNS,e);return this._dom.appendChild(i),i},e.prototype.insertElement=function(t,e,i){var r=t.createElementNS(Wj.SVGNS,e);return this._dom.insertBefore(r,i),r},e.prototype.remove=function(){return this._parent&&(this._parent._dom.removeChild(this._dom),this._parent=null,this._doDetached(this)),this},e.prototype.getAttr=function(t){return this._dom.getAttribute(t)},e.prototype.removeAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.setAttr=function(t,e){return this._dom.setAttribute(t,e),this},e.prototype.setAttrEx=function(t,e){return(0,zj.isNull)(e)?this._dom.removeAttribute(t):this._dom.setAttribute(t,e),this},e.prototype.setAttrs=function(t){for(var e in t)this._dom.setAttribute(e,t[e]);return this},e.prototype.unsetAttr=function(t){return this._dom.removeAttribute(t),this},e.prototype.getBounds=function(){return this._dom.getBoundingClientRect()},e.prototype.setBounds=function(t,e,i,r){return this.trans(t,e),this.resize(i,r),this},e.prototype.setRect=function(t){return this.trans(t.x,t.y),this.resize(t.width,t.height),this},e.prototype.getRect=function(){return{x:this._tx,y:this._ty,width:this.width,height:this.height}},e.prototype.getSize=function(){return{width:this.width,height:this.height}},e.prototype.getBBox=function(){return this._dom.getBBox()},e.prototype.getBBoxEx=function(){var t=this._dom.getBBox();return Uj.isIE&&(t={x:t.x,y:t.y,width:t.width,height:t.height}),t.x+=this._tx,t.y+=this._ty,t},e.prototype.inflateBBox=function(t,e){var i=this._dom.getBBox();return Uj.isIE&&(i={x:i.x,y:i.y,width:i.width,height:i.height}),i.x+=this._tx,i.y+=this._ty,i.x-=t,i.width+=2*t,i.y-=e,i.height+=2*e,i},e.prototype.controlToElement=function(t,e){return this.control.containerToElement(this,t,e)},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this,t,e)},e.prototype.elementToSvg=function(t,e){return this.control.elementToSvg(this,t,e)},e.prototype.move=function(t,e){return this.x=t,this.y=e,this},e.prototype.setPos=function(t,e){this._x=t,this._y=e},e.prototype.setPosY=function(t){this._y=t},e.prototype.isDomAnimating=function(){return this._ani instanceof qj.DomAnimation||!!this._dom.getAnimations&&this._dom.getAnimations().length>0},e.prototype.rotate=function(t){return t!==this._rotation&&(this._rotation=t,this._updateTransform()),this},e.prototype.internalRotate=function(t){this._rotation=t},e.prototype.scale=function(t,e){return void 0===e&&(e=NaN),e=isNaN(e)?t:e,this._scaleX===t&&this._scaleY===e||(this._scaleX=t,this._scaleY=e,this._updateTransform()),this},e.prototype.trans=function(t,e){return t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,t===this._tx&&e===this._ty||(this._tx=t,this._ty=e,this._updateTransform()),this},e.prototype.transp=function(t){return this.trans(t.x,t.y)},e.prototype.$_cleanMove=function(t,e){var i;this._updateTransform(),e&&(null===(i=this.control)||void 0===i||i.invalidateLayout()),t===this._moveAni&&(this._moveAni=null)},e.prototype.transEx=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._moveAni=this._dom.animate([{transform:"translate(".concat(this._tx||0,"px,").concat(this._ty||0,"px)")},{transform:"translate(".concat(t,"px,").concat(e,"px)")}],{duration:i,fill:"none"});this._tx=t,this._ty=e,o?(o.addEventListener("finish",(function(){n.$_cleanMove(o,r)})),o.addEventListener("cancel",(function(){n.$_cleanMove(o,r)}))):this.$_cleanMove(o,r)}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transEx2=function(t,e,i,r){var n=this;if(void 0===i&&(i=0),void 0===r&&(r=!0),t=Uj.Utils.isValidNum(t)?t:this._tx,e=Uj.Utils.isValidNum(e)?e:this._ty,this._moveAni&&(this._moveAni.cancel(),this._moveAni=null),t!==this._tx||e!==this._ty)if(i>0){var o=this._rotation||0,s="translate(".concat(this._tx||0,"px, ").concat(this._ty||0,"px)")+(o?" rotate(".concat(o,"deg)"):""),a="translate(".concat(t,"px, ").concat(e,"px)")+(o?" rotate(".concat(o,"deg)"):"");this._dom.style.transformOrigin="".concat(this._originX||0,"px ").concat(this._originY||0,"px");var l=this._moveAni=this._dom.animate([{transform:s},{transform:a}],{duration:i,fill:"none"});this._tx=t,this._ty=e,l?(l.addEventListener("finish",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)})),l.addEventListener("cancel",(function(){n._dom.style.transformOrigin="",n.$_cleanMove(l,r)}))):(this._dom.style.transformOrigin="",this.$_cleanMove(l,r))}else this._tx=t,this._ty=e,this._updateTransform();return this},e.prototype.transX=function(t){return t!==this._tx&&Uj.Utils.isValidNum(t)&&(this._tx=t,this._updateTransform()),this},e.prototype.transY=function(t){return t!==this._ty&&Uj.Utils.isValidNum(t)&&(this._ty=t,this._updateTransform()),this},e.prototype.shiftY=function(t){return this.transY(this._ty+t)},e.prototype.resize=function(t,e,i){void 0===i&&(i=!0);var r=!1;return t!==this._width&&(this._width=Math.max(0,t),i&&this.setAttrEx("width",this._width),r=!0),e!==this._height&&(this._height=Math.max(0,e),i&&this.setAttrEx("height",this._height),r=!0),r},e.prototype.appendDom=function(t){return t&&this._dom.appendChild(t),t},e.prototype.insertDom=function(t,e){return t&&this._dom.insertBefore(t,e),t},e.prototype.clearDom=function(){for(var t,e=this._dom;t=e.lastChild;)e.removeChild(t)},e.prototype.containsClass=function(t){return this._dom.classList.contains(t)},e.prototype.addClass=function(t){var e;return(e=this._dom.classList).add.apply(e,Gj([],Ij(t.split(" ").filter((function(t){return t.length>0}))),!1)),this},e.prototype.removeClass=function(t){return this._dom.classList.remove(t),this},e.prototype.saveStyles=function(){this._saveStyle=this._dom.getAttribute("style")||"",this._saveClass=this._dom.getAttribute("class")},e.prototype.restoreStyles=function(){void 0!==this._saveStyle&&(this._dom.setAttribute("style",this._saveStyle),this._dom.style.display=this._visible?"":"none",delete this._saveStyle),this._saveClass&&(this._dom.setAttribute("class",this._saveClass),delete this._saveClass)},e.prototype.internalClearStyles=function(){var t=this.dom.style;for(var e in this._styles)t.removeProperty((0,zj.getCssProp)(e));this._styles={}},e.prototype.clearStyles=function(){var t=this.dom.style,e=!1;for(var i in this._styles)t.removeProperty((0,zj.getCssProp)(i)),e=!0;return this._styles={},e&&(this._styleDirty=!0),e},e.prototype.clearStyle=function(t){var e,i,r=!1;if(t){var n=this.dom.style;try{for(var o=Dj(t),s=o.next();!s.done;s=o.next()){var a=s.value;a in this._styles&&(n.removeProperty((0,zj.getCssProp)(a)),delete this._styles[a],r=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}r&&(this._styleDirty=!0)}return r},e.prototype.internalSetStyles=function(t){if(t){var e=this.dom.style;for(var i in t)e[i]=this._styles[i]=t[i]}},e.prototype.internalImportantStylesOrClass=function(t){if((0,Wj.isString)(t))t&&this._dom.classList.add(t);else if((0,Wj.isObject)(t)){var e=this.dom.style;for(var i in t)e.setProperty((0,zj.getCssProp)(i),this._styles[i]=t[i],"important")}},e.prototype.setStyles=function(t){var e=!1;if(t){var i=this.dom.style;for(var r in t){var n=t[r];this._styles[r]!==n&&(this._styles[r]=n,"rx"==r&&this._dom.setAttribute(r,n),i[r]=n,e=!0)}e&&(this._styleDirty=!0)}return e},e.prototype.resetStyles=function(t){var e=this.clearStyles();return this.setStyles(t)||e},e.prototype._resetClass=function(){this._styleName?this.setAttr("class",this._styleName):this.unsetAttr("class")},e.prototype.clearStyleAndClass=function(){this.clearStyles(),this._resetClass()},e.prototype.internalClearStyleAndClass=function(){this.internalClearStyles(),this._resetClass()},e.prototype.setStyleOrClass=function(t){(0,Wj.isString)(t)?(this._resetClass(),t&&this.addClass(t)):this.resetStyles(t)},e.prototype.internalSetStyleOrClass=function(t){(0,Wj.isString)(t)?t&&this.addClass(t):this.internalSetStyles(t)},e.prototype.addStyleOrClass=function(t){(0,Wj.isString)(t)?t&&this.addClass(t):(0,Wj.isObject)(t)&&this.setStyles(t)},e.prototype.setClass=function(t){this.setAttr("class",t)},e.prototype.setStyle=function(t,e){var i=!1;return e!==this._styles[t]&&(i=this._styleDirty=!0,this._styles[t]=e,this.dom.style[t]=e),i},e.prototype.internalSetStyle=function(t,e){e!==this._styles[t]&&(this._styles[t]=e,this.dom.style[t]=e)},e.prototype.setColor=function(t){this.dom.style.fill=this.dom.style.stroke=this._styles.fill=this._styles.stroke=t},e.prototype.setFill=function(t){this.dom.style.fill=this._styles.fill=t},e.prototype.setStroke=function(t){this.dom.style.stroke=this._styles.stroke=t},e.prototype.setTransparent=function(t){this.dom.style.setProperty("fill","transparent",t?"important":""),this.dom.style.setProperty("stroke","none",t?"important":"")},e.prototype.textAlign=function(){return this._styles.textAlign},e.prototype.setData=function(t,e){null==e?this.dom.removeAttribute("data-"+t):this.dom.setAttribute("data-"+t,(0,Wj.pickProp)(e,""))},e.prototype.unsetData=function(t){this.dom.removeAttribute("data-"+t)},e.prototype.setBoolData=function(t,e){e?this.dom.setAttribute("data-"+t,""):this.dom.removeAttribute("data-"+t)},e.prototype.getData=function(t){return this.dom.getAttribute("data-"+t)},e.prototype.hasData=function(t){return null!=this.getData(t)},e.prototype.stopAni=function(){return this._ani&&(this._ani.cancel(),this._ani=null),this},e.prototype.removeLater=function(t,e){var i=this;return this._parent&&(t>0?this._ani=(0,qj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Wj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,r){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,i._ani=null,!r&&i.remove(),null==e||e(i)},from:(0,Wj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.remove()),this},e.prototype.hide=function(t){var e=this;return this._parent&&(t>0?this._ani=(0,qj.createDomAnimation)({dom:this._dom,delay:t,update:function(t,e){return t.dom.style.opacity=(0,Wj.maxv)(0,t.from*(1-e)),!0},endHandler:function(t,i){t.props.dom.style.opacity=t.props.from>=1?"":t.props.from,e._ani=null,!i&&e.setVis(!1)},from:(0,Wj.pickNum)(getComputedStyle(this._dom).opacity,1)}):this.setVis(!1)),this},e.prototype.isClip=function(t){return t&&t._dom.parentElement},e.prototype.clipRect=function(t,e,i,r,n){void 0===n&&(n=0);var o=this.control.clipBounds(t,e,i,r,n);return this.setClip(o),o},e.prototype.setClip=function(t){t?this.setAttr("clip-path","url(#"+(t.id||t)+")"):this.unsetAttr("clip-path")},e.prototype.setTemporary=function(){return this.setAttr(e.TEMP_KEY,1),this},e.prototype.setCursor=function(t){this._dom.style.cursor=t},e.prototype.ignorePointer=function(){this._dom.style.pointerEvents="none"},e.prototype.contains=function(t){return this._dom.contains(t)},e.prototype.front=function(t,e){if(this.parent){var i=this.parent._dom,r=this._dom,n=t.length;if(e){var o=e.sort((function(e,i){return t.indexOf(e)-t.indexOf(i)}))[e.length-1];this!==o&&(r.remove(),o===t[n-1]?i.appendChild(r):i.insertBefore(r,t[t.indexOf(o)+1].dom))}else n>1&&r!==i.lastElementChild&&(r.remove(),i.appendChild(r))}},e.prototype.back=function(t){if(this.parent&&t.length>1){var e=t.indexOf(this);this._dom.remove(),e<t.length-1?this.parent.dom.insertBefore(this._dom,t[e+1].dom):this.parent.dom.appendChild(this._dom)}},e.prototype.invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e.prototype.sort=function(t){var e=this;t.forEach((function(t){return e._dom.appendChild(t._dom)}))},e.prototype.getParent=function(t){for(var e=this._parent;e;){if(e instanceof t)return e;e=e._parent}},e.prototype._testing=function(){return e.TESTING},e.prototype._doAttached=function(t){},e.prototype._doDetached=function(t){},e.prototype._updateTransform=function(){this._dom.setAttribute("transform",this.getTransform())},e.prototype.getTransform=function(){var t=this._dom,e=this._tx,i=this._ty,r=[];(Uj.Utils.isValidNum(e)||Uj.Utils.isValidNum(i))&&(e=e||0,i=i||0,r.push("translate("+e+","+i+")")),this._rotation&&r.push("rotate("+this._rotation+" "+Uj.Utils.pick(this._originX,t.getAttribute("x"),0)+" "+Uj.Utils.pick(this._originY,t.getAttribute("y")||0)+")"),Uj.Utils.isNotEmpty(this._matrix)&&r.push("matrix("+this._matrix.join(",")+")");var n=Uj.Utils.getNumber(this._scaleX,1),o=Uj.Utils.getNumber(this._scaleY,1);return 1===n&&1===o||r.push("scale("+n+" "+o+")"),r.length?r.join(" "):""},e.DEBUGGING=!1,e.TESTING=!1,e.ASSET_KEY="_asset_",e.CLIP_KEY="_clip_",e.TEMP_KEY="_temp_",e}(Fj.RcObject);fj.RcElement=Qj;var tR=function(t){function e(e,i,r){void 0===r&&(r=!1);var n=t.call(this)||this;return n._control=i,n._dom=e.createElement("div"),r&&(n._svg=e.createElementNS(Wj.SVGNS,"svg"),$j.Dom.setStyles(n._svg,{width:"100%",height:"100%",boxSizing:"border-box",overflow:"visible"}),n._dom.appendChild(n._svg)),n._doInitDom(n._dom),n}return Bj(e,t),e.prototype._doInitDom=function(t){t.style.position="absolute"},e.prototype._doDestroy=function(){this._control=null,this._dom.remove()},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.addSvg=function(t){return t&&this._svg.appendChild(t.dom),t},e.prototype.setBounds=function(t,e,i,r){return $j.Dom.setStyles(this._dom,{left:"".concat(t,"px"),top:"".concat(e,"px"),width:"".concat(i,"px"),height:"".concat(r,"px")}),this},e.prototype.setVis=function(t){return this._dom.style.display=t?this._getDisplay():"none",this},e.prototype.isVisible=function(){return"none"!==this._dom.style.display},e.prototype.setVisibility=function(t){return this._dom.style.visibility=t?"visible":"hidden",this},e.prototype.hasVisibility=function(){return"hidden"!==this._dom.style.visibility},e.prototype._getDisplay=function(){return""},e}(Fj.RcObject);fj.RcHtmlElement=tR;var eR=function(t){function e(e,i){return t.call(this,e,i,"g")||this}return Bj(e,t),e}(Qj);fj.LayerElement=eR;var iR=function(t){function e(e){var i=t.call(this,e.doc(),"rct-root")||this;return i._control=e,i}return Bj(e,t),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!1,configurable:!0}),e}(Qj),rR=function(t){function e(e){var i=t.call(this,e,zj._undef,"clipPath")||this,r=i._id=Uj.Utils.uniqueKey()+"-";return i.setAttr("id",r),i}return Bj(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}(Qj);fj.ClipElement=rR;var nR=function(t){function e(e,i,r,n,o,s,a){void 0===i&&(i=NaN),void 0===r&&(r=NaN),void 0===n&&(n=NaN),void 0===o&&(o=NaN),void 0===s&&(s=0),void 0===a&&(a=0);var l=t.call(this,e)||this,u=l._rect=new Qj(e,null,"rect");return u.setAttr("fill","none"),s>0&&u.setAttr("rx",String(s)),a>0&&u.setAttr("ry",String(a)),isNaN(i)||u.setBounds(i,r,n,o),l.add(u),l}return Bj(e,t),e.prototype.setBounds=function(t,e,i,r){return this._rect.x=t,this._rect.y=e,this._rect.resize(i,r),this},e.prototype.resize=function(t,e,i){return this._rect.resize(t,e)},Object.defineProperty(e.prototype,"x",{get:function(){return this._rect.x},set:function(t){this._rect.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._rect.y},set:function(t){this._rect.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._rect.width},set:function(t){this._rect.width=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._rect.height},set:function(t){this._rect.height=t},enumerable:!1,configurable:!0}),e}(rR);fj.ClipRectElement=nR;var oR=function(t){function e(e,i){return t.call(this,e,i,"path")||this}return Bj(e,t),Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!1,configurable:!0}),e.prototype.setPath=function(t){var e=(0,Wj.isString)(t)?t:t.join(" ");return e!==this._path&&this.setAttr("d",this._path=e),this},e}(Qj);fj.PathElement=oR;var sR=function(t){function e(e){var i=t.call(this,e)||this;return i._path=new oR(e),i.add(i._path),i}return Bj(e,t),e.prototype.getPath=function(){return this._path.path},e.prototype.setPath=function(t){this._path.setPath(t)},e}(rR);fj.ClipPathElement=sR;var aR=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._circle=new Qj(e,null,"circle")),i}return Bj(e,t),e.prototype.setCircle=function(t,e,i){this._circle.setAttrs({cx:t,cy:e,r:i})},e}(rR);fj.ClipCircleElement=aR;var lR=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._donut=new oR(e)),i}return Bj(e,t),e.prototype.setDonut=function(t,e,i,r){this._donut.setPath((new Zj.PathBuilder).donut(t,e,i,r).end())},e}(rR);fj.ClipDonutElement=lR;var uR=function(){function t(){this.dragging=!1}return t.prototype.start=function(t,e,i,r,n){return this.cancel(),!!this._doStart(t,e,i,r,n)&&(this.dragging=!0,this._showFeedback(r,n),!0)},t.prototype.drag=function(t,e,i,r,n){return!(!this.dragging||!this._doDrag(t,e,i,r,n))&&(this._moveFeedback(r,n),!0)},t.prototype.cancel=function(){if(this.dragging)try{this.dragging=!1,this._hideFeedback()}finally{this._doCanceled()}},t.prototype.drop=function(t,e,i){if(this.dragging)try{this.dragging=!1,this._canAccept(t,e,i)?this._doCompleted(t,e,i):this._doCanceled()}finally{this.end(e,i)}},t.prototype.end=function(t,e){try{this.dragging=!1,this._hideFeedback()}finally{this._doEnded(t,e)}},t.prototype._canAccept=function(t,e,i){return!0},t.prototype._showFeedback=function(t,e){},t.prototype._moveFeedback=function(t,e){},t.prototype._hideFeedback=function(){},t.prototype._doStart=function(t,e,i,r,n){return!0},t.prototype._doCanceled=function(){},t.prototype._doCompleted=function(t,e,i){},t.prototype._doEnded=function(t,e){},t}();fj.DragTracker=uR;var cR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(uj,"__esModule",{value:!0}),uj.TextElement=uj.TextOverflow=uj.TextLayout=uj.TextAnchor=void 0;var pR,hR,fR,dR=cj,_R=iM,yR=fj,gR=nM;!function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(pR||(uj.TextAnchor=pR={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(hR||(uj.TextLayout=hR={})),function(t){t.TRUNCATE="truncate",t.WRAP="wrap",t.ELLIPSIS="ellipsis"}(fR||(uj.TextOverflow=fR={}));var vR=function(t){function e(e,i){void 0===i&&(i=void 0);var r=t.call(this,e,i,"text")||this;return r._layout=hR.TOP,r._overflow=fR.WRAP,r._dirty=!0,r._text="",r.anchor=pR.MIDDLE,r}return cR(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){(t=t||"")!==this._text&&(this._dirty=!0,this.dom.textContent=this._text=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"anchor",{get:function(){return this.getAttr("text-anchor")},set:function(t){t!==this.anchor&&this.setAttr("text-anchor",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(t){t!==this._layout&&(this._layout=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overflow",{get:function(){return this._overflow},set:function(t){t!==this._overflow&&(this._overflow=t,this.layoutText())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.getAttr("fill-opacity")},set:function(t){this.setAttr("fill-opacity",t)},enumerable:!1,configurable:!0}),e.prototype.getAscent=function(t){return.72*t},e.prototype.layoutText=function(t){var e,i=this.getBBox(),r=this.getAscent(isNaN(t)?i.height:t);switch(this._layout){case hR.MIDDLE:e=Math.floor(r/2);break;case hR.BOTTOM:e=0;break;default:e=Math.ceil(r)}this.y=e},e.prototype.isFitIn=function(t){return this.calcWidth()>=t},e.prototype.calcWidth=function(){var t=this._text.length;return t&&this.dom.getSubStringLength(0,t)},e.prototype.calcRangeWidth=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=Number.MAX_SAFE_INTEGER),t=(0,_R.maxv)(0,t),(e=(0,_R.minv)(this._text.length,e))>t?this.dom.getSubStringLength(t,e-t):0},e.prototype.truncate=function(t,e){var i=this._text;if(i){var r,n=this.dom,o=0,s=i.length;do{r=Math.ceil((o+s)/2),n.getSubStringLength(0,r)>t?s=r-1:o=r}while(o<s);for(this.text=i.substring(0,o)+gR.ELLIPSIS;o>0&&this.calcWidth()>t;)this.text=i.substring(0,--o)+gR.ELLIPSIS}},e.prototype.setContrast=function(t,e,i){return this.setStyleOrClass(dR.Color.isBright(getComputedStyle(t).fill)?e:i),this},e.prototype.clearDom=function(){t.prototype.clearDom.call(this),this._dirty=!0},e.prototype.setStyles=function(e){var i=t.prototype.setStyles.call(this,e);return i&&this.layoutText(),i},e.prototype.setStyle=function(e,i){var r=t.prototype.setStyle.call(this,e,i);return r&&this.layoutText(),r},e.prototype.getBBox=function(){return(this._dirty||this._styleDirty)&&(this._bounds=this.dom.getBBox(),this._dirty=this._styleDirty=!1),this._bounds},e.prototype.getBBoundsTest=function(){return(this._dirty||this._styleDirty)&&(this._bounds={x:this.x,y:this.y,width:100,height:30},this._dirty=this._styleDirty=!1),this._bounds},e.prototype.stain=function(){this._dirty=!0},e}(yR.RcElement);uj.TextElement=vR;var mR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),bR=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},xR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},wR=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(FM,"__esModule",{value:!0}),FM.SvgRichText=void 0;var SR=iM,PR=zM,AR=NM,OR=nM,CR=rM,VR=uj,ER="$_TH",kR="$_TW",TR=function(){function t(){}return t.prototype.tag=function(){return""},t.prototype.parse=function(t){return this.text=t,this._doParse(t),this},t.prototype.getText=function(t,e){var i=this._literals,r=this.text;if(i&&e.callback)for(var n=0;n<i.length;n+=4){var o=e.callback(t,i[n+1]);if("number"==typeof o&&!isNaN(o)||"bigint"==typeof o)(s=i[3]?AR.NumberFormatter.getFormatter(i[3]):e.numberFormatter)&&(o=s.toStr(o));else if(null==o)o=i[n+2]||"";else if(CR.Utils.isDate(o)){var s;(s=i[3]?PR.DatetimeFormatter.getFormatter(i[3]):e.timeFormatter)&&(o=s.toStr(o,e.startOfWeek||0))}r=r.replace(i[n],o)}return r},t.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i);return t.textContent=r,t},t.prototype._doParse=function(t){this._literals=[];for(var e=0;e<t.length;){var i=t.indexOf("${",e);if(i<0&&(i=t.indexOf("%{",e)),i<0)break;var r=t.indexOf("}",i+2);if(r<0)break;var n=t.substring(i,r+1),o=n.substring(2,n.length-1),s=o.indexOf(";");if(s>0){var a=o.indexOf(";",s+1);a>=s?this._literals.push(n,o.substring(0,s),o.substring(s+1,a),o.substring(a+1)):this._literals.push(n,o.substring(0,s),o.substring(s+1),OR._undef),0===this._literals[2].length&&(this._literals[2]=OR._undef)}else this._literals.push(n,o,OR._undef,OR._undef);e=r+1}return 0==this._literals.length&&(this._literals=null),this},t}(),LR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.prepareSpan=function(t,e,i){var r=this.getText(e,i),n=r.indexOf(">")+1,o=r.indexOf(this.tag(),n);return this._doPrepare(t,r,n,o),t},e.prototype._doPrepare=function(t,e,i,r){t.textContent=e.substring(i,r);var n=e.indexOf("style=");if(n>0&&n<i){var o=e[n+6],s=e.indexOf(o,n+7);s>0&&s<i&&t.setAttribute("style",e.substring(n+7,s))}},e}(TR),NR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</t>"},e}(LR),MR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</b>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-bold")},e}(LR),jR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mR(e,t),e.prototype.tag=function(){return"</i>"},e.prototype._doPrepare=function(e,i,r,n){t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-italic")},e}(LR),RR=function(t){function e(){var e=t.apply(this,xR([],bR(arguments),!1))||this;return e.target="_blank",e}return mR(e,t),e.prototype.tag=function(){return"</a>"},e.prototype._doPrepare=function(e,i,r,n){var o=this;i.substring(2,r-1).trim().split(/\s+/g).forEach((function(t){var e=t.indexOf("=");if(e>0){var i=t.substring(0,e),r=t.substring(e+1,t.length),n=r.substring(1,r.length-1);switch(i){case"href":o.url=n;break;case"target":o.target=n}}})),t.prototype._doPrepare.call(this,e,i,r,n),e.setAttribute("class","rct-text-link")},e}(LR),BR={t:NR,b:MR,i:jR,a:RR},DR=function(){function t(){}return Object.defineProperty(t.prototype,"words",{get:function(){return this._words.slice()},enumerable:!1,configurable:!0}),t.prototype.parse=function(t){function e(t){var e=i.length;e>0&&""===i[e-1].type?i[e-1].text+=t:i.push((new TR).parse(t))}for(var i=this._words=[],r=0;r<t.length;){if("<"==t[r]){var n=t[r+1],o=void 0;if(n in BR)if((u=t.indexOf(">",r+2))>=0){var s="</"+n+">",a=t.indexOf(s,u+1);if(a>=0){var l=t.substring(r,a+s.length);o=(new BR[n]).parse(l),r+=l.length}}if(!o){e(t.substring(r));break}this._words.push(o)}else{var u;if(!((u=t.indexOf("<",r+1))>=0)){e(t.substring(r));break}e(t.substring(r,u)),r=u}}return this},t}(),IR=/<br.*?>|\r\n|\n/,GR=function(){function t(t){this.setFormat(t)}return t.prototype.setFormat=function(t){t!==this._format&&this.$_parse(this._format=null!=t?String(t):t)},t.prototype.lines=function(){return this._lines.slice()},t.prototype.build=function(t,e,i,r,n){var o,s;if(this._isVertical)this.buildVertical(t,e,i,r,n);else{var a=t.doc,l=(0,SR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=t.getStyle("writing-mode"),y=this._vertical=_===OR._WritingMode.VERTICAL_LR||_===OR._WritingMode.VERTICAL_RL,g=0;g<p;g++){var v=c[g],m=0,b=0,x=null;try{for(var w=(o=void 0,wR(v.words.entries())),S=w.next();!S.done;S=w.next()){var P=bR(S.value,2),A=P[0],O=P[1],C=0===g&&0===A,V=g===p-1&&A===v.words.length-1,E=O.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,SR.isObject)(r.options)){var k=r.options,T=C&&k.prefix||"",L=V&&k.suffix||"";E.textContent=T+(E.textContent||"")+L}var N=E.getBBox();if(E[kR]=N.width,E[ER]=N.height,y?(m=(0,SR.maxv)(m,E[kR]),b+=E[ER]):(m+=E[kR],b=(0,SR.maxv)(b,E[ER])),x||(x=E),O instanceof RR){var M=a.createElementNS(SR.SVGNS,"a");M.setAttribute("href",O.url),M.setAttribute("target",O.target),M.appendChild(E),t.appendDom(M)}}}catch(t){o={error:t}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}d.push(x),v[ER]=b*l,v[kR]=m*l,f=(0,SR.maxv)(m,f),u=(0,SR.maxv)(b,u),h.push(0==g?v[kR]/2:v[kR])}if(p>0){var j=c[0];for(g=1;g<d.length;g++)if(d[g]){m=0,b=0;if(y?null!=d[g-1]&&(m=Math.floor(j[kR]-t.getAscent(j[kR]))+t.getAscent(c[g][kR])):b=j[ER]-t.getAscent(j[ER])+t.getAscent(c[g][ER]),null==d[0]&&d[g]==d.find((function(t){return null!=t})))(E=t.insertElement(a,"tspan",d[g])).textContent=".",E.style.fill="transparent",m+=(N=E.getBBox()).width,E[kR]=N.width,E[ER]=j[ER]=N.height,d[0]=E;switch(_){case OR._WritingMode.VERTICAL_LR:d[g].setAttribute("dx",String(m)),d[g].setAttribute("y","0");break;case OR._WritingMode.VERTICAL_RL:d[g].setAttribute("dx",String(-m)),d[g].setAttribute("y","0");break;default:d[g].setAttribute("x","0"),d[g].setAttribute("dy",String(b))}j=c[g]}if(y){var R=t.parent.dom.classList.contains("rct-annotation"),B=t.getBBox().width;m=(x=bR(d,1)[0])[kR];if(R)x.setAttribute("dx",String(_===OR._WritingMode.VERTICAL_RL?B-m/2:m/2));else switch(_){case OR._WritingMode.VERTICAL_LR:x.setAttribute("x",String((B-m)/-2));break;case OR._WritingMode.VERTICAL_RL:x.setAttribute("x",String((B-m)/2))}}else t.layoutText(c[0][ER])}}},t.prototype.buildVertical=function(t,e,i,r,n){var o,s,a=t.doc,l=(0,SR.pickNum)(this.lineHeight,1),u=0,c=this._lines,p=c.length,h=[],f=0,d=[];t.clearDom(),r=r||t;for(var _=0;_<p;_++){var y=c[_],g=0,v=0,m=null,b=!1;try{for(var x=(o=void 0,wR(y.words.entries())),w=x.next();!w.done;w=x.next()){var S=bR(w.value,2),P=S[0],A=S[1],O=0===_&&0===P,C=_===p-1&&P===y.words.length-1,V=A.prepareSpan(t.appendElement(a,"tspan"),r,n);if((0,SR.isObject)(r.options)){var E=r.options,k=O&&E.prefix||"",T=C&&E.suffix||"";V.textContent=k+(V.textContent||"")+T}" "===V.textContent&&(b=!0,V.textContent=".");var L=V.getBBox();if(V[kR]=L.width,V[ER]=L.height,b&&(V.textContent=" ",V[ER]*=.6,b=!1),g+=V[kR],v=(0,SR.maxv)(v,V[ER]),m||(m=V),A instanceof RR){var N=a.createElementNS(SR.SVGNS,"a");N.setAttribute("href",A.url),N.setAttribute("target",A.target),N.appendChild(V),t.appendDom(N)}}}catch(t){o={error:t}}finally{try{w&&!w.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}d.push(m),y[ER]=v*l,y[kR]=g*l,f=(0,SR.maxv)(g,f),u=(0,SR.maxv)(v,u),h.push(0==_?y[kR]/2:y[kR])}if(p>0){var M=c[0];d[0].setAttribute("x",String((f-d[0].getBBox().width)/2));for(_=1;_<d.length;_++)d[_]&&(d[_].setAttribute("x",String((f-d[_].getBBox().width)/2)),d[_].setAttribute("dy",String(M[ER]-t.getAscent(M[ER])+t.getAscent(c[_][ER]))),M=c[_]);t.layoutText(c[0][ER])}},t.prototype.layout=function(t,e,i,r,n){var o=t.getBBox(),s=0,a=0;if(this._vertical)switch(s=n.left+(i-n.left-n.right-o.width),e){case"center":t.anchor=VR.TextAnchor.MIDDLE,a=n.top+(r-n.top-n.bottom)/2;break;case"right":t.anchor=VR.TextAnchor.END,a=o.height-n.bottom;break;default:t.anchor=VR.TextAnchor.START,a=n.top}else switch(a=n.top+(r-n.top-n.bottom-o.height)/2,e){case"center":t.anchor=VR.TextAnchor.MIDDLE,s=n.left+(i-n.left-n.right)/2;break;case"right":t.anchor=VR.TextAnchor.END,s=i-n.right;break;default:t.anchor=VR.TextAnchor.START,s=n.left}t.trans(s,a)},t.prototype.$_parse=function(t){var e,i,r=this._lines=[];if(t){var n=(this._isVertical?t.replace(/\s+/g," ").split("").join("<br>"):t).split(IR);try{for(var o=wR(n),s=o.next();!s.done;s=o.next()){var a=s.value;r.push((new DR).parse(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}}},t}();FM.SvgRichText=GR;var FR={},zR=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),$R=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},HR=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(FR,"__esModule",{value:!0}),FR.AssetCollection=FR.ImageList=FR.ColorList=FR.Pattern=FR.RadialGradient=FR.LinearGradient=void 0;var WR=iM,UR=fj,XR=nM,YR=rM,qR=function(){function t(t){this.source=t}return t.prototype.hasDef=function(){return!0},t}(),ZR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype._setStops=function(t,e){e.setAttribute("id",this.source.id);var i=this.source.color,r=null==this.source.opacity?1:this.source.opacity,n=(0,WR.isArray)(i)?HR([],$R(i),!1):[i,"white"],o=(0,WR.isArray)(r)?HR([],$R(r),!1):Array(n.length).fill(r);1===n.length&&n.push("white"),n.forEach((function(i,r){!function(t,e,i,r,n){var o=t.createElementNS(WR.SVGNS,"stop");o.setAttribute("offset",String(i)),o.setAttribute("stop-color",r),o.setAttribute("stop-opacity",String(n)),e.appendChild(o)}(t,e,r/(n.length-1),i,null==o[r]?1:o[r])}))},e.prototype.prepare=function(){},e}(qR),KR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(WR.SVGNS,"linearGradient"),r=0,n=0,o=0,s=0;switch(this._setStops(t,i),e.dir){case"up":o=1;break;case"right":n=1;break;case"left":r=1;break;default:s=1}return i.setAttribute("x1",r),i.setAttribute("y1",o),i.setAttribute("x2",n),i.setAttribute("y2",s),i},e.TYPE="lineargradient",e}(ZR);FR.LinearGradient=KR;var JR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.getEelement=function(t,e){var i=t.createElementNS(WR.SVGNS,"radialGradient");return(0,XR.isNull)(e.cx)||i.setAttribute("cx",e.cx),(0,XR.isNull)(e.cy)||i.setAttribute("cy",e.cy),(0,XR.isNull)(e.r)||i.setAttribute("r",e.r),this._setStops(t,i),i},e.TYPE="radialgradient",e}(ZR);FR.RadialGradient=JR;var QR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){},e.prototype.getEelement=function(t,i){var r,n,o,s,a=t.createElementNS(WR.SVGNS,"pattern"),l=t.createElementNS(WR.SVGNS,"path"),u=!1;if(a.setAttribute("id",i.id),a.setAttribute("patternUnits","userSpaceOnUse"),l.classList.add("rct-pattern"),+i.pattern>=0){var c=e.STOCK[+i.pattern%e.STOCK.length];r=c.path,n=c.style,u=!c.fill,o=c.width||20,s=c.height||20}else(0,WR.isString)(i.pattern)&&(r=i.pattern,o=i.width||i.height||20,s=i.height||i.width||20);a.setAttribute("width",String(o)),a.setAttribute("height",String(s)),l.setAttribute("d",r),n&&(0,WR.assignObj)(l.style,n),i.style&&(0,WR.assignObj)(l.style,i.style),u&&(l.style.fill="none");var p=i.backgroundStyle;if((0,WR.isString)(p)||(0,WR.isObject)(p)){var h=t.createElementNS(WR.SVGNS,"rect");a.append(h),h.style.fill=(0,WR.isString)(p)?p:p.fill,h.setAttribute("width",String(o)),h.setAttribute("height",String(s))}return a.append(l),a},e.TYPE="pattern",e.STOCK=[{path:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M0 0 L0 3 L5.2 6 L10.4 3 L10.4 0 M5.2 6 L5.2 12 L0 15 L0 18 M5.2 12 L10.4 15 L10.4 18",width:10.4,height:18,style:{strokeWidth:"0.3px"}},{path:"M0 0h5v5H0zM5 5h5v5H5z",fill:!0,width:10,height:10},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!0,width:10,height:10},{path:"M0 2.8 L5 0 L10 2.8 L10 14 L5 16.8 L0 14 L0 2.8 M5 0 L5 5.6 L0 8.4 L5 11.2 L5 16.8 M5 5.6 L10 8.4 L5 11.2",style:{strokeWidth:"0.3px"},width:10,height:16.8},{path:"m5 .037 4.957 4.957L5 9.951.043 4.994z",fill:!1,width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M 0 0 L 12 12 L 24 0 M 4 0 L 12 8 L 20 0 M 8 0 L 12 4 L 16 0 M 0 4 L 8 12 L 0 20 M 0 8 L 4 12 L 0 16 M 0 24 L 12 12 L 24 24 M 4 24 L 12 16 L 20 24 M 8 24 L 12 20 L 16 24 M 24 20 L 16 12 L 24 4 M 24 16 L 20 12 L 24 8",width:24,height:24,fill:!1,style:{strokeWidth:"0.4px"}},{path:"M10 2.52H0M0 7.48h10M7.48 10V0M2.52 0v10",style:{strokeWidth:"0.3px"},width:5,height:5},{path:"M-2.5 1.25l5 2.5L7.5 1.25l5 2.5 M-2.5 6.25l5 2.5 5-2.5 5 2.5 M-2.5 11.25l5 2.5 5-2.5 5 2.5 M-2.5 16.25l5 2.5 5-2.5 5 2.5",width:10,height:10,style:{strokeWidth:"0.3px"}},{path:"M25 1.95v.26c-.79 0-1.43.64-1.43 1.43 0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54h-4.56v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.69 1.69 0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4l-.31-.31a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8 0 .79.64 1.43 1.43 1.43v.26c-.93 0-1.69-.76-1.69-1.69.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39h-4.56v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33-.79 0-1.43.64-1.43 1.43h-.26c0-.93.76-1.69 1.69-1.69.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63v-4.56h-4.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8a1.43 1.43 0 1 0-2.86 0c0 .25.15.62.33.8l.31.31c.25.27.31.65.16.98l-.06.11c-.18.32-.5.52-.87.54H6.38v4.56c.02.26.17.5.39.63l.11.06c.21.1.52.05.68-.11l.31-.31c.27-.24.61-.39.98-.4.93 0 1.69.76 1.7 1.69h-.26c0-.79-.64-1.43-1.43-1.43-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87v-4.56H1.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.7v-.26c.79 0 1.43-.64 1.43-1.43 0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56v-4.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.93 0-1.69-.76-1.69-1.69s.76-1.69 1.69-1.69c.32 0 .75.18.98.4l.31.31c.19.17.45.21.68.11l.11-.06c.23-.13.38-.37.39-.63V6.38H1.56c-.36-.02-.69-.22-.87-.54l-.06-.11a.886.886 0 0 1 .16-.98l.31-.31c.2-.22.31-.5.33-.8 0-.79-.64-1.43-1.43-1.43v-.26c.93 0 1.69.76 1.69 1.69 0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56V1.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33.79 0 1.43-.64 1.43-1.43h.26c0 .93-.76 1.69-1.69 1.69-.36-.02-.71-.16-.98-.4L7.57.98a.63.63 0 0 0-.68-.11l-.11.06c-.23.13-.38.37-.39.63v4.56h4.56c.36.02.69.22.87.54l.06.11c.15.33.09.72-.16.98l-.31.31c-.2.22-.31.5-.33.8a1.43 1.43 0 1 0 2.86 0c0-.25-.15-.62-.33-.8l-.31-.31a.888.888 0 0 1-.16-.98l.06-.11c.18-.32.5-.52.87-.54h4.56V1.56a.812.812 0 0 0-.39-.63l-.11-.06a.647.647 0 0 0-.68.11l-.31.31c-.27.25-.62.39-.98.4-.95 0-1.71-.76-1.71-1.69h.26c0 .79.64 1.43 1.43 1.43.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69ZM10.94 18.62c.26-.02.5-.17.63-.39l.06-.11c.1-.21.05-.52-.11-.68l-.31-.31c-.25-.27-.39-.62-.4-.98 0-.93.76-1.69 1.69-1.69s1.69.76 1.69 1.69c0 .32-.18.75-.4.98l-.31.31a.63.63 0 0 0-.11.68l.06.11c.13.23.37.38.63.39h4.56v-4.56c.02-.36.22-.69.54-.87l.11-.06c.33-.15.72-.09.98.16l.31.31c.22.2.5.31.8.33a1.43 1.43 0 1 0 0-2.86c-.25 0-.62.15-.8.33l-.31.31c-.27.25-.65.31-.98.16l-.11-.06c-.32-.18-.52-.5-.54-.87V6.38h-4.56c-.26.02-.5.17-.63.39l-.06.11c-.1.21-.05.52.11.68l.31.31c.24.27.39.61.4.98 0 .93-.76 1.69-1.69 1.69s-1.69-.76-1.69-1.69c.02-.36.16-.71.4-.98l.31-.31a.63.63 0 0 0 .11-.68l-.06-.11a.764.764 0 0 0-.63-.39H6.38v4.56c-.02.36-.22.69-.54.87l-.11.06c-.33.15-.72.09-.98-.16l-.31-.31c-.22-.2-.5-.31-.8-.33a1.43 1.43 0 1 0 0 2.86c.25 0 .62-.15.8-.33l.31-.31c.27-.25.65-.31.98-.16l.11.06c.32.18.52.5.54.87v4.56h4.56Z",width:25,height:25,fill:!1,style:{strokeWidth:"0.3px"}},{path:"M 0 8 L 8 0 L 12 4 L 4 12 Z M -2 2 L 2 6 M 2 -2 L 6 2 M 6 10 L 10 14 M 10 6 L 14 10",width:12,height:12,style:{strokeWidth:"0.5px"}},{path:"M0 13.66 6.34 10 10 16.34 3.66 20zM0 6.34 3.66 0 10 3.66 6.34 10zM10 16.34 13.66 10 20 13.66 16.34 20zM10 3.66 16.34 0 20 6.34 13.66 10zM0 6.34v7.32M20 6.36v7.3M6.34 10h7.32",width:20,height:20,style:{strokeWidth:"0.3px"},fill:!1}],e}(qR);FR.Pattern=QR;var tB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){var t=this.source;this._colors=(0,WR.isArray)(t.colors)?t.colors.slice():[],"random"===t.mode?this._index=-1:("shuffle"===t.mode&&YR.Utils.shuffle(this._colors),this._index=0)},e.prototype.getNext=function(){return this._index<0?this._colors[Math.floor(Math.random()*this._colors.length)]:this._colors[this._index++%this._colors.length]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,e){this._colors=(0,WR.isArray)(e.colors)?e.colors:[]},e.TYPE="colors",e}(qR);FR.ColorList=tB;var eB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zR(e,t),e.prototype.prepare=function(){var t=this,e=this.source.rootUrl||"";this._images=[],this._map={},this.source.images.forEach((function(i){if((0,WR.isString)(i))t._images.push(e+i);else{var r=e+i.url;i.name&&(t._map[i.name]=r),t._images.push(r)}}))},e.prototype.getImage=function(t){return(0,WR.isString)(t)?this._map[t]:this._images[t]},e.prototype.hasDef=function(){return!1},e.prototype.getEelement=function(t,i){this.size=Object.freeze({width:i.width||i.height||e.SIZE,height:i.height||i.width||e.SIZE})},e.TYPE="images",e.SIZE=20,e}(qR);FR.ImageList=eB;var iB=function(){function t(){this._items=[],this._map={}}return t.prototype.load=function(t){var e=this;if(this._items=[],(0,WR.isArray)(t))return t.forEach((function(t){var i=e.$_loadItem(t);i&&(i.hasDef()?e._items.push(i):e._map[t.id]=i)})),this._items.map((function(t){return t.source}));if((0,WR.isObject)(t)){var i=this.$_loadItem(t);return i&&(i.hasDef()?this._items.push(i):this._map[t.id]=i),i.source}},t.prototype.updateOptions=function(t,e){},t.prototype.register=function(t,e){this._items.forEach((function(i){var r=i.getEelement(t,i.source);r.setAttribute(UR.RcElement.ASSET_KEY,"1"),e.addDef(r)}))},t.prototype.unregister=function(t){this._items.forEach((function(e){t.removeDef(e.source.id)}))},t.prototype.get=function(t){return this._map[t]},t.prototype.prepareRender=function(){for(var t in this._items.forEach((function(t){t.prepare()})),this._map)this.get(t).prepare()},Object.defineProperty(t.prototype,"options",{get:function(){return this._items.map((function(t){return t.source}))},enumerable:!1,configurable:!0}),t.prototype.$_loadItem=function(t){if((0,WR.isObject)(t)&&t.id){var e=t.type;if(e||(null!=t.pattern?e=QR.TYPE:(0,WR.isArray)(t.colors)?e=tB.TYPE:(0,WR.isArray)(t.images)&&(e=eB.TYPE)),e)switch(e.toLowerCase()){case KR.TYPE:return new KR(t);case JR.TYPE:return new JR(t);case QR.TYPE:return new QR(t);case tB.TYPE:return new tB(t);case eB.TYPE:return new eB(t)}}},t}();FR.AssetCollection=iB,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundImage=e.IconedText=e.ChartText=e.DARK_COLOR=e.BRIGHT_COLOR=e.ChartItemCollection=e.ChartItem=e.merge=e.extend=e.n_chart_item=void 0;var o=dM,s=iM,a=NM,l=_M,u=FM,c=nM,p=rM,h=FR;e.n_chart_item=0;e.extend=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i};var f=["__proto__","constructor","prototype"];e.merge=function(t,i){var r=(0,s.isObject)(t)?t:{};for(var n in i)if(s.hasOwnProperty.call(i,n)&&!f.includes(n)){var a=i[n];(0,s.isArray)(a)?r[n]=a.slice(0):(0,s.isObject)(a)?a._obj instanceof o.DataObject?r[n]=a:p.Utils.isDate(a)?r[n]=new Date(a):r[n]=(0,e.merge)(r[n],a):r[n]=a}return r};var d=function(t){function r(i){var r=t.call(this)||this;return r.chart=i,e.n_chart_item++,r}return i(r,t),r.prototype.init=function(){var t=this._op=(0,e.merge)({},this.constructor.defaults);return this._doInit(t),this._doApply(t),t},r.prototype._doInit=function(t){},r.prototype._initObject=function(){return this.init(),this},Object.defineProperty(r.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visible",{get:function(){return this._isVisible()},set:function(t){this.updateOption("visible",t)},enumerable:!1,configurable:!0}),r.prototype._isVisible=function(){return this._op.visible},r.prototype._load=function(t){var e=this._op;if(this._config=t,void 0!==t&&!this._doSetSimple(t)){if(null!==t&&null!=t.template){var i=this.chart&&this.chart.assignTemplates;i&&(t=i(t))}this._doLoad(e,t)}return this._doApply(e),e},r.prototype.loadOptions=function(t){return this.clearOptions(),this._load(t),this},r.prototype.saveOptions=function(t){void 0===t&&(t=!0);var e={};return this._doSave(e,this.constructor.defaults,t),e},r.prototype.$_updateChildren=function(t){var e=this;if(this._children)this._children.forEach((function(i){return t.hasOwnProperty(i)&&e[i].updateOptions(t[i])}));else for(var i in this._children=[],this){var n=this[i];n instanceof r&&(this._children.push(i),t.hasOwnProperty(i)&&n.updateOptions(t[i]))}},r.prototype.$_mergeOptions=function(t,e){var i=(0,s.isObject)(t)?t:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=e[n];(0,s.isArray)(a)?i[n]=a.slice(0):(0,s.isObject)(a)?a instanceof o.DataObject?i[n]=a:a._obj instanceof o.DataObject?i[n]=a._obj:this[n]instanceof r?p.Utils.isDate(a)&&(i[n]=new Date(a)):i[n]=this.$_mergeOptions(i[n],a):i[n]=a}},r.prototype.updateOptions=function(t,e){void 0===e&&(e=!0);var i=this._op;return void 0===t||this._doSetSimple(t)||this.$_mergeOptions(i,t),this.$_applyOptions(i),(0,s.isObject)(t)&&this.$_updateChildren(t),e&&this._changed(),this},r.prototype.updateOption=function(t,e,i,n){if(void 0===i&&(i=!0),void 0===n&&(n=!1),this[t]instanceof r)this[t].updateOptions(e);else{var o=this._op;(n||e!==o[t])&&(o[t]=e,this.$_applyOptions(o),i&&this._changed())}return this},r.prototype.toggleOption=function(t,e){void 0===e&&(e=!0);var i=this._op,n=i[t];return i.hasOwnProperty(t)&&(this[t]instanceof r?this[t]._doSetSimple(!(0,s.isBoolean)(n)||!n):(i[t]=!(0,s.isBoolean)(n)||!n,this.$_applyOptions(i),e&&this._changed())),this},r.prototype.removeOption=function(t,e){void 0===e&&(e=!0);var i=this._op;if(i.hasOwnProperty(t))if(this[t]instanceof r)this[t].clearOptions();else{delete i[t];var n=self.constructor.defaults;s.hasOwnProperty.call(n,t)&&(i[t]=n[t]),this.$_applyOptions(i),e&&this._changed()}return this},r.prototype.clearOptions=function(t){void 0===t&&(t=!0);var i=function(t){var r;if(t){var n=t._op=(0,e.merge)({},t.constructor.defaults);return t.$_applyOptions(n),null===(r=t._children)||void 0===r||r.forEach((function(e){n[e]=i(t[e])})),n}};return i(this),t&&this._changed(),this},r.prototype.setStyle=function(t,e,i){if(void 0===i&&(i=!0),!t)return this;var r=this._op.style,n=!1;return null!==e&&""!==e||(e=void 0),void 0===e?r&&s.hasOwnProperty.call(r,t)&&(delete r[t],n=!0):r&&r[t]==e||(r||(r=this._style=this._op.style={}),r[t]=String(e),n=!0),n&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype.setStyles=function(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!0);var r=!1,n=this._op.style;if(e&&n&&(delete this._op.style,r=!0,n=this._style=void 0),(0,s.isObject)(t)){for(var o in n||(n=this._style=this._op.style={}),t){var a=t[o];n[o]!=a&&(null!==a&&""!==a||(a=void 0),void 0===a?delete n[o]:n[o]=t[o],r=!0)}r=!0}return r&&(this.$_applyOptions(this._op),i&&this._changed()),this},r.prototype._prepareRender=function(){this._doPrepareRender(this.chart)},r.prototype._changed=function(t){var e;null===(e=this.chart)||void 0===e||e._modelChanged(this,t)},r.prototype._doLoad=function(t,e){for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];this._doLoadProp(i,n)||(this[i]instanceof r?t[i]=this[i]._load(n):(0,s.isArray)(n)?t[i]=n.slice(0):(0,s.isObject)(n)?n._obj instanceof o.DataObject?t[i]=n._obj:p.Utils.isDate(n)?t[i]=new Date(n):t[i]=(0,s.assignObj)({},n):t[i]=n)}},r.prototype._doSave=function(t,e,i){var n=this._op;for(var o in n)if(n.hasOwnProperty(o))if(i&&this[o]instanceof r)t[o]=this[o].saveOptions(!0);else{var a=n[o];(0,s.isArray)(a)?t[o]=this._doSaveArray(o,a)||a.slice():a!==e[o]&&(t[o]=a)}},r.prototype._doSaveArray=function(t,e){},r.prototype._doSetSimple=function(t){if((0,s.isBoolean)(t))return this._op.visible=t,!0},r.prototype._doLoadProp=function(t,e){if("visible"===t)return this._op.visible=e,!0},r.prototype.$_applyOptions=function(t){var e,i=this.visible;this._doApply(t),this.visible!==i&&(null===(e=this.chart)||void 0===e||e._visibleChanged(this))},r.prototype._setDim=function(t,e){var i="_".concat(e);t[e]!==this[i]&&(this["".concat(i,"Dim")]=(0,c.parsePercentSize)(this[i]=t[e],!0))},r.prototype._setDims=function(t){for(var e=this,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];i.forEach((function(i){return e._setDim(t,i)}))},r.prototype._doApply=function(t){this._style=t.style},r.prototype._doPrepareRender=function(t){},r.REFRESHED="refreshed",r.defaults={visible:!0},r}(l.RcObject);e.ChartItem=d;var _=function(){function t(t){this._items=[],this.chart=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._items[0]},enumerable:!1,configurable:!0}),t.prototype.items=function(){return this._items.slice(0)},t.prototype._internalItems=function(){return this._items},t.prototype.updateOptions=function(t,e){},t}();e.ChartItemCollection=_,e.BRIGHT_COLOR="white",e.DARK_COLOR="black";var y=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._outlineThickness=2,e._outlineWidth="2px",e}return i(o,t),o.prototype._setOutlineThickness=function(t){t!==this._outlineThickness&&(this._outlineThickness=t,this._outlineWidth=(0,s.pickNum)(t,2)+"px")},o.prototype._setNumberSymbols=function(t){t!==this._numberSymbols&&(this._numberSymbols=t,this._numSymbols=t&&t.split(","))},o.prototype._setNumberFormat=function(t){t!==this._numberFormat&&(this._numberFormat=t,this._numberFormatter=t?a.NumberFormatter.getFormatter(t):null)},o.prototype._setText=function(t){return t!==this._text&&this.prepareRich(this._text=t),!isNaN(this._op.lineHeight)&&this._richTextImpl&&(this._richTextImpl.lineHeight=this._op.lineHeight),this},o.prototype.setText=function(t){this._setText(t)},o.prototype.buildSvg=function(t,e,i,r,n,o){this._richTextImpl&&(this._richTextImpl.build(t,i,r,n,o),e&&this._richTextImpl.build(e,i,r,n,o))},o.prototype.prepareRich=function(t){t?(this._richTextImpl||(this._richTextImpl=new u.SvgRichText),this._richTextImpl.setFormat(t)):this._richTextImpl=null},o.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},o.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setOutlineThickness(e.outlineThickness),this._setNumberSymbols(e.numberSymbols),this._setNumberFormat(e.numberFormat),this._setText(e.text)},o.prototype._getNumberText=function(t,e,i){if(p.Utils.isValidNum(t)){var r=this._numberFormatter,n=e&&this._numSymbols,o=void 0;return n&&(r&&(t=r.toNum(t)),o=p.Utils.scaleNumber(t,n,i)),r?o?r.toStr(o.value)+o.symbol:r.toStr(t):o?o.value+o.symbol:String(t)}return"NaN"},o.prototype._getText=function(t,e,i,r){var n=(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e;return this._op.prefix&&(n=this._op.prefix+n),this._op.suffix&&(n+=this._op.suffix),n},o.defaults=(0,e.extend)(d.defaults,{effect:"none",autoContrast:!0,outlineThickness:2,numberSymbols:c.NUMBER_SYMBOLS,numberFormat:c.NUMBER_FORMAT}),o}(d);e.ChartText=y;var g=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i(r,t),r.prototype.getIconPos=function(){return"default"===this._op.iconPosition?this.getDefaultIconPos():this._op.iconPosition},r.prototype._doPrepareRender=function(t){if(this._images=null,this._op.imageList){var e=t._assets.get(this._op.imageList);e instanceof h.ImageList&&(this._images=e)}this._root=this._op.iconRoot||""},r.prototype.getUrl=function(t){if(t){var e=t.indexOf("::");if(0===e)return t=t.substring(2),this._images?this._images.getImage(t):t;if(e>0){var i=this.chart._assets.get(t.substring(0,e)),r=t.substring(e+2),n=Number.isFinite(+r)?+r:r;return i instanceof h.ImageList?i.getImage(n):r}var o=t.substring(0,t.indexOf("://"));return"http"==o||"https"==o?t:this._root+t}},r.defaults=(0,e.extend)(y.defaults,{iconPosition:"default",iconGap:2,iconHeight:16}),r}(y);e.IconedText=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d);e.BackgroundImage=v}(LM),function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationCollection=e.Annotation=e.annotation_types=void 0;var r=iM,n=nM,o=LM;e.annotation_types={};var s=function(t){function s(e,i){var r=t.call(this,e)||this;return r.body=i,r._offsetX=0,r._offsetY=0,r.index=-1,r}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_types[t.type]=t}))},s.prototype._type=function(){return this.constructor.type},Object.defineProperty(s.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),s.prototype.needClip=function(){return!0!==this._op.noClip},s.prototype.getOffset=function(t,e){var i=function(t,e,i){return i.size*("h"===i.suffix?e:t)};return{x:this._offsetXDim?i(t,e,this._offsetXDim):+this._offsetX,y:this._offsetYDim?i(t,e,this._offsetYDim):+this._offsetY}},s.prototype.getSize=function(t,e){var i,r,o=this.chart.isInverted(),s=this._op;if(this.body){var a=+s.x1,l=+s.x2,u=+s.y1,c=+s.y2;if(this._x=this._y=this._w=this._h=NaN,!isNaN(a)){var p=this.chart.getAxisOf(this,!0);o?this._y=e-p.getPos(e,a):this._x=p.getPos(t,a),isNaN(l)||(o?r=this._h=e-p.getPos(e,l)-this._y:i=this._w=p.getPos(t,l)-this._x)}if(!isNaN(u)){p=this.chart.getAxisOf(this,!1);o?this._x=p.getPos(t,u):this._y=e-p.getPos(e,u),isNaN(c)||(o?i=this._w=p.getPos(t,c)-this._x:r=this._h=e-p.getPos(e,c)-this._y)}}return isNaN(i)?i=(0,n.calcPercent)(this._widthDim,t):i<0&&(this._x+=i,i=-i),isNaN(r)?r=(0,n.calcPercent)(this._heightDim,e):r<0&&(this._y+=r,r=-r),{width:i,height:r}},s.prototype.getPosition=function(t,e,i,r,n,o,s){var a,l,u;if(isNaN(l=this._x))switch(a=this.getOffset(o,s),l=e,this._op.align){case"center":l+=(r-o)/2+a.x;break;case"right":l+=r-a.x-o;break;default:this._anchorObj?l+=(r-o)/2+a.x:l+=a.x}else a=a||this.getOffset(o,s),l=this._x+a.x;if(isNaN(u=this._y))switch(a=a||this.getOffset(o,s),u=i,this._op.verticalAlign){case"middle":u+=(n-s)/2-a.y;break;case"bottom":u+=n-a.y-s;break;default:u+=a.y}else a=a||this.getOffset(o,s),u=this._y+a.y;return{x:l,y:u}},s.prototype.refresh=function(){this._changed(o.ChartItem.REFRESHED)},s.prototype.clicked=function(){return!1},s.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"annotation",this._type())):t.prototype._load.call(this,e)},s.prototype._doApply=function(e){var i,n=this,o=function(t){if((0,r.isString)(t)){var e=t[t.length-1];if("h"===e||"w"===e){var i=parseFloat(t);if(i===parseFloat(t.substring(0,t.length-1)))return{size:i,suffix:e}}}};t.prototype._doApply.call(this,e),this._name=e.name||"annotation ".concat(this.index+1),this._row=isNaN(e.row)?NaN:e.row|0,this._col=isNaN(e.col)?NaN:e.col|0,(i=e.offsetX)!=n._offsetX&&(n._offsetXDim=o(n._offsetX=i)),function(t){t!=n._offsetY&&(n._offsetYDim=o(n._offsetY=t))}(e.offsetY),this._setDims(e,"width","height")},s.prototype._doPrepareRender=function(t){},s.defaults=(0,o.extend)(o.ChartItem.defaults,{front:!1,verticalAlign:"top",offsetX:0,offsetY:0,scope:"chart"}),s}(o.ChartItem);e.Annotation=s;var a=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._map={},i._visibles=[],i}return i(e,t),e.prototype.getVisibles=function(){return this._visibles.slice(0)},e.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.options.row,n=i.options.col;return t===r&&e===n}))},e.prototype.getAnnotation=function(t){var e=this._map[t];if(e instanceof s)return e},e.prototype.get=function(t){return(0,r.isString)(t)?this._map[t]:this._items[t]},e.prototype.load=function(t,e){var i=this,n=this.owner.chart,o=this._items=[],s=this._map={};(0,r.isArray)(t)?t.forEach((function(t,r){o.push(i.$_loadItem(n,t,r,e?i.owner:void 0))})):(0,r.isObject)(t)&&o.push(this.$_loadItem(n,t,0,e?this.owner:void 0)),o.forEach((function(t){t.name&&(s[t.name]=t)})),this.owner.options.annotation=this._items.map((function(t){return t.options}))},e.prototype.prepareRender=function(){var t=this;this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(e){e._prepareRender(),e._anchorObj=e.options.anchor?t.owner.anchorByName(e.options.anchor):n._undef}))},e.prototype.$_loadItem=function(t,e,i,n){var o=e.type;o||(o=(0,r.isString)(e.imageUrl)?"image":(0,r.isString)(e.shape)?"shape":"text");var s=t._getAnnotationType(o);if(!s)throw new Error("Invalid annotation type: "+e.type);var a=new s(t,n);return a.init(),a.index=i,a._load(e),a},e}(o.ChartItemCollection);e.AnnotationCollection=a}(TM);var rB={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.PaneYAxisMatrix=e.PaneXAxisMatrix=e.PaneAxisMatrix=e.PaneAxes=e.AxisCollection=e.Axis=e.AxisSectorLine=e.AxisZoom=e.AxisScrollBar=e.AxisLabel=e.AxisTick=e.AxisRangeGuide=e.AxisLineGuide=e.AxisGuide=e.AxisGuideLabel=e.AxisGrid=e.AxisGridRows=e.AxisUnitLabel=e.AxisTitle=e.AxisLine=e.AxisItem=e.axis_types=e.Crosshair=e.CrosshairFlag=void 0;var s=iM,a=zM,l=NM,u=nM,c=rM,p=LM,h=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.duration=300,o.easing="linear",o._axis=e,o._prevMin=i,o._prevMax=r,o.start(n),o}return i(e,t),e.prototype.getPos=function(t,e){var i,r=this._axis,n=this._axisLen,o=this._prevMax-this._prevMin,s=this.rate(),a=r._vlen;if(n<=0)return t;n>=o?t=t*(i=n<=0?a:a+a*(n-o)/n*(1-s))/a:t=t*a/(i=a+a*(o-n)/o*(1-s));return t+this._offset*(i/n)*(1-s)*(e?-1:1)},e.prototype._doUpdate=function(t){return this.$_calcRange(t),this._axis._changed(),!0},e.prototype._doStop=function(){this._axis.setAniRange(NaN,NaN),this._axis._ani=null,this._axis=null},e.prototype.$_calcRange=function(t){var e=this._prevMin;this._prevMax;var i=this._axis.axisMin(),r=this._axis.axisMax();this._axisLen=r-i,this._offset=i-e},e}(Pj.RcAnimation),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,p.extend)(p.ChartItem.defaults,{minWidth:50}),e}(p.ChartItem);e.CrosshairFlag=f;var d=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.axis=e,i}return i(e,t),e.prototype._doInit=function(t){this.options.flag=(this.flag=new f(this.axis.chart)).init(),this._args={chart:void 0,axis:void 0,pos:void 0,flag:void 0,points:void 0}},e.prototype.isBar=function(){return!this.axis.continuous()&&"line"!==this._op.type},e.prototype.getFlag=function(t,e){var i=this.axis.axisValueAt(t,e);return i instanceof this.chart.win.Date?a.DatetimeFormatter.getFormatter(this._op.timeFormat).toStr(new Date(i),this.chart.startOfWeek):l.NumberFormatter.getFormatter(this._op.numberFormat).toStr(i)},e.prototype.moved=function(t,e,i){this._op.onChange&&(this._args.chart=this.chart.wrapper,this._args.pos=t,this._args.flag=e,this._args.points=i.slice(0),this._op.onChange(this._args))},e.prototype._setAxis=function(t){this._args.axis=t},e.prototype._doSetSimple=function(e){return(0,s.isFunc)(e)?(this._op.visible=!0,this._op.onChange=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:!1,type:"auto",showAlways:!0,followPointer:!0,numberFormat:"#,##0.#",timeFormat:"yyyy-MM-dd HH:mm",markerHovering:!1}),e}(p.ChartItem);e.Crosshair=d,e.axis_types={};var _=function(t){function e(e){var i=t.call(this,null==e?void 0:e.chart)||this;return i.axis=e,i}return i(e,t),e}(p.ChartItem);e.AxisItem=_;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return null==this._op.visible?this.axis._isX:this._op.visible},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.visible=!0,this._op.style={stroke:e},!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(_.defaults,{visible:void 0}),e}(_);e.AxisLine=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRotation=function(){var t=this._op;if(this.axis._isHorz)return 0;if(isNaN(this._rotation)){var e=t.writingMode;return c.isIE?"vertical"===e?0:"opposite"===this.axis.options.position?90:270:"vertical"===e||"vertical-lr"===e||"vertical-rl"===e?0:"opposite"===this.axis.options.position?90:270}return this._rotation},e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r,n=this;t.prototype._doApply.call(this,e),i=e.rotation,r=+i,Number.isNaN(r)||90===r||270===r||-90===r||-270===r||(r=0),n._rotation=r},e.defaults=(0,p.extend)(_.defaults,{align:"middle",offset:0,gap:5}),e}(_);e.AxisTitle=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,u.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,p.extend)(_.defaults,{position:"end",gap:2}),e}(_);e.AxisUnitLabel=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRows=function(){var t=this.axis,e=this._op.colors,i=e?e.length:0,r=[];if(this._op.belowColor&&t.isBaseVisible()&&r.push({axis:t,from:t.axisMin(),to:t.getBaseValue(),color:this._op.belowColor}),i>0){var n=t._ticks,o=0;n[0].value>t.axisMin()&&(e[o%i]&&r.push({axis:t,from:t.axisMin(),to:n[0].value,color:e[o%i]}),o++);for(var s=1;s<n.length;s++,o++)e[o%i]&&r.push({axis:t,from:n[s-1].value,to:n[s].value,color:e[o%i]});n[n.length-1].value<t.axisMax()&&e[o%i]&&r.push({axis:t,from:n[n.length-1].value,to:t.axisMax(),color:e[o%i]})}return r},e.prototype._doSetSimple=function(e){return(0,s.isString)(e)?(this._op.colors=[e,null],!0):(0,s.isArray)(e)?(this._op.colors=e,!0):t.prototype._doSetSimple.call(this,e)},e}(_);e.AxisGridRows=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.rows=(this._rows=new m(this.axis)).init()},Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this.axis._isPolar?!1!==this._op.visible:null==this._op.visible?!this.axis._isX:this._op.visible},e.defaults=(0,p.extend)(_.defaults,{visible:void 0,depthVisible:void 0}),e}(_);e.AxisGrid=b;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,p.extend)(p.IconedText.defaults,{position:"inside",align:"left",verticalAlign:"top",offsetX:3,offsetY:3}),e}(p.IconedText);e.AxisGuideLabel=x;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.label=(this._label=new x(this.axis.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.canConstainedTo=function(t,e){var i,n,o,a,l=this._op;if((0,s.isArray)(l.col)){try{for(var u=r(l.col),c=u.next();!c.done;c=u.next()){if(e==c.value)return!0}}catch(t){i={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return!1}if(!isNaN(l.col)&&e!=l.col)return!1;if((0,s.isArray)(l.row)){try{for(var p=r(l.row),h=p.next();!h.done;h=p.next()){if(t==h.value)return!0}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}return!1}return!(!isNaN(l.row)&&t!=l.row)},e.defaults=(0,p.extend)(_.defaults,{front:!1,zindex:0}),e}(_);e.AxisGuide=w;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(w);e.AxisLineGuide=S;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(w);e.AxisRangeGuide=P;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.canUseNumSymbols=function(){return!0},e.prototype._getLength=function(){return this._length},e.prototype._getGap=function(){return this._gap},e.prototype._doSetSimple=function(e){return c.Utils.canNumber(e)?(this._op.length=+e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doPrepareRender=function(i){t.prototype._doPrepareRender.call(this,i),isFinite(this._op.length)?this._length=this._op.length:this._length=this.axis.label._inside?0:e.DEF_LENGTH,this._gap=this._op.gap||0},e.DEF_LENGTH=7,e.defaults=(0,p.extend)(_.defaults,{visible:!1,gap:3}),e}(_);e.AxisTick=A;var O=function(t){function e(e){var i=t.call(this,e&&e.chart)||this;return i.axis=e,i._domain={callback:function(t,e){return i._getParamValue(i._paramTick,e)}},i}return i(e,t),e.prototype._getParamValue=function(t,e){return e.startsWith("axis.")?this.axis[e.substring(5)]:t[e]},e.prototype.getLabelText=function(t,e){var i,r=this._op,n=t.index;if(r.textCallback){var o=r.textCallback(this.axis.getTickLabelArgs(n,t.value));if(null!=o)return o}return 1==e?(0,s.pickProp)(null!==(i=r.lastText)&&void 0!==i?i:r.firstText,r.text):0==n?(0,s.pickProp)(r.firstText,r.text):n==e-1?(0,s.pickProp)(r.lastText,r.text):r.text},e.prototype.getLabelStyle=function(t,e){var i=this._op,r=t.index;if(i.styleCallback){var n=i.styleCallback(this.axis.getTickLabelArgs(r,t.value));if((0,s.isObject)(n))return n}return 1==e?i.lastStyle||i.firstStyle:0==r?i.firstStyle:r==e-1?i.lastStyle:void 0},e.prototype.getIcon=function(t){},e.prototype.getDefaultIconPos=function(){return this.axis._isHorz?"top":"right"},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._inside="inside"===e.location},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},e.prototype._getText=function(t,e,i,r){return(0,s.isString)(t)?t:this._getNumberText(e,i,r)||e},e.defaults=(0,p.extend)(p.IconedText.defaults,{step:0,startStep:0,rows:0,maxRows:3,autoArrange:"rotate",overflow:"clip",firstOverflow:"pull",lastOverflow:"pull",overflowGap:12}),e}(p.IconedText);e.AxisLabel=O;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getThickness=function(){return Math.max(0,this._op.thickness)},e.prototype.getMinThumbSize=function(){return Math.max(0,this._op.minThumbSize)},e.prototype.getGap=function(){return Math.max(0,this._op.gap)},e.prototype.getGapFar=function(){return Math.max(0,this._op.gapFar)},e.defaults=(0,p.extend)(_.defaults,{visible:!1,thickness:10,minThumbSize:32,gap:3,gapFar:3}),e}(_);e.AxisScrollBar=C;var V=function(){function t(t){this.axis=t}return t.prototype.total=function(){return this.max-this.min},t.prototype.length=function(){return this.end-this.start},t.prototype.isFull=function(){return this.start===this.min&&this.end===this.max},t.prototype.clamp=function(t,e){return void 0===e&&(e=!0),e?c.Utils.clamp(t,this.min,this.max):c.Utils.clamp(t,Math.floor(this.min),Math.ceil(this.max))},t.prototype.resize=function(t,e,i){if(t>e){var r=t;t=e,e=r}var n=t!==this.start||e!==this.end,o=this.total(),s=this.axis.continuous();t=isNaN(t)?this.start:this.clamp(t,s);var a=(e=isNaN(e)?this.end:this.clamp(e,s))-t;if(n&&e>=t&&(isNaN(i)||a/o>=i)&&o/a>1)return this.axis._range={min:s?t:Math.floor(t),max:s?e:Math.ceil(e-1)},this.start=t,this.end=e,!0},t}();e.AxisZoom=V;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(y);e.AxisSectorLine=E;var k=function(t){function a(e,i){var r=t.call(this,e)||this;return r._series=[],r._values=[],r._labelArgs={},r.guides=[],r._seriesChanged=!1,r._isX=i,r}return i(a,t),a.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.axis_types[t.type]=t,t.subtype&&(e.axis_types[t.subtype]=t)}))},a.prototype.setAniRange=function(t,e){this._aniMin=t,this._aniMax=e},a.prototype._doInit=function(t){t.title=(this._title=new g(this)).init(),t.unitLabel=(this._unitLabel=new v(this)).init(),t.line=(this._line=new y(this)).init(),t.sectorLine=(this._sectorLine=new E(this)).init(),t.tick=(this._tick=this._createTickModel()).init(),t.label=(this._label=this._createLabel()).init(),t.grid=(this._grid=this._createGrid()).init(),t.crosshair=(this._crosshair=new d(this)).init(),t.scrollBar=(this._scrollBar=new C(this)).init()},a.prototype._type=function(){return this.constructor.type},Object.defineProperty(a.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"unitLabel",{get:function(){return this._unitLabel},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sectorLine",{get:function(){return this._sectorLine},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"crosshair",{get:function(){return this._crosshair},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"scrollBar",{get:function(){return this._scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"xy",{get:function(){return this._isX?"x":"y"},enumerable:!1,configurable:!0}),a.prototype.isEmpty=function(){return this._isEmpty},a.prototype._checkEmpty=function(){var t,e;if(this._series.length>0)try{for(var i=r(this._series),n=i.next();!n.done;n=i.next()){if(!n.value.isEmpty(!0))return!1}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return!0},a.prototype.checkVisible=function(){return!0===this._op.visible||!1!==this._op.visible&&!this._isEmpty},a.prototype.getBaseValue=function(){return NaN},a.prototype.length=function(){return this._max-this._min},a.prototype.axisMin=function(){return this._min},a.prototype.axisMax=function(){return this._max},a.prototype.valueMin=function(){return this._min},a.prototype.valueMax=function(){return this._max},a.prototype.axisValueAt=function(t,e){return this.valueAt(t,e)},a.prototype.getStartAngle=function(){return u.ORG_ANGLE+u.DEG_RAD*this._op.startAngle},a.prototype.getTotalAngle=function(){return u.DEG_RAD*this._op.totalAngle},a.prototype.isArced=function(){return this._op.totalAngle>0&&this._op.totalAngle<360},a.prototype.getVisibleSeries=function(){var t=[];return this._series.forEach((function(e){e.visible&&t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.unitPad=function(){return 0},a.prototype.labelsVisible=function(){return this._label.visible&&this._ticks.length>0},a.prototype.getXStart=function(){return 0},a.prototype.dataToAxis=function(t){return t},a.prototype.axisToData=function(t){return t},a.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:t},a.prototype.isBased=function(){return!1},a.prototype.isBaseVisible=function(){return this.axisMin()<this.getBaseValue()},a.prototype.disconnect=function(){this._series=[]},a.prototype.getSeries=function(){var t=[];return this._series.forEach((function(e){t.push.apply(t,o([],n(e.getVisibleSeries()),!1))})),t},a.prototype.getConnectableSeries=function(){var t=this,e=[];return this._series.forEach((function(i){i.connectable(t)&&e.push.apply(e,o([],n(i.getVisibleSeries()),!1))})),e},a.prototype.collectValues=function(){var t=this,e=this._values=[];this._isX?this._series.forEach((function(i){i.collectValues(t,i.needAxes()?e:null)})):this._series.forEach((function(i){var r=i.needAxes()?[]:null;i.collectValues(t,r),r&&(i._yMin=s.minv.apply(void 0,o([],n(r),!1)),i._yMax=s.maxv.apply(void 0,o([],n(r),!1)),e.push.apply(e,o([],n(r),!1)))}))},a.prototype.collectRanges=function(){var t=this;this._series.forEach((function(e){e.needAxes()&&e.collectRanges(t,t._values)}))},a.prototype.collectReferentValues=function(){var t=this;this._series.forEach((function(e){e.prepareReferents(t)})),this.$_checkEmpty()},a.prototype.$_checkEmpty=function(){this._isEmpty=this._checkEmpty()},a.prototype._prepare=function(){this._series=this._series.filter((function(t){return t._valid})),this.$_checkEmpty()},a.prototype._checkValues=function(t){return t},a.prototype._prepareRender=function(){var t=this.chart,e=this._op.position;this._isPolar=t.isPolar(),this._isHorz=t.isInverted()?!this._isX:this._isX,this._isBetween=t.isSplitted()&&"between"===e&&this._isX,this._isOpposite="opposite"===e,this._runPos=e,this._crosshair._setAxis(this._labelArgs.axis=this),this._doPrepareRender(),this._label._prepareRender(),this._tick._prepareRender();var i=this._series;if(this._values=this._checkValues(this._values),this._zoom||(this._range=this._doCalculateRange(this._values)),this._isX&&i.length>0)if(t.isSplitted()){for(var r=[i[0].row],n=1;n<i.length;n++)r.indexOf(i[n].row)<0&&r.push(i[n].row);r.forEach((function(t){var e=0,r=0;i.forEach((function(i){i.row==t&&i.isClusterable()&&(e+=(0,s.pickNum)(i.groupWidth(),1))})),i.forEach((function(i){if(i.row==t&&i.isClusterable()){var n=(0,s.pickNum)(i.groupWidth(),1)/e;i.setCluster(n,r),r+=n}}))}))}else{var o=0,a=0;i.forEach((function(t){t.isClusterable()&&(o+=(0,s.pickNum)(t.groupWidth(),1))})),i.forEach((function(t){if(t.isClusterable()){var e=(0,s.pickNum)(t.groupWidth(),1)/o;t.setCluster(e,a),a+=e}}))}},a.prototype.afterRender=function(){this._seriesChanged=!1,this._prevSeries=this._series,this._zooming=!1},a.prototype._buildTicks=function(t,e){this._ticks=this._doBuildTicks(this._range.min,this._range.max,this._vlen=t,e),this._labelArgs.count=this._ticks.length},a.prototype._calcPoints=function(t,e){var i=this;this._ticks.forEach((function(e){return e.pos=i.getPos(t,e.value)}))},a.prototype.getLabelLength=function(t,e){return this.getUnitLen(t,e)},a.prototype.getValue=function(t){return null==t?NaN:parseFloat(t)},a.prototype.incStep=function(t,e){return t+c.Utils.getNumber(e)},a.prototype.contains=function(t){return t>=this._min&&t<=this._max},a.prototype.trimRange=function(t,e){return[(0,s.maxv)(t,this._min),(0,s.minv)(e,this._max)]},a.prototype.resetZoom=function(){this._zoom&&(this._zoom=null,this._zooming=!0,this._changed())},a.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new V(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max),this._zoom},a.prototype.zoom=function(t,e,i){void 0===i&&(i=NaN);var r=this._prepareZoom(),n=r.resize(t,e,i);return n&&(r.isFull()&&(this._zoom=null),this._zooming=!0,this._changed()),n},a.prototype.isZoomed=function(){return!!this._zoom},a.prototype.hasBreak=function(){return!1},a.prototype.isBreak=function(t){return!1},a.prototype.getTickLabelArgs=function(t,e){return this._labelArgs.chart=this.chart.wrapper,this._labelArgs.index=t,this._labelArgs.value=e,this._labelArgs},a.prototype.getXLabel=function(t){return t},a.prototype.setPrevRate=function(t,e){this._prevSize=t,this._prevRate=e},a.prototype.prev=function(t){return isNaN(this._prevRate)?t:(this._op.reversed,t*this._prevRate)},a.prototype.checkExtents=function(t,e){var i,r=this;null===(i=this._ani)||void 0===i||i.cancel(),this._min===t&&this._max===e||(this._ani=new h(this,t,e,(function(){r._changed()})))},a.prototype.isAnimating=function(){return!isNaN(this._aniMin)},a.prototype._posValue=function(){var t=this._op.position;return"opposite"===t?-1:"between"===t?0:1},a.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,this._isX?"xAxis":"yAxis",this._type())):t.prototype._load.call(this,e)},a.prototype._doApply=function(e){var i=this,r=this.guides,n=function(t){var e;t!==i._guides&&(i._guides=t,e=(0,s.isArray)(t)?t:[t],r.length=0,e.forEach((function(t){var e;(e="range"===t.type?new P(i):"line"===t.type||isNaN(t.startValue)||isNaN(t.endValue)?new S(i):new P(i)).init(),e._load(t),r.push(e)})))};t.prototype._doApply.call(this,e),e.startAngle=(0,s.pickNum)(this._op.startAngle,0),e.totalAngle=(0,s.maxv)(0,(0,s.minv)(360,(0,s.pickNum)(this._op.totalAngle,360))),this._name=e.name||"-axis-".concat(this._index+1),this._row=(0,s.pickNum)(Math.max(0,e.row|0),0),this._col=(0,s.pickNum)(Math.max(0,e.col|0),0),s.hasOwnProperty.call(e,"guide")?n(e.guide):s.hasOwnProperty.call(e,"guides")&&n(e.guides)},a.prototype._setMinMax=function(t,e){this._min=t,this._max=e,this._single=t===e},a.prototype._connect=function(t){t&&this._series.indexOf(t)<0&&this._series.push(t)},a.prototype._doCalculateRange=function(t){return{min:t.length>0?(0,u.fixnum)(s.minv.apply(void 0,o([],n(t),!1))||0):NaN,max:t.length>0?(0,u.fixnum)(s.maxv.apply(void 0,o([],n(t),!1))||0):NaN}},a.defaults=(0,p.extend)(p.ChartItem.defaults,{visible:void 0,row:0,col:0,startAngle:0,totalAngle:360,position:"normal",reversed:!1,marginNear:0,marginFar:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}: ${detail}",tooltipListRow:["${series}","${detail}"],animatable:!0,fixedSize:!1}),a}(p.ChartItem);e.Axis=k;var T=function(t){function e(e,i){var r=t.call(this,e)||this;return r._map=new Map,r.isX=i,r}return i(e,t),e.prototype._clear=function(){},e.prototype.load=function(t){var e=this,i=this.chart;(0,s.isArray)(t)?t.forEach((function(t,r){return e._items.push(e.$_loadAxis(i,t,r))})):this._items.push(this.$_loadAxis(i,t,0)),this._items.forEach((function(t){t.name&&e._map.set(t.name,t)}))},e.prototype.visibles=function(){return this._items.filter((function(t){return t.checkVisible()}))},e.prototype.contains=function(t){return this._items.indexOf(t)>=0},e.prototype.get=function(t){return(0,s.isString)(t)?this._map.get(t):this._items[t]},e.prototype.disconnect=function(){this._items.forEach((function(t){return t.disconnect()}))},e.prototype.prepare=function(){this._items.forEach((function(t){return t._prepare()}))},e.prototype.collectValues=function(){this._items.forEach((function(t){return t.collectValues()}))},e.prototype.collectRanges=function(){this._items.forEach((function(t){return t.collectRanges()}))},e.prototype.collectReferentValues=function(){this._items.forEach((function(t){t.collectReferentValues()}))},e.prototype.prepareRender=function(){this._items.forEach((function(t){return t._prepareRender()}))},e.prototype.afterRender=function(){this._items.forEach((function(t){return t.afterRender()}))},e.prototype._buildTicks=function(t,e){this._items.sort((function(t,e){return t.isBased()?1:e.isBased()?-1:0})).forEach((function(i){(e<=2||i._isHorz)&&i._buildTicks(t,e)}))},e.prototype.connect=function(t){var e,i=this.isX,r=this._items,n=t.options,o=i?n.xAxis:n.yAxis;if((0,s.isNumber)(o)&&o>=0&&o<r.length?e=r.find((function(t){return t._index===o})):(0,s.isString)(o)&&(e=r.find((function(t){return t.options.name===o}))),e||(e=r[0]),e&&this.chart.isValidAxis(e))return e._connect(t),this.isX?t.setCol(e.col):t.setRow(e.row),e},e.prototype.forEach=function(t){for(var e=0,i=this._items.length;e<i&&!0!==t(this._items[e],e);e++);},e.prototype.isZoomed=function(){var t,e;try{for(var i=r(this._items),n=i.next();!n.done;n=i.next()){if(n.value.isZoomed())return!0}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.resetZoom=function(){this._items.forEach((function(t){return t.resetZoom()}))},e.prototype.$_loadAxis=function(t,e,i){var n,o,a,l=t._getAxisType(e.type);if(!l){var c=void 0;if((0,s.isArray)(e.categories))c="category";else if(this.isX){var p=t._getSeries()._internalItems();if(p.length>0){c="category";try{for(var h=r(p),f=h.next();!f.done;f=h.next()){var d=f.value;if(!d.canCategorized()){if(e.name&&d.options.xAxis===e.name){c=void 0;break}if(d.options.xAxis===i){c=void 0;break}if((0,u.isNull)(d.options.xAxis)&&0===i){c=void 0;break}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}}else c=null===(a=t._getSeries().first)||void 0===a?void 0:a.defYAxisType();c&&(l=t._getAxisType(c))}l||(l=t._getAxisType("linear"));var _=new l(t,this.isX);return _._index=i,_.init(),_._load(e),_},e}(p.ChartItemCollection);e.AxisCollection=T;var L=function(){this._axes=[]};e.PaneAxes=L;var N=function(){function t(t,e){this.chart=t,this.isX=e}return t.prototype.rows=function(){return this._matrix.length},t.prototype.cols=function(){return this._matrix[0].length},t.prototype.get=function(t,e){return this._matrix[t][e]},t.prototype.getRow=function(t){return this._matrix[t]},t.prototype.getColumn=function(t){return this._matrix.map((function(e){return e[t]}))},t.prototype._buildTicks=function(t,e){var i=this.isX;this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()||r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))})),this._matrix.forEach((function(r,n){r.forEach((function(r,n){r._axes.forEach((function(r){r.isBased()&&r._buildTicks(t[i?r.options.col:r.options.row],e)}))}))}))},t.prototype._calcPoints=function(t,e){var i=this.isX;this._matrix.forEach((function(r){r.forEach((function(r,n){r._axes.forEach((function(r){var n=i?r.options.col:r.options.row;r._calcPoints(t[n],e)}))}))}))},t}();e.PaneAxisMatrix=N;var M=function(t){function e(e){return t.call(this,e,!0)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e+1),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<i;o++)r[n].push(new L)}t.forEach((function(t){var i,n,o=t.options.position,s=t.row;"opposite"===o?(s++,t._runPos=o):s<e-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(i=r[s])||void 0===i?void 0:i[t.col])||void 0===n||n._axes.push(t)}))},e}(N);e.PaneXAxisMatrix=M;var j=function(t){function e(e){return t.call(this,e,!1)||this}return i(e,t),e.prototype._prepare=function(t,e,i){for(var r=this._matrix=new Array(e),n=0;n<r.length;n++){r[n]=[];for(var o=0;o<=i;o++)r[n].push(new L)}t.forEach((function(t){var e,n,o=t.options.position,s=t.col;"opposite"===o?(s++,t._runPos=o):t.col<i-1&&"between"===o?(s++,t._runPos="normal"):t._runPos=o,null===(n=null===(e=r[t.row])||void 0===e?void 0:e[s])||void 0===n||n._axes.push(t)}))},e}(N);e.PaneYAxisMatrix=j}(rB);var nB={},oB={},sB={},aB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sB,"__esModule",{value:!0}),sB.Widget=void 0;var lB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aB(e,t),e.prototype._doPrepareRender=function(t){},e}(LM.ChartItem);sB.Widget=lB,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.CircularGaugeGroup=e.CircularGauge=e.CircularGaugeLabel=e.GaugeLabel=e.GaugeRangeBand=e.GaugeRangeLabel=e.GaugeScale=e.GaugeScaleLabel=e.GaugeScaleTick=e.ValueGauge=e.GaugeCollection=e.GaugeGroup=e.Gauge=e.GaugeItem=e.GaugeBase=e.gauge_group_types=e.gauge_types=void 0;var o=iM,s=nM,a=rM,l=LM,u=sB;e.gauge_types={},e.gauge_group_types={};var c=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e}return i(e,t),e.prototype._type=function(){return this.constructor.type},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),e.prototype.getSize=function(t,e){return{width:(0,s.calcPercent)(this._widthDim||this._sizeDim,t,t),height:(0,s.calcPercent)(this._heightDim||this._sizeDim,e,e)}},e.prototype.getLeft=function(t){return(0,s.calcPercent)(this._leftDim,t)},e.prototype.getRight=function(t){return(0,s.calcPercent)(this._rightDim,t)},e.prototype.getTop=function(t){return(0,s.calcPercent)(this._topDim,t)},e.prototype.getBottom=function(t){return(0,s.calcPercent)(this._bottomDim,t)},e.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"gauge",this._type())):t.prototype._load.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Gauge ".concat(this.index+1),this._row=(0,o.pickNum)(e.row|0,0),this._col=(0,o.pickNum)(e.col|0,0),this._setDims(e,"left","right","top","bottom","width","height","siz")},e.defaults=(0,l.extend)(u.Widget.defaults,{size:"100%"}),e}(u.Widget);e.GaugeBase=c;var p=function(t){function e(e){return t.call(this,e.chart)||this}return i(e,t),e}(l.ChartItem);e.GaugeItem=p;var h=function(t){function o(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gindex=-1,e}return i(o,t),o.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_types[t.type]=t}))},o._loadGauge=function(t,e,i){var r=t._getGaugeType(e.type);r||(r=t._getGaugeType(i||t.gaugeType));var n=new r(t);return n.init(),n._load(e),n},o.prototype.setGroup=function(t,e){this._group=t,this._gindex=e},o.defaults=(0,l.extend)(c.defaults,{duration:500}),o}(c);e.Gauge=h;var f=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._gauges=[],e._visibles=[],e}return i(s,t),s.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_group_types[t.type]=t,e.gauge_group_types[t.gaugeType]=t}))},Object.defineProperty(s.prototype,"gauges",{get:function(){return this._gauges.slice(0)},enumerable:!1,configurable:!0}),s.prototype.count=function(){return this._gauges.length},s.prototype.isEmpty=function(){return this._gauges.length<1},s.prototype.visibles=function(){return this._visibles.slice(0)},s.prototype.get=function(t){return this._gauges[t]},s.prototype.getVisible=function(t){return this._visibles[t]},s.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},s.prototype._doApply=function(e){t.prototype._doApply.call(this,e),o.hasOwnProperty.call(e,"children")&&this.$_loadGauges(this.chart,e.children)},s.prototype._doSaveArray=function(t,e){if("children"===t)return this._gauges.map((function(t){return t.saveOptions()}))},s.prototype._prepareRender=function(){var e=this;this._visibles=this._gauges.filter((function(t){return t.visible})),t.prototype._prepareRender.call(this),this._visibles.forEach((function(t,i){e._setGroup(t,i),t._prepareRender()}))},s.prototype.$_loadGauges=function(t,e){var i=this,r=this._gaugesType();(0,o.isArray)(e)?e.forEach((function(e,n){return i.$_add(h._loadGauge(t,e,r))})):(0,o.isObject)(e)&&this.$_add(h._loadGauge(t,e,r))},s.prototype.$_add=function(t){if(t._type()!==this._gaugesType())throw new Error("이 그룹에 포함될 수 없는 게이지입니다: "+t);this._gauges.push(t),t.index=this._gauges.length-1},s.prototype._setGroup=function(t,e){t.setGroup(this,e)},s.defaults=(0,l.extend)(c.defaults,{minValue:0}),s}(c);e.GaugeGroup=f;var d=function(t){function s(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._map={},e._visibles=[],e._gauges=[],e}return i(s,t),Object.defineProperty(s.prototype,"firstGauge",{get:function(){return this._gauges[0]},enumerable:!1,configurable:!0}),s.prototype.isEmpty=function(t){return(t?this._visibles:this._items).length<1},s.prototype.getVisibles=function(){return this._visibles.slice(0)},s.prototype.getPaneVisibles=function(t,e){return this._visibles.filter((function(i){var r=i.row||0,n=i.col||0;return t===r&&e===n}))},s.prototype.getGauge=function(t){var e=this._map[t];if(e instanceof h)return e},s.prototype.get=function(t){return(0,o.isString)(t)?this._map[t]:this._items[t]},s.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],n=this._map={};(0,o.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,o.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){if(t.name&&(n[t.name]=t),t instanceof f)for(var i=0;i<t.count();i++){var r=t.get(i);r.name&&(n[r.name]=r),e._gauges.push(r)}else e._gauges.push(t)})),i._op.gauge=this._gauges.map((function(t){return t.options}))},s.prototype.prepareRender=function(){this._visibles=this._items.filter((function(t){return t.visible})),this._visibles.forEach((function(t){return t._prepareRender()}))},s.prototype.$_loadItem=function(t,i,r){if(0===Object.keys(e.gauge_types).length&&0===Object.keys(e.gauge_group_types).length)throw new Error("The gauge feature cannot be used without the required 'gauge' module. For installation and usage instructions, please visit: https://www.realchart.co.kr/guide/modules");var n=(0,o.isArray)(i.children)&&t._getGaugeGroupType(i.type||t.gaugeType);if(n||(n=t._getGaugeType(i.type||t.gaugeType)),!n)throw new Error("Invalid gauge type: "+i.type);var s=new n(t);return s.init(),s._load(i),s.index=r,s},s}(l.ChartItemCollection);e.GaugeCollection=d;var _=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._prevValue=0,e}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.label=(this._label=this._createLabel()).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getValue=function(){return(0,o.maxv)(this._op.minValue,(0,o.minv)(this._op.maxValue,(0,o.pickNum)(this._runValue,this._op.value)))},e.prototype._setValueRate=function(t){this._runValue=this._prevValue+(this._op.value-this._prevValue)*t},e.prototype.updateValue=function(t){t!==this._op.value&&(this._op.value=t,this._changed())},e.prototype.getLabel=function(t,e){return t.options.text||(t.options.prefix||"")+"${value}"+(t.options.suffix||"")},e.prototype.getParam=function(t){switch(t){case"value":return this.label.options.animatable?(0,o.pickNum)(this._runValue,this._op.value):this._op.value;case"min":return this._op.minValue;case"max":return this._op.maxValue}},e.prototype.calcedMinMax=function(){return{min:this._op.minValue,max:this._op.maxValue}},e.defaults=(0,l.extend)(h.defaults,{minValue:0,maxValue:100,value:0,animatable:!0}),e}(h);e.ValueGauge=_;var y=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.scale=e,i}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{reversed:!1,length:7}),e}(l.ChartItem);e.GaugeScaleTick=y;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getText=function(t){return a.Utils.isValidNum(t)?this._getText(null,t,(0,o.absv)(t)>1e3,!0):t},e.prototype.getDefaultIconPos=function(){return"left"},e}(l.IconedText);e.GaugeScaleLabel=g;var v=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.line=(this._line=new l.ChartItem(e)).init(),t.tick=(this._tick=new y(this)).init(),t.label=(this._label=new g(e)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.range=function(){return{min:this._min,max:this._max}},e.prototype.isEmpty=function(){return this._max<=this._min},e.prototype.buildSteps=function(t,e,i){void 0===i&&(i=NaN),i=(0,o.pickNum)(i,e);var r=this._adjustMinMax((0,o.minv)(e,i),(0,o.maxv)(e,i)),n=r.min,s=r.max;return this._steps=this._buildSteps(t,n,s)},e.prototype.buildGroupSteps=function(t,e){var i=this._adjustGroupMinMax(e),r=i.min,n=i.max;return this._steps=this._buildSteps(t,r,n)},e.prototype.getRate=function(t){return((0,o.maxv)(this._min,t)-this._min)/(this._max-this._min)},e.prototype._adjustMinMax=function(t,e){var i=this.gauge;return t=(0,o.pickNum)(i.options.minValue,t),e=(0,o.pickNum)(i.options.maxValue,e),this._min=(0,o.minv)(t,e),this._max=(0,o.maxv)(e,t),{min:this._min,max:this._max}},e.prototype._adjustGroupMinMax=function(t){var e=this.gauge,i=e.options.minValue,s=e.options.maxValue;return isNaN(i)&&(i=o.minv.apply(void 0,n([],r(t),!1))),isNaN(s)&&(s=o.maxv.apply(void 0,n([],r(t),!1))),this._min=(0,o.minv)(i,s),this._max=(0,o.maxv)(s,i),{min:this._min,max:this._max}},e.prototype._buildSteps=function(t,e,i){var r,n=this._op;return r=Array.isArray(n.steps)?n.steps.slice(0):n.stepCount>0?this._getStepsByCount(n.stepCount,e,i):n.stepInterval>0?this._getStepsByInterval(n.stepInterval,e,i):n.stepPixels>0?this._getStepsByPixels(t,n.stepPixels,e,i):[e,i],this._min=r[0],this._max=r[r.length-1],r},e.prototype._getStepsByCount=function(t,e,i){var r=(i-e)/(t-1),n=Math.pow(10,Math.floor(Math.log10(r))),o=[];r=this._step=Math.ceil(r/n)*n,o.push((0,s.fixnum)(e));for(var a=1;a<t;a++)o.push((0,s.fixnum)(o[a-1]+r));return o},e.prototype._getStepsByInterval=function(t,e,i){var r,n=[];for(n.push(r=e);r<i;)n.push(r+=t);return this._step=t,n},e.prototype._getStepMultiples=function(t){return[1,2,2.5,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r){var n=[],o=r-i;if(0===o)return n;var a,l=o/(Math.floor(t/e)+1-1),u=Math.pow(10,Math.floor(Math.log10(l))),c=this._getStepMultiples(u),p=0;if(l/=u,c)if(l>c[p]){for(;p<c.length-1;p++)if(l>c[p]&&l<c[p+1]){l=c[++p];break}}else l=c[p];for(l*=u,this._step=l,n.push((0,s.fixnum)(a=i));;){if((a+=l)>=r){n.push((0,s.fixnum)(r));break}n.push((0,s.fixnum)(a))}return n},e.defaults=(0,l.extend)(l.ChartItem.defaults,{position:"default",stepPixels:48,gap:8}),e}(l.ChartItem);e.GaugeScale=v;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1}),e}(l.ChartItem);e.GaugeRangeLabel=m;var b=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.gauge=e,i}return i(e,t),e.prototype._doInit=function(t){var e=this.chart;t.rangeLabel=(this._rangeLabel=new m(e)).init(),t.tickLabel=(this._tickLabel=new l.ChartItem(e)).init()},Object.defineProperty(e.prototype,"rangeLabel",{get:function(){return this._rangeLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tickLabel",{get:function(){return this._tickLabel},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(t){return this._thicknessDim?(0,s.calcPercent)(this._thicknessDim,t,0):"inside"===this._op.position?t:e.defaults.thickness},e.prototype.getRanges=function(){return this.$_internalRanges().slice(0)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.ranges)!==r._ranges&&(r._ranges=i,r._runRanges=null),this._setDim(e,"thickness")},e.prototype.$_internalRanges=function(){if(!this._runRanges){var t=this.gauge.calcedMinMax();this._runRanges=(0,s.buildValueRanges)(this._ranges,t.min,t.max,!1,!0)||[]}return this._runRanges},e.defaults=(0,l.extend)(l.ChartItem.defaults,{visible:!1,position:"default",thickness:7,gap:5,itemGap:0}),e}(l.ChartItem);e.GaugeRangeBand=b;var x=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._domain={callback:function(t,e){return t.getParam(e)}},e}return i(e,t),e.prototype._doPrepareRender=function(t){this._domain.numberFormatter=this._numberFormatter},e.defaults=(0,l.extend)(l.ChartText.defaults,{animatable:!0}),e}(l.ChartText);e.GaugeLabel=x;var w=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._offsetX=0,e._offsetY=0,e}return i(e,t),e.prototype.getOffset=function(t,e){return{x:(0,s.calcPercent)(this._offsetXDim,t,0),y:(0,s.calcPercent)(this._offsetYDim,e,0)}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"offsetX","offsetY")},e.defaults=(0,l.extend)(x.defaults,{offsetX:0,offsetY:0}),e}(x);e.CircularGaugeLabel=w;var S=function(){function t(t){void 0===t&&(t=!1),t?(this.setCenterX("50%"),this.setCenterY("50%"),this.setValueRadius("100%")):(this.setCenterX(P.DEF_CENTER),this.setCenterY(P.DEF_CENTER),this.setRadius(P.DEF_RADIUS),this.setInnerRadius(P.DEF_INNER))}return t.prototype.centerX=function(){return this._centerX},t.prototype.setCenterX=function(t){t!==this._centerX&&(this._centerX=t,this._centerXDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.centerY=function(){return this._centerY},t.prototype.setCenterY=function(t){t!==this._centerY&&(this._centerY=t,this._centerYDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_CENTER),!0))},t.prototype.radius=function(){return this._radius},t.prototype.setRadius=function(t){t!==this._radius&&(this._radius=t,this._radiusDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_RADIUS),!0))},t.prototype.innerRadius=function(){return this._innerRadius},t.prototype.setInnerRadius=function(t){t!==this._innerRadius&&(this._innerRadius=t,this._innerDim=(0,s.parsePercentSize)((0,o.pickProp)(t,P.DEF_INNER),!0))},t.prototype.valueRadius=function(){return this._valueRadius},t.prototype.setValueRadius=function(t){t!==this._valueRadius&&(this._valueRadius=t,this._valueDim=(0,s.parsePercentSize)(t,!0))},t.prototype.getCenter=function(t,e){return{x:(0,s.calcPercent)(this._centerXDim,t,t/2),y:(0,s.calcPercent)(this._centerYDim,e,e/2)}},t.prototype.getExtents=function(t){var e=(0,s.calcPercent)(this._radiusDim,t,t/2),i=(0,o.minv)(e,this._innerDim?(0,s.calcPercent)(this._innerDim,e):0),r=i+(e-i)/2;return{radius:e,inner:i,value:this._valueDim?(0,s.calcPercent)(this._valueDim,r):r,radiusThick:e-i}},t.prototype.prepareAngles=function(t,e){var i=(0,o.pickNum)(t%360,0),r=(0,o.maxv)(0,(0,o.minv)(360,(0,o.pickNum)(e,360)));this._startRad=s.ORG_ANGLE+s.DEG_RAD*i,this._handRad=s.DEG_RAD*i,this._sweepRad=s.DEG_RAD*r},t}(),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),this._props=new S},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.getProps=function(){return this._childProps||this._props},e.prototype.getCenter=function(t,e){return this._group?this._childProps.getCenter(t,e):this._props.getCenter(t,e)},e.prototype.getExtents=function(t){return this._group?this._childProps.getExtents(t):this._props.getExtents(t)},e.prototype.labelVisible=function(){return this._label.visible},e.prototype._createLabel=function(){return new w(this.chart)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.prototype.setGroup=function(e,i){t.prototype.setGroup.call(this,e,i),e&&!this._childProps&&(this._childProps=new S)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._label._prepareRender();var i=this._group;i?this._childProps.prepareAngles(i.options.startAngle,i.options.sweepAngle):this._props.prepareAngles(this._op.startAngle,this._op.sweepAngle)},e.DEF_CENTER="50%",e.DEF_RADIUS="40%",e.DEF_INNER="80%",e.defaults=(0,l.extend)(_.defaults,{startAngle:0,sweepAngle:360,clockwise:!0}),e}(_);e.CircularGauge=P;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){this.props=new S,t.label=(this._label=new w(this.chart)).init()},Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.setChildExtents=function(t){var e=this._visibles.length;if(e>0){var i=+this._op.itemGap||0,r=t.radius,n=(r-t.inner-i*(e-1))/e;this._visibles.forEach((function(t,e){var o=t._childProps;o.setRadius(r),o.setInnerRadius(r-n),r-=n+i}))}},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this.props;i.setCenterX(e.centerX),i.setCenterY(e.centerY),i.setRadius(e.radius),i.setInnerRadius(e.innerRadius),i.setValueRadius(e.valueRadius)},e.defaults=(0,l.extend)(f.defaults,{startAngle:0,sweepAngle:360,clockwise:!0,itemGap:4,labelGap:10}),e}(f);e.CircularGaugeGroup=A}(oB);var uB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nB,"__esModule",{value:!0}),nB.Body=nB.BodyDepth=nB.BodyDepthSide=nB.BodyDepthLine=nB.EmptyView=nB.ZoomButton=void 0;var cB=iM,pB=nM,hB=TM,fB=LM,dB=oB,_B=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.body=e,i}return uB(e,t),e.prototype._isVisible=function(){return!1!==this._op.visible&&this.body.isZoomed()&&this.body.canZoom()},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:void 0}),e}(fB.ChartItem);nB.ZoomButton=_B;var yB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doPrepareRender=function(t){this.setText(this._getMessage())},e.prototype._getMessage=function(){return this._op.text||this.chart._body.emptyView._op.text||e.DEF_TEXT},e.DEF_TEXT="표시할 데이터가 없습니다.",e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:void 0}),e}(fB.ChartText);nB.EmptyView=yB;var gB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:!1}),e}(fB.ChartItem);nB.BodyDepthLine=gB;var vB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doInit=function(t){t.line=(this._line=new gB(this.chart)).init(),t.endLine=(this._endLine=new gB(this.chart)).init(),t.gridLine=(this._gridLine=new gB(this.chart)).init()},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"gridLine",{get:function(){return this._gridLine},enumerable:!1,configurable:!0}),e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{}),e}(fB.ChartItem);nB.BodyDepthSide=vB;var mB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uB(e,t),e.prototype._doInit=function(t){t.xSide=(this._xSide=new vB(this.chart)).init(),t.ySide=(this._ySide=new vB(this.chart)).init(),t.orgLine=(this._orgLine=new gB(this.chart)).init()},Object.defineProperty(e.prototype,"xSide",{get:function(){return this._xSide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ySide",{get:function(){return this._ySide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgLine",{get:function(){return this._orgLine},enumerable:!1,configurable:!0}),e.prototype._isVisible=function(){return this._op.visible&&this._op.length>=0},e.prototype._doSetSimple=function(e){return(0,cB.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.angle=(0,cB.minv)(60,(0,cB.maxv)(30,(0,cB.pickNum)(e.angle,45)))},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{visible:!1,length:32,angle:32}),e}(fB.ChartItem);nB.BodyDepth=mB;var bB=function(t){function e(e){var i=t.call(this,e)||this;return i._annotations=new hB.AnnotationCollection(i),i}return uB(e,t),e.prototype._doInit=function(t){t.depth=(this._depth=new mB(this.chart)).init(),t.image=(this._image=new fB.BackgroundImage(null)).init(),t.emptyView=(this._emptyView=new yB(this.chart)).init(),t.zoomButton=(this._zoomButton=new _B(this)).init()},e.prototype.anchorByName=function(t){var e,i=null===(e=this.chart._getGauges())||void 0===e?void 0:e.get(t);return i instanceof dB.GaugeBase&&this.contains(i)?i:this._annotations.get(t)},Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"image",{get:function(){return this._image},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"emptyView",{get:function(){return this._emptyView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zoomButton",{get:function(){return this._zoomButton},enumerable:!1,configurable:!0}),e.prototype.canZoom=function(){return!this.chart.isEmpty(!0)&&("x"===this._op.zoomType||"y"===this._op.zoomType||"both"===this._op.zoomType)},e.prototype._getDepth=function(t,e){if(this._depth.visible&&this.chart._getSeries().canDepth()){var i=this._depth.options,r=i.length,n=i.angle,o=(0,cB.ceil)((0,cB.cos)(n*pB.DEG_RAD)*r),s=(0,cB.ceil)((0,cB.sin)(n*pB.DEG_RAD)*r);return{depth:r,angle:n,base:o,side:s,wBody:t-o,hBody:e-s}}},e.prototype.getRadius=function(t,e){return(0,pB.calcPercent)(this._radiusDim,(0,cB.minv)(t,e))},e.prototype.setPolar=function(t,e){return this._cx=(0,pB.calcPercent)(this._centerXDim,t),this._cy=(0,pB.calcPercent)(this._centerYDim,e),this._rd=(0,pB.calcPercent)(this._radiusDim,(0,cB.minv)(t,e)),this},e.prototype.getPolar=function(t){return this.chart.isPolar()?{start:t?t.getStartAngle():0,total:t?t.getTotalAngle():0,cx:this._cx,cy:this._cy,rd:this._rd,cyclic:t&&t.options.totalAngle>=360}:void 0},e.prototype.isZoomed=function(){return this.chart._getXAxes().isZoomed()||this.chart._getYAxes().isZoomed()},e.prototype.getAnnotations=function(){return this._annotations.getVisibles()},e.prototype.getAnnotation=function(t){return this._annotations.getAnnotation(t)},e.prototype.contains=function(t){return!0},e.prototype._doApply=function(e){var i=this,r=function(t){t!==i._anns&&(i._anns=t,i._annotations.load(t,!0))};t.prototype._doApply.call(this,e),this._setDims(e,"radius","centerX","centerY"),cB.hasOwnProperty.call(e,"annotation")?r(e.annotation):cB.hasOwnProperty.call(e,"annotations")&&r(e.annotations)},e.prototype._doPrepareRender=function(t){this._annotations.prepareRender()},e.defaults=(0,fB.extend)(fB.ChartItem.defaults,{circular:!0,zoomType:"none",radius:"45%",centerX:"50%",centerY:"50%"}),e}(fB.ChartItem);nB.Body=bB;var xB={},wB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),SB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},PB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(xB,"__esModule",{value:!0}),xB.Exporter=void 0;var AB=LM,OB=function(t){function e(){var e=t.apply(this,PB([],SB(arguments),!1))||this;return e._isCompose=!1,e}return wB(e,t),e.prototype.isCompose=function(){return this._isCompose},e.prototype.compose=function(t){this._isCompose||(this._module=t,this._isCompose=!0)},e.prototype.isContextMenuVisible=function(){return this._module&&this._module.isContextMenuVisible()},e.prototype.toggleContextMenu=function(){this._module&&this._module.toggleContextMenu()},e.prototype.exportToImage=function(t,e,i){this._module&&this._module.exportToImage(t,e,i)},e.defaults=(0,AB.extend)(AB.ChartItem.defaults,{useLibrary:!1,menus:["png","jpeg","svg"],fileName:"realchart",scale:1,hideNavigator:!1,hideScrollbar:!1,hideZoomButton:!1}),e}(AB.ChartItem);xB.Exporter=OB;var CB={},VB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),EB=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},kB=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(CB,"__esModule",{value:!0}),CB.Legend=CB.LegendItem=void 0;var TB=rM,LB=iM,NB=nM,MB=LM,jB=sB,RB=function(t){function e(e,i){var r=t.call(this,e.chart)||this;return r.legend=e,r.source=i,r}return VB(e,t),e.prototype.text=function(){return this.source.legendLabel()},e}(MB.ChartItem);CB.LegendItem=RB;var BB=function(t){function e(){var e=t.apply(this,kB([],EB(arguments),!1))||this;return e._items=[],e._visItems=[],e._itemMap={},e}return VB(e,t),e.prototype.items=function(){return this._visItems.slice(0)},e.prototype.getLayout=function(){if("auto"!==this._op.layout||"body"===this._location)return this._op.layout;switch(this._location){case"bottom":case"top":return"horizontal";default:return"vertical"}},e.prototype.getMaxWidth=function(t){return(0,NB.calcPercent)(this._maxWidthDim,t,t)},e.prototype.getMaxHeight=function(t){return(0,NB.calcPercent)(this._maxHeightDim,t,t)},e.prototype.getMarkerSize=function(){return(0,LB.pickNum)(this._op.markerSize,10)},e.prototype.getSources=function(t){var e=this._itemMap[t.source.legendKey()];return e?e.map((function(t){return t.source})):t.source},e.prototype._isVisible=function(){return!0===this._op.visible&&this._visItems.length>0||!1!==this._op.visible&&this._visItems.length>1},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"maxWidth","maxHeight")},e.prototype._doPrepareRender=function(e){var i=this;t.prototype._doPrepareRender.call(this,e);var r=this._op;this._location=(0,LB.pickProp)(r.location,"bottom"),this._items=this._getLegendSources().map((function(t){return new RB(i,t)})),r.reversed&&(this._items=this._items.reverse());var n=this._itemMap={},o=this._visItems=[];this._items.forEach((function(t){var e=t.source.legendKey();if(TB.Utils.isNotEmpty(e)&&""!==e){var i=n[e];i?i.push(t):(n[e]=[t],o.push(t))}else o.push(t)}))},e.prototype._getLegendSources=function(){return this.chart._getSeries().getLegendSources()},e.defaults=(0,MB.extend)(jB.Widget.defaults,{visible:void 0,location:"bottom",layout:"auto",alignBase:"body",gap:6,itemGap:8,markerVisible:!0,markerSize:10,markerGap:4,lineGap:4,offsetX:0,offsetY:0,itemsAlign:"center",seriesHovering:!0,pointHovering:!0}),e}(jB.Widget);CB.Legend=BB;var DB={},IB={},GB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SvgShapes=t.ShapeNames=t._Shapes=void 0;var e=iM,i=nM;t._Shapes={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle"},t.ShapeNames=Object.values(t._Shapes);var r=.001,n=function(){function t(){}var n;return t._createDrawers=function(){for(var t=this,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var r={};return e.forEach((function(e){r[e]=function(i){return t[e](0-i,0-i,2*i,2*i)}})),r},t.getDrawer=function(t){return this._drawers[t]||this._drawers.circle},t.line=function(t,e,i,r){return["M",t,e,"L",i,r]},t.polygon=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,r=["M",t[i],t[i+1]];i<t.length;i+=2)r.push("L",t[i],t[i+1]);return r.push("Z"),r},t.box=function(t,e,i,r){return["M",t,e,"L",i,e,"L",i,r,"L",t,r,"Z"]},t.rect=function(t){return this.rectangle(t.x,t.y,t.width,t.height)},t.rectangle=function(t,e,i,r){return["M",t,e,"h",i,"v",r,"h",-i,"Z"]},t.bar=function(t,i,r,n,o,s){var a=n>0,l=a?0:1;return o>0?s>0?(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s-o:s+o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n+(a?o+s:-o-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):(o=(0,e.minv)((0,e.absv)(n)/2,r/2,o),["M",t,i,"v",n+(a?-o:o),"a",o,o,0,0,l,o,a?o:-o,"h",r-2*o,"a",o,o,0,0,l,o,a?-o:o,"v",-n-o,"Z"]):s>0?(s=(0,e.minv)((0,e.absv)(n)/2,r/2,s),["M",t,i+(a?s:-s),"v",n+(a?-s:+s),"h",r,"v",-n+(a?s:-s),"a",s,s,0,0,l,-s,a?-s:s,"h",2*s-r,"a",s,s,0,0,l,-s,a?s:-s,"Z"]):["M",t,i,"h",r,"v",n,"h",-r,"v",-n,"Z"]},t.square=function(t,i,r,n){var o=(0,e.minv)(r,n);return["M",t+=(r-o)/2,i+=(n-o)/2,"h",o,"v",o,"h",-o,"Z"]},t.circle=function(t,e,i){return["M",t,e,"m",i,0,"a",i,i,0,1,1,2*-i,0,"a",i,i,0,1,1,2*i,0]},t.isCircled=function(t){return i.PI_2-t<r},t.arc=function(t,n,o,s,a,l,u,c){void 0===c&&(c=!1);var p=(0,e.minv)(i.PI_2,(0,e.absv)(l-a)),h=this.isCircled(p),f=p>i.PI?1:0,d=u?1:0,_=(0,e.cos)(a),y=(0,e.sin)(a),g=(0,e.cos)(l-=h?d?r:-.001:0),v=(0,e.sin)(l),m=[];return m.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h&&m.push("M",t,n),c&&m.push("Z"),m},t.sector=function(t,n,o,s,a,l,u,c){var p=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),h=this.isCircled(p),f=p>i.PI?1:0,d=c?1:0,_=(0,e.cos)(l),y=(0,e.sin)(l),g=(0,e.cos)(u-=h?d?r:-.001:0),v=(0,e.sin)(u),m=o*a,b=s*a,x=[];return x.push("M",t+o*_,n+s*y,"A",o,s,0,f,d,t+o*g,n+s*v),h?x.push("M",t+m*g,n+b*v):x.push("L",t+m*g,n+b*v),a>0&&x.push("A",m,b,0,f,1-d,t+m*_,n+b*y),x.push("Z"),x},t.donut=function(t,e,i,r){return["M",t-i,e,"a",i,i,0,1,1,2*i,0,"a",i,i,0,1,1,2*-i,0,"Z","M",t-r,e,"a",r,r,0,1,0,2*r,0,"a",r,r,0,1,0,2*-r,0,"Z"]},t.arc3d=function(t,n,o,s,a,l,u,c,p){function h(t,e,i,r){S.push("M",t,e,"A",o,s,0,f,v,i,r),S.push("L",i,r+a),S.push("A",o,s,0,f,1-v,t,e+a),S.push("Z")}var f,d,_,y,g,v=c?1:0,m=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),b=this.isCircled(m),x=(l%i.PI_2+i.PI_2)%i.PI_2,w=(u%i.PI_2+i.PI_2)%i.PI_2,S=[];if(!b&&(v&&x<=i.PI&&w>=0&&w<x||!v&&w<=i.PI&&x>=0&&x<w))f=0,v?(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(i.PI),g=n+s*(0,e.sin)(i.PI)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(0),_=n+s*(0,e.sin)(0),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g)):(h(d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(0),g=n+s*(0,e.sin)(0)),p&&(p.x1=d,p.y1=_),h(d=t+o*(0,e.cos)(i.PI),_=n+s*(0,e.sin)(i.PI),y=t+o*(0,e.cos)(u),g=n+s*(0,e.sin)(u)),p&&(p.x2=y,p.y2=g));else{d=t+o*(0,e.cos)(l),_=n+s*(0,e.sin)(l),y=t+o*(0,e.cos)(u-=b?v?r:-.001:0),g=n+s*(0,e.sin)(u),v?(x=b||x<=i.PI_2&&!(w>=x&&w<i.PI_2)?0:x,w=b||w>i.PI&&!(x<=w&&x>i.PI)?i.PI:w):(x=b||x>i.PI&&!(w<=x&&w>i.PI)?i.PI:x,w=b||w<i.PI_2&&!(x>=w&&x<i.PI_2)?0:w);var P=t+o*(0,e.cos)(x),A=n+s*(0,e.sin)(x),O=t+o*(0,e.cos)(w-=b?v?r:-.001:0),C=n+s*(0,e.sin)(w);f=(0,e.absv)(w-x)>i.PI?1:0,h(P,A,O,C),p&&(p.x1=d,p.y1=_,p.x2=y,p.y2=g)}return S},t.arc3dInner=function(t,n,o,s,a,l,u,c,p){var h=(0,e.minv)(i.PI_2,(0,e.absv)(u-l)),f=this.isCircled(h),d=c?1:0,_=t+o*(0,e.cos)(l),y=n+s*(0,e.sin)(l),g=t+o*(0,e.cos)(u-=f?d?r:-.001:0),v=n+s*(0,e.sin)(u),m=h>i.PI?1:0,b=[];return b.push("M",_,y,"A",o,s,0,m,d,g,v),b.push(f?"M":"L",g,v+a),b.push("A",o,s,0,m,1-d,_,y+a),p&&(p.x1=_,p.y1=y,p.x2=g,p.y2=v),b.push("Z"),b},t.diamond=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r/2,"L",t+i/2,e+r,"L",t,e+r/2,"Z"]},t.triangle=function(t,e,i,r){return["M",t+i/2,e,"L",t+i,e+r,"L",t,e+r,"Z"]},t.itriangle=function(t,e,i,r){return["M",t,e,"L",t+i,e,"L",t+i/2,e+r,"Z"]},t.star=function(t,i,r,n){var o=-Math.PI/2,s=t+r/2,a=i+n/2+(n/2-n/2*(0,e.sin)(o+6*Math.PI/5))/2,l=r/2,u=n/2,c=r/4,p=n/4,h=2*Math.PI/5,f=h/2,d=[];d.push("M",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o));for(var _=0;_<5;_++)d.push("L",s+l*(0,e.cos)(o),a+u*(0,e.sin)(o),"L",s+c*(0,e.cos)(o+f),a+p*(0,e.sin)(o+f)),o+=h;return d.push("Z"),d},t.setShape=function(t,i,r,o){var s;switch(i){case"square":case"diamond":case"triangle":case"itriangle":case"star":case"rectangle":s=n[i](0,0,(0,e.maxv)(2*r,0),(0,e.maxv)(2*o,0));break;default:s=n.circle(r,o,(0,e.maxv)((0,e.minv)(r,o),0))}t.setPath(s)},n=t,t._drawers=Object.assign({circle:function(t){return n.circle(0,0,t)},none:function(t){return[]}},n._createDrawers("square","diamond","triangle","itriangle","star","rectangle")),t}();t.SvgShapes=n}(GB);var FB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zB=t&&t.__assign||function(){return zB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},zB.apply(this,arguments)};Object.defineProperty(IB,"__esModule",{value:!0}),IB.BackElement=IB.BoxElement=IB.RectElement=void 0;var $B=fj,HB=nM,WB=GB,UB=function(t){function e(e,i,r){void 0===i&&(i=HB._undef),void 0===r&&(r=HB._undef);var n=t.call(this,e,i,"rect")||this;return n.rect=r,n}return FB(e,t),e.create=function(t,i,r,n,o,s,a){return void 0===a&&(a=0),new e(t,i,{x:r,y:n,width:o,height:s,r:a})},Object.defineProperty(e.prototype,"rect",{get:function(){return this._rect&&zB({},this._rect)},set:function(t){if(t!==this._rect&&(this._rect=t&&zB({},t),t)){this.setRect(t);var e=t.rx||t.r,i=t.ry||t.r;e>0&&this.dom.setAttribute("rx",String(e)),i>0&&this.dom.setAttribute("rx",String(i))}},enumerable:!1,configurable:!0}),e.prototype.resizeRect=function(t,e){var i=this.getStyle("border-radius");return this.resize(t,e),i&&this.dom.setAttribute("rx",i),this},e.prototype.setBounds=function(t,e,i,r,n){return void 0===n&&(n=0),this.rect={x:t,y:e,width:i,height:r,r:n},this},e.prototype.setBox=function(t,e,i,r){this.rect=r<0?{x:t,y:e+r,width:i,height:-r}:{x:t,y:e,width:i,height:r}},e.prototype.setRadius=function(t){t>0&&(this._rect&&(this._rect.rx=this._rect.ry=t),this.dom.setAttribute("rx",String(t)),this.dom.setAttribute("ry",String(t)))},e}($B.RcElement);IB.RectElement=UB;var XB=function(t){function e(e,i){return t.call(this,e,i)||this}return FB(e,t),e.prototype.setBox=function(t,e,i,r){return this.setPath(WB.SvgShapes.box(t,e,i,r)),this},e}($B.PathElement);IB.BoxElement=XB;var YB=function(t){function e(e,i){return void 0===i&&(i=HB._undef),t.call(this,e,"dlchart-point-back",i)||this}return FB(e,t),e}(UB);IB.BackElement=YB;var qB={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.PictorialBarSeriesType=t._PictorialBarMode=t.PictogramSeriesType=t.WordCloudSeriesType=t.VectorSeriesType=t._ArrowHead=t._VectorOrigin=t.HeatmapSeriesType=t.TreemapSeriesType=t._TreemapAlgorithm=t.WaterfallSeriesType=t.ScatterSeriesType=t.PieSeriesType=t._PointLabelRotationMode=t.ParetoSeriesType=t.OhlcSeriesType=t.LollipopSeriesType=t.ArearangeSeriesType=t.HistogramSeriesType=t._BinsNumber=t.FunnelSeriesType=t.ErrorBarSeriesType=t.EqualizerSeriesType=t.DumbbellSeriesType=t.CircleBarSeriesGroupType=t.CircleBarSeriesType=t.CandlestickSeriesType=t.BumpSeriesType=t.BubbleSeriesType=t._BubbleSizeMode=t.BoxPlotSeriesType=t.BellCurveSeriesType=t.AreaSeriesType=t.SplineSeriesType=t.LineSeriesType=t._LineStepDirection=t._LineType=t.PieSeriesGroupType=t.BarSeriesGroupType=t.BarSeriesType=t.BarRangeSeriesType=t._PointLabelOverflow=t._PointLabelDedupeMode=t._PointLabelAlign=t.AreaSeriesGroupType=t.LineSeriesGroupType=t._SeriesGroupLayout=t._HoverEffect=t._TrendLineType=t._PointLabelPosition=void 0,t._BarSeriesTypes=t._LineSeriesTypes=t._AreaSeriesTypes=t._CandlestickSeriesTypes=t.RaceLineSeriesType=t.RaceBarSeriesType=t.PictorialSeriesType=void 0,t._PointLabelPosition={AUTO:"auto",DEFAULT:"default",HEAD:"head",FOOT:"foot",FAR:"far",INSIDE:"inside",OUTSIDE:"outside"},t._TrendLineType={LINEAR:"linear",LOGARITHMIC:"logarithmic",POLYNOMIAL:"polynomial",POWER:"power",EXPONENTIAL:"exponential",MOVING_AVERAGE:"movingAverage"},t._HoverEffect={NONE:"none",DEFAULT:"default"},t._SeriesGroupLayout={DEFAULT:"default",OVERLAP:"overlap",STACK:"stack",FILL:"fill"},t.LineSeriesGroupType="linegroup",t.AreaSeriesGroupType="areagroup",t._PointLabelAlign={NONE:"none",NEAR:"near",FAR:"far"},t._PointLabelDedupeMode={DISPLAY_ALL:"displayAll",PRESERVE_ORDER:"preserveOrder",LARGEST_FIRST:"largestFirst"},t._PointLabelOverflow={VISIBLE:"visible",HIDDEN:"hidden"},t.BarRangeSeriesType="barrange",t.BarSeriesType="bar",t.BarSeriesGroupType="bargroup",t.PieSeriesGroupType="piegroup",t._LineType={DEFAULT:"default",SPLINE:"spline",STEP:"step"},t._LineStepDirection={FORWARD:"forward",BACKWARD:"backward",CENTER:"center"},t.LineSeriesType="line",t.SplineSeriesType="spline",t.AreaSeriesType="area",t.BellCurveSeriesType="bellcurve",t.BoxPlotSeriesType="boxplot",t._BubbleSizeMode={WIDTH:"width",AREA:"area"},t.BubbleSeriesType="bubble",t.BumpSeriesType="bump",t.CandlestickSeriesType="candlestick",t.CircleBarSeriesType="circlebar",t.CircleBarSeriesGroupType="circlebargroup",t.DumbbellSeriesType="dumbbell",t.EqualizerSeriesType="equalizer",t.ErrorBarSeriesType="errorbar",t.FunnelSeriesType="funnel",t._BinsNumber={SQURE_ROOT:"squreRoot",STURGES:"struges",RICE:"rice"},t.HistogramSeriesType="histogram",t.ArearangeSeriesType="arearange",t.LollipopSeriesType="lollipop",t.OhlcSeriesType="ohlc",t.ParetoSeriesType="pareto",t._PointLabelRotationMode={ARC:"arc",ANGLE:"angle"},t.PieSeriesType="pie",t.ScatterSeriesType="scatter",t.WaterfallSeriesType="waterfall",t._TreemapAlgorithm={SQUARIFY:"squarify",STRIP:"strip",SLICE:"slice",SLICE_DICE:"sliceDice"},t.TreemapSeriesType="treemap",t.HeatmapSeriesType="heatmap",t._VectorOrigin={CENTER:"center",START:"start",END:"end"},t._ArrowHead={NONE:"none",CLOSE:"close",OPEN:"open"},t.VectorSeriesType="vector",t.WordCloudSeriesType="wordcloud",t.PictogramSeriesType="pictogram",t._PictorialBarMode={AUTO:"auto",BOTH:"both",FIGURE:"figure"},t.PictorialBarSeriesType="pictorialbar",t.PictorialSeriesType="pictorial",t.RaceBarSeriesType="racebar",t.RaceLineSeriesType="raceline",t._CandlestickSeriesTypes={CandlestickSeriesType:t.CandlestickSeriesType,OhlcSeriesType:t.OhlcSeriesType},t._AreaSeriesTypes={AreaSeriesType:t.AreaSeriesType,BellCurveSeriesType:t.BellCurveSeriesType},t._LineSeriesTypes={LineSeriesType:t.LineSeriesType,AreaSeriesType:t.AreaSeriesType,SplineSeriesType:t.SplineSeriesType,BellCurveSeriesType:t.BellCurveSeriesType,RaceLineSeriesType:t.RaceLineSeriesType},t._BarSeriesTypes={BarSeriesType:t.BarSeriesType,RaceBarSeriesType:t.RaceBarSeriesType}}(qB);var ZB={},KB=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),JB=t&&t.__assign||function(){return JB=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},JB.apply(this,arguments)},QB=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ZB,"__esModule",{value:!0}),ZB.RangedPoint=ZB.ZValuePoint=ZB.DataPointCollection=ZB.DataPoint=void 0;var tD=iM,eD=nM,iD=0,rD="_deleted",nD="_drop",oD="_save",sD=function(){function t(t){this.pid=iD++,this.visible=!0,this.source=t}return t.getSum=function(t){var e,i,r=0;try{for(var n=QB(t),o=n.next();!o.done;o=n.next()){var s=o.value;isNaN(s.y)||(r+=s.y)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}return r},t.prototype.ariaHint=function(){return(this.x||this.xValue)+", "+this.yValue},t.prototype.labelCount=function(){return 1},t.prototype.getValue=function(){return this.yValue},t.prototype.isEmpty=function(){return!1},t.prototype.copy=function(){return JB({},this)},t.prototype.assignTo=function(t){return t||(t={}),this._assignTo(t),t},t.prototype.getProp=function(t){return null!==this.source&&this.source[t]},t.prototype.parse=function(t){var e=this.source;null==e?this.isNull=!0:(0,tD.isArray)(e)?0===e.length?this.isNull=!0:this._readArray(t,e):(0,tD.isObject)(e)?(this._readObject(t,e),((0,tD.isArray)(e.drillDown)||(0,tD.isObject)(e.drillDown))&&(this.drillDown=e.drillDown)):this._readSingle(e),this.initValues()},t.prototype.getPointLabel=function(t){return this.yValue},t.prototype.getPointText=function(t){return this.yLabel},t.prototype.getPointIcon=function(t){return this.icon},t.prototype.swap=function(){var t=this.xPos;this.xPos=this.yPos,this.yPos=t},t.prototype.getParam=function(t){var e,i,r,n=this.source||{};if("value"===t)return null!==(e=n[t])&&void 0!==e?e:this.getValue();if(t.indexOf(".")>0){var o=t.split(/\./g),s=null!==(i=this[o[0]])&&void 0!==i?i:n[o[0]];if(null!=s&&"object"==typeof s)for(var a=1;a<o.length;a++)s=s[o[a]];return s}return null!==(r=this[t])&&void 0!==r?r:n[t]},t.prototype._setDeleted=function(){this._prev=this.copy(),this[rD]=!0},t.prototype._isDeleted=function(){return this[rD]},t.prototype._setDrop=function(t){this[nD]=t},t.prototype._getDrop=function(){return this[nD]},t.prototype._setSave=function(t){this[oD]=t},t.prototype._getSave=function(){return this[oD]},t.prototype.updateValues=function(t,e){if(this._prev=this.copy(),(0,tD.isObject)(e)?this.source=Object.assign((0,tD.isObject)(this.source)?this.source:{},e):(0,tD.isArray)(e)?this.source=e.slice(0):this.source=e,this.parse(t),this._valuesChangd(this._prev))return this._prev;this._prev=eD._undef},t.prototype.initValues=function(){},t.prototype.initPrev=function(t,e){e.yValue=t?t.axisMin():0},t.prototype.applyValueRate=function(t,e){},t.prototype._assignTo=function(t){return(0,tD.assignObj)(t,{index:this.index,vindex:this.vindex,x:this.x,y:this.y,xValue:this.xValue,yValue:this.yValue,color:this.color,yLabel:this.yLabel,source:this.source})},t.prototype._readArray=function(t,e){var i=t.options,r=+i.colorField,n=+i.iconField;e.length>1?(this.x=e[(0,tD.pickNum)(i.xField,0)],this.y=e[(0,tD.pickNum)(i.yField,1)]):this.y=e[0],isNaN(r)||(this.color=e[r]),isNaN(n)||(this.icon=e[n])},t.prototype._readObject=function(t,e){this.x=(0,tD.pickProp4)(t._xFielder(e),e.x,e.name,e.label),this.y=(0,tD.pickProp3)(t._yFielder(e),e.y,e.value),this.color=(0,tD.pickProp)(t._colorFielder(e),e.color),this.icon=(0,tD.pickProp)(t._iconFielder(e),e.icon),this.yLabel=e.yLabel,this.labelOptions=e.labelOptions},t.prototype._readSingle=function(t){this.y=t},t.prototype._valuesChangd=function(t){return this.x!==t.x||this.y!==t.y},t}();ZB.DataPoint=sD;var aD=function(){function t(t){this._points=[],this._owner=t}return Object.defineProperty(t.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._points.length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this._points.length<1},t.prototype._internalPoints=function(){return this._points},t.prototype.get=function(t){return this._points[t]},t.prototype.pointAt=function(t,e){function i(t,e,i){return(0,tD.isObject)(t)?t.pid===e:t===i}return this._points.find((function(r){return i(t,r.pid,r.xValue)&&(void 0===e||i(e,r.pid,r.yValue))}))},t.prototype.contains=function(t){return this._points.indexOf(t)>=0},t.prototype.load=function(t){(0,tD.isArray)(t)?this._points=this._owner.initPoints(t):this._points=[]},t.prototype.clear=function(){this._points=[]},t.prototype.add=function(t){this._points.push(t)},t.prototype.remove=function(t){var e=this._points.indexOf(t);if(e>=0)return t._setDeleted(),this._points.splice(e,1),!0},t.prototype.removeAll=function(t){var e=this,i=[];return t.forEach((function(t){var r=e._points.indexOf(t);r>=0&&(t._setDeleted(),i.push(t),e._points.splice(r,1))})),i},t.prototype.clean=function(){this._points=this._points.filter((function(t){return!t[rD]}))},t.prototype.getProps=function(t){return this._points.map((function(e){return e.getProp(t)}))},t.prototype.getCategories=function(t){return this._points.map((function(e){return e[t]}))},t.prototype.forEach=function(t){for(var e=0,i=this._points.length;e<i&&!0!==t(this._points[e],e);e++);},t.prototype.getRunPoints=function(t){var e=this._points,i=t._zoom;if(this._owner.needAxes()&&i){var r=t._range,n=t.axisToData(r.min),o=t.axisToData(r.max);return t.continuous()?e.filter((function(t){return t.xValue>=n&&o>=t.xValue})).slice(0):e.filter((function(t){return t.xValue>n-.5&&o+.5>t.xValue})).slice(0)}return e},t}();ZB.DataPointCollection=aD;var lD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KB(e,t),e.prototype.getPointLabel=function(t){return this.zValue},e.prototype.getPointText=function(t){return this.zLabel},e.prototype.getValue=function(){return this.zValue},e.prototype.getZValue=function(){return this.zValue},e.prototype._assignTo=function(e){return(0,tD.assignObj)(t.prototype._assignTo.call(this,e),{z:this.z,zValue:this.zValue})},e.prototype._valuesChangd=function(e){return this.z!==e.z||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){if(e.length<=1)this.isNull=!0;else{var i=t.options,r=e.length>2?1:0;r>0&&(this.x=e[(0,tD.pickNum)(i.xField,0)]),this.y=e[(0,tD.pickNum)(i.yField,0+r)],this.z=e[(0,tD.pickNum)(i.zField,1+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.z=(0,tD.pickProp)(e._zFielder(i),i.z),this.zLabel=i.zLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.z=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.zValue))},e.prototype.initValues=function(){this.zValue=parseFloat(this.z)},e.prototype.initPrev=function(t,e){e.zValue=this.zValue||0},e.prototype.applyValueRate=function(t,e){this.zValue=(0,tD.incv)(t.zValue,this.zValue,e)},e}(sD);ZB.ZValuePoint=lD;var uD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KB(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.getPointText=function(e){return 1===e?this.lowLabel:t.prototype.getPointText.call(this,0)},e.prototype._assignTo=function(e){return(0,tD.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,r=e.length>2?1:0;this.low=e[(0,tD.pickNum)(i.lowField,0+r)],this.y=e[(0,tD.pickNum3)(i.highField,i.yField,1+r)],r>0&&(this.x=e[(0,tD.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,tD.pickProp)(i[e.options.lowField],i.low),this.y=(0,tD.pickProp3)(i[e.options.highField],i.high,this.y),this.lowLabel=i.lowLabel)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue||0},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,tD.incv)(t.lowValue,this.lowValue,e)},e}(sD);ZB.RangedPoint=uD;var cD={},pD={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.TimeAxisType=t.LogAxisType=t.LinearAxisType=t._AxisFit=t.CategoryAxisType=t._CategoryTickPosition=t._AxisPosition=t._CrosshairType=t.AxisGuideTypes=t.AxisRangeGuideType=t.AxisLineGuideType=t._GuideLabelPosition=t._AxisLabelOverflow=t._AxisLabelArrange=t._AxisLabelLocation=t._AxisUnitLabelPosition=t._AxisTitleAlign=void 0,t._AxisTitleAlign={START:"start",MIDDLE:"middle",END:"end"},t._AxisUnitLabelPosition={START:"start",END:"end"},t._AxisLabelLocation={DEFAULT:"default",INSIDE:"inside"},t._AxisLabelArrange={NONE:"none",ROTATE:"rotate",STEP:"step",ROWS:"rows"},t._AxisLabelOverflow={HIDDEN:"hidden",PULL:"pull",TICK:"tick"},t._GuideLabelPosition={INSIDE:"inside",OUTSIDE:"outside"},t.AxisLineGuideType="line",t.AxisRangeGuideType="range",t.AxisGuideTypes={AxisLineGuideType:t.AxisLineGuideType,AxisRangeGuideType:t.AxisRangeGuideType},t._CrosshairType={AUTO:"auto",LINE:"line"},t._AxisPosition={AUTO:"auto",NORMAL:"normal",OPPOSITE:"opposite",BASE:"base",BETWEEN:"between"},t._CategoryTickPosition={DEFAULT:"default",POINT:"point",EDGE:"edge"},t.CategoryAxisType="category",t._AxisFit={DEFAULT:"default",TICK:"tick",VALUE:"value"},t.LinearAxisType="linear",t.LogAxisType="log",t.TimeAxisType="time"}(pD);var hD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},dD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},_D=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(cD,"__esModule",{value:!0}),cD.CategoryAxis=cD.CategoryAxisGrid=cD.CategoryAxisLabel=cD.CategoryAxisTick=void 0;var yD=iM,gD=nM,vD=rM,mD=pD,bD=rB,xD=LM,wD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hD(e,t),e.prototype.getPosition=function(){var t=this._op.position;return"point"===t||"edge"===t?t:this.axis._isX?"point":"edge"},e.defaults=(0,xD.extend)(bD.AxisTick.defaults,{step:1}),e}(bD.AxisTick);cD.CategoryAxisTick=wD;var SD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hD(e,t),e.prototype.getTick=function(t,e){if(null!=e){var i=this._getText(e,e,!1,!1),r=i.lastIndexOf(this.sep);return(0,yD.isArray)(this.axis.options.categoryField)&&r>0?i.substring(r+this.sep.length):i}return""},e.prototype.getIcon=function(t){var e;return null===(e=this.axis._categories[t.index])||void 0===e?void 0:e.i},e.defaults=(0,xD.extend)(bD.AxisLabel.defaults,{align:"center",verticalAlign:"middle",fillToCategory:!1}),e}(bD.AxisLabel);cD.CategoryAxisLabel=SD;var PD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hD(e,t),e.prototype.getPositions=function(t){var e=t._ani,i=t._pts,r=t.options.reversed,n=t._ticks.length,o=[];if(n>0){var s=Math.max(1,t.tick.options.step||1);if(s>1)for(var a=0,l=1,u=i.length;a<=n&&l<u;a++,l+=s)o.push(e?e.getPos(i[l],r):i[l]);else for(a=0;a<=n;a++)o.push(e?e.getPos(i[a+1],r):i[a+1])}return o},e}(bD.AxisGrid);cD.CategoryAxisGrid=PD;var AD=function(t){function e(){var e=t.apply(this,dD([],fD(arguments),!1))||this;return e._minPad=0,e._maxPad=0,e._catStart=0,e._catStep=1,e._map={},e._catPad=0,e._tstep=1,e}return hD(e,t),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype.xValueAt=function(t){for(var e=2;e<this._pts.length-1;e++)if(t>=this._pts[e-1]&&t<this._pts[e])return this._catMin+e-2;return-1},e.prototype.getCategorySeparator=function(){return this._op.categorySeparator||"+"},e.prototype._type=function(){return"category"},e.prototype.unitPad=function(){return this._catPad},e.prototype.continuous=function(){return!1},e.prototype._prepareZoom=function(){return this._zoom||(this._zoom=new bD.AxisZoom(this),this._zoom.start=this._zoom.min=this._min,this._zoom.end=this._zoom.max=this._max+1),this._zoom},e.prototype._createGrid=function(){return new PD(this)},e.prototype._createTickModel=function(){return new wD(this)},e.prototype._createLabel=function(){return new SD(this)},e.prototype.collectValues=function(){this.label.sep=this.getCategorySeparator(),this.$_collectCategories(this._series),this._isEmpty,this._isEmpty?this._values=vD.Utils.makeIntArray(0,this._categories.length):t.prototype.collectValues.call(this)},e.prototype.getStartAngle=function(){var e,i=t.prototype.getStartAngle.call(this),r=+this._op.startOffset;return r>0&&(i-=(0,yD.minv)(r,1)*((null===(e=this._categories[0])||void 0===e?void 0:e.w)||1)*gD.PI_2/this._catLen),i},e.prototype._doPrepareRender=function(){var t=this._op;this._weights=[],this._isPolar||this._zoom?this._minPad=this._maxPad=this._catPad=0:(this._minPad=(0,yD.pickNum3)(t.minPadding,t.padding,0),this._maxPad=(0,yD.pickNum3)(t.maxPadding,t.padding,0),this._catPad=Math.max(0,Math.min(.5,(0,yD.pickNum)(t.categoryPadding,0))))},e.prototype._adjustMinMax=function(t,e){var i=this._op;return i.minValue<t&&(t=i.minValue),i.maxValue>e&&(e=i.maxValue),{min:t,max:e}},e.prototype._doBuildTicks=function(t,e,i,r){var n=this._label,o=this._weights=this._categories.map((function(t){var e;return null!==(e=t.w)&&void 0!==e?e:1})),s=this._tick.options.step||1,a=[];if(!this._zoom){var l=this._adjustMinMax(t,e),u=l.min,c=l.max;t=Math.floor(u),e=Math.ceil(c)}this._catMin=t,this._catMax=e;var p=this._catLen=e-t+1;this._tstep=Math.max(1,Math.min(p,this._tick.options.step||1));for(var h=-1;h>=t;h--)o.unshift(1);for(var f=Math.max(p,e+1);o.length<f;)o.push(1);o=o.slice(Math.max(0,t),e-Math.min(0,t)+1),p=this._len=this._minPad+this._maxPad+o.reduce((function(t,e){return t+e}),0);var d=this._pts=[];if(p>0){var _=this._minPad;d.push(0);for(h=t;h<=e;h++)d.push(_/p),_+=o[h-t]||1;d.push(_/p),d.push((_+this._maxPad)/p)}var y=this._catStart,g=this._catStep;for(h=1;h<d.length-2;h+=s){var v=t+h-1,m=this._categories[v/g-y];a.push({index:h-1,pos:NaN,value:v,label:n.getTick(h-1,m?m.t:v)})}return this._setMinMax(t,e),a},e.prototype._calcPoints=function(e,i){var r=this._pts;if(i>100)if(0===this._vlen)for(var n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]/=this._vlen;for(n=0;n<r.length;n++)r[n]*=e;if(t.prototype._calcPoints.call(this,e,i),this._isPolar){if(i>100){var o=this._op.totalAngle*gD.DEG_RAD;if(0===e)for(n=0;n<r.length;n++)r[n]=0;else for(n=0;n<r.length;n++)r[n]=r[n]/e*o}}else{var s=void 0;s="edge"===this._tick.getPosition()?r.slice(1,r.length-1):this._ticks.map((function(t){return t.pos})),this._markPoints=s}},e.prototype.getPos=function(t,e){var i=this._pts,r=Math.floor(e-this._catMin+.5),n=i[r+1],o=n+(i[r+2]-n)*(e-Math.floor(e+.5)+.5);return this._op.reversed&&(o=t-o),this._ani?this._ani.getPos(o,this._op.reversed):o},e.prototype.valueAt=function(t,e){var i=this._pts;this._op.reversed&&(e=t-e);for(var r=1;r<i.length-1;r++){var n=i[r],o=i[r+1];if(e>=n&&o>=e)return this._catMin+r-(1-(e-n)/(o-n))}},e.prototype.getUnitLen=function(t,e){var i,r=Math.floor(e-this._catMin+.5);return i=this._ani?this._ani.getPos(this._pts[r+2],this._op.reversed)-this._ani.getPos(this._pts[r+2-1],this._op.reversed):this._pts[r+2]-this._pts[r+2-1],(0,yD.absv)(i)},e.prototype.getLabelLength=function(t,e){var i=Math.floor(e-this._catMin+.5);return i>this._tstep?this._pts[i+2]-this._pts[i+2-this._tstep]:this._pts[i+2+this._tstep-1]-this._pts[i+2-1]},e.prototype.getValue=function(t){return(0,yD.isNumber)(t)?t:this._map[t]},e.prototype.getXLabel=function(t){var e;return(null===(e=this._categories[t])||void 0===e?void 0:e.c)||t},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,e);return this._isX||(i.min=(0,yD.minv)(0,i.min),i.max=(0,yD.maxv)(0,i.max)),i},e.prototype.$_collectCategories=function(t){var e,i,r=this,n=this._op,o=n.categories,s=this._categories=[];if((0,yD.isArray)(o)&&o.length>0)this._len=0,o.forEach((function(t){var e,i,n=null==t?1:(0,yD.pickNum)(t.weight,1),o=t&&t.icon;null==t?i=e=null:(0,yD.isObject)(t)?(e=(0,yD.pickProp)(t.name,t.label),i=(0,yD.pickProp)(t.label,t.name)):i=e=String(t),r._len+=n,s.push({c:e,t:i,w:n,i:o})}));else{var a=this.chart.seriesByName(n.categorySeries),l=this.chart.seriesByName(n.weightSeries)||a,u=n.weightField,c=null==l?void 0:l.data,p=[];!n.weightByFrequency&&u&&(0,yD.isArray)(c)&&c.length>0&&c.forEach((function(t){var e=t[u];vD.Utils.isNumber(e)&&e>=0?p.push(e):p.push(1)})),a&&(t=[a]);var h=n.weightByFrequency,f=void 0,d=0;if((0,yD.isArray)(t)&&t.length>0)try{for(var _=_D(t),y=_.next();!y.done;y=_.next()){var g=y.value.collectCategories(this);g.length>0&&g.forEach((function(t,e){h&&(t!==f?(d>0&&(s[s.length-1].w=d),f=t,d=1):d++),s.find((function(e){return e.c===t}))||s.push({c:t,w:p[e]||1,t:t})}))}}catch(t){e={error:t}}finally{try{y&&!y.done&&(i=_.return)&&i.call(_)}finally{if(e)throw e.error}}d>0&&(s[s.length-1].w=d)}this._map={},s.forEach((function(t,e){var i=t.v=e;null!=t.c&&(r._map[t.c]=i)}))},e.type=mD.CategoryAxisType,e.defaults=(0,xD.extend)(bD.Axis.defaults,{padding:0,categoryPadding:.1,startOffset:0,categorySeparator:"+"}),e}(bD.Axis);cD.CategoryAxis=AD;var OD={},CD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),VD=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},ED=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(OD,"__esModule",{value:!0}),OD.Trendline=OD.TrendlineMarker=OD.TrendlineLabel=OD.TrendlineArea=void 0;var kD=iM,TD=LM,LD=NM,ND=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CD(e,t),e.defaults=(0,TD.extend)(TD.ChartItem.defaults,{visible:!1}),e}(TD.ChartItem);OD.TrendlineArea=ND;var MD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CD(e,t),e.prototype.getAlign=function(t,e,i,r){var n=this._op.align;return"auto"===n&&(n=t?i?"left":"right":r<=0?e?"left":"right":r>=1?e?"right":"left":"center"),n},e.prototype.getVerticalAlign=function(t,e,i){var r=this._op.verticalAlign;return"auto"===r&&(r=t?"middle":i?"bottom":"top"),r},e.prototype.getAlignPolar=function(t){var e=this._op.align;if("auto"===e){var i=(t%(2*Math.PI)*180/Math.PI+360)%360;e=i>=80&&i<=100||i>=260&&i<=280?"center":i>100&&i<260?"left":"right"}return e},e.prototype.getVerticalAlignPolar=function(t){var e=this._op.verticalAlign;if("auto"===e){var i=(t%(2*Math.PI)*180/Math.PI+360)%360;e=i>=80&&i<=100?"bottom":i>=260&&i<=280?"top":"middle"}return e},e.prototype.getOffsetX=function(t){var i=this._op.offsetX;return isNaN(i)?"center"===t?0:e.OFFSET:i},e.prototype.getOffsetY=function(t){var i=this._op.offsetY;return isNaN(i)?"middle"===t?0:e.OFFSET:i},e.prototype.getDefaultIconPos=function(){return"left"},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.position=(0,kD.minv)(1,(0,kD.maxv)(0,(0,kD.pickNum)(e.position,1))),e.align="left"===e.align||"center"===e.align||"right"===e.align?e.align:"auto",e.verticalAlign="top"===e.verticalAlign||"middle"===e.verticalAlign||"bottom"===e.verticalAlign?e.verticalAlign:"auto"},e.OFFSET=4,e.defaults=(0,TD.extend)(TD.ChartItem.defaults,{visible:!1,text:"${expr}",position:1,align:"auto",verticalAlign:"auto"}),e}(TD.IconedText);OD.TrendlineLabel=MD;var jD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return CD(e,t),e.prototype.getRadius=function(){return(0,kD.maxv)(0,(0,kD.pickNum)(this._op.radius,4))},e.defaults=(0,TD.extend)(TD.ChartItem.defaults,{visible:!1,radius:4}),e}(TD.ChartItem);OD.TrendlineMarker=jD;var RD=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i._labelDomain={callback:function(t,e){return"expr"===e?i._expr:""}},i}return CD(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.variableArea=(this._variableArea=new ND(this.chart)).init(),e.fixedArea=(this._fixedArea=new ND(this.chart)).init(),e.label=(this._label=new MD(this.chart)).init(),e.marker=(this._marker=new jD(this.chart)).init()},Object.defineProperty(e.prototype,"variableArea",{get:function(){return this._variableArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixedArea",{get:function(){return this._fixedArea},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"expression",{get:function(){return this._expr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getLabelDomain=function(){return this._labelDomain},e.prototype.setRange=function(t,e,i,r){return this._minX=t,this._maxX=e,this._minY=i,this._maxY=r,this},e.prototype._doPrepareRender=function(t){var e,i,r=this._op,n=r.type,o=this.owner,s=this._res=Math.max(1,(o._visPoints.length-1)*Math.max(1,+r.resolution||5)),a=this._minX>0?0:(this._maxX-this._minX)/s-this._minX,l=this._minY>0?0:(this._maxY-this._minY)/s-this._minY,u=o._visPoints.filter((function(t){return!t.isNull})).map((function(t){return{x:t.xValue+a,y:t.yValue+l}})).sort((function(t,e){return t.x-e.x})),c=(this["_"+n]||this._linear).call(this,this._formatter,u);if(this._points=[],c&&"function"==typeof c.evaluator){if(u.length>0){var p=u[0].x,h=u[u.length-1].x,f=r.forward>0?r.forward:0,d=p-(w=r.backward>0?r.backward:0),_=h+f;if("logarithmic"===n||"power"===n){var y=Number.EPSILON||1e-12;d<=0&&(d=y)}for(var g=_-d,v=(O=h-p)>0?Math.ceil(this._res*g/O):this._res,m=0;m<=v;m++){var b=d+(_-d)*m/v,x=c.evaluator(b);Number.isFinite(x)&&this._points.push({x:b,y:x})}}}else if(c&&Array.isArray(c.points))if("movingAverage"===n&&"flat"===r.maExtrapolation||"linear"===r.maExtrapolation){f=r.forward>0?r.forward:0;var w=r.backward>0?r.backward:0,S=c.points;if(S.length>0){var P=S[0],A=S[S.length-1],O=A.x-P.x,C="flat"===r.maExtrapolation;if(w>0){var V=Math.max(2,Math.ceil(this._res*w/O)),E=w/V;if(C){var k=P.y;for(m=V;m>0;m--)this._points.push({x:P.x-E*m,y:k})}else if(S.length>=2){var T=S[0],L=S[1],N=(L.y-T.y)/(L.x-T.x);for(m=V;m>0;m--){b=P.x-E*m,x=T.y+N*(b-T.x);this._points.push({x:b,y:x})}}else for(k=P.y,m=V;m>0;m--)this._points.push({x:P.x-E*m,y:k})}if((e=this._points).push.apply(e,ED([],VD(S),!1)),f>0){var M=Math.max(2,Math.ceil(this._res*f/O)),j=f/M;if(C){var R=A.y;for(m=1;m<=M;m++)this._points.push({x:A.x+j*m,y:R})}else if(S.length>=2){var B=S[S.length-1],D=S[S.length-2];for(N=(B.y-D.y)/(B.x-D.x),m=1;m<=M;m++){b=A.x+j*m,x=B.y+N*(b-B.x);this._points.push({x:b,y:x})}}else for(R=A.y,m=1;m<=M;m++)this._points.push({x:A.x+j*m,y:R})}}}else(i=this._points).push.apply(i,ED([],VD(c.points),!1));this._expr=c&&c.expr,this._points.forEach((function(t){t.x-=a,t.y-=l}))},e.prototype.getLabel=function(){return""},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),e.forward=(0,kD.maxv)(0,(0,kD.pickNum)(e.forward,0)),e.backward=(0,kD.maxv)(0,(0,kD.pickNum)(e.backward,0)),this._formatter=LD.NumberFormatter.getFormatter(e.numberFormat||"0.####")},e.prototype._calcLine=function(t){var e=t.length,i=0,r=0,n=0,o=0;t.forEach((function(t){i+=t.x,r+=t.y,n+=t.x*t.y,o+=t.x*t.x}));var s=e*o-i*i,a=0===s?0:(e*n-i*r)/s;return{m:a,a:(r-a*i)/e}},e.prototype._linear=function(t,e){if(e.length>1){var i=this._calcLine(e),r=i.m,n=i.a;return{expr:"y = ".concat(t.toStr(r),"x + ").concat(t.toStr(n)),evaluator:function(t){return r*t+n}}}return{}},e.prototype._logarithmic=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:Math.log(t.x),y:(0,kD.pickNum)(t.y,0)}})),r=this._calcLine(i),n=r.m,o=r.a;return{expr:"y = ".concat(t.toStr(n),"log(x) ").concat(o>0?"+":"-"," ").concat(t.toStr((0,kD.absv)(o))),evaluator:function(t){return t<=0?NaN:o+Math.log(t)*n}}}return{}},e.prototype._power=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:Math.log(t.x),y:Math.log(t.y)}})),r=this._calcLine(i),n=r.m,o=r.a,s=Math.exp(o);return{expr:"y = ".concat(t.toStr(s),"(x^").concat(t.toStr(n),")}"),evaluator:function(t){return t<=0?NaN:s*Math.pow(t,n)}}}return{}},e.prototype._calcLine2=function(t){var e=0,i=0,r=0,n=0,o=0;t.forEach((function(t){t.x,e+=t.y,i+=t.x*t.x*t.y,r+=t.y*Math.log(t.y),n+=t.x*t.y*Math.log(t.y),o+=t.x*t.y}));var s=e*i-o*o,a=Math.exp((i*r-o*n)/s);return{m:(e*n-o*r)/s,a:a}},e.prototype._exponential=function(t,e){if(e.length>1){var i=e.map((function(t){return{x:t.x,y:t.y}})),r=this._calcLine2(i),n=r.m,o=r.a;return{expr:"y = ".concat(t.toStr(o),"(e^(").concat(t.toStr(n),"x))"),evaluator:function(t){return o*Math.exp(n*t)}}}return{}},e.prototype._polynomial=function(t,e){var i=e.length;if(i>1){for(var r=[],n=[],o=0,s=0,a=0;a<3;a++){for(var l=0;l<i;l++)o+=Math.pow(e[l].x,a)*e[l].y;r.push(o),o=0;for(var u=[],c=0;c<3;c++){for(l=0;l<i;l++)s+=Math.pow(e[l].x,a+c);u.push(s),s=0}n.push(u)}n.push(r);var p=function(t,e){for(var i=t,r=t.length-1,n=[e],o=0;o<r;o++){for(var s=o,a=o+1;a<r;a++)(0,kD.absv)(i[o][a])>(0,kD.absv)(i[o][s])&&(s=a);for(var l=o;l<r+1;l++){var u=i[l][o];i[l][o]=i[l][s],i[l][s]=u}for(a=o+1;a<r;a++)for(l=r;l>=o;l--)i[l][a]-=i[l][o]*i[o][a]/i[o][o]}for(a=r-1;a>=0;a--){var c=0;for(l=a+1;l<r;l++)c+=i[l][a]*n[l];n[a]=(i[r][a]-c)/i[a][a]}return n}(n,3),h=p.map((function(e,i){var r=+e;if(!isFinite(r)||0===r)return"";var n=t.toStr(r);if("0"===n)return"";if(0===i)return r<0?"-".concat(n):"".concat(n);var o=1===i?"x":"x^".concat(i);return"".concat(r<0?"- ":"+ ").concat(n).concat(o)})).filter((function(t){return t})).join(" ").replace(/^\+ /,"");return{expr:"y = "+(h||"0"),evaluator:function(t){return p.reduce((function(e,i,r){return e+i*Math.pow(t,r)}),0)}}}},e.prototype._movingAverage=function(t,e){for(var i=e.length,r=(0,kD.maxv)(1,(0,kD.minv)(i-1,this._op.movingInterval)),n=[],o=r;o<=i;){var s=e.slice(o-r,o).reduce((function(t,e){return t+(0,kD.pickNum)(e.y,0)}),0);n.push({x:e[o-1].x,y:s/r}),o++}return{expr:"y = movingAverage(".concat(t.toStr(r),")"),points:n}},e.defaults=(0,TD.extend)(TD.ChartItem.defaults,{visible:!1,type:"linear",resolution:5,movingInterval:2,maExtrapolation:"none"}),e}(TD.ChartItem);OD.Trendline=RD,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__assign||function(){return r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},r.apply(this,arguments)},n=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},o=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},s=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSeries=e.ClusterableSeriesGroup=e.ConstraintSeriesGroup=e.SeriesGroup=e.LowRangedSeries=e.RangedSeries=e.BasedSeries=e.BasedSeriesLabel=e.ClusterableSeries=e.RadialSeries=e.WidgetSeries=e.OthersGroup=e.WidgetSeriesLabel=e.WidgetSeriesConnector=e.WidgetSeriesPoint=e.SeriesMarker=e.ConnectableSeries=e.PlottingItemCollection=e.Series=e.PALETTE_LEN=e.DataPointLabel=e.DataPointLabelLine=e.series_group_types=e.series_types=void 0;var a=iM,l=Pj,u=nM,c=rM,p=IB,h=GB,f=dM,d=qB,_=FR,y=LM,g=ZB,v=cD,m=OD;e.series_types={},e.series_group_types={};var b=/\$\{detail\}/g,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1}),e}(y.ChartItem);e.DataPointLabelLine=x;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var r;return i(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){return i._point.getParam(e)}}},e.prototype.getValue=function(t,e){if(this._op.textField){var i=t.getProp(this._op.textField);if(null!=i)return i}return t.getPointLabel(e)},e.prototype.getTextDomain=function(t){return this._point=t,this._domain},e.prototype.getText=function(t){return c.Utils.isValidNum(t)?this._getText(null,t,(0,a.absv)(t)>1e3,!0):t},e.prototype.getOffset=function(){return(0,a.pickNum)(this._op.offset,0)},e.prototype.getDefaultIconPos=function(){return"top"},e.prototype.getRotation=function(){return(0,a.maxv)(-90,(0,a.minv)(90,(0,a.pickNum)(this._op.rotation,0)))},e.prototype._isVisible=function(){return this._op.visible||(0,a.isFunc)(this._op.visibleCallback)},e.prototype._doSetSimple=function(e){return(0,a.isFunc)(e)?(this._op.visibleCallback=e,this._op.visible=!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){"auto"===e.position&&(e.position="default"),t.prototype._doApply.call(this,e),this._overflowFit="hidden"===e.overflowFit?1/0:"none"===e.overflowFit?NaN:+e.overflowFit,this._vertAdjust=(0,a.pickNum)(e.verticalAdjust,0)},e.prototype._doPrepareRender=function(e){t.prototype._doPrepareRender.call(this,e),this._domain.numberFormatter=this._numberFormatter},r=e,e.OFFSET=4,e.defaults=(0,y.extend)(y.IconedText.defaults,{visible:void 0,position:"default",offset:r.OFFSET,overflowFit:0,overlapOutline:!0,verticalAdjust:.05,rotation:0}),e}(y.IconedText);e.DataPointLabel=w;var S={x:"xValue",y:"yValue",z:"zValue"},P=function(t){function e(e,i,r){var n=t.call(this)||this;return n.series=e,n.point=i,n.delay=r?200:0,n.duration=500,n.endHandler=function(){delete n.point._vr,n.series._changed(),n.series=n.point=null},n}return i(e,t),e.prototype._doUpdate=function(t){return!this.point._isDeleted()&&(this.point._vr=t,this.series._changed(),!0)},e}(l.RcAnimation),A=function(t){function e(e,i,r){var s=t.call(this)||this;return s.series=e,s.points=i,r&&(r.cancel(),s._prevAnis=r._prevAnis?o(o([],n(r._prevAnis),!1),[r],!1):[r],s._prevVrs=new Map,s._prevAnis.forEach((function(t){t.points.forEach((function(t){isNaN(t._vr)||s._prevVrs.set(t,t._vr)}))}))),i.forEach((function(t){t._setDeleted()})),s.duration=e._decayDuration,s.endHandler=function(t,e){s.series._dataPointsChanged(),e||(s.series.getPoints().clean(),s.series.$_clearDecay())},s.series.$_setDecay(s),s}return i(e,t),e.prototype._doUpdate=function(t){var e=this;return this._prevAnis&&this._prevAnis.forEach((function(i){i.points.forEach((function(i){var r=e._prevVrs.get(i);void 0!==r&&(i._vr=r*(1-t))}))})),this.points.forEach((function(e){e._vr=1-t})),this.series._changed(),!0},e}(l.RcAnimation),O=function(t){function e(e,i,r){var n=t.call(this)||this;return n.series=e,n._points=[],Array.isArray(i)&&i.forEach((function(t){n.addPoint(t)})),n._interval=r,n.duration=Number.POSITIVE_INFINITY,n.endHandler=function(t,e){n.series._dataPointsChanged(),n.series.$_clearDrop()},n}return i(e,t),e.prototype.addPoint=function(t){if(t&&!this._points.includes(t)){var e=this.series._getLabeledPoints().slice();e.sort((function(t,e){return t.xValue-e.xValue})),t.xValue<=e[0].xValue?t._setDrop(-1):t.xValue>=e[e.length-1].xValue&&t._setDrop(1),this._points.push(t),t._vr=0}return this},e.prototype._doUpdate=function(t,e){for(var i=this._points,r=i.length-1;r>=0;r--)i[r]._vr+=this._interval<=0?1:e/this._interval,(isNaN(i[r]._vr)||i[r]._vr>=1)&&i.splice(r,1);return 0!==i.length&&(this.series._changed(),!0)},e}(l.RcAnimation),C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(g.DataPoint);e.PALETTE_LEN=12;var V=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._seriesIndex=0,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_types[t.type]=t}))},r._loadSeries=function(t,e,i,r){var n=t._getSeriesType(i.type);if(!n&&i.type&&console.error("Unknown series type: '".concat(i.type,"'")),!n&&!(n=t._getSeriesType(r||t.type)))throw new Error("Invalid series type: "+i.type+", "+t.type);var o=new n(t);return o._setIndex(e,t._seriesIndex++),o.init(),o._load(i),o},r.getPointTooltipParam=function(t,e,i){switch(i){case"series":return t.displayName();case"name":return e.getParam(i)||t._xAxisObj.getXLabel(e.xValue);case"xValue":return t._xAxisObj.value2Tooltip(e.xValue);case"yValue":return t._yAxisObj.value2Tooltip(e[i]);default:return e.getParam(i)}},r.prototype._doInit=function(t){this._points=new g.DataPointCollection(this),this._pointArgs={},this._paletteColors=Array(e.PALETTE_LEN).fill(0).map((function(t,e){return e})),this.chart.chartOptions.options.paletteMode==u._PaletteMode.SHUFFLE&&c.Utils.shuffle(this._paletteColors),t.pointLabel=(this._pointLabel=this._createLabel(this.chart)).init()},r.prototype.onDataValueChanged=function(t,e,i,r,n){c.Utils.log("onDataValueChanged",e,i,r,n);var o=this._runPoints[e];if(o){var s={};s[i]=r,this.updatePoint(o,s)}},r.prototype.onDataRowUpdated=function(t,e,i){},r.prototype.onDataRowAdded=function(t,e){c.Utils.log("onDataRowAdded",e),this.addPoint(t.getRow(e))},r.prototype.onDataRowDeleted=function(t,e){c.Utils.log("onDataRowDeleted",e);var i=this._runPoints[e];i&&this.removePoint(i)},r.prototype.onDataChanged=function(t){c.Utils.log("onDataChanged")},r.prototype.isGroupTooltip=function(){return!1},r.prototype.getTooltipDetail=function(t){var e,i=this._op;return i.tooltipDetailCallback&&(this._getPointCallbackArgs(this._pointArgs,t),e=i.tooltipDetailCallback(this._pointArgs)),void 0===e&&(e=i.tooltipDetail||""),e},r.prototype.getTooltipText=function(t,e){var i,r=this._op;return r.tooltipCallback&&(this._getPointCallbackArgs(this._pointArgs,e),i=r.tooltipCallback(this._pointArgs)),void 0===i&&(i=r.tooltipText)&&(i=i.replace(b,this.getTooltipDetail(e))),i},r.prototype.getTooltipParam=function(t,e,i){return r.getPointTooltipParam(t,e,i)},r.prototype._type=function(){return this.constructor.type},r.prototype._viewType=function(){return this._type()},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){this._row=t},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){this._col=t},Object.defineProperty(r.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),r.prototype._setData=function(t){t!==this._data&&(this._op.data=this._data=t,this._dataSourceDirty=!0,this._changed())},Object.defineProperty(r.prototype,"pointCount",{get:function(){return this._runPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"points",{get:function(){return this._runPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePointCount",{get:function(){return this._visPoints.length},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visiblePoints",{get:function(){return this._visPoints.slice(0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isWidget",{get:function(){return!1},enumerable:!1,configurable:!0}),r.prototype.getVisiblePoint=function(t){return this._visPoints[t]},r.prototype.contains=function(t){return this._points.contains(t)},r.prototype.getPoints=function(){return this._points},r.prototype._getLabeledPoints=function(){return this._visPoints},r.prototype.getPointsByRange=function(t,e){var i=[];return this._points.forEach((function(r){e>=r.xValue&&r.xValue>=t&&i.push(r)})),i},r.prototype._getVisiblePoints=function(){return this._points.getRunPoints(this._xAxisObj)},r.prototype.pointLabelCount=function(){return 1},r.prototype.isEmpty=function(){return this._points.isEmpty()},r.prototype.needAxes=function(){return!0},r.prototype.canCategorized=function(){return!1},r.prototype.hasZ=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.isMarker=function(){return!1},r.prototype.isXY=function(){return!1},r.prototype.displayName=function(){return this._op.label||this.name},r.prototype.legendMarker=function(t,e){return this._legendMarker||(this._legendMarker=this._createLegendMarker(t,e)),this._legendMarker},r.prototype.legendColor=function(){return this._calcedColor},r.prototype.legendStroke=function(){return this._calcedStroke},r.prototype.legendLabel=function(){return this._op.label||this.name},r.prototype.legendKey=function(){return this[this._op.legendKey]},r.prototype.styleLegendMarker=function(t){},r.prototype.canMixWith=function(t){return!0},r.prototype.getBaseValue=function(t){return NaN},r.prototype.isBased=function(t){return!1},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.hasShape=function(){return!1},r.prototype.setShape=function(t){},r.prototype.seriesChanged=function(){return this._pointsChanged},r.prototype.getMinPointWidth=function(){return NaN},r.prototype.isRace=function(){return!1},Object.defineProperty(r.prototype,"xMax",{get:function(){return this._maxX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"xMin",{get:function(){return this._minX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yMax",{get:function(){return this._maxY},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yMin",{get:function(){return this._minY},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"zMax",{get:function(){return this._maxZ},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"zMin",{get:function(){return this._minZ},enumerable:!1,configurable:!0}),r.prototype.canDepth=function(){return!1},r.prototype.getVisibleSeries=function(){return[this]},r.prototype._getNoClip=function(t){return this._group?this._group.options.noClip:this._op.noClip},r.prototype.needClip=function(t){var e=this._getNoClip(t);return t?!1===e:!0!==e},r.prototype.connectable=function(t){return!1},r.prototype.initPoints=function(t){var e=this;return this._containsNull=!1,t.map((function(t,i){return e.$_addPoint(t,i)}))},r.prototype.$_getXStart=function(t){var e=t.getValue(this._op.xStart),i=isNaN(e)?t.getValue(this.chart.chartOptions.getXStart(t)):e;return(0,a.pickNum)(i,t.getXStart())},r.prototype.$_getXStep=function(t){return(0,a.pickProp3)(this._op.xStep,this.chart.chartOptions.options.xStep,1)},r.prototype._buildVisPoints=function(t){return t.filter((function(t){return!1!==t.visible}))},r.prototype._prepareRunPoints=function(t,e){this._runPoints=this._points.getRunPoints(t),this.visible&&!this._referents?this._visPoints=this._buildVisPoints(this._runPoints):this._visPoints=null},r.prototype._dataSourceChanged=function(){var t=this._doLoadData(this._data);this._loadPoints(t)},r.prototype._connect=function(t){this._xAxisObj=this._group?this._group._xAxisObj:t._connectSeries(this,!0),this._yAxisObj=this._group?this._group._yAxisObj:t._connectSeries(this,!1)},r.prototype._prepareRender=function(){this._legended=null,this._calcedColor=void 0,this._dataSourceDirty&&(this._dataSourceChanged(),this._dataSourceDirty=!1),this._prepareRunPoints(this._xAxisObj,this._yAxisObj),this._pointLabel._prepareRender(),t.prototype._prepareRender.call(this)},r.prototype.prepareAfter=function(){this._pointsChanged=!1},r.prototype.collectCategories=function(t){if(t instanceof v.CategoryAxis)return this._doCollectCategories(t)},r.prototype._doCollectCategories=function(t){var e=t.options.categoryField;if(null!=e){if((0,a.isArray)(e)){var i=e.length-1,r=t.getCategorySeparator();return this._points._internalPoints().filter((function(t){return(0,a.isString)(t.getProp(e[i]))})).map((function(t){return e.map((function(e){return t.getProp(e)})).join(r)}))}return this._points.getProps(e).filter((function(t){return(0,a.isString)(t)}))}return this._points.getCategories(t===this._xAxisObj?"x":"y").filter((function(t){return(0,a.isString)(t)}))},r.prototype.collectValues=function(t,e){if(t===this._xAxisObj){var i=this.$_getXStart(t),r=this.$_getXStep(t);(0,a.isString)(r)&&(r=r.trim()),this._points.forEach((function(e,n){var o=t.getValue(e.x);isFinite(o)||(o=i,i=t.incStep(i,r)),e.xValue=o})),e&&this._runPoints.forEach((function(t){!1!==t.visible&&e.push(t.xValue)}))}else{var n=this.hasZ();this._points.forEach((function(e,i){if(e.isNull)e.y=e.yGroup=e.yValue=NaN;else{var r=null==e.y?NaN:t?t.getValue(e.y):+e.y;isNaN(r)&&t&&(r=t.getValue(e.y)),e.initValues(),!isNaN(e._vr)&&e._prev&&(n?isNaN(e._prev.zValue)&&e.initPrev(t,e._prev):(isNaN(e._prev.yValue)&&e.initPrev(t,e._prev),r=e._prev.yValue+(r-e._prev.yValue)*e._vr),e.applyValueRate(e._prev,e._vr)),e.yValue=e.yGroup=r,e.isNull=!isFinite(r)}})),this._runPoints.forEach((function(t){e&&!1!==t.visible&&isFinite(t.yValue)&&e.push(t.yValue)}))}},r.prototype.collectRanges=function(t,e){if(t&&t._isX)e&&!isNaN(this._minX)&&e.push(this._minX,this._maxX);else{var i=this._visPoints,r=i.length;if(r>0){var n=this._trendline,o=this._pointArgs,s=this.hasZ(),a=i[0],l=a.xValue,u=l,c=a.yValue,p=c,h=s?a.zValue:null,f=h;a.vindex=0;for(var d=1;d<r;d++)(a=i[d]).vindex=d,isNaN(p)&&!isNaN(a.yValue)?c=p=a.yValue:a.yValue>p?p=a.yValue:a.yValue<c&&(c=a.yValue),isNaN(u)&&!isNaN(a.xValue)?l=u=a.xValue:a.xValue>u?u=a.xValue:a.xValue<l&&(l=a.xValue);if(s)for(d=1;d<r;d++){var _=i[d].zValue;isNaN(f)&&!isNaN(_)?h=f=_:_>f?f=_:_<h&&(h=_)}if(null==n?void 0:n.visible){n.setRange(l,u,c,p)._prepareRender();var y=n._points||[],g=y.map((function(t){return t.y})).filter((function(t){return Number.isFinite(t)})).sort((function(t,e){return t-e})),v=y.map((function(t){return t.x})).filter((function(t){return Number.isFinite(t)})).sort((function(t,e){return t-e}));g.length>0&&(c=Math.min(c,g[0]),p=Math.max(p,g[g.length-1])),v.length>0&&(l=Math.min(l,v[0]),u=Math.max(u,v[v.length-1]))}o.yMin=this._minY=c,o.yMax=this._maxY=p,o.xMin=this._minX=l,o.xMax=this._maxX=u,s&&(o.zMin=this._minZ=h,o.zMax=this._maxZ=f)}this.$_prepareViewRanges(i),e&&!isNaN(this._minY)&&e.push(this._minY,this._maxY)}},r.prototype.getAxisPadRate=function(){return(0,a.pickNum)(this._op.paddingRate,1)},r.prototype._getRangeMinMax=function(t){var e,i;return"x"===t?(e=this._minX,i=this._maxX):"z"===t?(e=this._minZ,i=this._maxZ):(e=this._minY,i=this._maxY),{min:e,max:i}},r.prototype.$_prepareViewRanges=function(t){var e=this,i=this._runRangeValue=this.getViewRangeAxis(),r=this._getRangeMinMax(i),n=r.min,o=r.max;(this._runRanges=(0,u.buildValueRanges)(this._op.viewRanges,n,o,!1,!1,!0,this._runColor))?t.forEach((function(t,r){e._setViewRange(t,i)})):t.forEach((function(t,e){t.range=u._undef}))},r.prototype.prepareReferents=function(t){var e=this;this._referents&&this._referents.forEach((function(i){return i.visible&&i.refer(e,t)})),this.visible&&!this._visPoints&&(this._visPoints=this._buildVisPoints(this._runPoints))},r.prototype.refer=function(t,e){},r.prototype.getLegendSources=function(t){!1!==this._op.visibleInLegend&&t.push(this)},r.prototype.getLabelPos=function(t){return this._getLabelDefaultPos(t,t.options.position)},r.prototype._getLabelDefaultPos=function(t,e){return e},r.prototype.getLabelPos2=function(t,e){return this._labelPosCallback?this._getLabelDefaultPos(t,this._labelPosCallback(this._getPointCallbackArgs(this._pointArgs,e))):this._labelPos},r.prototype.getLabelOff=function(t){return t},r.prototype.getLabelOff2=function(t){return this._labelOffCallback?(0,a.pickNum)(this._labelOffCallback(this._getPointCallbackArgs(this._pointArgs,t)),w.OFFSET):this._labelOff},r.prototype.referBy=function(t){t&&(this._referents?this._referents.indexOf(t)<0&&this._referents.push(t):this._referents=[t])},r.prototype.setPointVisible=function(t,e){t&&e!==t.visible&&(t.visible=e,this.chart._pointVisibleChanged(this,t))},r.prototype._preparePointArgs=function(t){this._pointLabelCallback=this._pointLabel.options.textCallback,this._argsPoint=null,t.chart=this.chart.wrapper,t.series=this,t.count=this._points.count},r.prototype._getPointCallbackArgs=function(t,e){return e!==this._argsPoint&&(this._preparePointArgs(t),(this._argsPoint=e).assignTo(t)),t},r.prototype.getPointText=function(t,e,i){var r;return this._pointLabelCallback&&(this._pointArgs.labelIndex=e,this._getPointCallbackArgs(this._pointArgs,t),null!=(r=this._pointLabelCallback(this._pointArgs)))||null!=(r=t.getPointText(e))?r:i},r.prototype.getPointStyle=function(t){if(this._op.pointStyleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._op.pointStyleCallback(this._pointArgs)},r.prototype.getPointLabelStyle=function(t){if(this._pointLabel.options.styleCallback)return this._getPointCallbackArgs(this._pointArgs,t),this._pointLabel.options.styleCallback(this._pointArgs)},r.prototype.pointClicked=function(t){if(this._op.onPointClick)return this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointClick(this._pointArgs)},r.prototype.pointHovered=function(t){this._op.onPointHover&&(t&&this._getPointCallbackArgs(this._pointArgs,t),this._op.onPointHover(t?this._pointArgs:null))},r.prototype.getViewRangeAxis=function(){return this._op.viewRangeValue||this._defViewRangeValue()},r.prototype.isLabelsVisible=function(){return this._pointLabel.visible},r.prototype.isPointLabelVisible=function(t){var e=this._pointLabel;return!1!==e.visible&&(e.options.visibleCallback?(this._getPointCallbackArgs(this._pointArgs,t),e.options.visibleCallback(this._pointArgs)):!0===e.visible)},r.prototype.getPointAt=function(t,e){return(0,a.isString)(t)&&(t=this._xAxisObj.getValue(t)),this._points.pointAt(t)},r.prototype.getValueAt=function(t,e){void 0===e&&(e="yValue");var i=this.getPointAt(t);return i?i[e]:u._undef},r.prototype._dataPointsChanged=function(){this._pointsChanged=!0,this.chart._dataChanged(),this._changed()},r.prototype.updatePoint=function(t,e,i){if(void 0===i&&(i=!0),t instanceof g.DataPoint||(t=this.getPointAt(t)),t){var r=t._prev;return r&&r.ani&&r.ani.cancel(),(r=t.updateValues(this,e))&&i&&this.chart.animatable()&&(r.ani=new P(this,t,!1),r.ani.start()),this._dataPointsChanged(),!!r}return!1},r.prototype.updateData=function(t){this._setData(t),this._dataPointsChanged()},r.prototype._needAddAnimation=function(){return!0},r.prototype.addPoint=function(t,e){void 0===e&&(e=!0);var i=this._doAddPoint(t);if(i){if(this._points.add(i),e&&this.chart.animatable()&&this._needAddAnimation()){var r=i._prev=i.copy();r.ani=new P(this,i,this._points.count>1),r.ani.start()}this._dataPointsChanged()}return i},r.prototype.addPoints=function(t,e){var i=this;void 0===e&&(e=!0);var r=[];return(0,a.isArray)(t)&&t.forEach((function(t){var e=i._doAddPoint(t);e&&r.push(e)&&i._points.add(e)})),r.length>0&&(e&&this.chart.animatable()&&r.forEach((function(t){var e=t._prev=t.copy();e.ani=new P(i,t,i._points.count>1),e.ani.start()})),this._dataPointsChanged()),r},r.prototype._needDecayEffect=function(){return!1},r.prototype.removePointAt=function(t,e){void 0===e&&(e=!0);var i=this._points.get(t);return this.removePoint(i,e)},r.prototype.removePoint=function(t,e){if(void 0===e&&(e=!0),t instanceof g.DataPoint||(this.hasZ()?(0,a.isArray)(t)&&(t=this.getPointAt(t[0],t[1])):t=this.getPointAt(t)),t instanceof g.DataPoint&&this._points.contains(t)){var i=!1;if(e&&this.chart.animatable()){if(this._needDecayEffect())return new A(this,[t],this._decayAni).start(),this._changed(),!0;this._points.remove(t)&&(this._dropAni?this._dropAni.addPoint(t):(this._dropAni=new O(this,[t],this._decayDuration)).start(),i=!0)}else this._points.remove(t)&&(i=!0);if(i)return this._doPointRemoved(t),this._dataPointsChanged(),!0}},r.prototype.removePointsAt=function(t,e){var i=this;if(void 0===e&&(e=!0),(0,a.isArray)(t)){var r=t.map((function(t){return i._points.get(t)})).filter((function(t){return null!=t}));return this.removePoints(r,e)}return 0},r.prototype.removePoints=function(t,e){var i=this;if(void 0===e&&(e=!0),(0,a.isArray)(t)){var r=[];if(t.forEach((function(t){t instanceof g.DataPoint||(i.hasZ()?(0,a.isArray)(t)&&(t=i.getPointAt(t[0],t[1])):t=i.getPointAt(t)),t instanceof g.DataPoint&&i._points.contains(t)&&r.indexOf(t)<0&&r.push(t)})),r.length>0){if(e&&this.chart.animatable()){if(this._needDecayEffect())return new A(this,r,this._decayAni).start(),this._changed(),r.length;(r=this._points.removeAll(r)).length>0&&(this._dropAni?r.forEach((function(t){return i._dropAni.addPoint(t)})):(this._dropAni=new O(this,r,this._decayDuration)).start())}else r=this._points.removeAll(r);if(r.length>0)return this._doPointsRemoved(r),this._dataPointsChanged(),r.length}}return 0},r.prototype.getDropPoints=function(){var t;return null===(t=this._dropAni)||void 0===t?void 0:t._points},r.prototype.followPointer=function(){return!1},r.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._name=e.name||"Series ".concat(this.index+1),this._setData(e.data),this._createFielders(),this._decayDuration=(0,a.maxv)(0,(0,a.pickNum)(e.decayDuration,300))},r.prototype._setIndex=function(t,e){this._index=t,isNaN(e)||(this._seriesIndex=e)},r.prototype._createLabel=function(t){return new w(t)},r.prototype._createPoint=function(t){return new C(t)},r.prototype.$_addPoint=function(t,e){var i=this._createPoint(t);return i.index=e,i.parse(this),(i.isNull||(i.isNull=null==t||null==i.y))&&(this._containsNull=!0),i},r.prototype._doAddPoint=function(t){return this.$_addPoint(t,this._points.count)},r.prototype._doPointRemoved=function(t){},r.prototype._doPointsRemoved=function(t){},r.prototype._createLegendMarker=function(t,e){return p.RectElement.create(t,r.LEGEND_MARKER,0,0,e,e,e/2)},r.prototype._referOtherSeries=function(t){return!0},r.prototype._colorByPoint=function(){return!1},r.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField"]},r.prototype._createFielder=function(t){return(0,a.isFunc)(t)?function(e){return t(e)}:null!=t?function(e){return e[t]}:function(t){}},r.prototype._createFielders=function(){var t=this,e=this._op;this._getFielderProps().forEach((function(i){var r="_".concat(i,"er");(!t[r]||i in e&&t["_".concat(i)]!==e[i])&&(t[r]=t._createFielder(e[i]),t["_".concat(i)]=e[i])}))},r.prototype._defaultLoadAnimation=function(){return"reveal"},r.prototype._load=function(e){return this.chart?t.prototype._load.call(this,this.chart.loadBase(e,"series",this._type())):t.prototype._load.call(this,e)},r.prototype._doLoadData=function(t){if((0,a.isArray)(t))return t;if(t){var e=void 0;if(t._obj instanceof f.DataObject)e=t._obj;else if(t instanceof f.DataObject)e=t;else if(Number.isFinite(t)||(0,a.isObject)(t)||(0,a.isBoolean)(t))return[t];if(e)return e!==this._cdata&&(this._cdata&&this._cdata._removeListener(this),this._cdata=e,this._cdata&&this._cdata._addListener(this)),e._internalValues()}},r.prototype._loadPoints=function(t){var e,i;return this._doLoadPoints(t),null===(i=(e=this._op).onPointsLoaded)||void 0===i||i.call(e,this,!this._loaded),this._loaded=!0,this},r.prototype._doLoadPoints=function(t){this._points.load(t)},r.prototype._doPrepareRender=function(){var t,i,r=this._op,n=r.pointColors,o=this._runColor=(0,a.isNumber)(r.color)?"var(--color-".concat(Math.max(1,(Math.floor(r.color)-1)%e.PALETTE_LEN+1),")"):r.color;(0,a.isArray)(n)?t=n:(0,a.isString)(n)?n.endsWith("@pal")||n.endsWith("@palette")?t=this.chart.getPaletteColors(n.split("@")[0]):i=this.chart._assets.get(n):this._colorByPoint()&&(t=this.chart.chartOptions.options.colors),i instanceof _.ColorList?this._runPoints.forEach((function(t,e){t.color=t.color||i.getNext()||o})):(0,a.isArray)(t)?this._runPoints.forEach((function(e,i){e.color=e.color||t[i%t.length]||o})):this._runPoints.forEach((function(t,e){t.color=t.color||o})),this._preparePointArgs(this._pointArgs),this._labelPosCallback=(0,a.getCallback)(r.pointLabel.position),this._labelPos=this.getLabelPos(this._pointLabel),this._labelOffCallback=(0,a.getCallback)(r.pointLabel.offset),this._labelOff=this.getLabelOff(this._pointLabel.getOffset())},r.prototype._setViewRange=function(t,e){var i,r,n=t[S[e]];try{for(var o=s(this._runRanges),a=o.next();!a.done;a=o.next()){var l=a.value;if(n>=l.fromValue&&n<=l.toValue)return void(t.range=l)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}t.range=u._undef},r.prototype._defViewRangeValue=function(){return"y"},r.prototype._canSort=function(){return!0},r.prototype.$_setDecay=function(t){this._decayAni=t},r.prototype.$_clearDecay=function(){this._decayAni=null},r.prototype.$_clearDrop=function(){this._dropAni=null},r.LEGEND_MARKER="rct-legend-item-marker",r.defaults=(0,y.extend)(y.ChartItem.defaults,{zOrder:0,visibleInLegend:!0,visibleInNavigator:!1,tooltipText:"<b>${name}</b><br>${series}: ${detail}",tooltipDetail:"<b>${yValue}</b>",loadAnimation:"default",decayDuration:300,hoverEffect:"default",interactive:!0,paddingRate:1}),r}(y.ChartItem);e.Series=V;var E=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._map={},e._visibles=[],e._series=[],e._visibleSeries=[],e}return i(e,t),Object.defineProperty(e.prototype,"firstSeries",{get:function(){return this._series[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisible",{get:function(){return this._visibles[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleSeries",{get:function(){return this._visibleSeries[0]},enumerable:!1,configurable:!0}),e.prototype.isWidget=function(){return this._widget},e.prototype.isEmpty=function(t){return!(t?this._visibles:this._items).find((function(e){return!e.isEmpty(t)}))},e.prototype.visibles=function(){return this._visibles.slice(0)},e.prototype.series=function(){return this._series.slice(0)},e.prototype._internalSeries=function(){return this._series},e.prototype.seriesCount=function(){return this._series.length},e.prototype.needAxes=function(){return!!this._visibles.find((function(t){return t.needAxes()}))||0===this._visibleSeries.length},e.prototype.canDepth=function(){return this._visibleSeries.every((function(t){return t.canDepth()}))},e.prototype._clear=function(){},e.prototype.get=function(t){return this._items[t]},e.prototype.getSeries=function(t){return this._map[t]},e.prototype.getVisibleSeries=function(){return this._visibleSeries.slice(0)},e.prototype.getPaneSeries=function(t,e){return this._visibleSeries.filter((function(i){return t===i.row&&e===i.col}))},e.prototype.seriesByType=function(t){var e,i;try{for(var r=s(this._items),n=r.next();!n.done;n=r.next()){var o=n.value;if(o._type()===t)return o;if(o instanceof $&&o.series[0]._type()===t)return o.series[0]}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.seriesByPoint=function(t){var e,i;try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.getLegendSources=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=-1);var i=[];return this._items.forEach((function(r){r._valid&&!r._legended&&(t<0||t===r.row)&&(e<0||e===r.col)&&(r.getLegendSources(i),r._legended=t>=0&&e>=0)})),i},e.prototype.canPolar=function(){return this._series.length>0&&this._series.every((function(t){return t&&t.canPolar}))},e.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[],s=this._series=[];(0,a.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t,n))})):(0,a.isObject)(t)&&r.push(this.$_loadItem(i,t,0)),r.forEach((function(t){t instanceof $?s.push.apply(s,o([],n(t.series),!1)):t instanceof V&&s.push(t)})),this._map={},this._widget=!0,s.forEach((function(t){return e.$_add(t)})),i._op.series=this._items.map((function(t){return t.options}))},e.prototype.add=function(t,e){var i=this.$_loadItem(this.chart,t,this._series.length);if(i)return i._needAnimate=e,this._items.push(i),this._series.push(i),this.$_add(i),i},e.prototype.remove=function(t){var e;if(t instanceof V?e=t:(0,a.isString)(t)&&(e=this._map[t]),e){if(!e._group)return this._items.splice(this._items.indexOf(e),1),this._series.splice(this._series.indexOf(e),1),delete this._map[e.name],this._items.forEach((function(t,e){t._setIndex(e)})),e;if(e._group.remove(e))return e}},e.prototype.updateData=function(t){},e.prototype.connect=function(t){var e=this._items.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)}));e.forEach((function(e){e._connect(t),e._valid=Boolean(e._xAxisObj&&e._yAxisObj)})),this._visibles=e.filter((function(t){return t._valid}))},e.prototype.prepareRender=function(){var t=[],e=0;this._series.forEach((function(i){if(i.visible){var r=i._group;(r?r.visible&&r._valid:i._valid)&&(t.push(i),i.hasShape()&&i.setShape(h.ShapeNames[e++%h.ShapeNames.length]),r||(i._valid=!0))}})),this._visibleSeries=t.sort((function(t,e){var i=+(t.group?t.group.zOrder:t.zOrder)||0,r=+(e.group?e.group.zOrder:e.zOrder)||0;return i===r&&t.group&&t.group===e.group?(+t.zOrder||0)-(+e.zOrder||0):i-r}));var i=1===this._visibleSeries.filter((function(t){return t.isClusterable()})).length;this._visibleSeries.forEach((function(t,e){t instanceof D&&(t._single=i)})),this._visibles.forEach((function(t){return t._prepareRender()}))},e.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},e.prototype.$_loadItem=function(t,e,i){var r=(0,a.isArray)(e.children||e.series)&&t._getGroupType(e.type||t.type);if(r){var n=new r(t);return n._setIndex(i),n.init(),n._load(e),n}return V._loadSeries(t,i,e)},e.prototype.$_add=function(t){var e,i;!this._widget||t instanceof R||(this._widget=!1),t.name&&(this._map[t.name]=t);try{for(var r=s(this._series),n=r.next();!n.done;n=r.next()){var o=n.value;if(o!==t){if(!t.canMixWith(o))throw new Error("동시에 표시할 수 없는 시리즈들입니다: "+t._type()+", "+o._type());if(t._referOtherSeries(o))break}}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e}(y.ChartItemCollection);e.PlottingItemCollection=E;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.trendline=(this._trendline=new m.Trendline(this)).init()},Object.defineProperty(e.prototype,"trendline",{get:function(){return this._trendline},enumerable:!1,configurable:!0}),e.prototype.connectable=function(t){return!0},e.defaults=(0,y.extend)(V.defaults,{}),e}(V);e.ConnectableSeries=k;var T=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i._args={},i}return i(e,t),e.prototype.getMarkerStyle=function(t){if(this._op.styleCallback)return this.series._getPointCallbackArgs(this._args,t),this._op.styleCallback(this._args)},e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{radius:3}),e}(y.ChartItem);e.SeriesMarker=T;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.legendMarker=function(){return this._legendMarker},e.prototype.setLegendMarker=function(t){this._legendMarker=t},e.prototype.legendColor=function(){return this._calcedColor},e.prototype.legendStroke=function(){return this._calcedStroke},e.prototype.legendLabel=function(){return(0,a.pickProp)(this.x,this.y)},e.prototype.legendKey=function(){return this._legendKey},e.prototype.styleLegendMarker=function(t){},e.prototype.isEmpty=function(){return 0===this.yValue},e.prototype.initPrev=function(t,e){e.yValue=0},e.prototype.getParam=function(e){var i=t.prototype.getParam.call(this,e);return null==i&&"name"===e?this.x:"percent"===e?this._percent:i},e}(g.DataPoint);e.WidgetSeriesPoint=L;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doSetSimple=function(e){return(0,a.isString)(e)?(this.setStyle("stroke",e,!1),!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,y.extend)(y.ChartItem.defaults,{curved:!0}),e}(y.ChartItem);e.WidgetSeriesConnector=N;var M=function(t){function e(e,i){void 0===i&&(i=!1);var r=t.call(this,e)||this;return r.isSub=i,r}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.connector=(this._connector=new N(this.chart)).init()},Object.defineProperty(e.prototype,"connector",{get:function(){return this._connector},enumerable:!1,configurable:!0}),e.prototype.getAlign=function(){return"near"===this._op.align?-1:"far"===this._op.align?1:0},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"distance")},e.defaults=(0,y.extend)(w.defaults,{visible:!0,convergent:!0,align:d._PointLabelAlign.NONE,dedupeMode:d._PointLabelDedupeMode.DISPLAY_ALL}),e}(w);e.WidgetSeriesLabel=M;var j=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._dirty=!1,e}return i(e,t),e.prototype.calculate=function(t){var i,r=this.options,n=this._save,o=r.maxCount;return i=this._minDim?(0,u.calcPercent)(this._minDim,g.DataPoint.getSum(t)):+r.minValue,isNaN(o)&&isNaN(i)&&(o=e.DEF_COUNT),(this._dirty=!n||n.value!==i||n.count!==o)&&(isNaN(i)||(t=t.filter((function(t){return t.y>=i}))),o>0&&t.length>o&&(o>1&&o--,t=t.slice(0,o)),this._save={count:o,value:i}),t},e.prototype.isDirty=function(){return this._dirty},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._minDim=(0,u.parsePercentSize)(e.minValue,!0)},e.DEF_COUNT=10,e.defaults=(0,y.extend)(y.ChartItem.defaults,{visible:!1,x:"기타"}),e}(y.ChartItem);e.OthersGroup=j;var R=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._sum=0,e}return i(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.othersGroup=(this._othersGroup=new j(this.chart)).init()},Object.defineProperty(e.prototype,"othersGroup",{get:function(){return this._othersGroup},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWidget",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getSum=function(){return this._sum},e.prototype.getCenter=function(t,e){return{x:(0,u.calcPercent)(this._centerXDim,t),y:(0,u.calcPercent)(this._centerYDim,e)}},e.prototype._getLabelDefaultPos=function(e,i){return"default"===i?e.isSub&&"inside"===t.prototype.getLabelPos.call(this,this._pointLabel)?"outside":"inside":i},e.prototype.needAxes=function(){return!1},e.prototype._needDecayEffect=function(){return!0},e.prototype._colorByPoint=function(){return!0},e.prototype.getLegendSources=function(e){var i=this;this._op.legendByPoint?!1!==this._op.visibleInLegend&&(this._groupedPoints||this._runPoints).forEach((function(t){i._isVisibleInLegend(t)&&e.push(t)})):t.prototype.getLegendSources.call(this,e)},e.prototype._isVisibleInLegend=function(t){return t.yValue>=0&&(t.yValue>0||this._op.zeroInLegend)},e.prototype._doApply=function(i){var r,n,o=this;t.prototype._doApply.call(this,i),r=i.centerX,n=i.centerY,r!==o._centerX&&(o._centerX=r,o._centerXDim=(0,u.parsePercentSize)((0,a.pickProp3)(r,o._op.center,e.DEF_CENTER),!0)),n!==o._centerY&&(o._centerY=n,o._centerYDim=(0,u.parsePercentSize)((0,a.pickProp3)(n,o._op.center,e.DEF_CENTER),!0))},e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),this._sum=0,this._runPoints.forEach((function(t){return r._sum+=t.yValue}));var n=this.getSum();this._runPoints.forEach((function(t){return t._percent=100*t.yValue/n}))},e.prototype.canMinPadding=function(t,e){return!1},e.prototype.canMaxPadding=function(t,e){return!1},e.prototype._dataSourceChanged=function(){t.prototype._dataSourceChanged.call(this),this._groupedPoints=null},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._groupedPoints&&e===this._groupedPoints[this._groupedPoints.length-1]},e.prototype._buildVisPoints=function(e){var i=this._op.legendKey,n=this.othersGroup;if(n.visible){if(!this._groupedPoints&&(this._groupedPoints=n.calculate(e),e.length>this._groupedPoints.length)){var o=this._createOthersPoint(r({},this._op.othersGroup),e.slice(this._groupedPoints.length));o.parse(this),o.index=e.length,o.yValue=o.yGroup=o.y,this._groupedPoints.push(o)}e=this._groupedPoints}return t.prototype._buildVisPoints.call(this,e).map((function(t,e){return t.vindex=e,t._legendKey=t[i],t}))},e.DEF_CENTER="50%",e.defaults=(0,y.extend)(V.defaults,{legendByPoint:!1,zeroInLegend:!0,centerX:e.DEF_CENTER,centerY:e.DEF_CENTER}),e}(V);e.WidgetSeries=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getRadius=function(t,e){return(0,u.calcPercent)(this._radiusDim,(0,a.minv)(t,e))},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),function(t,i){i!==t._radius&&(t._radiusDim=(0,u.parsePercentSize)((0,a.pickProp)(t._radius=i,e.defaults.radius),!0))}(this,i.radius)},e.defaults=(0,y.extend)(R.defaults,{radius:"40%",startAngle:0,totalAngle:360,clockwise:!0}),e}(R);e.RadialSeries=B;var D=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e._childWidth=1,e._childPos=0,e._pointPad=0,e}return i(e,t),e.prototype.groupWidth=function(){return this._op.pointWidth},e.prototype.getMinPointWidth=function(){return this._op.minPointWidth},e.prototype.getPointWidth=function(t,e){var i=this._group,r=t;return i?(r*=i._clusterWidth,r*=1-2*i.options.groupPadding,r*=this._childWidth):r*=this._clusterWidth,r*=1-2*this._pointPad,(0,a.maxv)(e,r)},e.prototype.getPointPos=function(t){var e=this._group,i=t,r=0;return e?(r=i*e._clusterPos,r+=(i*=e._clusterWidth)*e.options.groupPadding,r+=(i-=i*e.options.groupPadding*2)*this._childPos,i*=this._childWidth):(r=i*this._clusterPos,i*=this._clusterWidth),r+=i*this._pointPad},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._pointPad=isNaN(this._op.pointPadding)?this._single?.25:this._group?.1:.2:Math.max(0,Math.min(.5,this._op.pointPadding)),this._op.minPointWidth=(0,a.pickNum)(this.getMinPointWidth(),0)},e.defaults=(0,y.extend)(V.defaults,{pointWidth:1,minPointWidth:0}),e}(k);e.ClusterableSeries=D;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!1,configurable:!0}),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.line=(this._line=new x(this.chart)).init()},e.defaults=(0,y.extend)(w.defaults,{}),e}(w);e.BasedSeriesLabel=I;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"distance",{get:function(){return this._distance},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new I(t)},e.prototype._doPrepareRender=function(){var i=this._group,r=this._op;t.prototype._doPrepareRender.call(this),i?(this._depth=(0,a.maxv)(0,(0,a.pickNum3)(r.depth,i.getDepth(),e.DEPTH)),this._distance=i.getDistance()+(0,a.pickNum)(r.distance,0)):(this._depth=(0,a.maxv)(0,(0,a.pickNum)(r.depth,e.DEPTH)),this._distance=(0,a.pickNum)(r.distance,e.DISTANCE)),r.nullAsBase&&null!=r.baseValue&&this._runPoints.forEach((function(t){t.isNull&&(t.y=r.baseValue,t.isNull=!1)})),this._base=(0,a.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._getGroupBase=function(){return this._op.baseValue},e.DEPTH=10,e.DISTANCE=5,e.defaults=(0,y.extend)(D.defaults,{nullAsBase:!1}),e}(D);e.BasedSeries=G;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){var r=this;t.prototype.collectValues.call(this,e,i),e===this._yAxisObj&&this._visPoints.forEach((function(t){if(i){var e=r._getBottomValue(t);!isNaN(e)&&i.push(e)}}))},e}(D);e.RangedSeries=F;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(F);e.LowRangedSeries=z;var $=function(t){function r(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._index=-1,e._series=[],e._visibles=[],e._seriesChanged=!1,e}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.type]=t}))},r.registerSeries=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_group_types[t.seriesType]=t}))},r.collectTooltipText=function(t,e,i,r,n){function o(t,e,i,r){var n=e.replace(b,t.getTooltipDetail(i));return n=n.replace("yValue","yValue."+i.index).replace(/\$\{/g,"${"+r+".")}var s,l=e.length>1&&(0,a.isArray)(t.tooltipListRow)&&t.tooltipListRow.length>1&&n,u=l?t.tooltipListRow:t.tooltipRow;return l?n.header=t.tooltipHeader||"":s=t.tooltipHeader||"",u&&e.forEach((function(t,e){var a=r;t!==i&&t.needAxes()&&(a=t.getPointAt(r.xValue)),a&&(l?(n.items.push(t),n.rows.push([o(t,u[0],a,e),o(t,u[1],a,e)])):(s&&(s+="<br>"),s+=o(t,u,r,e)))})),l?n.footer=t.tooltipFooter||"":s+=t.tooltipFooter?"<br>"+t.tooltipFooter:"",s},r.inflateTooltipParam=function(t,e,i,r){var n=r.indexOf("."),o=parseInt(r.substring(0,n));if(!isNaN(o)){var s=t[o].getPointAt(i.xValue);s&&(e=t[o],i=s,r=r.substring(n+1))}return r.startsWith("series.")&&(e=t[+r.substring(7)]||e,r="series"),V.getPointTooltipParam(e,i,r)},r.prototype.isGroupTooltip=function(){return!0},r.prototype.getTooltipText=function(t,e,i){return r.collectTooltipText(this._op,this._visibles,t,e,i)},r.prototype.getTooltipParam=function(t,e,i){return r.inflateTooltipParam(this._visibles,t,e,i)},r.prototype.isXY=function(){return!1},r.prototype.isMarker=function(){return!1},Object.defineProperty(r.prototype,"col",{get:function(){return this._col},enumerable:!1,configurable:!0}),r.prototype.setCol=function(t){t!==this._col&&(this._col=t,this._series.forEach((function(e){return e.setCol(t)})))},Object.defineProperty(r.prototype,"row",{get:function(){return this._row},enumerable:!1,configurable:!0}),r.prototype.setRow=function(t){t!==this._row&&(this._row=t,this._series.forEach((function(e){return e.setRow(t)})))},Object.defineProperty(r.prototype,"series",{get:function(){return this._series.slice(0)},enumerable:!1,configurable:!0}),r.prototype.needAxes=function(){return!0},r.prototype.isEmpty=function(t){return(t?this._visibles:this._series).length<1},r.prototype.canCategorized=function(){return!1},r.prototype.defYAxisType=function(){return"linear"},r.prototype.isClusterable=function(){return!1},r.prototype.getBaseValue=function(t){return NaN},r.prototype.getVisibleSeries=function(){return this._visibles},r.prototype.isRace=function(){return!1},r.prototype.getDepth=function(){},r.prototype.getDistance=function(){return 0},Object.defineProperty(r.prototype,"index",{get:function(){return this._index},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"visCount",{get:function(){return this._visibles.length},enumerable:!1,configurable:!0}),r.prototype._type=function(){return this.constructor.type},r.prototype._seriesType=function(){return this.constructor.seriesType},r.prototype.connectable=function(t){return!0},r.prototype.isFirstVisible=function(t){return t===this._visibles[0]},r.prototype.isLastVisible=function(t){return t===this._visibles[this._visibles.length-1]},r.prototype.collectValues=function(t,e){if(this._visibles.length>0)if(t===this._visibles[0]._yAxisObj)switch(this._op.layout){case"stack":this.$_collectStack(t,e);break;case"fill":this.$_collectFill(t,e);break;default:this.$_collectValues(t,e)}else this.$_collectValues(t,e)},r.prototype.collectRanges=function(t,e){this._visibles.forEach((function(i){i.collectRanges(t,e)}))},r.prototype.prepareReferents=function(t){this._series.forEach((function(e){return e.prepareReferents(t)}))},r.prototype.collectCategories=function(t){var e=[];return this._visibles.forEach((function(i){return e=e.concat(i.collectCategories(t))})),e},r.prototype.getLegendSources=function(t){var e,i=this._op;if(!1!==i.visibleInLegend&&this.visible){var r=this._series,s=[];if((null===(e=this._yAxisObj)||void 0===e?void 0:e.options.reversed)||"fill"!==i.layout&&"stack"!==i.layout)r.forEach((function(t){return t.getLegendSources(s)}));else for(var a=r.length-1;a>=0;a--)r[a].getLegendSources(s);i.reversedInLegend&&s.reverse(),t.push.apply(t,o([],n(s),!1))}},r.prototype.getAxisPadRate=function(){return 1},r.prototype.isBased=function(t){return this._visibles[0]&&this._visibles[0].isBased(t)},r.prototype.canMinPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e<r&&(isNaN(i)||r<=i)}return!0},r.prototype.canMaxPadding=function(t,e,i){if(this.isBased(t)){var r=this.getBaseValue(t);return isNaN(r)||!this.isBased(t)||e>r&&(isNaN(i)||r>=i)}return!0},r.prototype.seriesChanged=function(){return this._seriesChanged},r.prototype.remove=function(t){var e=this._series.indexOf(t);if(e>=0)return this._series.splice(e,1),this._series.forEach((function(t,e){t._setIndex(e)})),!0},r.prototype._getVisiblePoints=function(){var t=[];return this._visibles.forEach((function(e){return t.push.apply(t,o([],n(e._getVisiblePoints()),!1))})),t},r.prototype.getLayoutMax=function(){var t=(0,a.pickNum)(this._op.layoutMax,r.LAYOUT_MAX);return t>0?t:r.LAYOUT_MAX},r.prototype._doApply=function(e){t.prototype._doApply.call(this,e),a.hasOwnProperty.call(e,"children")&&(this._series=[],this.$_loadSeries(this.chart,e.children))},r.prototype._doSaveArray=function(t,e){if("children"===t)return this._series.map((function(t){return t.saveOptions()}))},r.prototype._prepareRender=function(){var e=this._visibles;if(this._legended=null,this._stacked="stack"===this._op.layout||"fill"===this._op.layout,this._visibles=this._series.filter((function(t){return t.visible})).sort((function(t,e){return(+t.options.zOrder||0)-(+e.options.zOrder||0)})),!(this._seriesChanged=!c.Utils.equalArrays(e,this._visibles)))for(var i=this._visibles.length-1;i>=0;i--)if(this._visibles[i].seriesChanged()){this._seriesChanged=!0;break}t.prototype._prepareRender.call(this)},r.prototype._connect=function(t){this._xAxisObj=t._connectSeries(this,!0),this._yAxisObj=t._connectSeries(this,!1)},r.prototype._doPrepareRender=function(t){this._visibles.length>0&&(this._visibles.forEach((function(e){return e._connect(t)})),this._visibles.forEach((function(t){return t._prepareRender()})),this._doPrepareSeries(this._visibles))},r.prototype.prepareAfter=function(){this._visibles.forEach((function(t){return t.prepareAfter()}))},r.prototype._setIndex=function(t){this._index=t},r.prototype._doPrepareSeries=function(t){},r.prototype.$_loadSeries=function(t,e){var i=this,r=this._seriesType();(0,a.isArray)(e)?e.forEach((function(e,n){return i.$_add(V._loadSeries(t,i._series.length,e,r))})):(0,a.isObject)(e)&&this.$_add(V._loadSeries(t,this._series.length,e,r))},r.prototype.$_add=function(t){if(!this._canContain(t))throw new Error("이 그룹에 포함될 수 없는 시리즈입니다: "+t);this._series.push(t),t._group=this},r.prototype.$_collectValues=function(t,e){this._visibles.forEach((function(i){i.collectValues(t,e)}))},r.prototype.$_collectPoints=function(t){var e=this._visibles,i=this._stackPoints=new Map;e.forEach((function(e){e.collectValues(t,null)})),e[0]._runPoints.forEach((function(t){i.set(t.xValue,[t])}));for(var r=1;r<e.length;r++)e[r]._runPoints.forEach((function(t){var e=i.get(t.xValue);e?e.push(t):i.set(t.xValue,[t])}));return i},r.prototype.$_collectStack=function(t,e){var i,r,n,o,a=this.getBaseValue(t),l=this.$_collectPoints(t);if(isNaN(a))try{for(var u=s(l.values()),c=u.next();!c.done;c=u.next()){(f=c.value)[0].yGroup=f[0].yValue||0;for(g=1;g<f.length;g++)f[g].yGroup=f[g-1].yGroup+(f[g].yValue||0);e.push(f[f.length-1].yGroup)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}else try{for(var p=s(l.values()),h=p.next();!h.done;h=p.next()){var f,d=(f=h.value)[0].yValue||0,_=d>=a?0:-1,y=d<a?0:-1;f[0].yGroup=f[0].yValue||0;for(var g=1;g<f.length;g++)(d=f[g].yValue||0)>=a?(_>=0&&(f[g].yGroup=f[_].yGroup+d*(d<0?-1:1)),_=g):(y>=0&&(f[g].yGroup=f[y].yGroup+d*(d>=0?-1:1)),y=g);_>=0&&e.push(f[_].yGroup),y>=0&&e.push(f[y].yGroup)}}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}},r.prototype.$_collectFill=function(t,e){var i,r,n,o,l,u,c,p,h,f,d,_,y=this.getBaseValue(t),g=this.getLayoutMax(),v=this.$_collectPoints(t);if(isNaN(y))try{for(var m=s(v.values()),b=m.next();!b.done;b=m.next()){V=(C=b.value).reduce((function(t,e){return t+(e.yValue||0)}),0);if(0===V){try{for(var x=(h=void 0,s(C)),w=x.next();!w.done;w=x.next()){(j=w.value).yValue=j.yGroup=0}}catch(t){h={error:t}}finally{try{w&&!w.done&&(f=x.return)&&f.call(x)}finally{if(h)throw h.error}}e.push(0)}else{T=0;try{for(var S=(d=void 0,s(C)),P=S.next();!P.done;P=S.next()){(j=P.value).yValue=(j.yValue||0)/V*g,T=j.yGroup=j.yValue+T}}catch(t){d={error:t}}finally{try{P&&!P.done&&(_=S.return)&&_.call(S)}finally{if(d)throw d.error}}e.push(g)}}}catch(t){c={error:t}}finally{try{b&&!b.done&&(p=m.return)&&p.call(m)}finally{if(c)throw c.error}}else try{for(var A=s(v.values()),O=A.next();!O.done;O=A.next()){var C,V=(C=O.value).reduce((function(t,e){return t+((0,a.absv)(e.yValue)||0)}),0);if(0===V){try{for(var E=(n=void 0,s(C)),k=E.next();!k.done;k=E.next()){(j=k.value).yValue=j.yGroup=0}}catch(t){n={error:t}}finally{try{k&&!k.done&&(o=E.return)&&o.call(E)}finally{if(n)throw n.error}}e.push(0,0)}else{var T=0,L=0;try{for(var N=(l=void 0,s(C)),M=N.next();!M.done;M=N.next()){var j;(j=M.value).yValue=(j.yValue||0)/V*g,j.yValue<y?L=j.yGroup=(j.yValue||0)+L:T=j.yGroup=(j.yValue||0)+T}}catch(t){l={error:t}}finally{try{M&&!M.done&&(u=N.return)&&u.call(N)}finally{if(l)throw l.error}}e.push(L,T)}}}catch(t){i={error:t}}finally{try{O&&!O.done&&(r=A.return)&&r.call(A)}finally{if(i)throw i.error}}},r.LAYOUT_MAX=100,r.defaults=(0,y.extend)(y.ChartItem.defaults,{layout:"default",layoutMax:r.LAYOUT_MAX,visibleInLegend:!0,zOrder:0,tooltipHeader:"<b>${name}</b>",tooltipRow:"${series}: ${detail}",tooltipListRow:["${series}","${detail}"]}),r}(y.ChartItem);e.SeriesGroup=$;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.collectValues=function(e,i){if(t.prototype.collectValues.call(this,e,i),e===this._yAxisObj){var r=this._doConstraintYValues(this._visibles);i.length=0,i.push.apply(i,o([],n(r),!1))}},e}($);e.ConstraintSeriesGroup=H;var W=function(t){function e(){var e=t.apply(this,o([],n(arguments),!1))||this;return e._clusterWidth=1,e._clusterPos=0,e}return i(e,t),e.prototype.groupWidth=function(){return this._op.groupWidth},e.prototype.isClusterable=function(){return!1!==this._op.clusterable},e.prototype.setCluster=function(t,e){this._clusterWidth=t,this._clusterPos=e},e.defaults=(0,y.extend)($.defaults,{groupWidth:1,groupPadding:.1}),e}($);e.ClusterableSeriesGroup=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isMarker=function(){return!0},e.prototype.isXY=function(){return!0},e.defaults=(0,y.extend)(V.defaults,{colorByPoint:!1}),e}(k);e.MarkerSeries=U}(DB);var BD={},DD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ID=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},GD=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(BD,"__esModule",{value:!0}),BD.SeriesNavigator=BD.NavigatorMask=BD.NavigiatorHandle=void 0;var FD=iM,zD=LM,$D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return DD(e,t),e}(zD.ChartItem);BD.NavigiatorHandle=$D;var HD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return DD(e,t),e}(zD.ChartItem);BD.NavigatorMask=HD;var WD={area:function(){return{type:"area"}},line:function(){return{type:"line"}},bar:function(){return{type:"bar"}}},UD={category:function(){return{type:"category"}},linear:function(){return{type:"linear"}},time:function(){return{type:"time"}},log:function(){return{type:"log"}}},XD={minPadding:0,maxPadding:0},YD=function(t){function e(){var e=t.apply(this,GD([],ID(arguments),!1))||this;return e._dataChanged=!0,e}return DD(e,t),e.prototype._doInit=function(t){var e=this.chart;t.handle=(this._handle=new $D(e)).init(),t.mask=(this._mask=new HD(e)).init(),t.borderLine=(this._borderLine=new zD.ChartItem(e)).init()},Object.defineProperty(e.prototype,"handle",{get:function(){return this._handle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderLine",{get:function(){return this._borderLine},enumerable:!1,configurable:!0}),e.prototype.getThickness=function(){return(0,FD.pickNum)(this._op.thickness,e.defaults.thickness)},e.prototype.getGap=function(){return(0,FD.pickNum)(this._op.gap,e.defaults.gap)},e.prototype.getGapFar=function(){return(0,FD.pickNum)(this._op.gapFar,e.defaults.gapFar)},e.prototype.getSize=function(){return this.getThickness()+this.getGap()+this.getGapFar()},e.prototype.axisLen=function(){return this._naviChart.xAxis.length()},e.prototype.axis=function(){return this._source._xAxisObj},e.prototype._doLoad=function(e,i){t.prototype._doLoad.call(this,e,i);var r={};if((0,FD.isObject)(i.series)){var n=i.series.type;"area"!==n&&"line"!==n&&"bar"!==n&&(n="area"),r.series=(0,FD.assignObj)({},i.series,WD[n]())}else r.series=WD.area();(0,FD.isObject)(i.xAxis)?r.xAxis=(0,FD.assignObj)({},i.xAxis,(UD[i.xAxis.type]||UD.linear)(),XD):r.xAxis=(0,FD.assignObj)({},XD),(0,FD.isObject)(i.yAxis)?r.yAxis=(0,FD.assignObj)({},i.yAxis,(UD[i.yAxis.type]||UD.linear)(),XD):r.yAxis=(0,FD.assignObj)(UD.linear(),XD),this._chartConfig=r,this._axisType=r.xAxis.type},e.prototype._doPrepareRender=function(t){var e=t._getSeries().getSeries(this._op.source)||t.firstSeries;e!==this._source&&(this._source=e,this._axisType||(this._chartConfig.xAxis.type=this._source._xAxisObj._type()),this._naviChart=this.chart._createChart(this._chartConfig),this._op.usePointSource?this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points.map((function(t){return t.source}))):this._naviChart.firstSeries._loadPoints(this._source.getPoints()._points)),this._vertical=!1,this._naviChart._prepareRender()},e.defaults=(0,zD.extend)(zD.ChartItem.defaults,{visible:!1,usePointSource:!1,liveScroll:!0,minSize:.05,thickness:45,gap:8,gapFar:3}),e}(zD.ChartItem);BD.SeriesNavigator=YD;var qD={},ZD=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(qD,"__esModule",{value:!0}),qD.Subtitle=qD.Title=void 0;var KD=iM,JD=nM,QD=LM,tI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZD(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,JD.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,KD.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,QD.extend)(QD.ChartItem.defaults,{text:"Title",alignBase:"body",align:"center",verticalAlign:"middle",gap:10,offset:0}),e}(QD.ChartItem);qD.Title=tI;var eI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZD(e,t),e.defaults=(0,QD.extend)(tI.defaults,{position:"bottom",text:"",titleGap:2,verticalAlign:"bottom"}),e}(tI);qD.Subtitle=eI;var iI={},rI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(iI,"__esModule",{value:!0}),iI.Tooltip=void 0;var nI=iM,oI=zM,sI=NM,aI=LM,lI=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.owner=e,i}return rI(e,t),e.prototype._doInit=function(e){var i=this;t.prototype._doInit.call(this,e),this._domain={callback:function(t,e){var r=i,n=r._series,o=r._point,s=r._ctx,a=n._group,l=!!s.axis,u=n,c=o;if(l||a){var p=e.match(/(\d+)\.(series|yValue)/);if(p){var h=Number(p[1])||0;e=e.replace(h+".",""),u=l?s.series[h]:a.getVisibleSeries()[h]}}return e.match(/yValue\.(\d+)/)&&(c=u.getPointAt(o.xValue),e="yValue"),s.getTooltipParam(u,c,e)}}},e.prototype.setTarget=function(t,e,i){var r=(0,nI.pickProp)(this._op.scope,"hover");return this._ctx=this.visible&&this.owner.getTooltipContext(r,this._series=t,this._point=e)},e.prototype.getTextDomain=function(){return this._domain},e.prototype.isHtmlLayer=function(){return!1},e.prototype.getNoClip=function(){var t=this._op.noClip;return!!(0,nI.isBoolean)(t)&&t},e.prototype.isFollowPointer=function(t){return this._op.followPointer||!1!==this._op.followPointer&&(null==t?void 0:t.followPointer())},e.prototype.getHeaderHeight=function(){var t=this._op;return t.simpleMode?0:(0,nI.maxv)((0,nI.pickNum)(t.headerHeight,0),0)},e.prototype.getTailSize=function(){return this._op.simpleMode?0:(0,nI.maxv)((0,nI.pickNum)(this._op.tailSize,0),0)},e.prototype.getBorderRadius=function(){return this._op.simpleMode?0:(0,nI.maxv)((0,nI.pickNum)(this._op.borderRadius,0),0)},e.prototype.getMarkerSize=function(){return this._op.listMarkerSize||10},e.prototype.getMarkerGap=function(){return(0,nI.pickNum)(this._op.listMarkerGap,5)},e.prototype._doSetSimple=function(e){return(0,nI.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!=r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=r._numberFormat?sI.NumberFormatter.getFormatter(r._numberFormat):void 0),function(t){t!=r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=r._timeFormat?oI.DatetimeFormatter.getFormatter(r._timeFormat):void 0)}(e.timeFormat)},e.defaults=(0,aI.extend)(aI.ChartItem.defaults,{scope:"hover",offset:8,hideDelay:700,minWidth:100,minHeight:40,nanText:"",numberFormat:",#.##",timeFormat:"yyyy-MM-dd",headerHeight:7,tailSize:10,borderRadius:5,simpleMode:!1,noClip:!1,listGap:12,listRowGap:3,listMarkerSize:7,listMarkerGap:5}),e}(aI.ChartItem);iI.Tooltip=lI;var uI={},cI={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationTypes=t.TextAnnotationType=t._ShapeAnnotationShape=t.ShapeAnnotationType=t.ImageAnnotationType=t._AnnotationScope=void 0,t._AnnotationScope={CHART:"chart",CONTAINER:"container"},t.ImageAnnotationType="image",t.ShapeAnnotationType="shape",t._ShapeAnnotationShape={CIRCLE:"circle",DIAMOND:"diamond",SQUARE:"square",TRIANGLE:"triangle",STAR:"star",ITRIANGLE:"itriangle",RECTANGLE:"rectangle",VLINE:"vline",HLINE:"hline",LINE:"line"},t.TextAnnotationType="text",t.AnnotationTypes={ImageAnnotationType:t.ImageAnnotationType,ShapeAnnotationType:t.ShapeAnnotationType,TextAnnotationType:t.TextAnnotationType}}(cI);var pI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(uI,"__esModule",{value:!0}),uI.ImageAnnotation=void 0;var hI=iM,fI=nM,dI=cI,_I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pI(e,t),e.prototype._isVisible=function(){return this._op.visible&&!(0,fI.isNull)(this._op.imageUrl)},e.prototype._doSetSimple=function(e){return(0,hI.isString)(e)?(this._op.imageUrl=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=dI.ImageAnnotationType,e}(TM.Annotation);uI.ImageAnnotation=_I;var yI={},gI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(yI,"__esModule",{value:!0}),yI.ShapeAnnotation=void 0;var vI=iM,mI=cI,bI=TM,xI=LM,wI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gI(e,t),e.prototype.getSeries=function(){if(this._xRange&&this._yRange){var t=this.chart.seriesByName(this._op.series);if(t&&t.visible)return{series:t,xRange:this._xRange,yRange:this._yRange}}},e.prototype.getShape=function(){return this._op.shape||e.defaults.shape},e.prototype._doSetSimple=function(e){return(0,vI.isString)(e)?(this._op.shape=e,!0):t.prototype._doSetSimple.call(this,e)},e.type=mI.ShapeAnnotationType,e.defaults=(0,xI.extend)(bI.Annotation.defaults,{width:64,height:64,shape:"square"}),e}(bI.Annotation);yI.ShapeAnnotation=wI;var SI={},PI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),AI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},OI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(SI,"__esModule",{value:!0}),SI.TextAnnotation=void 0;var CI=iM,VI=zM,EI=NM,kI=nM,TI=cI,LI=TM,NI=LM,MI=function(t){function e(){var e=t.apply(this,OI([],AI(arguments),!1))||this;return e._domain={callback:function(t,i){return e.chart.getParam(t,i)}},e}return PI(e,t),e.prototype.getTextOrientation=function(){return this._op.textOrientation||"upright"},e.prototype._isVisible=function(){return this._op.visible&&!(0,kI.isNull)(this._op.text)},e.prototype._doSetSimple=function(e){return(0,CI.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.numberFormat)!==r._numberFormat&&(r._numberFormat=i,r._domain.numberFormatter=i?EI.NumberFormatter.getFormatter(i):kI._undef),function(t){t!==r._timeFormat&&(r._timeFormat=t,r._domain.timeFormatter=t?VI.DatetimeFormatter.getFormatter(t):kI._undef)}(e.timeFormat)},e.type=TI.TextAnnotationType,e.defaults=(0,NI.extend)(LI.Annotation.defaults,{text:"Text"}),e}(LI.Annotation);SI.TextAnnotation=MI;var jI={},RI=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),BI=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},DI=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},II=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(jI,"__esModule",{value:!0}),jI.LinearAxis=jI.ContinuousAxis=jI.AxisBaseLine=jI.AxisBreak=jI.LinearAxisLabel=jI.ContinuousAxisLabel=jI.ContinuousAxisTick=jI.ContinuousAxisGrid=void 0;var GI=rM,FI=iM,zI=nM,$I=pD,HI=rB,WI=LM,UI=DB,XI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),e.prototype.getPositions=function(t,e){return t.hasBreak()?t._ticks.filter((function(e){return!t.isBreak(e.value)})).map((function(i){return t.getPos(e,i.value)})):t._ticks.map((function(i){return t.getPos(e,i.value)}))},e}(HI.AxisGrid);jI.ContinuousAxisGrid=XI;var YI=function(t){function e(){var e=t.apply(this,DI([],BI(arguments),!1))||this;return e._strictEnds=!1,e._userTicks=!1,e}return RI(e,t),e.prototype._getValidInterval=function(t,e,i,r,n){if((0,FI.isFunc)(e)){var o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n});isNaN(o)||(e=o)}return e>0?e:void 0},e.prototype.buildSteps=function(t,e,i,r,n,o){void 0===o&&(o=!1);var s,a=this._op,l={chart:this.chart.wrapper,length:e,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n},u=this.$_getStepPixels(e,l);return this._userTicks=this._strictEnds=!1,this._step=NaN,o?this._getStepsByPixels(e,(0,FI.pickNum)(.85*u,60),i,r,n,l):(0,FI.isArray)(a.steps)||(0,FI.isFunc)(a.steps)||(0,FI.isFunc)(a.stepCallback)?this._getStepsBySteps(r,n,l):this._baseAxis instanceof QI&&this._baseAxis._ticks.length>0?this._getStepsByCount(this._baseAxis._ticks.length,i,r,n,!0):a.stepCount>1?this._getStepsByCount(a.stepCount,i,r,n,!1):null!=(s=this._getValidInterval(t,a.stepInterval,e,r,n))?this._getStepsByInterval(s,i,r,n):u>0?this._getStepsByPixels(e,u,i,r,n,l):r!==n?[r,n]:[r]},e.prototype.getNextStep=function(t,e){return t+e*this._step},e.prototype.getMaxCount=function(t,e){return void 0===this._op.maxCount?(0,FI.maxv)(8,(0,FI.ceil)(t/(.9*e))+1):(0,FI.pickNum)(this._op.maxCount,1/0)},e.prototype.canUseNumSymbols=function(){return isNaN(this._step)||this._step>=500},e.prototype._doApply=function(e){var i;if(t.prototype._doApply.call(this,e),this._stepPixels=!(0,FI.isFunc)(e.stepPixels)&&GI.Utils.parseTuples(e.stepPixels),FI.hasOwnProperty.call(e,"stepMultiples"))if((0,FI.isFunc)(e.stepMultiples))i=e.stepMultiples;else{var r;if((0,FI.isArray)(e.stepMultiples)){var n=Number.MIN_SAFE_INTEGER;r=[],e.stepMultiples.forEach((function(t){!isNaN(+t)&&t>n&&r.push(+t)}))}(i=r&&r.length>0?r:void 0)&&((i=i.filter((function(t){return t>=1}))).length>0?i.sort((function(t,e){return t-e})):i=void 0)}this._userMultiples=i},e.prototype.$_getStepPixels=function(t,i){var r=this._stepPixels;if((0,FI.isFunc)(r)&&(r=r.call(void 0,i)),!r){var n=this.axis;r=n._isPolar?e.STEP_PIXELS_P:n._isX?e.STEP_PIXELS_X:e.STEP_PIXELS_Y}for(var o=0;o<r.length;o++)if(t<=r[o][0])return(0,FI.maxv)(1,r[o][1])},e.prototype._findBaseAxis=function(){if(null!=this._op.baseAxis){var t=this.axis,e=(t._isX?this.chart._getXAxes():this.chart._getYAxes()).get(this._op.baseAxis);e!==t&&e instanceof QI&&(this._baseAxis=e,e.tick._baseAxis=null)}},e.prototype._normalizeMin=function(t,e){return t>(0,FI.floor)(t/e)*e?t=(0,FI.floor)(t/e)*e:t<(0,FI.ceil)(t/e)*e&&(t=(0,FI.ceil)(t/e)*e),t},e.prototype._getStepsByCount=function(t,e,i,r,n){i>e?(i=e,e=NaN):r<e&&(r=e,e=NaN),this._strictEnds=!0;var o=this.axis,s=r-i,a=s/(t-1),l=Math.pow(10,Math.floor(Math.log10(a))),u=[];if(isNaN(o._fixedMin)||isNaN(o._fixedMax)?n&&a/l==2.5&&(0,FI.floor)(t*s/a)==t*s/a?this._step=a:a=this._step=(0,FI.ceil)(a/l)*l:a=s/(t-1),isNaN(o._fixedMin))if(isNaN(e))i=this._normalizeMin(i,l);else{for((0,zI.assert)(i<e&&r>e,"base error"),t=(0,FI.maxv)(3,t);;){if(!((0,FI.ceil)((e-i)/a)+(0,FI.ceil)((r-e)/a)+1>t))break;a+=l}i=e-(0,FI.ceil)((e-i)/a)*a}else i=o._fixedMin;u.push((0,zI.fixnum)(i));for(var c=1;c<t;c++)u.push((0,zI.fixnum)(u[c-1]+a));return u},e.prototype._getStepsByInterval=function(t,e,i,r){var n,o=[];if(i=(0,zI.fixnum)(this._normalizeMin(i,t)),isNaN(e))for(o.push(n=i);n<r;)o.push(n=(0,zI.fixnum)(n+t));else{for(o.push(n=e);n>i;)o.unshift(n=(0,zI.fixnum)(n-t));for(n=e;n<r;)o.push(n=(0,zI.fixnum)(n+t))}return this._step=t,o},e.prototype._getStepMultiples=function(t,i){var r;return(null!==(r=(0,FI.isFunc)(this._userMultiples)?this._userMultiples.call(void 0,i):this._userMultiples)&&void 0!==r?r:this._op.fineStep)?e.STEP_MULTIPLES[2]:this._op.enableDecimals&&1===t?e.STEP_MULTIPLES[0]:e.STEP_MULTIPLES[1]},e.prototype._getStepsBySteps=function(t,e,i){var r,n=this._op,o=(0,FI.isFunc)(n.steps)?n.steps:n.stepCallback;return o?(r=o.call(void 0,i),(0,FI.isArray)(r)&&!r.every((function(t){return!isNaN(+t)}))||(r=t!==e?[t,e]:[t])):r=n.steps.filter((function(t){return isFinite(+t)})).map((function(t){return+t})),(r=r.filter(n.clipSteps?function(i){return i>=t&&i<=e}:function(t){return isFinite(t)})).sort((function(t,e){return t-e})),r.length>0&&!isFinite(+r[0])&&(r[0]=t),r.length>1&&!isFinite(+r[r.length-1])&&(r[r.length-1]=e),this._userTicks=this._strictEnds=!0,r},e.prototype._getStepsByPixels=function(t,e,i,r,n,o){r>=i?r=i:n<=i&&(n=i);var s=n-r;if(0===s||t<=0)return isNaN(r)?[]:[r];var a,l=this.getMaxCount(t,e),u=(0,FI.maxv)(1,(0,FI.floor)(t/e))+1,c=s/(u-1),p=(0,FI.pow10)((0,FI.floor)((0,FI.log10)(c))),h=this._getStepMultiples(p,o),f=[],d=0;if(c/=p,h)if(c>h[d]){for(;d<h.length-1;d++)if(c>h[d]&&c<h[d+1]){c=c<=h[d]+(h[d+1]-h[d])/2?h[d]:h[d+1];break}}else c=h[d];for(;;){for(((c*=p)<=0||!isFinite(c))&&(c=s/u),r=isNaN(i)?this._normalizeMin(r,c):i-(0,FI.ceil)((i-r)/c)*c,this._step=c,f.push((0,zI.fixnum)(a=r));a<n;)f.push((0,zI.fixnum)(a+=c));if(!h||d>h.length-2||f.length<=l)break;c=h[++d],f.length=0}return f},e.STEP_PIXELS_P=[[300,48],[700,72],[900,96],[1/0,120]],e.STEP_PIXELS_Y=[[130,36],[300,48],[700,72],[1/0,96]],e.STEP_PIXELS_X=[[400,48],[900,72],[1/0,96]],e.STEP_MULTIPLES=[[1,2,2.5,5,10],[1,2,5,10],[1,2,2.5,3,4,5,10]],e.defaults=(0,WI.extend)(HI.AxisTick.defaults,{baseRange:!1,enableDecimals:!0}),e}(HI.AxisTick);jI.ContinuousAxisTick=YI;var qI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),e.defaults=(0,WI.extend)(HI.AxisLabel.defaults,{numberFormat:"0.##"}),e}(HI.AxisLabel);jI.ContinuousAxisLabel=qI;var ZI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),e.prototype.getTick=function(t,e){return this._getText(null,e,"*"===this._op.useSymbols||this._op.useSymbols&&this.axis.tick.canUseNumSymbols(),!1)},e.defaults=(0,WI.extend)(qI.defaults,{useSymbols:!0}),e}(qI);jI.LinearAxisLabel=ZI;var KI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),e.prototype.getSize=function(t){return Math.min(.9*t,(0,zI.calcPercent)(this._sizeDim,t))},e.prototype._doApply=function(e){var i;t.prototype._doApply.call(this,e),this._op.space=(0,FI.pickNum)(this._op.space,0),this._sizeDim=(0,zI.parsePercentSize)(null!==(i=this._op.size)&&void 0!==i?i:"30%",!1),this.axis._breaksChanged=!0},e.defaults=(0,WI.extend)(HI.AxisItem.defaults,{size:"30%",space:16,gridVisible:!0}),e}(HI.AxisItem);jI.AxisBreak=KI;var JI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),e.prototype._isVisible=function(){return this._op.visible},e.defaults=(0,WI.extend)(HI.AxisLine.defaults,{visible:!1}),e}(HI.AxisLine);jI.AxisBaseLine=JI;var QI=function(t){function e(){var e=t.apply(this,DI([],BI(arguments),!1))||this;return e._breaks=[],e._breaksChanged=!1,e}return RI(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.baseLine=(this._baseLine=new JI(this)).init()},Object.defineProperty(e.prototype,"baseLine",{get:function(){return this._baseLine},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"break",{get:function(){return this._breaks?this._breaks[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){return this._tick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){return this._grid},enumerable:!1,configurable:!0}),e.prototype.getBaseValue=function(){return this._baseVal},e.prototype.hasBreak=function(){return null!=this._runBreaks},e.prototype._getBreaks=function(){return this._runBreaks?this._runBreaks.slice(0,1):[]},e.prototype.isBreak=function(t){if(this._runBreaks){var e=this._runBreaks[0];return!e.options.gridVisible&&(t===e.options.from||t===e.options.to)}},e.prototype.$_getPadding=function(t,i,r){if(!t){if(this._isX&&this._isPolar)return 0;t=e.PADDINGS}for(var n=0;n<t.length;n++)if(i<=t[n][0])return t[n][1]*r;return 0},e.prototype._doApply=function(e){var i,r;t.prototype._doApply.call(this,e);var n,o=null!==(i=e.minPadding)&&void 0!==i?i:e.padding,s=null!==(r=e.maxPadding)&&void 0!==r?r:e.padding;this._minPadPixels=NaN,(0,FI.isString)(o)&&o.endsWith("px")&&(n=parseFloat(o),isFinite(n)&&(this._minPadPixels=n)),this._maxPadPixels=NaN,(0,FI.isString)(s)&&s.endsWith("px")&&(n=parseFloat(s),isFinite(n)&&(this._maxPadPixels=n)),isNaN(this._minPadPixels)&&(this._minPaddings=GI.Utils.parseTuples(o)),isNaN(this._maxPadPixels)&&(this._maxPaddings=GI.Utils.parseTuples(s)),this._baseVal=+this._op.baseValue,this._strictMin=(0,zI.parsePercentSize)(e.strictMin,!0),this._strictMax=(0,zI.parsePercentSize)(e.strictMax,!0),FI.hasOwnProperty.call(e,"break")&&this.$_loadBreaks(e.break)},e.prototype.continuous=function(){return!0},e.prototype.isBased=function(){return!!this._tick._baseAxis},e.prototype._createGrid=function(){return new XI(this)},e.prototype._createTickModel=function(){return new YI(this)},e.prototype._doPrepareRender=function(){this._breaksChanged&&(this.$_mergeBreaks(),this._breaksChanged=!1),this._tick._findBaseAxis()},e.prototype.$_trim=function(t){var e=(0,FI.pickNum)(this._runBase,this._min);isNaN(this._fixedMax)&&isNaN(this._maxPadPixels)&&this._calcedMax>e&&t[t.length-2]>this._calcedMax&&t[t.length-2]-this._calcedMax>.5*(t[t.length-2]-t[t.length-3])&&(t.pop(),this._setMinMax(this._min,t[t.length-1])),e=(0,FI.pickNum)(this._runBase,this._max),isNaN(this._fixedMin)&&isNaN(this._minPadPixels)&&this._calcedMin>e&&t[1]<this._calcedMin&&t[1]-this._calcedMin<.5*(t[1]-t[2])&&(t.shift(),this._setMinMax(t[0],this._max))},e.prototype.$_trimSteps=function(t,e,i){this._runBreaks?(this._lastSect=this._sects[this._sects.length-1],t.length>3&&t[t.length-3]>this._lastSect.from&&(this.$_trim(t),this._lastSect.to=t[t.length-1])):!this.tick._userTicks&&t.length>2&&this.$_trim(t)},e.prototype._doBuildTicks=function(t,i,r,n){if(isNaN(t)||isNaN(i))return[];if(n>1&&!this._isHorz){var o=this._prevSteps;return this.$_trimSteps(o,r,n),this.$_createTicks(o,r,this._min,this._max,n)}var s=this._tick,a=s._baseAxis instanceof e&&s._baseAxis._ticks.length>0,l=this._op;l.minValue<t&&(t=l.minValue),l.maxValue>i&&(i=l.maxValue);var u=this._adjustMinMax(r,this._calcedMin=t,this._calcedMax=i),c=u.min,p=u.max;if(a&&s.options.baseRange&&(c=s._baseAxis.axisMin(),p=s._baseAxis.axisMax()),this._mergedBreaks){this._runBreaks=this._mergedBreaks.slice(0);for(var h=this._runBreaks.length-1;h>=0;h--){var f=this._runBreaks[h];(isNaN(f.options.from)||isNaN(f.options.to)||f.options.from<=c||f.options.to>=p)&&this._runBreaks.splice(h,1)}this._runBreaks.length<1&&(this._runBreaks=null)}else this._runBreaks=null;var d,_,y=!1,g=c,v=p;if(this._isX)if(c===p)this._unitLen=r/4;else{var m=this._isPolar,b=this.$_calcXUnitLength(this._isPolar?this.getTotalAngle():r,c,p);if(b){if(this._unitLen=b.len,y=!0,!this._zoom||m)if(b.min=b.min*(2*(0,FI.pickNum)(l.unitPadding,.5)),m){var x=l.polarMargin;isNaN(x)?x=zI.PI_2*b.min/(p-c+b.min):x*=zI.DEG_RAD,isNaN(this._fixedMax)&&this.getTotalAngle()+x>zI.PI_2&&(p=this._max=Math.max(this._calcedMax+b.min,p))}else isNaN(this._fixedMin)&&(c=this._min=Math.min(this._calcedMin-b.min/2,c)),isNaN(this._fixedMax)&&(p=this._max=Math.max(this._calcedMax+b.min/2,p))}else this._unitLen=1}if(c===p)d=[c];else if(this._runBreaks)d=this.$_calcBrokenSteps(this._runBreaks,r,c,p),c=Math.min(c,d[0]),p=Math.max(p,d[d.length-1]);else if(_=(d=s.buildSteps(this,r,this._runBase,c,p,!1)).slice(0),d.length>0){if(!isNaN(this._fixedMin)||!s._strictEnds&&"tick"!==this.$_getStartFit()){for(;d.length>1&&d[0]<g;)d.shift();d.length<2&&this._fixedMin<d[0]&&d.unshift(this._fixedMin)}else if(!s._strictEnds&&!a&&isNaN(this._minPadPixels)){for(;d.length>2&&d[1]<=g;)d.shift();if(!isNaN(s._step))for(;d[0]>g;)d.unshift(s.getNextStep(d[0],-1))}if(c=Math.min(c,d[0]),!isNaN(this._fixedMax)||!s._strictEnds&&"tick"!==this.$_getEndFit()){for(;d.length>1&&d[d.length-1]>v;)d.pop();d.length<2&&this._fixedMax>d[d.length-1]&&d.push(this._fixedMax)}else if(!s._strictEnds&&!a&&isNaN(this._maxPadPixels)){for(;d.length>2&&d[d.length-2]>=v;)d.pop();if(!isNaN(s._step))for(;d[d.length-1]<v;)d.push(s.getNextStep(d[d.length-1],1))}p=Math.max(p,d[d.length-1])}else d.push(c+(p-c)/2);this._prevSteps=d,this._setMinMax(c,p);var w=this.$_createTicks(d,r,c,p,n);if(y&&w.length>1){m=this._isPolar;var S=!1,P=_,A=void 0;h=void 0;if(P[0]<=c){for(h=-1;h<d.length-1&&P[h+1]<d[0];)h++;for(;h>=0&&(A=P[h])>=c;){var O=this.dataToAxis(w[0].value),C=this.dataToAxis(w[1].value);if(A<O&&O-A>=C-O&&("tick"===this.$_getStartFit()||A>c)){var V=this._createTick(0,A);w.unshift(V),d.unshift(A),S=!0}h--}}if(P[P.length-1]>=p){for(h=P.length;h>0&&P[h-1]>d[d.length-1];)h--;for(;h<P.length&&(A=P[h])<=p;){O=this.dataToAxis(w[w.length-1].value),C=this.dataToAxis(w[w.length-2].value);if(A>=O&&A-O>=O-C&&("tick"===this.$_getEndFit()||A<p)){var E=this._createTick(0,A);w.push(E),d.push(A),S=!0}h++}}else if(m&&p>P[P.length-1])for(;(A=d[d.length-1])<p;){O=this.dataToAxis(w[w.length-1].value),C=this.dataToAxis(w[w.length-2].value);if(!((0,zI.fixnum)(p-O)>(0,zI.fixnum)(O-C)))break;var k=this._createTick(0,A+(0,zI.fixnum)(O-C));w.push(k),d.push(k.value),S=!0}S&&w.forEach((function(t,e){return t.index=e}))}return w},e.prototype.$_createTicks=function(t,e,i,r,n){for(var o=[],s=NaN,a=0;a<t.length;a++){var l=this._createTick(a,t[a]);l.value!==s&&(o.push(l),s=l.value)}return o},e.prototype._createTick=function(t,e){return{index:t,pos:NaN,value:e,label:this.label.getTick(t,e)||String(e)}},e.prototype._calcPoints=function(e,i){t.prototype._calcPoints.call(this,e,i),this._markPoints=this._ticks.map((function(t){return t.pos}))},e.prototype.$_buildBrokenSteps=function(t){return this._tick.buildSteps(this,t.len,void 0,t.from,t.to,!0)},e.prototype.$_calcBrokenSteps=function(t,e,i,r){var n=this,o=0,s=i,a=[s],l=this._sects=[],u=e-t.reduce((function(t,e){return t+e.options.space}),0);t.forEach((function(t){var e=t.options,i=t.getSize(u),r=Math.max(0,e.space||0),c={from:s,to:t.options.from,pos:o,len:i};o+=i,l.push(c,t._sect={from:e.from,to:e.to,pos:o,len:r}),o+=r,n.$_buildBrokenSteps(c).forEach((function(t){t>c.from&&t<=c.to&&a.push(t)})),r>0&&a.push(e.to)}));var c=t[t.length-1];if(r>c.options.to){var p={from:c.options.to,to:r,pos:o,len:e-o};l.push(p),this.$_buildBrokenSteps(p).forEach((function(t){t>p.from&&a.push(t)}))}return this._lastSect=l[l.length-1],this._lastSect.to=a[a.length-1],a},e.prototype.getPos=function(t,e){var i;if(this._runBreaks){var r=this._sects.find((function(t){return e<t.to}))||this._lastSect,n=r.len*(e-r.from)/(r.to-r.from);i=this._op.reversed?(0,zI.fixpos)(t-n-r.pos):(0,zI.fixpos)(n+r.pos)}else{n=this._single?.5*t:t*(e-this._min)/(this._max-this._min);this._op.reversed&&(n=t-n,isNaN(this._prevRate)||(n+=this._prevSize-t)),i=(0,zI.fixpos)(n)}return this._ani?this._ani.getPos(i,this._op.reversed):i},e.prototype.valueAt=function(t,e){var i,r;if(this._isHorz?this._op.reversed&&(e=t-e):this._op.reversed||(e=t-e),this._runBreaks){var n=0;try{for(var o=II(this._sects),s=o.next();!s.done;s=o.next()){var a=s.value;if(e>=n&&e<n+a.len)return(a.to-a.from)*(e-n)/a.len+a.from;n+=a.len}}catch(t){i={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return this._max}return(this._max-this._min)*e/t+this._min},e.prototype.xValueAt=function(t){return this.valueAt(this._vlen,t)},e.prototype.getUnitLen=function(t,e){return this._unitLen},e.prototype.getLabelLength=function(t,e){return Math.floor(t/this._ticks.length)},e.prototype._isLog=function(){return!1},e.prototype.$_getStartFit=function(){return"default"===this._op.startFit?this._isX&&!this._isPolar?"value":"tick":this._op.startFit},e.prototype.$_getEndFit=function(){return"default"===this._op.endFit?this._isX&&!this._isPolar?"value":"tick":this._op.endFit},e.prototype.$_calcStrict=function(t,e,i){if(t)return t.fixed?t.size:i<0?e-(0,zI.calcPercent)(t,i):e+(0,zI.calcPercent)(t,i)},e.prototype._adjustMinMax=function(t,e,i){var r,n=this,o=this._isLog(),s=this.isZoomed(),a=this.isZoomed(),l=!0,u=!0,c=NaN,p=NaN,h=1;if(this._series.length>0){var f,d=0;this._series.forEach((function(t){isNaN(t._sBase=t.getBaseValue(n))||d++,h=(0,FI.maxv)(h,t.getAxisPadRate())})),!this._isX&&d>0&&d<this._series.length&&(r={},this._series.forEach((function(t){var e=t._type();r[e]?r[e]=[(0,FI.minv)(t._yMin,r[e][0]),(0,FI.maxv)(t._yMax,r[e][1])]:r[e]=[t._yMin,t._yMax]}))),this._series.forEach((function(t){var r=t._sBase;isNaN(r)||(r=(0,zI.fixnum)(r),o?r>=0&&r<=e&&r<=i&&(e=f=r):r<=e?t.isBased(n)?e=f=r:c=(0,FI.pickNum)((0,FI.minv)(c,r),r):r>=i&&(t.isBased(n)?i=f=r:p=(0,FI.pickNum)((0,FI.maxv)(p,r),r))),l&&!s&&(o||t.canMinPadding(n,e,f))&&(l=!1),u&&!a&&(o||t.canMaxPadding(n,i,f))&&(u=!1)}))}else l=s,u=a;s||(s=l),a||(a=u),this._fixedMin=this._fixedMax=NaN;var _=(0,FI.maxv)(0,i-e),y=this.$_calcStrict(this._strictMin,e,-_),g=this.$_calcStrict(this._strictMax,i,_),v=NaN,m=NaN,b=0,x=0;isNaN(y)?s?this._fixedMin=e:isNaN(this._minPadPixels)?b=this.$_getPadding(this._minPaddings,t,h):v=this._minPadPixels:this._fixedMin=e=y,isNaN(g)?a?this._fixedMax=i:isNaN(this._maxPadPixels)?x=this.$_getPadding(this._maxPaddings,t,h):m=this._maxPadPixels:this._fixedMax=i=g;var w=e,S=i;if(r){for(var P in r){(A=r[P][0]-(r[P][1]-r[P][0])*b)<w&&(w=A)}for(var P in r){var A;(A=r[P][1]+(r[P][1]-r[P][0])*x)>S&&(S=A)}}else w-=_*b,S+=_*x;if(!isNaN(v)||!isNaN(m)){isNaN(v)&&(v=0),isNaN(m)&&(m=0);var O=Math.min(v+m,.9*t),C=t-O,V=_-(0,FI.floor)(_*C/t),E=Math.round(V*v/O);w-=E,S+=V-E}return!isNaN(c)&&c<=e&&w<c&&(w=this._fixedMin=c),!isNaN(p)&&p>=i&&S>p&&(S=this._fixedMax=p),{min:w,max:S=(0,FI.maxv)(S,w)}},e.prototype.$_calcXUnitLength=function(t,e,i){var r=[],n=0;if(this._series.forEach((function(t){t.visible&&t.isClusterable()&&(r.push.apply(r,DI([],BI(t._getVisiblePoints()),!1)),n++)})),0===n&&this._series.forEach((function(t){t.visible&&!t.isXY()&&r.push.apply(r,DI([],BI(t._getVisiblePoints()),!1))})),r.length>0){for(var o=r.map((function(t){return t.xValue})).sort((function(t,e){return t-e})),s=o.length-1;s>0;s--)o[s]===o[s-1]&&o.splice(s,1);return this._calcUnitLen(o,t,e,i)}},e.prototype._calcUnitLen=function(t,e,i,r){if(t.length<2)return this._ticks.length>0?(e*=(o=(r-i)/Math.max(8,this._ticks.length))/(r-i+o),{len:(0,FI.pickNum)(e,4),min:o}):{len:e,min:0};for(var n=e,o=t[1]-t[0],s=2;s<t.length;s++)o=(0,FI.minv)(o,t[s]-t[s-1]);return n*=o/(r-i+o),isFinite(n)||(n=e/2),{len:(0,FI.pickNum)(n,1),min:o}},e.prototype.$_loadBreak=function(t){if((0,FI.isObject)(t)&&"from"in t&&"to"in t){var e=new KI(this);return e.init(),e._load(t),t.from>0?e:null}},e.prototype.$_loadBreaks=function(t){var e,i;if((0,FI.isArray)(t))try{for(var r=II(t),n=r.next();!n.done;n=r.next()){var o=n.value;(s=this.$_loadBreak(o))&&this._breaks.push(s)}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}else if(t){var s;(s=this.$_loadBreak(t))&&this._breaks.push(s)}this._breaksChanged=!0,this.$_mergeBreaks()},e.prototype.$_mergeBreaks=function(){function t(t,e){t.options.to=e.options.to}var e,i=this._breaks.sort((function(t,e){return t.options.from-e.options.from})).filter((function(t){return t.visible&&t.options.to>t.options.from}));if(this._mergedBreaks=null,i.length>0){var r=this._mergedBreaks=[];r.push((0,FI.assignObj)(new KI(this)._initObject(),i[0]));for(var n=1;n<i.length;n++){var o=r[r.length-1],s=i[n];e=o,s.options.from<e.options.to?t(o,s):r.push((0,FI.assignObj)(new KI(this)._initObject(),s))}}},e.PADDINGS=[[170,.2],[300,.1],[700,.05],[1/0,.03]],e.defaults=(0,WI.extend)(HI.Axis.defaults,{baseValue:0,nullable:!0,startFit:"default",endFit:"default",unitPadding:.5}),e}(HI.Axis);jI.ContinuousAxis=QI;var tG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RI(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(){return new ZI(this)},e.prototype._adjustMinMax=function(e,i,r){var n=t.prototype._adjustMinMax.call(this,e,i,r),o=this._series;return!this._isX&&1===o.length&&o[0]instanceof UI.SeriesGroup&&"fill"===o[0].options.layout&&(n.max=o[0].getLayoutMax()),n},e.type=$I.LinearAxisType,e}(QI);jI.LinearAxis=tG;var eG={},iG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(eG,"__esModule",{value:!0}),eG.TimeAxis=eG.TimeAxisLabel=eG.TimeAxisTick=void 0;var rG=iM,nG=zM,oG=pD,sG=LM,aG=jI,lG=[1,1e3,6e4,36e5,864e5,6048e5,24192e5,314496e5],uG=[[1,2,5,10,20,25,50,100,200,250,500],[1,2,5,10,15,30],[1,2,3,4,6,8,12],[1,2,3,4,6,12],[1,2],[1,2],[1,2,3,4,6]],cG={s:1,n:2,h:3,d:4,w:5,m:6,y:7},pG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iG(e,t),e.prototype.getNextStep=function(t,e){var i=new Date(t);switch(e*=this._step,this._scale){case 7:i.setFullYear(i.getFullYear()+e);break;case 6:i.setMonth(i.getMonth()+e);break;case 5:i.setDate(i.getDate()+7*e);break;case 4:i.setDate(i.getDate()+e);break;case 3:i.setHours(i.getHours()+e);break;case 2:i.setMinutes(i.getMinutes()+e);break;case 1:i.setSeconds(i.getSeconds()+e);break;case 0:i.setMilliseconds(i.getMilliseconds()+e)}return+i},e.prototype._getValidInterval=function(t,e,i,r,n){var o;(0,rG.isFunc)(e)&&(null!=(o=e.call(void 0,{chart:this.chart.wrapper,length:i,minValue:t._calcedMin,maxValue:t._calcedMax,min:r,max:n}))&&(e=o));return isNaN(e)?(0,rG.isString)(e)&&cG.hasOwnProperty(e.charAt(e.length-1))?(o=parseFloat(e))<=-1||o>=1?e:NaN:void 0:+e>0?+e:NaN},e.prototype._getStepMultiples=function(t){for(var e=0;e<7;e++)if(t>=lG[e]/2&&t<lG[e+1]/2)return this._scale=e,uG[e];this._scale=7},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=[],s=n-r;if(0===s)return o;var a=this.axis,l=new Date(a._calcedMin),u=Math.floor(t/e)+1,c=(0,rG.maxv)(1,Math.floor(s/(u-1))),p=this._getStepMultiples(c),h=lG[this._scale];if(c/=h,p)if(c>p[0]){for(var f=0;f<p.length-1;f++)if(c>p[f]&&c<p[f+1]){c=p[f+1];break}}else c=p[0];var d,_=a.date(r),y=a.date(n),g=_;if(7===this._scale){var v=l.getFullYear(),m=g.getFullYear();this._step=c=Math.ceil(c),g=new Date(m,0),m<v&&m+c>v&&(m=v,g=new Date(m,0));do{o.push(+g),m+=c,g=new Date(m,0)}while(g<=y)}else if(6===this._scale){m=g.getFullYear();var b=g.getMonth();this._step=c=Math.ceil(c),(g=new Date(m,b))<l&&new Date(m,b+c)>l&&(b=l.getMonth(),g=new Date(l.getFullYear(),b));do{o.push(+g),g.setMonth(g.getMonth()+c)}while(g<=y)}else if(4===this._scale||5===this._scale){m=g.getFullYear(),b=g.getMonth();var x=g.getDate(),w=5===this._scale?7:1;this._step=c=Math.ceil(c),(g=new Date(m,b,x))<l&&new Date(m,b,x+w*c)>l&&(x=l.getDate(),g=new Date(l.getFullYear(),l.getMonth(),x));do{o.push(+g),g.setDate(g.getDate()+c*w)}while(g<=y)}else{switch(this._step=c,c*=h,this._scale){case 3:g.setMinutes(0);case 2:g.setSeconds(0);case 1:g.setMilliseconds(0)}d=g.getTime();var S=l.getTime();d<S&&d+c>S&&(d=S);do{o.push(d),d+=c}while(d<=n)}return o},e.prototype._getStepsByInterval=function(e,i,r,n){if((0,rG.isString)(e)){var o=this.axis,s=new Date(o._calcedMin),a=[],l=e.charAt(e.length-1),u=parseFloat(e),c=void 0,p=void 0;this._scale=cG[l],e=lG[this._scale];var h=new Date(r);switch(this._scale){case 7:var f=s.getFullYear(),d=h.getFullYear();h.setMonth(0,1),d<f&&f<d+u&&(h=new Date(f,0));break;case 6:h.setDate(1),h.setHours(0,0,0,0),(p=new Date(h)).setMonth(p.getMonth()+u),h<s&&s<p&&((h=new Date(s)).setDate(1),h.setHours(0,0,0,0));break;case 5:case 4:var _=5===this._scale?7:1;h.setHours(0,0,0,0),(p=new Date(h)).setDate(p.getDate()+u*_),h<s&&p>s&&(h=new Date(s)).setHours(0,0,0,0);break;case 3:h.setMinutes(0);case 2:h.setSeconds(0);case 1:h.setMilliseconds(0)}if(this._step=u,r=+h,isNaN(i))for(a.push(c=r);c<n;)a.push(c=this.getNextStep(c,1));else{for(a.push(c=i);c>r;)a.unshift(c=this.getNextStep(c,-1));for(c=i;c<n;)a.push(c=this.getNextStep(c,1))}return this._step=e,a}return t.prototype._getStepsByInterval.call(this,e,i,r,n)},e}(aG.ContinuousAxisTick);eG.TimeAxisTick=pG;var hG=[{format:"SSS",beginningFormat:"mm:ss"},{format:"ss",beginningFormat:"mm:ss"},{format:"mm:ss",beginningFormat:"HH:mm:ss"},{format:"HH:mm",beginningFormat:"MM-dd HH:mm"},{format:"MM-dd",beginningFormat:"yyyy-MM-dd"},{format:"MM W주",beginningFormat:"yyyy-MM-dd"},{format:"yyyy-MM",beginningFormat:"yyyy-MM"},{format:"yyyy",beginningFormat:"yyyy"}],fG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iG(e,t),e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=(0,rG.isString)(e.timeFormat)?e.timeFormat:void 0,r=(0,rG.isString)(e.beginningFormat)?e.beginningFormat:void 0,n=e.timeFormats,o=e.useBeginningFormat;if(this._formats=hG.map((function(t){return(0,rG.assignObj)(t)})),i&&this._formats.forEach((function(t){t.format=t.beginningFormat=i})),o&&r&&this._formats.forEach((function(t){t.beginningFormat=r})),(0,rG.isArray)(n))for(var s=0;s<n.length;s++){var a=this._formats[s],l=n[s];(0,rG.isStringL)(l)?a.format=l:(0,rG.isObject)(l)&&((0,rG.isStringL)(l.format)&&(a.format=l.format),o&&(0,rG.isStringL)(l.beginningFormat)&&(a.beginningFormat=l.beginningFormat))}},e.prototype.getTick=function(t,e){var i=this.chart,r=this.axis,n=r.date(e);if(this._formatter)return this._formatter.toStr(n,i.startOfWeek);var o=this._formats,s=r.tick._scale,a=nG.DatetimeFormatter.getFormatter;switch(s){case 7:return a(o[s].format).toStr(n,i.startOfWeek);case 6:return 0===t||0===n.getMonth()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 5:case 4:return 0===t||1===n.getDate()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 3:return 0===t||0===n.getHours()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 2:return 0===t||0===n.getMinutes()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 1:return 0===t||0===n.getSeconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek);case 0:return 0===t||0===n.getMilliseconds()?a(o[s].beginningFormat).toStr(n,i.startOfWeek):a(o[s].format).toStr(n,i.startOfWeek)}},e.defaults=(0,sG.extend)(aG.ContinuousAxisLabel.defaults,{useBeginningFormat:!0}),e}(aG.ContinuousAxisLabel);eG.TimeAxisLabel=fG;var dG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iG(e,t),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),e.prototype._createTickModel=function(){return new pG(this)},e.prototype._createLabel=function(){return new fG(this)},e.prototype._prepare=function(){this._dateClass=this.chart.win.Date,t.prototype._prepare.call(this)},e.prototype.collectValues=function(){this._offset=60*(0,rG.pickNum)(this.chart.timeOffset,0)*1e3,t.prototype.collectValues.call(this)},e.prototype.getValue=function(t){return(0,rG.isNumber)(t)?t:t instanceof this._dateClass?t.getTime():(0,rG.isString)(t)?new Date(t).getTime()+this._offset:void 0},e.prototype.incStep=function(t,e){if((0,rG.isString)(e)){var i=parseFloat(e);if(0!=i){var r=new Date(t);switch(e.charAt(e.length-1)){case"y":r.setFullYear(r.getFullYear()+i);break;case"m":r.setMonth(r.getMonth()+i);break;case"d":r.setDate(r.getDate()+i);break;case"w":r.setDate(r.getDate()+7*i);break;case"h":r.setHours(r.getHours()+i);break;case"n":r.setMinutes(r.getMinutes()+i);break;case"s":r.setSeconds(r.getSeconds()+i)}return+r}return t}return t+e},e.prototype.date=function(t){return new Date(t)},e.prototype.axisValueAt=function(t,e){return new Date(this.valueAt(t,e))},e.prototype.value2Tooltip=function(t){return isNaN(t)?this.chart._tooltip.options.nanText:new Date(t)},e.prototype.getXLabel=function(t){return isNaN(t)?NaN:new Date(t)},e.type=oG.TimeAxisType,e.subtype="date",e.defaults=(0,sG.extend)(aG.ContinuousAxis.defaults,{baseValue:NaN}),e}(aG.ContinuousAxis);eG.TimeAxis=dG;var _G={},yG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(_G,"__esModule",{value:!0}),_G.BarRangeSeries=_G.BarRangeSeriesPoint=void 0;var gG=IB,vG=qB,mG=LM,bG=DB,xG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yG(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(ZB.RangedPoint);_G.BarRangeSeriesPoint=xG;var wG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yG(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLegendMarker=function(t,e){return gG.RectElement.create(t,bG.Series.LEGEND_MARKER,0,0,e,e,2)},e.prototype._getFielderProps=function(){return["lowField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new xG(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=vG.BarRangeSeriesType,e.defaults=(0,mG.extend)(bG.LowRangedSeries.defaults,{tooltipDetail:"<b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(bG.LowRangedSeries);_G.BarRangeSeries=wG;var SG={},PG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(SG,"__esModule",{value:!0}),SG.BarSeriesGroup=SG.BarSeriesGroupBase=SG.BarSeries=SG.BarSeriesBase=SG.BarSeriesPoint=void 0;var AG=iM,OG=IB,CG=qB,VG=LM,EG=DB,kG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PG(e,t),e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.width=i.width},e}(ZB.DataPoint);SG.BarSeriesPoint=kG;var TG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PG(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._createPoint=function(t){return new kG(t)},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.defaults=(0,VG.extend)(EG.BasedSeries.defaults,{colorByPoint:!1,pointOffset:0}),e}(EG.BasedSeries);SG.BarSeriesBase=TG;var LG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PG(e,t),e.prototype.canDepth=function(){return!0},e.prototype._createLegendMarker=function(t,e){return OG.RectElement.create(t,EG.Series.LEGEND_MARKER,0,0,e,e,2)},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.type=CG.BarSeriesType,e}(TG);SG.BarSeries=LG;var NG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PG(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,AG.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.prototype.getDepth=function(){return this._op.depth},e.prototype.getDistance=function(){return this._op.distance},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._op.distance=(0,AG.pickNum)(e.distance,0)},e.prototype._doPrepareSeries=function(t){var e=this._op.layout;if("default"===e){var i=t.length>1?t.map((function(t){return t.options.pointWidth})).reduce((function(t,e){return t+e}),0):t[0].options.pointWidth,r=0;t.forEach((function(t){t._childWidth=t.options.pointWidth/i,t._childPos=r,r+=t._childWidth}))}if("overlap"===e){var n=this.getDistance();t.forEach((function(t){t._groupDistance=n+=(0,AG.pickNum)(t.options.distance,0),n+=t.depth}))}else t.forEach((function(t){t._groupDistance=t.distance}))},e.defaults=(0,VG.extend)(EG.ClusterableSeriesGroup.defaults,{depth:10,distance:5}),e}(EG.ClusterableSeriesGroup);SG.BarSeriesGroupBase=NG;var MG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PG(e,t),e.prototype._canContain=function(t){return t instanceof LG},e.type=CG.BarSeriesGroupType,e.seriesType=CG.BarSeriesType,e}(NG);SG.BarSeriesGroup=MG;var jG={},RG={},BG={},DG={},IG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(DG,"__esModule",{value:!0}),DG.ShapeLegendMarkerView=void 0;var GG=fj,FG=IB,zG=GB,$G=DB,HG=function(t){function e(e){var i=t.call(this,e,$G.Series.LEGEND_MARKER)||this;return i.add(i._back=new FG.RectElement(e)),i._back.setStyle("visibility","hidden"),i.add(i._marker=new GG.PathElement(e)),i}return IG(e,t),e.prototype.render=function(t,e){var i=Math.max(8,2*e),r=2.1*i;t===this._shape&&e===this._rd&&i===this._size||(this._shape=t,this._rd=e,this._size=i,this._back.resize(1,i),this._renderShape(e,r,i),this._marker.trans(r/2-e,i/2-e))},e.prototype._renderShape=function(t,e,i){zG.SvgShapes.setShape(this._marker,this._shape,t,t)},e}(GG.RcElement);DG.ShapeLegendMarkerView=HG;var WG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(BG,"__esModule",{value:!0}),BG.AreaLegendMarkerView=void 0;var UG=fj,XG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new UG.PathElement(e)),i.insertFirst(i._area=new UG.PathElement(e)),i._area.setBoolData("fill",!0),i}return WG(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,r/2,"L",i,0],o=["M",0,r/2,"L",i,0,"L",i,r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._area.setPath(o.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(DG.ShapeLegendMarkerView);BG.AreaLegendMarkerView=XG;var YG={},qG=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(YG,"__esModule",{value:!0}),YG.AreaRangeLegendMarkerView=void 0;var ZG=fj,KG=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new ZG.PathElement(e)),i._line.setFill("none"),i.insertFirst(i._line2=new ZG.PathElement(e)),i._line2.setFill("none"),i.insertFirst(i._area=new ZG.PathElement(e)),i._area.setBoolData("fill",!0),i}return qG(e,t),e.prototype._renderShape=function(e,i,r){var n=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r],o=["M",0,r,"L",i/2,.7*r,"L",i,r],s=["M",0,.3*r,"L",i/2*.7,0,"L",i,.4*r,"L",i,r,"L",i/2,.7*r,"L",0,r,"Z"];this._marker.setStyle("visibility",this._shape?"visible":"hidden"),this._line&&(this._line.setPath(n.join(" ")),this._line2.setPath(o.join(" ")),this._area.setPath(s.join(" "))),t.prototype._renderShape.call(this,e,i,r)},e}(DG.ShapeLegendMarkerView);YG.AreaRangeLegendMarkerView=KG;var JG={},QG={},tF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(QG,"__esModule",{value:!0}),QG.LineElementEx=QG.LineElement=void 0;var eF=fj,iF=nM,rF=rM,nF=GB,oF=function(t,e){return t==e||!(!t||!e)&&(t.x1===e.x1&&t.x2===e.x2&&t.y1===e.y1&&t.y2===e.y2)},sF=function(t){function e(e,i,r){void 0===i&&(i=iF._undef),void 0===r&&(r=iF._undef);var n=t.call(this,e,i)||this;return r&&n.setLine(r),n}return tF(e,t),e.prototype.setLine=function(t,e,i,r){rF.Utils.isNumber(t)?this.setPath(nF.SvgShapes.line(t,e,i,r)):t&&this.setPath(nF.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e.prototype.setVLine=function(t,e,i){this.setPath(nF.SvgShapes.line(t,e,t,i))},e.prototype.setVLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(nF.SvgShapes.line(t,e,t,i))},e.prototype.setHLine=function(t,e,i){this.setPath(nF.SvgShapes.line(e,t,i,t))},e.prototype.setHLineC=function(t,e,i){var r=parseFloat(this.getStyle("stroke-width"));isNaN(r)||(t=Math.round(t)-r%2/2),this.setPath(nF.SvgShapes.line(e,t,i,t))},e}(eF.PathElement);QG.LineElement=sF;var aF=function(t){function e(e,i,r){void 0===i&&(i=iF._undef),void 0===r&&(r=iF._undef);var n=t.call(this,e,i)||this;return n.setLine(r),n}return tF(e,t),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){oF(t,this._line)||(this._line=t,this.$_render())},enumerable:!1,configurable:!0}),e.prototype.updateLine=function(t){oF(t,this._line)||(this.line=t)},e.prototype.updateVLine=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLine=function(t,e,i){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.updateVLineC=function(t,e,i){this.updateLine({x1:t,y1:e,x2:t,y2:i})},e.prototype.updateHLineC=function(t,e,i,r){this.updateLine({x1:e,y1:t,x2:i,y2:t})},e.prototype.setLine=function(t,e,i,r){rF.Utils.isNumber(t)?this.$_update(t,e,i,r):t&&this.updateLine(t)},e.prototype.setVLine=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setVLineC=function(t,e,i){this.$_update(t,e,t,i)},e.prototype.setHLine=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.setHLineC=function(t,e,i){this.$_update(e,t,i,t)},e.prototype.$_update=function(t,e,i,r){this.line={x1:t,y1:e,x2:i,y2:r}},e.prototype.$_render=function(){var t=this._line;t&&this.setPath(nF.SvgShapes.line(t.x1,t.y1,t.x2,t.y2))},e}(eF.PathElement);QG.LineElementEx=aF;var lF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(JG,"__esModule",{value:!0}),JG.LineLegendMarkerView=void 0;var uF=QG,cF=function(t){function e(e){var i=t.call(this,e)||this;return i.insertFirst(i._line=new uF.LineElement(e)),i}return lF(e,t),e.prototype._renderShape=function(e,i,r){this._line&&(this._line.setHLine(r/2,0,i),this._shape&&this._line.setStyle("strokeDasharray","")),this._marker.setStyle("visibility",this._shape?"visible":"hidden"),t.prototype._renderShape.call(this,e,i,r)},e}(DG.ShapeLegendMarkerView);JG.LineLegendMarkerView=cF;var pF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),hF=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},fF=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(RG,"__esModule",{value:!0}),RG.AreaSeriesGroup=RG.LineSeriesGroup=RG.AreaRangeSeries=RG.AreaRangePointLabel=RG.AreaRangeSeriesPoint=RG.AreaSeries=RG.AreaSeriesPoint=RG.SplineSeries=RG.LineSeries=RG.LineSeriesFlag=RG.LineSeriesBase=RG.LinePointLabel=RG.LineSeriesMarker=RG.LineSeriesPoint=void 0;var dF=iM,_F=qB,yF=LM,gF=DB,vF=BG,mF=YG,bF=JG,xF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype.toPoint=function(){return{px:this.px,py:this.py,isNull:this.isNull,range:this.range}},e}(ZB.DataPoint);RG.LineSeriesPoint=xF;var wF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.defaults=(0,yF.extend)(gF.SeriesMarker.defaults,{radius:4,hoverScale:1.75}),e}(gF.SeriesMarker);RG.LineSeriesMarker=wF;var SF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype.getAlignOffset=function(){var t=+this._op.alignOffset;return isNaN(t)?"left"===this._op.align||"right"===this._op.align?e.ALIGN_GAP:0:t},e.prototype.getPosition=function(){return(0,dF.pickProp)(this._op.position,"default")},e.ALIGN_GAP=4,e.defaults=(0,yF.extend)(gF.DataPointLabel.defaults,{align:"center"}),e}(gF.DataPointLabel);RG.LinePointLabel=SF;var PF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new wF(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this.marker.visible?t&&t.shape||this._shape:null},e.prototype.getRadius=function(t){return(0,dF.pickNum)(t.radius,this.marker.options.radius)},e.prototype.buildLines=function(t){return this._lines||(this._lines=this._doBuildLines(t,this.getDropPoints())),this._lines},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new SF(t)},e.prototype._createPoint=function(t){return new xF(t)},e.prototype.hasShape=function(){return!0},e.prototype.setShape=function(t){this._shape=this.marker.options.shape||t},e.prototype._defViewRangeValue=function(){return"x"},e.prototype._createLegendMarker=function(t,e){return new bF.LineLegendMarkerView(t)},e.prototype.legendMarker=function(e,i){var r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,dF.minv)(i/2,this.marker.options.radius)),r},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._lines=null},e.prototype._needAddAnimation=function(){return!1},e.prototype._connectNulls=function(){return!1},e.prototype._doBuildLines=function(t,e){var i,r,n=t.length,o=[];if(this.chart.isPolar()||!this._containsNull||this._connectNulls()){a=t.slice();o.push(a)}else for(var s=0;s<n;){for(var a=[];s<n&&t[s].isNull;)s++;for(;s<n&&!t[s].isNull;)a.push(t[s++]);a.length>0&&o.push(a)}if(e){var l=[],u=[];e.forEach((function(t){t._getDrop()<0?l.push(t):t._getDrop()>0&&u.push(t)})),l.length>0&&(l.sort((function(t,e){return t.xValue-e.xValue})),(i=o[0]).unshift.apply(i,fF([],hF(l),!1))),u.length>0&&(u.sort((function(t,e){return e.xValue-t.xValue})),(r=o[o.length-1]).push.apply(r,fF([],hF(u),!1)))}return o},e.defaults=(0,yF.extend)(gF.Series.defaults,{nullAsBase:!1}),e}(gF.ConnectableSeries);RG.LineSeriesBase=PF;var AF=function(t){function e(e){var i=t.call(this,e.chart)||this;return i.series=e,i}return pF(e,t),e.prototype.label=function(){return this._op.text||this.series.displayName()},e.prototype.getDefaultIconPos=function(){return"left"},e.defaults=(0,yF.extend)(yF.IconedText.defaults,{visible:!1,offset:8}),e}(yF.IconedText);RG.LineSeriesFlag=AF;var OF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.flag=(this._flag=new AF(this)).init()},Object.defineProperty(e.prototype,"flag",{get:function(){return this._flag},enumerable:!1,configurable:!0}),e.prototype.backDir=function(){return"backward"===this._op.stepDir?"forward":"backward"},e.prototype.isConnectEnds=function(t,e){if(e){var i=this._op.connectEnds;if((0,dF.isBoolean)(i))return i;if(!t||"spline"===this._op.lineType)return!0}return!1},e.prototype.isMarker=function(){return!0},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getLineType=function(){return this._group instanceof NF||this._group instanceof MF?this._group.options.lineType:this._op.lineType},e.prototype._connectNulls=function(){return this._op.connectNullPoints},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype._doPrepareRender=function(){var e=this._op;t.prototype._doPrepareRender.call(this),this._base=(0,dF.pickProp3)(this._getGroupBase(),this._yAxisObj.getBaseValue(),0),e.nullAsBase&&!isNaN(e.baseValue)&&this._runPoints.forEach((function(t){t.isNull&&(t.y=e.baseValue,t.isNull=!1)})),this.flag._prepareRender()},e.prototype._getGroupBase=function(){return this._group?this._group.getBaseValue(this._yAxisObj):this._op.baseValue},e.type=_F.LineSeriesType,e.defaults=(0,yF.extend)(PF.defaults,{lineType:"default",stepDir:"forward",connectNullPoints:!1,baseValue:void 0}),e}(PF);RG.LineSeries=OF;var CF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype._viewType=function(){return"line"},e.prototype.getLineType=function(){return"spline"},e.type=_F.SplineSeriesType,e}(OF);RG.SplineSeries=CF;var VF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e}(xF);RG.AreaSeriesPoint=VF;var EF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e);var i=this.chart;this.marker.visible=i&&i.isPolar()},e.prototype.prepareAreas=function(){function t(t){var e=[];if(t.length>1){var i=t[t.length-1].toPoint();i.py=t[t.length-1].yLow,e.push(i),(i=t[0].toPoint()).py=(0,dF.pickNum)(t[0].yLow,t[0].py),e.push(i)}return e}var e=this._group,i=this._lines,r=this._areas=[];if(e&&e._stacked){var n=[].concat.apply([],fF([],hF(i),!1));r.push(n),r.push(t(n))}else i.forEach((function(e){var i=e.slice(0);r.push(i),r.push(t(i))}))},e.prototype._createLegendMarker=function(t,e){return new vF.AreaLegendMarkerView(t)},e.prototype._createPoint=function(t){return new VF(t)},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._doBuildLines=function(e,i){if(!this.chart.isPolar()&&this._containsNull&&this._group&&this._group._stacked){for(var r=e.length,n=[],o=0;o<r;){var s=e[o].isNull,a=[];do{a.push(e[o++])}while(o<r&&e[o].isNull==s);n.push(a)}return n}return t.prototype._doBuildLines.call(this,e,i)},e.type=_F.AreaSeriesType,e.defaults=(0,yF.extend)(PF.defaults,{}),e}(OF);RG.AreaSeries=EF;var kF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.getPointLabel=function(e){return 1===e?this.lowValue:t.prototype.getPointLabel.call(this,0)},e.prototype.labelCount=function(){return 2},e.prototype._assignTo=function(e){return(0,dF.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,high:this.high,lowValue:this.lowValue,highValue:this.yValue})},e.prototype._valuesChangd=function(e){return this.low!==e.low||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=t.options,r=e.length>2?1:0;this.low=e[(0,dF.pickNum)(i.lowField,0+r)],this.y=e[(0,dF.pickNum)(i.yField,1+r)],r>0&&(this.x=e[(0,dF.pickNum)(i.xField,0)])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.isNull||(this.low=(0,dF.pickProp)(i[e.options.lowField],i.low),this.y=(0,dF.pickProp3)(e._yFielder(i),i.y,i.value))},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,dF.incv)(t.lowValue,this.lowValue,e)},e}(VF);RG.AreaRangeSeriesPoint=kF;var TF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype.getPosition=function(){return"default"===this._op.position||null==this._op.position?"foot":this._op.position},e}(SF);RG.AreaRangePointLabel=TF;var LF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype._createLabel=function(t){return new TF(t)},e.prototype._createLegendMarker=function(t,e){return new mF.AreaRangeLegendMarkerView(t)},e.prototype._createPoint=function(t){return new kF(t)},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&e===this._yAxisObj&&this._visPoints.forEach((function(t){return!t.isNull&&i.push(t.lowValue)}))},e.prototype._doBuildLines=function(e,i){var r=t.prototype._doBuildLines.call(this,e,i),n=[];return r.forEach((function(t){for(var e=[],i=t.length-1;i>=0;i--){var r=t[i],o=r.toPoint();o.py=r.yLow,e.push(o)}n.push(t,e)})),n},e.type=_F.ArearangeSeriesType,e.defaults=(0,yF.extend)(PF.defaults,{curved:!1,tooltipDetail:"<b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(PF);RG.AreaRangeSeries=LF;var NF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype._canContain=function(t){return t instanceof OF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,dF.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=_F.LineSeriesGroupType,e.seriesType=_F.LineSeriesType,e.defaults=(0,yF.extend)(gF.SeriesGroup.defaults,{lineType:"default"}),e}(gF.SeriesGroup);RG.LineSeriesGroup=NF;var MF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pF(e,t),e.prototype.prepareLines=function(t){if(this._stacked){var e=this._visibles.indexOf(t);if(e>0){for(var i=this._visibles[e-1],r=t._areas,n=i._areas,o=0;o<r.length;o+=2)r[o+1]=n[o].reverse();this._op.layout}}},e.prototype._canContain=function(t){return t instanceof EF},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?(0,dF.pickProp3)(this._op.baseValue,t.getBaseValue(),0):NaN},e.type=_F.AreaSeriesGroupType,e.seriesType=_F.AreaSeriesType,e.defaults=(0,yF.extend)(gF.SeriesGroup.defaults,{lineType:"default"}),e}(gF.SeriesGroup);RG.AreaSeriesGroup=MF;var jF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(jG,"__esModule",{value:!0}),jG.BellCurveSeries=jG.BellCurveSeriesPoint=void 0;var RF=iM,BF=qB,DF=LM,IF=RG,GF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jF(e,t),e}(IF.AreaSeriesPoint);jG.BellCurveSeriesPoint=GF;var FF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jF(e,t),Object.defineProperty(e.prototype,"canPolar",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new GF(t)},e.prototype._doLoadData=function(e){var i=t.prototype._doLoadData.call(this,e);if((0,RF.isArray)(i))return this._loadTable(i)},e.prototype._referOtherSeries=function(t){if(this._points.isEmpty()&&(t.options.name===this._op.source||t.index===this._op.source))return(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=t._visPoints.map((function(t){return t.yValue})).filter((function(t){return!isNaN(t)})),r=this._loadTable(i);this._doLoadPoints(r),this._prepareRunPoints(this._xAxisObj,this._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}},e.prototype._loadTable=function(t){var e=function(t,e,i){var r=i-t;return{x:i,y:Math.exp(-r*r/(2*e*e))/(e*Math.sqrt(2*Math.PI))}},i=t.length;if(!(i<1)){var r=this._op,n=t.reduce((function(t,e){return t+e}),0)/i,o=Math.sqrt(t.reduce((function(t,e){return t+Math.pow(e-n,2)}))/(i-1)),s=o/r.pointsInSigma,a=n-r.sigmas*o,l=n+r.sigmas*o,u=n,c=[];for(c.push(e(n,o,u));u>a;)u-=s,c.unshift(e(n,o,u));for(u=n;u<l;)u+=s,c.push(e(n,o,u));return c}},e.type=BF.BellCurveSeriesType,e.defaults=(0,DF.extend)(IF.AreaSeries.defaults,{sigmas:3,pointsInSigma:5,curved:!0}),e}(IF.AreaSeries);jG.BellCurveSeries=FF;var zF={},$F=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(zF,"__esModule",{value:!0}),zF.BoxPlotSeries=zF.BoxPlotSeriesPoint=void 0;var HF=iM,WF=IB,UF=qB,XF=LM,YF=DB,qF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $F(e,t),Object.defineProperty(e.prototype,"max",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype.labelCount=function(){return 2},e.prototype.getPointLabel=function(e){return 0===e?t.prototype.getPointLabel.call(this,e):this.minValue},e.prototype.getPointText=function(e){return 0===e?t.prototype.getPointText.call(this,e):this.minLabel},e.prototype._assignTo=function(e){return(0,HF.assignObj)(t.prototype._assignTo.call(this,e),{min:this.min,low:this.low,mid:this.mid,high:this.high,max:this.max,minValue:this.minValue,lowValue:this.lowValue,midValue:this.midValue,highValue:this.highValue,maxValue:this.maxValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.min!==e.min||this.low!==e.low||this.mid!==e.mid||this.high!==e.high)},e.prototype._readArray=function(t,e){if(e.length<=4)this.isNull=!0;else{var i=t.options,r=e.length>5?1:0;r>0&&(this.x=e[(0,HF.pickNum)(i.xField,0)]),this.min=e[(0,HF.pickNum)(i.minField,0+r)],this.low=e[(0,HF.pickNum)(i.lowField,1+r)],this.mid=e[(0,HF.pickNum)(i.midField,2+r)],this.high=e[(0,HF.pickNum)(i.highField,3+r)],this.y=e[(0,HF.pickNum3)(i.maxField,t.options.yField,4+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.min=(0,HF.pickProp)(i[r.minField],i.min),this.low=(0,HF.pickProp)(i[r.lowField],i.low),this.mid=(0,HF.pickProp)(i[r.midField],i.mid),this.high=(0,HF.pickProp)(i[r.highField],i.high),this.y=(0,HF.pickProp)(i[r.maxField],this.y),this.minLabel=i.minLabel},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.min=this.low=this.mid=this.high=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.minValue)||isNaN(this.lowValue)||isNaN(this.midValue))},e.prototype.initValues=function(){this.minValue=parseFloat(this.min),this.lowValue=parseFloat(this.low),this.midValue=parseFloat(this.mid),this.highValue=parseFloat(this.high)},e.prototype.initPrev=function(t,e){e.yValue=e.highValue=e.midValue=e.lowValue=e.minValue=this.minValue},e.prototype.applyValueRate=function(t,e){this.minValue=(0,HF.incv)(t.minValue,this.minValue,e),this.lowValue=(0,HF.incv)(t.lowValue,this.lowValue,e),this.midValue=(0,HF.incv)(t.midValue,this.midValue,e),this.highValue=(0,HF.incv)(t.highValue,this.highValue,e)},e}(ZB.DataPoint);zF.BoxPlotSeriesPoint=qF;var ZF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $F(e,t),e.prototype.pointLabelCount=function(){return 2},e.prototype.canCategorized=function(){return!0},e.prototype._getFielderProps=function(){return["minField","lowField","midField","highField"].concat(t.prototype._getFielderProps.call(this))},e.prototype._createPoint=function(t){return new qF(t)},e.prototype._getBottomValue=function(t){return t.minValue},e.prototype._createLegendMarker=function(t,e){return WF.RectElement.create(t,YF.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=UF.BoxPlotSeriesType,e.defaults=(0,XF.extend)(YF.LowRangedSeries.defaults,{tooltipText:"<b>${name}</b><br>${detail}",tooltipDetail:"min: <b>${minValue}</b><br>low: <b>${lowValue}</b><br>mid: <b>${midValue}</b><br>high: <b>${highValue}</b><br>max: <b>${maxValue}</b>"}),e}(YF.LowRangedSeries);zF.BoxPlotSeries=ZF;var KF={},JF=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(KF,"__esModule",{value:!0}),KF.BubbleSeries=KF.BubbleSeriesPoint=void 0;var QF=iM,tz=nM,ez=qB,iz=LM,rz=DB,nz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JF(e,t),e}(ZB.ZValuePoint);KF.BubbleSeriesPoint=nz;var oz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JF(e,t),e.prototype.getShape=function(){return this._op.shape||"circle"},e.prototype.getPixelMinMax=function(t){return{min:(0,tz.calcPercent)(this._minSizeDim,t),max:(0,tz.calcPercent)(this._maxSizeDim,t)}},e.prototype.getRadius=function(t,e,i){var r=this._noSize?1:(t-this._zMin)/(this._zMax-this._zMin);return"area"==this._op.sizeMode&&(r=Math.sqrt(r)),r=Math.ceil(e+r*(i-e))/2},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"minSize","maxSize")},e.prototype._createPoint=function(t){return new nz(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,QF.isBoolean)(i)||i},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.hasZ=function(){return!0},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=Number.MAX_VALUE,i=Number.MIN_VALUE;this._visPoints.forEach((function(t){t.isNull||isNaN(t.zValue)||(e=(0,QF.minv)(e,t.zValue),i=(0,QF.maxv)(i,t.zValue))})),this._noSize=(this._zMin=e)===(this._zMax=i)},e.prototype._getRangeMinMax=function(e){return"z"===e?{min:this._zMin,max:this._zMax}:t.prototype._getRangeMinMax.call(this,e)},e.prototype.getPointAt=function(t,e){(0,QF.isString)(t)&&(t=this._xAxisObj.getValue(t)),(0,QF.isString)(e)&&(e=this._yAxisObj.getValue(e));for(var i=0;i<this._points.count;i++){var r=this._points.get(i);if(r.xValue===t&&r.yValue===e)return r}},e.type=ez.BubbleSeriesType,e.defaults=(0,iz.extend)(rz.MarkerSeries.defaults,{sizeMode:"area",minSize:10,maxSize:"20%",tooltipText:"${detail}",tooltipDetail:"x: <b>${x}</b><br>y: <b>${y}</b><br>volume: <b>${z}</b>",paddingRate:2}),e}(rz.MarkerSeries);KF.BubbleSeries=oz;var sz={},az=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sz,"__esModule",{value:!0}),sz.BumpSeriesGroup=void 0;var lz=iM,uz=rM,cz=qB,pz=RG,hz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return az(e,t),e.prototype._canContain=function(t){return t instanceof pz.LineSeries},e.prototype._doConstraintYValues=function(t){var e={};for(var i in t.forEach((function(t){t._visPoints.forEach((function(t){if(!1!==t.visible){var i=t.xValue,r=e[i];r?r.push(t):e[i]=[t]}}))})),e)e[i].sort((function(t,e){return t.yValue-e.yValue})).forEach((function(t,e){t.yLabel=(0,lz.pickProp)(t.yLabel,t.yValue),t.yValue=t.yGroup=e}));return uz.Utils.makeIntArray(0,t.length)},e.type=cz.BumpSeriesType,e.seriesType=cz.LineSeriesType,e}(DB.ConstraintSeriesGroup);sz.BumpSeriesGroup=hz;var fz={},dz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(fz,"__esModule",{value:!0}),fz.CandlestickSeries=fz.CandlestickSeriesPoint=void 0;var _z=iM,yz=Tj,gz=fj,vz=qB,mz=LM,bz=DB,xz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dz(e,t),Object.defineProperty(e.prototype,"high",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"highValue",{get:function(){return this.yValue},enumerable:!1,configurable:!0}),e.prototype._assignTo=function(e){return(0,_z.assignObj)(t.prototype._assignTo.call(this,e),{low:this.low,close:this.close,open:this.open,high:this.high,lowValue:this.lowValue,closeValue:this.closeValue,openValue:this.openValue,highValue:this.highValue})},e.prototype._valuesChangd=function(e){return!!t.prototype._valuesChangd.call(this,e)||(this.low!==e.low||this.close!==e.close||this.open!==e.open)},e.prototype._readArray=function(t,e){if(e.length<=3)this.isNull=!0;else{var i=t.options,r=e.length>4?1:0;r>0&&(this.x=e[(0,_z.pickNum)(i.xField,0)]),this.low=e[(0,_z.pickNum)(i.lowField,0+r)],this.close=e[(0,_z.pickNum)(i.closeField,1+r)],this.open=e[(0,_z.pickNum)(i.openField,2+r)],this.y=e[(0,_z.pickNum3)(i.highField,t.options.yField,3+r)]}},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i);var r=e.options;this.low=(0,_z.pickProp)(i[r.lowField],i.low),this.open=(0,_z.pickProp)(i[r.openField],i.open),this.close=(0,_z.pickProp)(i[r.closeField],i.close),this.y=(0,_z.pickProp3)(i[r.highField],i.high,this.y)},e.prototype._readSingle=function(e){t.prototype._readSingle.call(this,e),this.low=this.close=this.open=this.y},e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.isNull||(this.isNull=isNaN(this.lowValue)||isNaN(this.openValue)||isNaN(this.closeValue))},e.prototype.initValues=function(){this.lowValue=parseFloat(this.low),this.openValue=parseFloat(this.open),this.closeValue=parseFloat(this.close)},e.prototype.initPrev=function(t,e){e.yValue=e.lowValue=e.openValue=e.closeValue=this.lowValue},e.prototype.applyValueRate=function(t,e){this.lowValue=(0,_z.incv)(t.lowValue,this.lowValue,e),this.openValue=(0,_z.incv)(t.openValue,this.openValue,e),this.closeValue=(0,_z.incv)(t.closeValue,this.closeValue,e)},e}(ZB.DataPoint);fz.CandlestickSeriesPoint=xz;var wz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dz(e,t),e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new xz(t)},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype._createLegendMarker=function(t,e){var i=new yz.PathBuilder;return i.rect(0,.2*e,e,.6*e),i.vline(e/2,0,e),new gz.PathElement(t,bz.Series.LEGEND_MARKER).setPath(i.end())},e.type=vz.CandlestickSeriesType,e.defaults=(0,mz.extend)(bz.LowRangedSeries.defaults,{tooltipDetail:"<b>${name}</b><br>최저: <b>${lowValue}</b><br>시가: <b>${openValue}</b><br>종가: <b>${closeValue}</b><br>고가: <b>${highValue}</b>"}),e}(bz.LowRangedSeries);fz.CandlestickSeries=wz;var Sz={},Pz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Sz,"__esModule",{value:!0}),Sz.CircleBarSeriesGroup=Sz.CircleBarSeries=Sz.CircelBarPointLabel=void 0;var Az=qB,Oz=LM,Cz=DB,Vz=SG,Ez=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pz(e,t),e.defaults=(0,Oz.extend)(Cz.DataPointLabel.defaults,{position:"inside"}),e}(Cz.BasedSeriesLabel);Sz.CircelBarPointLabel=Ez;var kz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pz(e,t),Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new Ez(t)},e.type=Az.CircleBarSeriesType,e}(Vz.BarSeriesBase);Sz.CircleBarSeries=kz;var Tz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pz(e,t),e.prototype._canContain=function(t){return t instanceof kz},e.type=Az.CircleBarSeriesGroupType,e.seriesType=Az.CircleBarSeriesType,e}(Vz.BarSeriesGroupBase);Sz.CircleBarSeriesGroup=Tz;var Lz={},Nz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Lz,"__esModule",{value:!0}),Lz.DumbbellSeries=Lz.DumbbellSeriesMarker=Lz.DumbbellSeriesPoint=void 0;var Mz=iM,jz=qB,Rz=LM,Bz=DB,Dz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nz(e,t),e}(ZB.RangedPoint);Lz.DumbbellSeriesPoint=Dz;var Iz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nz(e,t),e.defaults=(0,Rz.extend)(Bz.SeriesMarker.defaults,{radius:4,shape:"circle"}),e}(Bz.SeriesMarker);Lz.DumbbellSeriesMarker=Iz;var Gz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nz(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new Iz(this)).init(),e.lowMarker=(this._lowMarker=new Iz(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowMarker",{get:function(){return this._lowMarker},enumerable:!1,configurable:!0}),e.prototype.canCategorized=function(){return!0},e.prototype._getBottomValue=function(t){return t.lowValue},e.prototype.pointLabelCount=function(){return 2},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+(0,Mz.maxv)(0,this.marker.options.radius)},e.prototype._createPoint=function(t){return new Dz(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=this.lowMarker.options,r=e.radius,n=e.shape,o=(0,Mz.pickNum)(i.radius,r),s=i.shape||n;this._visPoints.forEach((function(t){t.radius=r,t.shape=n,t.lowRadius=o,t.lowShape=s})),t.prototype.prepareAfter.call(this)},e.type=jz.DumbbellSeriesType,e}(Bz.LowRangedSeries);Lz.DumbbellSeries=Gz;var Fz={},zz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Fz,"__esModule",{value:!0}),Fz.EqualizerSeries=Fz.EqualizerSeriesPoint=void 0;var $z=Tj,Hz=fj,Wz=nM,Uz=qB,Xz=LM,Yz=DB,qz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zz(e,t),e}(ZB.DataPoint);Fz.EqualizerSeriesPoint=qz;var Zz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zz(e,t),e.prototype.getSegmentSize=function(t){return(0,Wz.calcPercent)(this._segmentSizeDim,t)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDim(e,"segmentSize")},e.prototype.canCategorized=function(){return!0},e.prototype._createPoint=function(t){return new qz(t)},e.prototype._createLegendMarker=function(t,e){var i=new $z.PathBuilder;return i.rect(0,0,e,.4*e),i.rect(0,.6*e,e,.4*e),new Hz.PathElement(t,Yz.Series.LEGEND_MARKER).setPath(i.end())},e.type=Uz.EqualizerSeriesType,e.defaults=(0,Xz.extend)(Yz.BasedSeries.defaults,{segmentSize:10,segmentGap:4,segmented:!1}),e}(Yz.BasedSeries);Fz.EqualizerSeries=Zz;var Kz={},Jz=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Kz,"__esModule",{value:!0}),Kz.ErrorBarSeries=void 0;var Qz=Tj,t$=fj,e$=qB,i$=LM,r$=ZB,n$=DB,o$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jz(e,t),e.prototype.isClusterable=function(){return!1},e.prototype.pointLabelCount=function(){return 2},e.prototype._createPoint=function(t){return new r$.RangedPoint(t)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?0:NaN},e.prototype._createLegendMarker=function(t,e){var i=(new Qz.PathBuilder).vline(e/2,.1,.8*e).hline(.1,0,e).hline(.9*e,0,e),r=new t$.PathElement(t,n$.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.prototype._getBottomValue=function(t){return t.lowValue},e.type=e$.ErrorBarSeriesType,e.defaults=(0,i$.extend)(n$.LowRangedSeries.defaults,{pointPadding:.3,tooltipDetail:"<b>${lowValue}</b> ~ <b>${highValue}</b>"}),e}(n$.LowRangedSeries);Kz.ErrorBarSeries=o$;var s$={},a$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(s$,"__esModule",{value:!0}),s$.FunnelSeries=s$.FunnelSeriesLabel=s$.FunnelOthersPoint=s$.FunnelSeriesPoint=void 0;var l$=iM,u$=nM,c$=rM,p$=qB,h$=LM,f$=DB,d$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a$(e,t),e}(f$.WidgetSeriesPoint);s$.FunnelSeriesPoint=d$;var _$=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return a$(e,t),e}(d$);s$.FunnelOthersPoint=_$;var y$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a$(e,t),e.prototype.getDistance=function(){return isNaN(this._op.distance)?"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST:this._op.distance||0},e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e}(f$.WidgetSeriesLabel);s$.FunnelSeriesLabel=y$;var g$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a$(e,t),e.prototype.getSize=function(t,e){return{width:(0,l$.maxv)(.1*t,(0,u$.calcPercent)(this._widthDim,t)),height:(0,l$.maxv)(.1*e,(0,u$.calcPercent)(this._heightDim,e))}},e.prototype.getNeckSize=function(t,e){return{width:c$.Utils.clamp((0,u$.calcPercent)(this._neckWidthDim,t),this._minNeckWidth,t),height:c$.Utils.clamp((0,u$.calcPercent)(this._neckHeightDim,e),0,e)}},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new y$(t)},e.prototype._createPoint=function(t){return new d$(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new _$(t,e)},e.prototype._doApply=function(i){var r,n=this;t.prototype._doApply.call(this,i),(r=i.width)!==n._width&&(n._width=r,n._widthDim=(0,u$.parsePercentSize2)(n._width,e.defaults.width)),function(t){t!==n._height&&(n._height=t,n._heightDim=(0,u$.parsePercentSize2)(n._height,e.defaults.height))}(i.height),function(t){t!==n._neckWidth&&(n._neckWidth=t,n._neckWidthDim=(0,u$.parsePercentSize2)(n._neckWidth,e.defaults.neckWidth))}(i.neckWidth),function(t){t!==n._neckHeight&&(n._neckHeight=t,n._neckHeightDim=(0,u$.parsePercentSize2)(n._neckHeight,e.defaults.neckHeight))}(i.neckHeight),this._minNeckWidth=Math.max(0,+i.minNeckWidth)},e.type=p$.FunnelSeriesType,e.defaults=(0,h$.extend)(f$.WidgetSeries.defaults,{width:"85%",height:"90%",neckWidth:"30%",neckHeight:"30%",minNeckWidth:2,legendByPoint:!1}),e}(f$.WidgetSeries);s$.FunnelSeries=g$;var v$={},m$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(v$,"__esModule",{value:!0}),v$.HistogramSeries=v$.HistogramSeriesPoint=void 0;var b$=iM,x$=IB,w$=qB,S$=LM,P$=DB,A$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m$(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e);var i=this.source;this.min=i.min,this.max=i.max},e.prototype._assignTo=function(e){return(0,b$.assignObj)(t.prototype._assignTo.call(this,e),{min:this.min,max:this.max})},e}(ZB.DataPoint);v$.HistogramSeriesPoint=A$;var O$={squreRoot:function(t){return Math.ceil(Math.sqrt(t))},struges:function(t){return Math.ceil(Math.log(t)*Math.LOG2E)},rice:function(t){return Math.ceil(2*Math.pow(t,1/3))}},C$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m$(e,t),e.prototype.getBinCount=function(t){var e=(0,b$.pickNum)(this._op.binWidth,0);return e>0?t/e:(0,b$.pickNum)(this._op.binsNumber,0)<1?O$[this._op.binsNumber||"squreRoot"](t):void 0},e.prototype._createPoint=function(t){return new A$(t)},e.prototype._doLoadPoints=function(e){function i(t){var e;return e=(0,b$.isArray)(t)?t[(0,b$.pickNum)(this.yField,0)]:(0,b$.isObject)(t)?(0,b$.pickProp3)(t[this.yField],t.y,t.value):t,parseFloat(e)}for(var r=this._op,n=[],o=[],s=0;s<e.length;s++){var a=i(e[s]);isNaN(a)||o.push(a)}if(o.length>0){o=o.sort((function(t,e){return t-e})),r.minValue<o[0]&&o.unshift(r.minValue),r.maxValue>o[o.length-1]&&o.push(r.maxValue);var l=o.length,u=o[0],c=o[l-1],p=this.getBinCount(l),h=this._binInterval=(c-u)/p,f=0,d=u,_=d+h;for(s=0;s<p;s++){var y=0;if(s==p-1)y=l-f;else for(;f<l&&o[f]<_;)y++,f++;n.push({x:d,y:y,min:d,max:s===p-1?c:_}),_=(d=_)+h}}t.prototype._doLoadPoints.call(this,n)},e.prototype.collectValues=function(e,i){t.prototype.collectValues.call(this,e,i),i&&(e===this._xAxisObj?i.push(this._visPoints[this._visPoints.length-1].max):e===this._yAxisObj&&i.push(this._base))},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._base=(0,b$.pickNum3)(this._op.baseValue,this._yAxisObj.getBaseValue(),0)},e.prototype.getBaseValue=function(t){return t===this._yAxisObj?this._base:NaN},e.prototype.isBased=function(t){return t===this._yAxisObj},e.prototype._createLegendMarker=function(t,e){return x$.RectElement.create(t,P$.Series.LEGEND_MARKER,0,0,e,e,2)},e.type=w$.HistogramSeriesType,e.defaults=(0,S$.extend)(P$.Series.defaults,{baseValue:0,binsNumber:"squreRoot"}),e}(P$.ConnectableSeries);v$.HistogramSeries=C$;var V$={},E$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),k$=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},T$=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(V$,"__esModule",{value:!0}),V$.LollipopSeries=V$.LollipopSeriesPoint=V$.LollipopSeriesMarker=void 0;var L$=iM,N$=qB,M$=LM,j$=ZB,R$=DB,B$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E$(e,t),e.defaults=(0,M$.extend)(R$.SeriesMarker.defaults,{radius:4,minRadius:2,maxRadius:8,shape:"circle"}),e}(R$.SeriesMarker);V$.LollipopSeriesMarker=B$;var D$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E$(e,t),e.prototype._assignTo=function(e){return(0,L$.assignObj)(t.prototype._assignTo.call(this,e),{radius:this.radius})},e.prototype._valuesChangd=function(e){return this.radius!==e.radius||t.prototype._valuesChangd.call(this,e)},e.prototype._readArray=function(t,e){var i=+t.options.colorField,r=+t.options.iconField,n=t.options,o=e.length>1?1:0;o>0&&(this.x=e[(0,L$.pickNum)(n.xField,0)]),this.y=e[(0,L$.pickNum)(n.yField,0+o)],this.radius=e[(0,L$.pickNum)(n.radiusField,1+o)],isNaN(i)||(this.color=e[i]),isNaN(r)||(this.icon=e[r])},e.prototype._readObject=function(e,i){t.prototype._readObject.call(this,e,i),this.radius=(0,L$.pickProp)(i[e.options.radiusField],i.radius)},e}(j$.DataPoint);V$.LollipopSeriesPoint=D$;var I$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E$(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.marker=(this._marker=new B$(this)).init()},Object.defineProperty(e.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),e.prototype._getFielderProps=function(){return["xField","yField","zField","colorField","iconField","radiusField"]},e.prototype.canCategorized=function(){return!0},e.prototype.getLabelOff=function(e){return t.prototype.getLabelOff.call(this,e)+this.marker.options.radius},e.prototype._createPoint=function(t){return new D$(t)},e.prototype.prepareAfter=function(){var e=this.marker.options,i=e.radius,r=e.shape,n=this.options.radiusField,o=(0,L$.maxv)(e.minRadius,0),s=(0,L$.maxv)(e.maxRadius,o);if(n){var a=this._runPoints.map((function(t){return t.radius})).filter((function(t){return"number"==typeof t&&!Number.isNaN(t)})),l=Math.min.apply(Math,T$([],k$(a),!1)),u=Math.max.apply(Math,T$([],k$(a),!1))-l||1;this._runPoints.forEach((function(t){var e=(t.radius-l)/u;null!=t.radius&&(t.radius=o+e*(s-o)),t.shape=r}))}else this._runPoints.forEach((function(t){var e;t.radius=null!==(e=t.radius)&&void 0!==e?e:i,t.shape=r}));t.prototype.prepareAfter.call(this)},e.type=N$.LollipopSeriesType,e}(R$.BasedSeries);V$.LollipopSeries=I$;var G$={},F$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(G$,"__esModule",{value:!0}),G$.OhlcSeries=G$.OhlcSeriesPoint=void 0;var z$=Tj,$$=fj,H$=qB,W$=DB,U$=fz,X$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F$(e,t),e}(U$.CandlestickSeriesPoint);G$.OhlcSeriesPoint=X$;var Y$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F$(e,t),e.prototype._createPoint=function(t){return new X$(t)},e.prototype._createLegendMarker=function(t,e){var i=new z$.PathBuilder;i.vline(e/2,0,e),i.hline(.4*e,e/2,e),i.hline(.7*e,0,e/2);var r=new $$.PathElement(t,W$.Series.LEGEND_MARKER).setPath(i.end());return r.setStyle("strokeWidth","2px"),r},e.type=H$.OhlcSeriesType,e}(U$.CandlestickSeries);G$.OhlcSeries=Y$;var q$={},Z$=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(q$,"__esModule",{value:!0}),q$.ParetoSeries=q$.ParetoSeriesPoint=void 0;var K$=iM,J$=qB,Q$=LM,tH=RG,eH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z$(e,t),e}(tH.LineSeriesPoint);q$.ParetoSeriesPoint=eH;var iH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z$(e,t),e.prototype.isEmpty=function(){return!!t.prototype.isEmpty.call(this)&&(!this._refer||this._refer.isEmpty())},e.prototype.getLineType=function(){return this._op.curved?"spline":"default"},e.prototype._createPoint=function(t){return new eH(t)},e.prototype._referOtherSeries=function(t){if(t.options.name===this._op.source||t.index===this._op.source)return(this._refer=t).referBy(this),!0},e.prototype.refer=function(t,e){if(!e._isX){var i=this;r=t._visPoints,n=[],o=r.reduce((function(t,e){return t+(0,K$.pickNum)(e.yValue,0)}),0),s=0,r.forEach((function(t){t.isNull||n.push({x:t.xValue,y:s+=100*t.yValue/o})})),i._doLoadPoints(n),i._prepareRunPoints(i._xAxisObj,i._yAxisObj),this.collectValues(this._xAxisObj,this._xAxisObj._values),this.collectValues(this._yAxisObj,this._yAxisObj._values)}var r,n,o,s},e.type=J$.ParetoSeriesType,e.defaults=(0,Q$.extend)(tH.LineSeriesBase.defaults,{curved:!1}),e}(tH.LineSeriesBase);q$.ParetoSeries=iH;var rH={},nH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oH=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},sH=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(rH,"__esModule",{value:!0}),rH.PieSeriesGroup=rH.PieSeries=rH.PieSeriesDepth=rH.PieSeriesLabel=rH.PieSeriesText=rH.PieOthersPoint=rH.PieSeriesPoint=void 0;var aH=iM,lH=nM,uH=qB,cH=LM,pH=DB,hH=function(t){function e(){var e=t.apply(this,sH([],oH(arguments),!1))||this;return e.sliced=!1,e.startAngle=0,e.angle=0,e}return nH(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this.sliced=this.source.sliced,this.isNull=this.isNull||this.y<0},e.prototype._assignTo=function(e){return(0,aH.assignObj)(t.prototype._assignTo.call(this,e),{sliced:this.sliced})},e}(pH.WidgetSeriesPoint);rH.PieSeriesPoint=hH;var fH=function(t){function e(e,i){var r=t.call(this,e)||this;return r.points=i,r}return nH(e,t),e}(hH);rH.PieOthersPoint=fH;var dH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nH(e,t),e.prototype.getDefaultIconPos=function(){return"left"},e}(cH.IconedText);rH.PieSeriesText=dH;var _H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nH(e,t),e.prototype.getDistance=function(t,i,r){return r>0&&(i-=i*r),this._distanceDim?(0,lH.calcPercent)(this._distanceDim,i,0):t?(0,lH.calcPercent)(r?e.INNER_DIST:e.INSIDE_DIST,i):"far"===this._op.align?e.ENDED_DIST:e.OUTSIDE_DIST},e.INSIDE_DIST=(0,lH.parsePercentSize)("30%",!1),e.INNER_DIST=(0,lH.parsePercentSize)("50%",!1),e.OUTSIDE_DIST=25,e.ENDED_DIST=10,e.defaults=(0,cH.extend)(pH.WidgetSeriesLabel.defaults,{radius:.7,rotationMode:uH._PointLabelRotationMode.ARC}),e}(pH.WidgetSeriesLabel);rH.PieSeriesLabel=_H;var yH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nH(e,t),e.prototype.getLength=function(){return this.visible?this._op.length:0},e.prototype._isVisible=function(){return this._op.visible&&this._op.length>0},e.prototype._doSetSimple=function(e){return(0,aH.isNumber)(e)&&e>0?(this._op.length=e,this._op.visible=!0,!0):t.prototype._doSetSimple.call(this,e)},e.prototype._doApply=function(i){t.prototype._doApply.call(this,i),i.length=(0,aH.maxv)(0,(0,aH.pickNum)(i.length,0)),i.ratio=(0,aH.maxv)(.3,(0,aH.minv)(.8,(0,aH.pickNum)(i.ratio,e.DEPTH_RATIO)))},e.DEPTH_RATIO=.6,e.defaults=(0,cH.extend)(cH.ChartItem.defaults,{visible:!1,length:25,ratio:e.DEPTH_RATIO}),e}(cH.ChartItem);rH.PieSeriesDepth=yH;var gH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nH(e,t),e.prototype._doInit=function(e){t.prototype._doInit.call(this,e),e.innerText=(this._innerText=new dH(this.chart)).init(),e.depth=(this._depth=new yH(this.chart)).init()},Object.defineProperty(e.prototype,"innerText",{get:function(){return this._innerText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this._depth},enumerable:!1,configurable:!0}),e.prototype.followPointer=function(){return!0},e.prototype.hasInner=function(){return this._innerRadiusDim&&this._innerRadiusDim.size>0},e.prototype.getInnerRadius=function(t){var e=this._innerRadiusDim;return e?e.size/(e.fixed?t:100):0},e.prototype.getSliceOffset=function(t){return!this._group&&this._sliceOffsetDim?(0,lH.calcPercent)(this._sliceOffsetDim,t):0},Object.defineProperty(e.prototype,"pointLabel",{get:function(){return this._pointLabel},enumerable:!1,configurable:!0}),e.prototype._createLabel=function(t){return new _H(t)},e.prototype._createPoint=function(t){return new hH(t)},e.prototype._createOthersPoint=function(t,e){return t.y=e.map((function(t){return t.y})).reduce((function(t,e){return t+e})),new fH(t,e)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e),this._setDims(e,"innerRadius","sliceOffset"),e.totalAngle<=0&&(e.totalAngle=360)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this),this._innerText._prepareRender(),this._startRad=lH.ORG_ANGLE+lH.DEG_RAD*(0,aH.pickNum)(this._op.startAngle%360,0),this._totalRad=lH.DEG_RAD*(0,aH.maxv)(0,(0,aH.minv)(360,(0,aH.pickNum)(this._op.totalAngle,360))),this._groupPos=NaN},e.type=uH.PieSeriesType,e.defaults=(0,cH.extend)(pH.RadialSeries.defaults,{groupSize:1,sliceOffset:"7%",autoSlice:!0,sliceDuration:300}),e}(pH.RadialSeries);rH.PieSeries=gH;var vH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nH(e,t),e.prototype.getPolarSize=function(t,e){return(0,lH.calcPercent)(this._polarDim,(0,aH.minv)(t,e))},e.prototype.getInnerRadius=function(t){var e=this._innerDim;return e?e.size/(e.fixed?t:100):0},e.prototype.connectable=function(t){return!1},e.prototype._doApply=function(e){var i,r=this;t.prototype._doApply.call(this,e),(i=e.polarSize)!==r._polarSize&&(r._polarSize=i,r._polarDim=(0,lH.parsePercentSize)(i,!0)||{size:80,fixed:!1}),function(t){t!==r._innerSize&&(r._innerSize=t,r._innerDim=(0,lH.parsePercentSize)(t,!0))}(e.innerSize)},e.prototype.needAxes=function(){return!1},e.prototype._canContain=function(t){return t instanceof gH},e.prototype._doPrepareSeries=function(t){var e=t.map((function(t){return t.options.groupSize})).reduce((function(t,e){return t+(0,aH.pickNum)(e,1)}),0),i=0;t.forEach((function(t){t._groupPos=i,i+=t._groupSize=(0,aH.pickNum)(t.options.groupSize,1)/e}))},e.type=uH.PieSeriesGroupType,e.seriesType=uH.PieSeriesType,e.defaults=(0,cH.extend)(pH.SeriesGroup.defaults,{polarSize:"80%",innerSize:0}),e}(pH.SeriesGroup);rH.PieSeriesGroup=vH;var mH={},bH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(mH,"__esModule",{value:!0}),mH.ScatterSeries=mH.ScatterSeriesPoint=void 0;var xH=iM,wH=qB,SH=LM,PH=DB,AH=DG,OH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bH(e,t),e}(ZB.DataPoint);mH.ScatterSeriesPoint=OH;var CH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bH(e,t),e.prototype._createPoint=function(t){return new OH(t)},e.prototype._getNoClip=function(e){var i=t.prototype._getNoClip.call(this,e);return!(0,xH.isBoolean)(i)||i},e.prototype._createLegendMarker=function(t,e){return new AH.ShapeLegendMarkerView(t)},e.prototype._colorByPoint=function(){return this._op.colorByPoint},e.prototype.setShape=function(t){this._defShape=t},Object.defineProperty(e.prototype,"canPolar",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.getShape=function(t){return this._op.shape||this._defShape},e.prototype.hasShape=function(){return!0},e.prototype.legendMarker=function(e,i){var r=t.prototype.legendMarker.call(this,e,i);return r.render(this.getShape(null),(0,xH.minv)(i/2,this._op.radius)),r},e.type=wH.ScatterSeriesType,e.defaults=(0,SH.extend)(PH.MarkerSeries.defaults,{jitterX:0,jitterY:0,radius:5,hoverScale:1.8}),e}(PH.MarkerSeries);mH.ScatterSeries=CH;var VH={},EH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),kH=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},TH=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(VH,"__esModule",{value:!0}),VH.WaterfallSeries=VH.WaterFallDataPointLabel=VH.WaterfallSeriesPoint=void 0;var LH=IB,NH=qB,MH=LM,jH=DB,RH=function(t){function e(){var e=t.apply(this,TH([],kH(arguments),!1))||this;return e.from=0,e}return EH(e,t),e.prototype.parse=function(e){t.prototype.parse.call(this,e),this._isSum=!0===this.source.isSum,this._isMid=this.source.isMid,(this._isSum||this._isMid)&&(this.y=0)},e.prototype.getPointLabel=function(t){return this.y},e}(ZB.DataPoint);VH.WaterfallSeriesPoint=RH;var BH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return EH(e,t),e.defaults=(0,MH.extend)(jH.DataPointLabel.defaults,{offset:0}),e}(jH.DataPointLabel);VH.WaterFallDataPointLabel=BH;var DH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return EH(e,t),e.prototype.canCategorized=function(){return!0},e.prototype.getBaseValue=function(t){return t._isX?NaN:0},e.prototype._createLabel=function(t){return new BH(t)},e.prototype._createPoint=function(t){return new RH(t)},e.prototype._createLegendMarker=function(t,e){return LH.RectElement.create(t,jH.Series.LEGEND_MARKER,0,0,e,e,2)},e.prototype._doPrepareRender=function(){t.prototype._doPrepareRender.call(this);var e=this._visPoints;if(!(e.length<1))for(var i,r=e[0],n=r.y=r.save=r._isSum?0:r.y,o=n,s=n,a=r.from=0,l=0,u=r.to=n,c=0,p=1,h=e.length;p<h;p++){if(!0===(r=e[p])._isMid&&p<h)c=u=(a=c)+(i=s),n=i,s=0;else if(r._isSum)a=0,u=i=o,n=i;else{if(null==r.y)continue;u=(a=l+n)+(i=r.y),s+=i,o+=i,n=i}r.yGroup=r.yValue=i,r.from=a,r.to=u,r.y=Math.max(a,u),r.save=i,l=a}},e.prototype._getBottomValue=function(t){var e=Math.min(t.from,t.to);return t.y=t.save,delete t.save,e},e.type=NH.WaterfallSeriesType,e.defaults=(0,MH.extend)(jH.RangedSeries.defaults,{tooltipDetail:"<b>${y}</b>"}),e}(jH.RangedSeries);VH.WaterfallSeries=DH;var IH={},GH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(IH,"__esModule",{value:!0}),IH.LogAxis=IH.LogAxisTick=void 0;var FH=iM,zH=nM,$H=pD,HH=LM,WH=jI,UH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GH(e,t),e.prototype.canUseNumSymbols=function(){return this.axis.axisMax()>this._log(500)},e.prototype.buildSteps=function(e,i,r,n,o,s){return this._log=e._log,this._pow=e._pow,this._snap=e._snap,t.prototype.buildSteps.call(this,e,i,r,n,o,s)},e.prototype._getStepMultiples=function(t){return[1,2,5,10]},e.prototype._getStepsByPixels=function(t,e,i,r,n){var o=this._log,s=this._pow,a=this._snap;r>=i?r=i:n<=i&&(n=i);var l=n-r;if(0===l||t<=0)return isNaN(r)?[]:[r];var u=[],c=(0,FH.maxv)(1,(0,FH.floor)(t/e))+1;if(n-r>=.5){if(0===l)return isNaN(r)?[]:[r];var p=l/(c-1);if(p/=y=s(Math.floor(o(p))),(g=this._getStepMultiples(y))&&g.length>0)if(p>g[0]){for(var h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){p=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}}else p=g[0];((p*=y)<=0||!isFinite(p))&&(p=l/c),r=isNaN(i)?this._normalizeMin(r,p):i-(0,FH.ceil)((i-r)/p)*p;var f=this.axis,d=Math.pow(f._logBase,n-r)>f._roundThreshold,_=a(b=r);for(u.push(_);_<n;)b+=p,(_=a(d?Math.round(b):b))>u[u.length-1]&&(_<n&&(1==u.length&&_-u[u.length-1]<p||u.length>1&&_-u[u.length-1]<.5*(u[u.length-1]-u[u.length-2]))&&u.pop(),u.push(_))}else{r=s(r);var y,g,v=(n=s(n))-r;p=v/(c-1);if(p/=y=s((0,FH.floor)(o(p))),(g=this._getStepMultiples(y))&&g.length>0){var m=g[0];for(h=0;h<g.length-1;h++)if(p>g[h]&&p<g[h+1]){m=p<=g[h]+(g[h+1]-g[h])/2?g[h]:g[h+1];break}p=m}((p*=y)<=0||!isFinite(p))&&(p=v/c);var b,x=1e-10*p;for((b=(0,FH.floor)(r/p)*p)<r&&(b+=p),u.push(o(b));b<=n+x;)(b+=p)>0&&u.push(o(b))}return u},e.defaults=(0,HH.extend)(WH.ContinuousAxisTick.defaults,{arrangeDecimals:!0}),e}(WH.ContinuousAxisTick);IH.LogAxisTick=UH;var XH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GH(e,t),e.prototype._isLog=function(){return!0},e.prototype._createLabel=function(){return new WH.LinearAxisLabel(this)},e.prototype._createTickModel=function(){return new UH(this)},e.prototype._doApply=function(e){t.prototype._doApply.call(this,e);var i=this._logBase=(0,FH.maxv)(2,(0,FH.pickNum)(e.logBase,10));this._roundThreshold=(0,FH.pickNum)(e.roundThrrehold,500),this._log=this.$_createLog(i),this._pow=this.$_createPow(i),this._snap=this.$_createSnap(i,this._log)},e.prototype.$_createLog=function(t){return 10===t?Math.log10:function(e){return Math.log10(e)/Math.log10(t)}},e.prototype.$_createPow=function(t){return function(e){return Math.pow(t,e)}},e.prototype.$_createSnap=function(t,e){return function(i){var r=(0,FH.floor)(i);return i===r?i:r+e((i-r)*t)}},e.prototype.dataToAxis=function(t){return this._log(t)},e.prototype.axisToData=function(t){return this._pow(t)},e.prototype.getXStart=function(){return 1},e.prototype.valueMin=function(){return this._pow(this._min)},e.prototype.valueMax=function(){return this._pow(this._max)},e.prototype.getPos=function(e,i){return i=i>0?this._log(i):-1,t.prototype.getPos.call(this,e,i)},e.prototype._checkValues=function(t){return t.filter((function(t){return t>0}))},e.prototype._doCalculateRange=function(e){var i=t.prototype._doCalculateRange.call(this,this._values);return i.min=this._log(i.min),i.max=this._log(i.max),i},e.prototype._createTick=function(e,i){return t.prototype._createTick.call(this,e,(0,zH.fixnum)(this._pow(i)))},e.prototype._calcUnitLen=function(e,i,r,n){if(e.length<2)return t.prototype._calcUnitLen.call(this,e,i,r,n);for(var o=this._log,s=o(e[1])-o(e[0]),a=2;a<e.length;a++)s=(0,FH.minv)(s,o(e[a])-o(e[a-1]));var l=n-r,u=s/l;return{len:(0,FH.pickNum)(i*=u,1),min:l*u}},e.type=$H.LogAxisType,e.defaults=(0,HH.extend)(WH.ContinuousAxis.defaults,{logBase:10,roundThrrehold:500}),e}(WH.ContinuousAxis);IH.LogAxis=XH;var YH={},qH=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(YH,"__esModule",{value:!0}),YH.HtmlButtonCollection=YH.HtmlButton=void 0;var ZH=iM,KH=LM,JH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qH(e,t),e.prototype.isChartScope=function(){return"chart"===this.options.scope},e.prototype.getHoverEffect=function(){var t=this.options;return"auto"===t.hoverEffect?t.hoverImageUrl?"image":"background":t.hoverEffect},e.prototype.click=function(){if(this._op.onClick){var t={chart:this.chart.wrapper,button:this};this._op.onClick(t)}},e.defaults=(0,KH.extend)(KH.ChartItem.defaults,{scope:"chart",align:"center",verticalAlign:"middle",imageWidth:24,imageHeight:24,hoverEffect:"auto",hintMode:"custom"}),e}(KH.ChartItem);YH.HtmlButton=JH;var QH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qH(e,t),e.prototype.load=function(t){var e=this,i=this.chart,r=this._items=[];(0,ZH.isArray)(t)?t.forEach((function(t,n){r.push(e.$_loadItem(i,t))})):t&&r.push(this.$_loadItem(i,t)),this.chart._op.button=this._items.map((function(t){return t.options}))},e.prototype.$_loadItem=function(t,e){var i=new JH(t);return i.init(),i._load(e),i},e}(KH.ChartItemCollection);YH.HtmlButtonCollection=QH,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ChartObject=e.SectionDir=e.ChartOptions=e.PointHovering=e.Credits=e.CTRL=void 0;var r=iM,n=_M,o=dM,s=TM,a=FR,l=rB,u=nB,c=LM,p=xB,h=oB,f=CB,d=DB,_=BD,y=qD,g=iI,v=uI,m=yI,b=SI,x=cD,w=jI,S=eG,P=_G,A=SG,O=jG,C=zF,V=KF,E=sz,k=fz,T=Sz,L=Lz,N=Fz,M=Kz,j=s$,R=v$,B=RG,D=V$,I=G$,G=q$,F=rH,z=mH,$=VH,H=IH,W=YH;e.CTRL="$ctrl";var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isFloating=function(){return this._op.floating||"middle"===this._op.verticalAlign&&"center"===this._op.align},e.prototype._doSetSimple=function(e){return(0,r.isString)(e)?(this._op.text=e,!0):t.prototype._doSetSimple.call(this,e)},e.defaults=(0,c.extend)(c.ChartItem.defaults,{text:"RealChart v1.4",url:"https://realchart.co.kr",floating:!1,align:"right",verticalAlign:"bottom",offsetX:2,offsetY:1,gap:4}),e}(c.ChartItem);e.Credits=U;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getHintDistance=function(t){return isNaN(this._op.hintDistance)?this.chart._tooltip.visible&&this.chart._tooltip.isFollowPointer(t)?Number.MAX_SAFE_INTEGER:30:this._op.hintDistance},e.prototype.getScope=function(t,e){return"auto"!==(0,r.pickProp)(this._op.scope,"auto")?this._op.scope:this.chart.chartOptions.options.seriesHovering?"point":t._xAxisObj.crosshair.visible&&t.needAxes()?"axis":t.isMarker()&&t._group?"group":"point"},e.defaults=(0,c.extend)(c.ChartItem.defaults,{scope:"auto"}),e}(c.ChartItem);e.PointHovering=X;var Y,q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._doInit=function(t){t.pointHovering=(this._pointHovering=new X(this.chart)).init()},Object.defineProperty(e.prototype,"pointHovering",{get:function(){return this._pointHovering},enumerable:!1,configurable:!0}),e.prototype.getXStart=function(t){var e;return null!==(e=this._op.xStart)&&void 0!==e?e:t.getXStart()},e.defaults=(0,c.extend)(c.ChartItem.defaults,{paletteMode:"normal",animatable:!0,xStep:1,axisGap:8,seriesHovering:!1,timeOffset:(new Date).getTimezoneOffset(),startOfWeek:0,resizeDelay:50}),e}(c.ChartItem);e.ChartOptions=q,function(t){t.LEFT="left",t.TOP="top",t.BOTTOM="bottom",t.RIGHT="right"}(Y||(e.SectionDir=Y={}));var Z=function(t){function n(e,i){var c=t.call(this)||this;return c._data=new o.ChartDataCollection,c._palColors={},c._params={},c._seriesIndex=0,c._dataDirty=!1,c._loadAnimatable=!0,c._wrapper=i,c._assets=new a.AssetCollection,(c._chartOptions=new q(c)).init(),(c._title=new y.Title(c)).init(),(c._subtitle=new y.Subtitle(c)).init(),(c._legend=new f.Legend(c)).init(),(c._credits=new U(c)).init(),(c._tooltip=new g.Tooltip(c)).init(),c._buttons=new W.HtmlButtonCollection(c),n.split_class&&(c._split=new n.split_class(c)).init(),(c._body=new u.Body(c)).init(),(c._navigator=new _.SeriesNavigator(c)).init(),(c._exporter=new p.Exporter(c)).init(),c._series=new d.PlottingItemCollection(c),c._xAxes=new l.AxisCollection(c,!0),c._yAxes=new l.AxisCollection(c,!1),c._gauges=new h.GaugeCollection(c),c._annotations=new s.AnnotationCollection(c),(0,r.isObject)(e)?c._load(e):c._initOptions(),c}return i(n,t),n.registerSplitClass=function(t){this.split_class=t},n.prototype._initOptions=function(){return this._op=Object.assign({},n.defaults)},Object.defineProperty(n.prototype,"win",{get:function(){var t;return(null===(t=this._wrapper)||void 0===t?void 0:t[e.CTRL]).win()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this._op},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"chartOptions",{get:function(){return this._chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"credits",{get:function(){return this._credits},enumerable:!1,configurable:!0}),n.prototype._createChart=function(t){return new n(t)},n.prototype.animatable=function(){return!1!==this._chartOptions.options.animatable},n.prototype.loadAnimatable=function(){return this._loadAnimatable},n.prototype.getAxisOf=function(t,e){return this._splitted?this._split.getAxisOf(t,e):e?this.xAxis:this.yAxis},n.prototype.isValidAxis=function(t){return t&&(!this._splitted||this._split.isValidAxis(t))},n.prototype.getTooltipContext=function(t,e,i){var r=function(){function t(t){this.axis=t,this.series=t.getVisibleSeries().filter((function(t){return t.needAxes()}))}return t.prototype.isGroupTooltip=function(){return this.series.length>1},t.prototype.getTooltipText=function(t,e,i){return d.SeriesGroup.collectTooltipText(this.axis.options,this.series,t,e,i)},t.prototype.getTooltipParam=function(t,e,i){return d.SeriesGroup.inflateTooltipParam(this.series,t,e,i)},t}();switch("point"!==t&&"axis"!==t&&"group"!==t&&(t=this._chartOptions.pointHovering.getScope(e,i)),t){case"axis":return new r(e._xAxisObj);case"group":return e._group?e._group:e;default:return e}},Object.defineProperty(n.prototype,"chart",{get:function(){return this},enumerable:!1,configurable:!0}),n.prototype.anchorByName=function(t){var e=this.gaugeByName(t);return e instanceof h.GaugeBase?e:this._annotations.get(t)},Object.defineProperty(n.prototype,"wrapper",{get:function(){return this._wrapper},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._op.type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gaugeType",{get:function(){return this._op.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"polar",{get:function(){return this._op.polar},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"inverted",{get:function(){return this._op.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"timeOffset",{get:function(){return this._op.chart.timeOffset},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startOfWeek",{get:function(){return this._op.chart.startOfWeek},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"seriesCount",{get:function(){return this._series.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"first",{get:function(){return this._series.first},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"firstSeries",{get:function(){return this._series.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"firstGauge",{get:function(){var t;return null===(t=this._gauges)||void 0===t?void 0:t.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"xAxis",{get:function(){return this._xAxes.first},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yAxis",{get:function(){return this._yAxes.first},enumerable:!1,configurable:!0}),n.prototype.canOverflowRender=function(){return!1},n.prototype._needAxes=function(){return this._series.needAxes()},n.prototype._getSeries=function(){return this._series},n.prototype._getGauges=function(){return this._gauges},n.prototype._getAnnotations=function(){return this._annotations},n.prototype._getXAxes=function(){return this._xAxes},n.prototype._getYAxes=function(){return this._yAxes},n.prototype.getAnnotations=function(){return this._splitted?this._annotations.getVisibles().filter((function(t){return isNaN(t.row)||isNaN(t.col)})):this._annotations.getVisibles()},n.prototype._getButtons=function(){return this._buttons},n.prototype.isGauge=function(){return this._gaugeOnly},n.prototype.isPolar=function(){return this._polar&&this._series.canPolar()},n.prototype.isWidget=function(){return this._series.isWidget()},n.prototype.isInverted=function(){return this._inverted},n.prototype.isSplitted=function(){return this._splitted},n.prototype.isEmpty=function(t){return this._series.isEmpty(t)&&(null==this._gauges||this._gauges.isEmpty(t))},n.prototype._getXAxesAt=function(t,e){return this._splitted?this._xAxes._internalItems().filter((function(i){return i.col===t&&(!e||i.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},n.prototype._getYAxesAt=function(t,e){return this._splitted?this._yAxes._internalItems().filter((function(i){return i.row===t&&(!e||i.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!e||t.checkVisible()}))},n.prototype._getXAxesAtPane=function(t,e,i){return this._splitted?this._xAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._xAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},n.prototype._getYAxesAtPane=function(t,e,i){return this._splitted?this._yAxes._internalItems().filter((function(r){return r.col===t&&r.row===e&&(!i||r.checkVisible())})):this._yAxes._internalItems().filter((function(t){return!i||t.checkVisible()}))},n.prototype.seriesByName=function(t){return this._series.getSeries(t)},n.prototype.seriesByType=function(t){return this._series.seriesByType(t)},n.prototype.seriesAt=function(t){return this._series.get(t)},n.prototype.seriesByPoint=function(t){return this._series.seriesByPoint(t)},n.prototype.gaugeByName=function(t){var e;return null===(e=this._gauges)||void 0===e?void 0:e.getGauge(t)},n.prototype.gaugeAt=function(t){var e;return null===(e=this._gauges)||void 0===e?void 0:e.get(t)},n.prototype.annotationByName=function(t){return this._annotations.getAnnotation(t)||(this._splitted?this._split.getBodyAnnotation(t):this._body.getAnnotation(t))},n.prototype.axisByName=function(t){return this._xAxes.get(t)||this._yAxes.get(t)},n.prototype.containsAxis=function(t){return this._xAxes.contains(t)||this._yAxes.contains(t)},n.prototype.getXAxis=function(t){return this._xAxes.get(t)},n.prototype.getYAxis=function(t){return this._yAxes.get(t)},n.prototype.getAxes=function(t,e){var i,r=this._xAxes.items(),n=this._yAxes.items();if(this.isInverted())switch(t){case Y.LEFT:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case Y.RIGHT:i=r.filter((function(t){return t._isOpposite}));break;case Y.BOTTOM:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case Y.TOP:i=n.filter((function(t){return t._isOpposite}))}else switch(t){case Y.LEFT:i=n.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case Y.RIGHT:i=n.filter((function(t){return t._isOpposite}));break;case Y.BOTTOM:i=r.filter((function(t){return!t._isOpposite&&!t._isBetween}));break;case Y.TOP:i=r.filter((function(t){return t._isOpposite}))}return i?e?i.filter((function(t){return t.checkVisible()})):i:[]},n.prototype._setProperties=function(t,e){var i=this._op;for(var r in n.defaults)t.hasOwnProperty(r)&&(i[r]=t[r]);i.type=i.type||"bar",i.gaugeType=i.gaugeType||"circle",this._polar=!0===this.polar},n.prototype.loadBase=function(t,e,i){var n,o=this._bases[e];return(0,r.isObject)(o.base)&&(0,c.merge)(n={},o.base),(0,r.isObject)(o[i])&&(n||(n={}),(0,c.merge)(n,o[i])),n?(0,c.merge)(n,t):t},n.prototype._load=function(t){var e,i,n=this._initOptions();return this.$_loadTemplates(t.templates),this._setProperties(t),n.asset=this._assets.load((0,r.pickProp)(t.asset,t.assets)),n.options=n.chart=this._chartOptions._load((0,r.pickProp)(t.chart,t.options)),(0,r.isObject)(t.chart)?this._credits._load(t.chart.credits):(0,r.isObject)(t.options)&&this._credits._load(t.options.credits),n.title=this._title._load(t.title),n.subtitle=this._subtitle._load(t.subtitle),n.legend=this._legend._load(t.legend),n.credits=this._credits._load(t.credits),this._buttons.load((0,r.pickProp)(t.button,t.buttons)),n.tooltip=this._tooltip._load(t.tooltip),this._seriesIndex=0,this._series.load(t.series),null===(e=this._gauges)||void 0===e||e.load((0,r.pickProp)(t.gauge,t.gauges)),this._gaugeOnly=0===this._series.count&&null!=this._gauges&&!this._gauges.isEmpty(!1),this._gaugeOnly||(this._xAxes.load((0,r.pickProp3)(t.xAxis,t.xAxes,{})),this._yAxes.load((0,r.pickProp3)(t.yAxis,t.yAxes,{}))),n.body=this._body._load(t.body||t.plot),null===(i=this._split)||void 0===i||i._load(t.split),this._annotations.load((0,r.pickProp)(t.annotation,t.annotations),!1),n.seriesNavigator=this._navigator._load(t.seriesNavigator),n.exporting=this._exporter._load(t.exporting),this},n.prototype.update=function(t,e){if((0,r.isObject)(t)){for(var i in this._setProperties(t,!1),t){var n=this[i];(n instanceof c.ChartItem||n instanceof c.ChartItemCollection||n instanceof a.AssetCollection)&&n.updateOptions(t[i],!1)}e&&this._modelChanged(null)}},n.prototype.export=function(t){this._fireEvent("onExportRequest",t)},n.prototype._connectSeries=function(t,e){return e?this._xAxes.connect(t):this._yAxes.connect(t)},n.prototype._dataChanged=function(){this._dataDirty=!0},n.prototype._isDataChanged=function(){return this._dataDirty},n.prototype._prepareRender=function(){var t,e=this,i=this._xAxes,r=this._yAxes,n=this._split;return[i,r].forEach((function(t){t.count<1&&!e._gaugeOnly&&t.load({})})),this._inverted=!this._polar&&this.inverted,this._splitted=n&&n.visible,this._assets.prepareRender(),i.disconnect(),r.disconnect(),this._series.connect(this),this._series.prepareRender(),i.prepare(),r.prepare(),i.collectValues(),r.collectValues(),i.collectReferentValues(),r.collectReferentValues(),r.collectRanges(),i.collectRanges(),i.prepareRender(),r.prepareRender(),this._splitted&&this._split.prepareRender(i,r),this._series.prepareAfter(),this._legend._prepareRender(),null===(t=this._gauges)||void 0===t||t.prepareRender(),this._body._prepareRender(),this._annotations.prepareRender(),this._navigator.visible&&this._navigator._prepareRender(),this},n.prototype.afterRender=function(){this._dataDirty=!1,this._xAxes.afterRender(),this._yAxes.afterRender()},n.prototype.layoutAxes=function(t,e,i,r){this._xAxes._buildTicks(i?e:t,r),this._yAxes._buildTicks(i?t:e,r),this.$_calcAxesPoints(t,e,i,r)},n.prototype.$_calcAxesPoints=function(t,e,i,r){var n=i?e:t;this._xAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)})),n=i?t:e,this._yAxes.forEach((function(t){(r<2||r>100||t._isHorz||!t.continuous())&&t._calcPoints(n,r)}))},n.prototype.axesLayouted=function(t,e,i){this.$_calcAxesPoints(t,e,i,101)},n.prototype.getParam=function(t,e){return this._params[e]},n.prototype.setParam=function(t,e,i){return i&&e!==this._params[t]?(this._params[t]=e,this._modelChanged(null)):this._params[t]=e,this},n.prototype.addSeries=function(t,e){var i=this._series.add(t,e);return i&&(this._dataChanged(),this._modelChanged(i)),i},n.prototype.removeSeries=function(t,e){var i=this._series.remove(t);if(i)return this._dataChanged(),this._modelChanged(null),i},n.prototype.render=function(){this._fireEvent("onRefreshRequest")},n.prototype.getPaletteColors=function(t){var e=this._palColors[t];if(!e){var i=document.querySelector(".rct-root");if(i){var r="data-palette",n=i.getAttribute(r);i.setAttribute(r,t);var o=getComputedStyle(i);this._palColors[t]=e=[];for(var s=1;s<=d.PALETTE_LEN;s++)e.push(o.getPropertyValue("--color-".concat(s)).trim());i.setAttribute(r,n)}}return e},n.prototype.$_loadTemplates=function(t){var e=this,i=this._bases={xAxis:{},yAxis:{},series:{},gauge:{},annotation:{},button:{}};if((0,r.isObject)(t)){var n=this._templates={};for(var o in t){var s=t[o];(0,r.isObject)(s)&&(n[o]=(0,r.assignObj)({},s))}["@xAxis","@yAxis","@series","@gauge","@annotation","@button"].forEach((function(e){t.hasOwnProperty(e)&&(0,r.isObject)(t[e])&&(i[e.substring(1)]=t[e])})),this.assignTemplates=function(t){var i=t.template;if((0,r.isString)(i)){var n=e._templates[i];if(n)return(0,c.merge)((0,c.merge)({},n),t)}else(0,r.isArray)(i)&&i.forEach((function(i){var r=e._templates[i];return r?(0,c.merge)((0,c.merge)({},r),t):r}));return t}}else this.assignTemplates=void 0},n.prototype._getGroupType=function(t){return(0,r.isString)(t)&&d.series_group_types[t.toLowerCase()]},n.prototype._getSeriesType=function(t){return(0,r.isString)(t)&&d.series_types[t.toLowerCase()]},n.prototype._getAxisType=function(t){return(0,r.isString)(t)&&l.axis_types[t.toLowerCase()]},n.prototype._getGaugeType=function(t){return(0,r.isString)(t)&&h.gauge_types[t.toLowerCase()]},n.prototype._getGaugeGroupType=function(t){return(0,r.isString)(t)&&h.gauge_group_types[t.toLowerCase()]},n.prototype._getAnnotationType=function(t){return(0,r.isString)(t)&&s.annotation_types[t.toLowerCase()]},n.prototype.getAxesGap=function(){return(0,r.pickNum)(this._chartOptions.options.axisGap,0)},n.prototype._modelChanged=function(t,e){this._fireEvent("onModelChanged",t,e)},n.prototype._visibleChanged=function(t){this._fireEvent("onVisibleChanged",t)},n.prototype._pointVisibleChanged=function(t,e){this._fireEvent("onPointVisibleChanged",t,e)},n.defaults={type:"bar",gaugeType:"circle",polar:!1,inverted:!1},n}(n.EventProvider);e.ChartObject=Z,l.Axis.register(x.CategoryAxis,w.LinearAxis,H.LogAxis,S.TimeAxis),d.Series.register(B.AreaSeries,B.AreaRangeSeries,P.BarRangeSeries,A.BarSeries,O.BellCurveSeries,C.BoxPlotSeries,V.BubbleSeries,k.CandlestickSeries,T.CircleBarSeries,L.DumbbellSeries,N.EqualizerSeries,M.ErrorBarSeries,j.FunnelSeries,R.HistogramSeries,B.LineSeries,B.SplineSeries,D.LollipopSeries,I.OhlcSeries,G.ParetoSeries,F.PieSeries,z.ScatterSeries,$.WaterfallSeries),d.SeriesGroup.register(B.AreaSeriesGroup,A.BarSeriesGroup,E.BumpSeriesGroup,T.CircleBarSeriesGroup,B.LineSeriesGroup,F.PieSeriesGroup),d.SeriesGroup.registerSeries(B.AreaSeriesGroup,A.BarSeriesGroup,T.CircleBarSeriesGroup,B.LineSeriesGroup,F.PieSeriesGroup),s.Annotation.register(v.ImageAnnotation,m.ShapeAnnotation,b.TextAnnotation)}(kM),Object.defineProperty(eM,"__esModule",{value:!0}),eM.ChartData=eM.Chart=void 0;var tW=iM,eW=rM,iW=dM,rW=kM,nW=LM,oW=function(){function t(t,e){this._modelCallback=e,this._obj=new rW.ChartObject(t,this),this._loaded=(0,tW.isObject)(t),null==e||e(this._obj,null)}return t.prototype.destroy=function(){var t;this.$_destroyed||this.$_destroying||(this.$_destroying=!0,this[rW.CTRL]=null===(t=this[rW.CTRL])||void 0===t?void 0:t.destroy(),this._obj=null,this.$_destroyed=!0)},Object.defineProperty(t.prototype,"options",{get:function(){return this._obj.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this._obj._data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._obj.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gaugeType",{get:function(){return this._obj.gaugeType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inverted",{get:function(){return this._obj.inverted},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polar",{get:function(){return this._obj.polar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"assets",{get:function(){return this._obj._assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chartOptions",{get:function(){return this._obj.chartOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._obj._title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subtitle",{get:function(){return this._obj._subtitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._obj.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"series",{get:function(){return this._obj.firstSeries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gauge",{get:function(){return this._obj.firstGauge},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"legend",{get:function(){return this._obj._legend},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credits",{get:function(){return this._obj._credits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._obj._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"xAxis",{get:function(){return this._obj.xAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yAxis",{get:function(){return this._obj.yAxis},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"body",{get:function(){return this._obj._body},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"split",{get:function(){return this._obj._split},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"seriesNavigator",{get:function(){return this._obj._navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exporter",{get:function(){return this._obj._exporter},enumerable:!1,configurable:!0}),t.prototype.getXAxis=function(t){return this._obj.getXAxis(t)},t.prototype.getYAxis=function(t){return this._obj.getYAxis(t)},t.prototype.getSeries=function(t){return(0,tW.isString)(t)?this._obj.seriesByName(t):this._obj.seriesAt(t)},t.prototype.seriesByType=function(t){return this._obj.seriesByType(t)},t.prototype.getGauge=function(t){return this._obj.gaugeAt(t)},t.prototype.getAnnotation=function(t){return this._obj.annotationByName(t)},t.prototype.load=function(t,e,i){var r;if(void 0===e&&(e=!1),(0,tW.isObject)(t)){var n="load chart";eW.Utils.LOGGING&&console.time(n);var o=this._obj,s=o;this._loaded?(o.destroy(),s=this._obj=new rW.ChartObject(null,this)):(this._loaded=!0,o=null),s._load(t),s._loadAnimatable=e,this._loadCallback=i,eW.Utils.log("chart-items:",nW.n_chart_item),eW.Utils.LOGGING&&console.timeEnd(n),null===(r=this._modelCallback)||void 0===r||r.call(this,s,o)}return this},t.prototype.updateOptions=function(t,e){void 0===e&&(e=!0),this._obj.update(t,e)},t.prototype.export=function(t){this._obj.export(t)},t.prototype.render=function(){this._obj.render()},t.prototype.setParam=function(t,e,i){this._obj.setParam(t,e,i)},t.prototype.addSeries=function(t,e){return void 0===e&&(e=!0),this._obj.addSeries(t,e)},t.prototype.removeSeries=function(t,e){void 0===e&&(e=!0),this._obj.removeSeries(t,e)},t.prototype.draw=function(){this[rW.CTRL].refresh()},t}();eM.Chart=oW;var sW=function(){function t(t,e){this._obj=new iW.DataObject(t||{},e)}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this._obj.rowCount},enumerable:!1,configurable:!0}),t.prototype.getValue=function(t,e){return this._obj.getValue(t,e)},t.prototype.setValue=function(t,e,i){this._obj.setValue(t,e,i)},t.prototype.getValues=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=-1),this._obj.getValues(t,e,i)},t.prototype.getRow=function(t){return this._obj.getRow(t)},t.prototype.addRow=function(t,e){void 0===e&&(e=-1),this._obj.addRow(t,e)},t.prototype.deleteRow=function(t){void 0===t&&(t=-1),this._obj.deleteRow(t)},t}();eM.ChartData=sW;var aW={},lW={},uW={},cW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(uW,"__esModule",{value:!0}),uW.ElementPool=void 0;var hW=function(t){function e(e,i,r){var n=t.call(this)||this;return n._pool=[],n._views=[],n._owner=e,n._creator=i,n._styleName=r,n}return cW(e,t),e.prototype._doDestroy=function(){var e;null===(e=this._orphans)||void 0===e||e.clear(),this.freeAll(),this._owner=null,this._creator=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._views.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._views[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._views[this._views.length-1]},enumerable:!1,configurable:!0}),e.prototype.get=function(t){return this._views[t]},e.prototype.getAll=function(){return this._views.slice()},e.prototype.pull=function(t){var e=this._views[t];return e||(e=this._pool.pop()||new this._creator(this._owner.doc,this._styleName),this._owner.add(e),this._views.push(e)),e},e.prototype._internalItems=function(){return this._views},e.prototype.elementOf=function(t){var e,i;try{for(var r=pW(this._views),n=r.next();!n.done;n=r.next()){var o=n.value;if(o.contains(t))return o}}catch(t){e={error:t}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.find=function(t){return this._views.find(t)},e.prototype.$_create=function(t,e,i){var r=this._pool.pop();return r||(r=new this._creator(t,this._styleName)),r},e.prototype.prepare=function(t,e,i){for(var r=this._owner.doc,n=this._owner,o=this._pool,s=this._views;s.length>t;)o.push(s.pop().remove());for(;s.length<t;){var a=this.$_create(r);s.push(a),null==i||i(a,s.length-1,t),n.add(a)}return e&&this.forEach(e),this},e.prototype.borrow=function(){var t=this._pool.pop()||new this._creator(this._owner.doc,this._styleName);return this._owner.add(t),t},e.prototype.free=function(t,e){if(void 0===e&&(e=0),t){e>0?t.removeLater(e):t.remove(),this._pool.push(t);var i=this._views.indexOf(t);i>=0&&this._views.splice(i,1)}},e.prototype.freeAll=function(t,e){void 0===e&&(e=0);for(var i=(t=t||this._views).length-1;i>=0;i--)this.free(t[i],e)},e.prototype.freeHiddens=function(){for(var t=this._views,e=t.length-1;e>=0;e--)!t[e].visible&&this.free(t[e],0)},e.prototype.freeFrom=function(t){for(var e=this._views,i=e.length-1;i>=t;i--)this.free(e[i],0)},e.prototype.forEach=function(t){for(var e=this._views,i=0,r=e.length;i<r;i++)t(e[i],i,r)},e.prototype.visit=function(t){for(var e=this._views.length,i=0;i<e&&!1!==t(this._views[i],i,e);i++);return i===e},e.prototype.sort=function(t){var e=this,i=this._views;return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),this},e.prototype.sortDom=function(t){var e=this,i=this._views.slice(0);return i.sort(t),i.forEach((function(t){return e._owner.appendDom(t.dom)})),this},e.prototype.map=function(t){return this._views.map(t)},e.prototype.front=function(t){t.front(this._views)},e.prototype.back=function(t){t.back(this._views)},e.prototype.getOrphans=function(){return this._orphans?Array.from(this._orphans.values()):null},e.prototype.addOrphan=function(t,e){this._prepareOrphans().set(t,e),this._views.splice(this._views.indexOf(e),1)},e.prototype.freeOrphan=function(t){var e,i=null===(e=this._orphans)||void 0===e?void 0:e.get(t);i&&(this.free(i),this._orphans.delete(t))},e.prototype.clearOrphans=function(){var t,e,i,r;try{for(var n=pW((null===(i=this._orphans)||void 0===i?void 0:i.values())||[]),o=n.next();!o.done;o=n.next()){var s=o.value;this.free(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}null===(r=this._orphans)||void 0===r||r.clear()},e.prototype._prepareOrphans=function(){return this._orphans||(this._orphans=new Map),this._orphans},e}(_M.RcObject);uW.ElementPool=hW;var fW={},dW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},_W=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},yW=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(fW,"__esModule",{value:!0}),fW.inflateRect=fW.intersectsRect=fW.isColliding=fW.createRect=fW.RECT_Z=void 0,fW.rectToSize=function(t){return{width:t.width,height:t.height}},fW.isEmptyRect=function(t){return t.width<=0||t.height<=0},fW.RECT_Z=Object.freeze({x:0,y:0,width:0,height:0});fW.createRect=function(t,e,i,r){return{x:t,y:e,width:i,height:r}};var gW=function(t){var e=t.x+t.width/2,i=t.y+t.height/2,r=t.rotation*Math.PI/180,n=t.width/2,o=t.height/2;return[[-n,-o],[n,-o],[n,o],[-n,o]].map((function(t){var n=dW(t,2),o=n[0],s=n[1];return[e+(o*Math.cos(r)-s*Math.sin(r)),i+(o*Math.sin(r)+s*Math.cos(r))]}))},vW=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i],n=t[(i+1)%t.length],o=[n[0]-r[0],n[1]-r[1]],s=[-o[1],o[0]],a=Math.sqrt(s[0]*s[0]+s[1]*s[1]);e.push([s[0]/a,s[1]/a])}return e},mW=function(t,e){var i=t.map((function(t){var i=dW(t,2),r=i[0],n=i[1];return r*e[0]+n*e[1]}));return[Math.min.apply(Math,_W([],dW(i),!1)),Math.max.apply(Math,_W([],dW(i),!1))]},bW=function(t,e){return t[1]>=e[0]&&e[1]>=t[0]};fW.isColliding=function(t,e){var i,r,n=gW(t),o=gW(e),s=vW(n),a=vW(o);try{for(var l=yW(_W(_W([],dW(s),!1),dW(a),!1)),u=l.next();!u.done;u=l.next()){var c=u.value,p=mW(n,c),h=mW(o,c);if(!bW(p,h))return!1}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}return!0};fW.intersectsRect=function(t,e){return!(t.y>=e.y+e.height||e.y>=t.y+t.height||t.x>=e.x+t.width||e.x>=t.x+t.width)};fW.inflateRect=function(t,e,i,r,n){return void 0===e&&(e=0),i=void 0!==i?i:e,r=void 0!==r?r:e,n=void 0!==n?n:i,e&&(t.x=t.x-e),i&&(t.y=t.y-i),r&&(t.width=t.width+e+r),n&&(t.height=t.height+i+n),t};var xW={},wW={},SW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},PW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(wW,"__esModule",{value:!0}),wW.Sides=void 0;var AW=iM,OW=function(){function t(t,e,i,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=0),this.top=t,this.bottom=e,this.left=i,this.right=r}return t.create=function(e,i,r,n){return isNaN(r)?isNaN(i)?new t(e,e,e,e):new t(e,e,i,i):new t(e,i,r,n)},t.createFrom=function(t){var e,i=t.split(/\s*[\s,]+\s*/g);return(e=this.create).call.apply(e,PW([null],SW(i.map((function(t){return+t}))),!1))},t.prototype.clone=function(){return new t(this.top,this.bottom,this.left,this.right)},t.prototype.applyPadding=function(t){return this.left=(0,AW.pickNum)(t.paddingLeft,0),this.right=(0,AW.pickNum)(t.paddingRight,0),this.top=(0,AW.pickNum)(t.paddingTop,0),this.bottom=(0,AW.pickNum)(t.paddingBottom,0),this},t.prototype.applyMargin=function(t){return this.left=(0,AW.pickNum)(t.marginLeft,0),this.right=(0,AW.pickNum)(t.marginRight,0),this.top=(0,AW.pickNum)(t.marginTop,0),this.bottom=(0,AW.pickNum)(t.marginBottom,0),this},t.prototype.shrink=function(t){return{x:t.x+this.left,y:t.y+this.top,width:t.width-this.left-this.right,height:t.height-this.top-this.bottom}},t.Empty=Object.freeze(new t),t.Temp=new t,t}();wW.Sides=OW;var CW={},VW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(CW,"__esModule",{value:!0}),CW.GroupElement=void 0;var EW=nM,kW=function(t){function e(e,i){void 0===i&&(i=EW._undef);var r=t.call(this,e,i,"g")||this;return r._doInitChildren(e),r}return VW(e,t),e.prototype.setAttr=function(i,r){return e.IGNORE_ATTRS.hasOwnProperty(i)||t.prototype.setAttr.call(this,i,r),this},e.prototype._doInitChildren=function(t){},e.IGNORE_ATTRS={width:"",height:""},e}(fj.RcElement);CW.GroupElement=kW;var TW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),LW=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},NW=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(xW,"__esModule",{value:!0}),xW.ContentView=xW.SectionView=xW.BoundableElement=xW.ChartElement=void 0;var MW=fj,jW=wW,RW=nM,BW=CW,DW=IB,IW=function(t){function e(e,i){void 0===i&&(i=RW._undef);var r=t.call(this,e,i,"g")||this;return MW.RcElement.DEBUGGING&&(r.add(r._debugRect=new DW.RectElement(e,"rct-debug")),r._debugRect.setAttr("pointerEvents","none")),r}return TW(e,t),e.prototype.chart=function(){return this.model.chart},Object.defineProperty(e.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),e.prototype._prepareStyleOrClass=function(t){this.setStyleOrClass(t._style)},e.prototype.setModel=function(t){t!==this.model&&(this._model=t,this.options=t._op)},e.prototype.measure=function(t,e,i,r,n){this._prepareStyleOrClass(e),this.setModel(e);var o=this._doMeasure(t,this.model,i,r,n);return this.mw=o.width,this.mh=o.height,o},e.prototype.layout=function(t){return this._doLayout(t),MW.RcElement.DEBUGGING?(this._debugRect||this.insertFirst(this._debugRect=new DW.RectElement(this.doc,"rct-debug")),this.width>1&&this.height>1&&this._debugRect.setRect(this._getDebugRect())):this._debugRect&&(this._debugRect.remove(),this._debugRect=null),this},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype._getDebugRect=function(){return{x:0,y:0,width:this.width,height:this.height}},e.prototype._doMeasure=function(t,e,i,r,n){return{width:i,height:r}},e.prototype._doLayout=function(t){},e.prototype._invalidate=function(){var t;null===(t=this.control)||void 0===t||t.invalidateLayout()},e}(MW.RcElement);xW.ChartElement=IW;var GW=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n._margins=new jW.Sides,n._paddings=new jW.Sides,n.add(n._background=new DW.RectElement(e,r)),n}return TW(e,t),e.prototype._getDebugRect=function(){return this._margins.shrink(t.prototype._getDebugRect.call(this))},e.prototype.measure=function(t,e,i,r,n){this._prepareStyleOrClass(e),this.setModel(e),this._setBackgroundStyle(this._background);var o=getComputedStyle(this._background.dom),s=this._paddings;s.applyPadding(o);var a=this._doMeasure(t,e,i,r,n);if(a.width+=s.left+s.right,a.height+=s.top+s.bottom,this._marginable()){var l=this._margins;o=getComputedStyle(this.dom),l.applyMargin(o),this.mw=a.width+=l.left+l.right,this.mh=a.height+=l.top+l.bottom}return this.mw=a.width,this.mh=a.height,a},e.prototype.layout=function(e){if(t.prototype.layout.call(this,e),this._marginable()){var i=this._margins;this._background.setBounds(i.left+this._getBackOffset(),i.top,this.width-i.left-i.right,this.height-i.top-i.bottom)}else this._resetBackBounds()&&this._background.setBounds(0,0,this.width,this.height);return this},e.prototype._marginable=function(){return!0},e.prototype._resetBackBounds=function(){return!0},e.prototype._getBackOffset=function(){return 0},e.prototype._deflatePaddings=function(t){var e=this._paddings;t.width-=e.left+e.right,t.height-=e.top+e.bottom},e.prototype._inflaePaddings=function(t){var e=this._paddings;return t.width+=e.left+e.right,t.height+=e.top+e.bottom,t},e}(IW);xW.BoundableElement=GW;var FW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TW(e,t),e.prototype.measure=function(t,e,i,r,n){this._setInverted(e.isInverted());var o=this._doMeasure(t,e,i,r,n);return this.mw=o.width,this.mh=o.height,o},e.prototype.resizeByMeasured=function(){return this.resize(this.mw,this.mh),this},e.prototype.layout=function(t){return this._doLayout(t),this},e.prototype._setInverted=function(t){this._inverted=t},e}(BW.GroupElement);xW.SectionView=FW;var zW=function(t){function e(){var e=t.apply(this,NW([],LW(arguments),!1))||this;return e._inverted=!1,e._animatable=!0,e._loadAnimatable=!0,e}return TW(e,t),e.prototype._setChartOptions=function(t,e,i){this._inverted=t,this._animatable=e,this._loadAnimatable=i},e}(IW);xW.ContentView=zW;var $W={},HW={},WW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(HW,"__esModule",{value:!0}),HW.ImageElement=void 0;var UW=fW,XW=nM,YW=rM,qW=function(t){function e(e,i,r){var n=t.call(this,e,r,"image")||this;return n._bounds=UW.RECT_Z,n.onloadProxy=function(){var t=n.getBBox();n.resize(t.width,t.height)},i&&n.setAttr("preserveAspectRatio","xMidYMid slice"),n.dom.onload=function(){n.invalidate()},n.dom.onerror=function(){n.invalidate()},window.SVGGraphicsElement&&!YW.isIE||(n.setAttr("href",""),n._proxy=new Image,n._proxy.onload=function(){n.invalidate(),setTimeout((function(){n.onloadProxy()}),0)}),n}return WW(e,t),Object.defineProperty(e.prototype,"url",{get:function(){return this.getAttr("href")},set:function(t){t!==this.url&&(t?this.setAttr("href",t):this.unsetAttr("href"),this._proxy&&(this._proxy.src=t))},enumerable:!1,configurable:!0}),e.prototype.setImage=function(t,e,i){this.url=t,this.resize(e,i)},e.prototype.getBBox=function(){if(this._bounds=this.dom.getBBox(),this._proxy){var t=this._proxy,e=this._bounds.width,i=this._bounds.height;e>0&&!i?i=e/t.width*t.height:0==i||e||(e=i/t.height*t.width),this._bounds={x:this._bounds.x,y:this._bounds.y,width:e,height:i}}return this._bounds},e.prototype.resize=function(e,i,r){var n=this._proxy;return n&&((0,XW.isNull)(e)||(0,XW.isNull)(i))&&(e>0&&(0,XW.isNull)(i)?i=e/n.width*n.height:i>0&&(0,XW.isNull)(e)?e=i/n.height*n.width:(e=n.width,i=n.height)),t.prototype.resize.call(this,e,i,r)},e}(fj.RcElement);HW.ImageElement=qW;var ZW=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty($W,"__esModule",{value:!0}),$W.ChartTextElement=void 0;var KW=cj,JW=iM,QW=HW,tU=IB,eU=uj,iU=nM,rU=function(t){function e(e,i){void 0===i&&(i=iU._undef);var r=t.call(this,e)||this;return r.add(r._text=new eU.TextElement(e,i)),r._text.anchor=eU.TextAnchor.START,r}return ZW(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this._text.text},enumerable:!1,configurable:!0}),e.prototype.setText=function(t){return this._outline&&(this._outline.text=t),this._text.text=t,this},e.prototype.setModel=function(t,e,i,r){var n=e.options.effect;return this._model=e,this._text.internalClearStyleAndClass(),this._text.internalSetStyleOrClass(e._style),r&&this._text.internalSetStyleOrClass(r),"background"===n?(this._outline&&this._outline.remove(),this._back||(this._back=new tU.RectElement(t,"rct-label-background")),this.insertFirst(this._back),this._back.setStyleOrClass(e.options.backgroundStyle)):"outline"===n?(this._back&&this._back.remove(),this._outline||(this._outline=new eU.TextElement(t),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(e._style)):(this._back&&this._back.remove(),this._outline&&this._outline.remove()),i?(this._icon||this.add(this._icon=new QW.ImageElement(t,!1)),this._icon.setImage(i,+e.options.iconWidth,+e.options.iconHeight)):this._icon&&(this._icon.remove(),this._icon=null),this._box=void 0,this},e.prototype.setContrast=function(t){var e,i=null===(e=this._model)||void 0===e?void 0:e.options;if(t&&(null==i?void 0:i.autoContrast)&&this._text.setContrast(t,i.darkStyle||"rct-label-dark",i.lightStyle||"rct-label-light"),this._outline&&this._outline.parent){var r=KW.Color.getContrast(getComputedStyle(this._text.dom).fill);this._outline.internalSetStyles({fill:r,stroke:r,strokeWidth:this._model._outlineWidth})}return this},e.prototype.layout=function(t){var e=this._text,i=this._outline,r=this._icon,n=0,o=e.getBBox(),s=o.width,a=o.height,l=s,u=a,c=0,p=0,h=0,f=0;if(this._box=void 0,r){var d=r.getBBox();switch(n=(0,JW.pickNum)(this._model.options.iconGap,0),c=d.width,p=d.height,this._model.getIconPos()){case"left":case"right":l+=n+c,u=Math.max(p,a);break;default:u+=n+p,l=Math.max(c,s)}}if(this._back&&this._back.parent){var _=getComputedStyle(this._back.dom);h=parseFloat(_.paddingLeft)||0,f=parseFloat(_.paddingTop)||0,this._back.setBounds(0,0,l+h+(parseFloat(_.paddingRight)||0),u+f+(parseFloat(_.paddingBottom)||0),_.rx)}if(r)switch(this._model.getIconPos()){case"left":r.trans(h,(u-p)/2),h+=c+n,l-=c+n;break;case"right":r.trans(h+l-c,(u-p)/2),l-=c+n;break;case"top":r.trans((l-c)/2,f),f+=p+n;break;case"bottom":r.trans((l-c)/2,f+a+n)}switch(t){case"center":h+=l/2,e.anchor=eU.TextAnchor.MIDDLE;break;case"right":h+=l,e.anchor=eU.TextAnchor.END;break;default:e.anchor=eU.TextAnchor.START}return e.trans(h,f),i&&(i.anchor=e.anchor,i.setAttr("y",e.getAttr("y")),i.trans(e.tx,e.ty)),this},e.prototype.setOutline=function(t){this._back&&this._back.remove(),this._outline||(this._outline=new eU.TextElement(this.doc),this._outline.anchor=this._text.anchor),this.insertFirst(this._outline),this._outline.setStyleOrClass(t._style)},e.prototype.getBBox=function(){return this._box?this._box:this._box=t.prototype.getBBox.call(this)},e}(CW.GroupElement);$W.ChartTextElement=rU,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisView=e.axis_label_reg=e.AxisScrollView=e.AxisLabelView=e.AxisTitleView=void 0;var o=iM,s=rM,a=uW,l=Tj,u=fj,c=fW,p=FM,h=cD,f=nM,d=QG,_=IB,y=uj,g=xW,v=$W,m=jI,b=function(t){function e(e){var i=t.call(this,e,"rct-axis-title","rct-axis-title-background")||this;return i.add(i._textView=new y.TextElement(e)),i._richText=new p.SvgRichText,i}return i(e,t),e.prototype.rotatedWidth=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.model.getRotation()*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,r,n){this._angle=e.getRotation();var o=e.options,s=o.writingMode;s&&this._textView.setStyle("writingMode",s),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._richText._isVertical="vertical"===s,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(this._textView,i,r,null,null);var a=(0,c.rectToSize)(this._textView.getBBox());if(!e.axis._isHorz&&0!==this._angle){var l=a.width;a.width=a.height,a.height=l}return a},e.prototype._doLayout=function(t){var e=this._textView,i=e.getStyle("writing-mode"),r=i===f._WritingMode.VERTICAL_LR||i===f._WritingMode.VERTICAL_RL;t?this.rotation=0:this.setRotation(0,(r?this.width:this.height)/2,this._angle);var n=this._margins.top+this._paddings.top,o=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r||(o-=this.width/2);break;case"right":e.anchor=y.TextAnchor.END,r?n+=this.height:o+=this.width/2;break;default:e.anchor=y.TextAnchor.MIDDLE,r&&(n+=this.height/2)}e.trans(o,n)},e.prototype.resizeByMeasured=function(){return 0===this._angle?this.resize(this.mw,this.mh):this.resize(this.mh,this.mw),this},e.prototype.layout=function(e){return t.prototype.layout.call(this,e),this._debugRect&&this._debugRect.setBounds(-this.width/2,0,this.width,this.height),this},e}(g.BoundableElement);e.AxisTitleView=b;var x=function(t){function e(e){var i=t.call(this,e,"rct-axis-unit-label","rct-axis-unit-label-background")||this;return i.add(i._textView=new y.TextElement(e)),i._textView.anchor=y.TextAnchor.START,i._richText=new p.SvgRichText,i}return i(e,t),e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._getBackOffset=function(){return-this.width/2},e.prototype._doMeasure=function(t,e,i,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,c.rectToSize)(this._textView.getBBox())},e.prototype._doLayout=function(t){var e=this._textView,i=this._margins.top+this._paddings.top,r=0;switch(this.textAlign()){case"left":e.anchor=y.TextAnchor.START,r-=this.width/2;break;case"right":e.anchor=y.TextAnchor.END,r+=this.width/2}e.trans(r,i)},e}(g.BoundableElement),w=function(t){function e(e){var i=t.call(this,e,O.TICK_CLASS)||this;return i.add(i._lineView=new d.LineElement(e)),i}return i(e,t),e.prototype._doLayout=function(t){this.model.axis._isHorz?this._lineView.setVLine(0,0,this.height):this._lineView.setHLine(0,0,this.width)},e}(g.ChartElement),S=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.index=-1,e.col=0,e.row=0,e.tickWidth=0,e.hidden=!1,e}return i(e,t),e.prototype.setLabel=function(t,e,i,r,n,o){if(r){var s=t.getIcon(i);t.prepareRich(r),this.setModel(this.doc,t,s&&t.getUrl(s),e),t.buildSvg(this._text,this._outline,n,o,t,t._domain)}else t.prepareRich(""),this._text.text=""},e.prototype.applyBackgroundCallback=function(t,e){var i=t.options.backgroundStyleCallback;if("background"===t.options.effect&&i){var r=t.axis.getTickLabelArgs(e.index,e.value);this._back.setStyleOrClass(i(r))}},e.prototype.rotatedWidth=function(){var t=(this.rotation||0)*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.sin)(t)*e.height)+(0,o.absv)((0,o.cos)(t)*e.width)},e.prototype.rotatedHeight=function(){var t=this.rotation*f.DEG_RAD,e=this.getBBox();return(0,o.absv)((0,o.cos)(t)*e.height)+(0,o.absv)((0,o.sin)(t)*e.width)},e.prototype.resizeBackByWeight=function(t,e,i,r,n,o,s,a,l,u){void 0===u&&(u=0);var c=this._back;if(c&&!t._isHorz){var p=this.getBBox(),h=n/a,f=e?o-s+u:i?o:u-s;c.transX(f-this.tx),c.shiftY((h-p.height)/-2-l),e?c.resize(r-u-2*(o+s),h-1):c.resize(r-o-u+s,h-1)}},e}(v.ChartTextElement);e.AxisLabelView=S;var P=function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.add(i._back=new u.PathElement(e,"rct-crosshair-flag")),i.add(i._text=new y.TextElement(e,"rct-crosshair-flag-text")),i}return i(e,t),e.prototype.setText=function(t,e){if(e!==this._text.text){var i=t.options.flag;this._text.text=(i.prefix||"")+e+(i.suffix||"");var r=this._text.getBBox(),n=new l.PathBuilder,s=(0,o.maxv)(i.minWidth||0,r.width+8);n.rect(0,0,s,r.height+4),this._back.setPath(n.end()),this._text.trans(s/2,2)}},e}(u.RcElement),A=function(t){function e(i){var r=t.call(this,i,"rct-axis-scrollbar")||this;return r._len=0,r._page=0,r._pos=0,r.add(r._trackView=new _.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new _.RectElement(i,e.THUMB_CLASS)),r}return i(e,t),e.isThumb=function(t){return t.classList.contains(e.THUMB_CLASS)},e.prototype.setScroll=function(t,e){if(this._reversed=e,t){var i=t.max-t.min,r=t.end-t.start;this._len=(0,o.maxv)(0,i),this._page=(0,o.minv)(r,i),this._pos=(0,o.minv)(t.min+i-r,(0,o.maxv)(0,t.start))}else this._len=0},e.prototype.getZoomPos=function(t){var e=this.model.axis._zoom,i=(this._vertical?this.height:this.width)-(this._vertical?this._thumbView.height:this._thumbView.width);return this.model.axis.options.reversed,(t=(0,o.maxv)(0,(0,o.minv)(t,i)))*(e.max-e.min-(e.end-e.start))/i+e.min},e.prototype._doMeasure=function(t,e,i,r,n){return this.setStyleOrClass(e._style),(this._vertical=!e.axis._isHorz)?{width:e.getThickness()+e.getGap()+e.getGapFar(),height:r}:{width:i,height:e.getThickness()+e.getGap()+e.getGapFar()}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis._zoom,r=this._szThumb=(0,o.pickNum)(e.getMinThumbSize(),32),n=this._len,s=0===this._len,a=this._page,l=s?0:this._pos-i.min,u=e.getGap(),c=u+e.getGapFar(),p=this.width,h=this.height;if(this._vertical){p-=c,this._trackView.setBounds(u,0,p,h),h-=r;var f=(s||a===n?h:h*a/n)+r;this._reversed,this._thumbView.setBounds(u+1,s?0:this.height-h*l/n-f,p-2,f)}else{h-=u+e.getGapFar(),this._trackView.setBounds(0,u,p,h),p-=r;var d=(s||a===n?p:p*a/n)+r;this._reversed,this._thumbView.setBounds(s?0:p*l/n,u+1,d,h-2)}},e.CLASS_NAME="rct-axis-scrollbar",e.TRACK_CLASS="rct-axis-scrollbar-track",e.THUMB_CLASS="rct-axis-scrollbar-thumb",e}(g.ChartElement);e.AxisScrollView=A,e.axis_label_reg=/\${label}.*?/g;var O=function(t){function r(e){var i=t.call(this,e,r.AXIS_CLASS)||this;return i._simpleMode=!1,i._markViews=[],i.add(i._lineView=new d.LineElement(e,r.LINE_CLASS)),i.add(i._titleView=new b(e)),i.add(i._markContainer=new u.RcElement(e,"rct-axis-ticks")),i.add(i._labelContainer=new u.RcElement(e,"rct-axis-labels")),i.add(i._unitView=new x(e)),i._labelViews=new a.ElementPool(i._labelContainer,S,"rct-axis-label"),i}return i(r,t),r.prototype.$_checkScrollView=function(t,e,i,r,n){if(this.model._isX){if(e.visible&&!this.model._isBetween)return this._scrollView||this.add(this._scrollView=new A(t)),this._scrollView.setVis(!0),this._scrollView.measure(t,e,r,n,1)[i];this._scrollView&&this._scrollView.setVis(!1)}return 0},r.prototype.checkHeight=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsHorz(r,e,!0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).height)),a+=l,this._titleView.setVis(n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).height,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"height",e,i)},r.prototype.checkWidth=function(t,e,i){var r=this.model,n=r.title,s=r.unitLabel,a=(0,o.maxv)(0,r.tick._getLength())+(0,o.maxv)(0,r.tick._getGap()),l=0;if(this.$_prepareLabels(r,e)){var u=this.$_measureLabelsVert(r,i,!0,0);r.label._inside||(a+=u)}return this._unitView.setVis(s.visible)&&(l=Math.max(l,this._unitView.measure(t,s,e,i,1).width)),a+=l,(this._titleView.visible=n.visible)&&(a+=this._titleView.measure(t,n,e,i,1).width,a+=n.options.gap),a+=this.$_checkScrollView(t,r.scrollBar,"width",e,i)},r.prototype.prepareGuides=function(t,e,i,r,n){var o=this;[r,n].forEach((function(r,n){var s=o.model.guides.filter((function(t){return t.options.front==(1===n)&&t.canConstainedTo(e,i)}));r.setAll(t,s,!1)}))},r.prototype.showCrosshair=function(t,e){var i,r=this.model,n=this._crosshairView;n||this.add(n=this._crosshairView=new P(this.doc)),n.setVis(!0),n.setText(r.crosshair,e);var s=n.getBBox();r._isHorz?n.trans(t-s.width/2,r.tick._getLength()):(i="opposite"===r._runPos?(0,o.minv)(0,this.width-s.width):(0,o.maxv)(0,this.width-r.tick._getLength()-s.width),n.trans(i,t-s.height/2))},r.prototype.setMargins=function(t,e,i,r){},r.prototype.hideCrosshiar=function(){this._crosshairView&&this._crosshairView.setVis(!1)},r.prototype.scroll=function(t){},r.prototype.prepare=function(t){this._model=t,this._chartEmpty=t.chart.isEmpty(!0)},r.prototype.checkExtents=function(t){var e=this._prevModel,i=this.model;if((!e||e===i)&&t){var r=this._prevMin,n=this._prevMax,o=this._prevMin=i.axisMin(),s=this._prevMax=i.axisMax();if(!isNaN(n)&&s!==n||!isNaN(r)&&o!==r){if(i._isX&&i._zooming)return{axis:i,from:this._prevMin,to:s};i.chart.animatable()&&i.options.animatable&&i.checkExtents(r,n)}}this._prevModel=i},r.prototype.clean=function(){this._prevMax=this._prevMin=NaN,this._prevModel=null},r.prototype._doMeasure=function(t,e,i,n,o){var s,a=e.line,l=e.tick,u=e._isHorz,c=e._isBetween,p=this._titleView,h=this._unitView,f=0,_=0;return this._reversed=e.options.reversed,(this._lineView.visible=a.visible)?(this._lineView.setStyleOrClass(a._style),c&&(this._lineView2?this._lineView2.setVis(!0):this.insertChild(this._lineView2=new d.LineElement(t,r.LINE_CLASS),this._lineView),this._lineView.setStyleOrClass(a._style))):this._lineView2&&this._lineView2.setVis(!1),this._markLen=l._getLength(),this._tickGap=l._getGap(),e.label._inside||(f+=this._markLen,f+=this._tickGap,c&&(f*=2)),this.$_prepareTickMarks(t,e)&&this._markViews.forEach((function(r){return r.measure(t,e.tick,i,n,o)})),this.$_prepareLabels(e,u?i:n)&&(_=u?this.$_measureLabelsHorz(e,i):this.$_measureLabelsVert(e,n,!1,o),e.label._inside&&(_=0)),this._labelSize=_,h.setVis(e.unitLabel.visible)&&(_=u?Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).height):Math.max(_,this._unitView.measure(t,e.unitLabel,n,n,o).width)),f+=_,this._simpleMode?(p.setVis(!1),h.setVis(!1)):(p.visible&&(f+=u?p.mh:p.mw,f+=+e.title.options.gap||0),(null===(s=this._scrollView)||void 0===s?void 0:s.visible)&&(f+=u?this._scrollView.mh:this._scrollView.mw)),{width:u?i:f,height:u?f:n}},r.prototype._doLayout=function(){var t=this.model,e=t._isHorz,i=t._isOpposite,r=t._isBetween,n=t.label._inside,o=t._ticks,a=t._markPoints,l=this._labelViews,u=this._unitView,c=this._markLen,p=this._tickGap,h=this.width,f=this.height;this._lineView.visible&&(e?this._lineView.setHLine(i?f:0,0,h):this._lineView.setVLine(i?0:h,0,f),this._lineView2&&(e?this._lineView2.setHLine(f,0,h):this._lineView2.setVLine(0,0,f))),this._markContainer.visible&&(e?this._markViews.forEach((function(e,r){e.resize(1,c),e.layout().trans(t.prev(a[r]),i?n?f:f-c:n?-c:0)})):this._markViews.forEach((function(e,r){e.resize(c,1),e.layout().trans(i?-c:n?h:h-c,f-t.prev(a[r]))})));var d=c+p;if(this._labelContainer.visible&&l.count>0&&(l.count>o.length?l.prepare(o.length):l.count<o.length&&s.Utils.warn("labelViews.count < ticks.length",l.count,o.length),e?this.$_layoutLabelsHorz(l,o,n,r,i,h,f,d):this.$_layoutLabelsVert(l,o,n,r,i,h,f,d)),u.visible&&(e?this.$_layoutUnitHorz(u,l,i,h,f,d):this.$_layoutUnitVert(u,l,i,h,f,d)),!this._simpleMode){var _=t.title.options,y=this._titleView,g=this._scrollView,v=this._labelSize,m=0,b=0;if(y.visible){var x=+_.offset||0,w=+_.gap||0;if(y.resizeByMeasured().layout(e),e){if(b+=i?0:(n?0:d+v)+w,t.options.reversed)switch(_.align){case"start":m=h-y.width/2-x;break;case"end":m=y.width/2+x;break;default:m=h/2-x}else switch(_.align){case"start":m=y.width/2+x;break;case"end":m=h-y.width/2-x;break;default:m=h/2+x}y.trans(m,b),b+=y.height}else{var S=0===y._angle?y.width:y.height;if(m=i?n?w+S/2:d+v+w+S/2:n?S/2:h-d-v-w-S/2,this._reversed)if(0===y._angle)switch(_.align){case"start":b=0+x;break;case"end":b=f-y.height-x;break;default:b=(f-y.height)/2+x}else switch(_.align){case"start":b=y.width/2-y.height/2+x;break;case"end":b=f-y.width/2-y.height/2-x;break;default:b=(f-y.height)/2+x}else if(0===y._angle)switch(_.align){case"start":b=f-y.height-x;break;case"end":b=0+x;break;default:b=(f-y.height)/2-x}else switch(_.align){case"start":b=f-y.width/2-y.height/2-x;break;case"end":b=y.width/2-y.height/2+x;break;default:b=(f-y.height)/2-x}y.trans(m,b)}}else b+=i?0:d+v;(null==g?void 0:g.visible)&&(e?(g.trans(0,b).resize(this.width,g.mh),g.setScroll(t._zoom,this._reversed)):(g.trans(0,0).resize(g.mw,this.height),g.setScroll(t._zoom,this._reversed)),g.layout())}},r.prototype.$_prepareTickMarks=function(t,e){var i=this._markContainer;if(i.visible=e.tick.visible){for(var r=e._markPoints.length,n=this._markViews;n.length<r;){var o=new w(t);i.add(o),n.push(o)}for(;n.length>r;)n.pop().remove();return!0}},r.prototype._prepareLabel=function(t,i,r,n,o){if(o||t.value!==i.value){var s=r.getLabelText(i,n),a=i.label,l=r.getLabelStyle(i,n);if(t.value=i.value,null!=s)a&&s.match(e.axis_label_reg)?t.setLabel(r,l,i,s.replace(e.axis_label_reg,a),1e3,1e3):(r.prepareRich(s),r._paramTick=i,t.setModel(this.doc,r,null,l),r.buildSvg(t._text,t._outline,NaN,NaN,r,r._domain));else t.setLabel(r,l,i,a,1e3,1e3);t.applyBackgroundCallback(r,i),t.layout("center")}},r.prototype.$_prepareLabels=function(t,e){if(this._labelContainer.setVis(!this._chartEmpty&&t.labelsVisible())){var i=t._ticks.length;return this._labelContainer.setStyleOrClass(t.label._style),i}return 0},r.prototype.$_getRows=function(t){return 2},r.prototype.$_getStep=function(t){return 2},r.prototype.$_checkOverlappedHorz2=function(t,e,i,r,n,s,a,l){for(var u,c=t.label,p=(0,o.maxv)(0,(0,o.minv)(r-1,c.options.startStep||0)),h=t._ticks,d=h.length,_=(r=(0,o.maxv)(1,r))*(n=(0,o.minv)((0,o.maxv)(1,n),h.length)),y=s||0,g=(0,o.absv)(y)*f.DEG_RAD,v=g<35*f.DEG_RAD,m=!1,b=0,x=0;x<n;x++){for(var w=x*r+p;w<d;w+=_){for(var S=0,P=w;P<w+_&&P<d;P++)S+=t.getLabelLength(i,h[P].value);if(w+_<d){(u=e.pull(b++)).rotation=y,u.row=x,u.index=w,this._prepareLabel(u,h[w],c,d,l),u.setVis(!0);var A=S;if(0===y&&u.getBBox().width>=A){m=!0;break}if(v&&u.getBBox().width*(0,o.cos)(g)>=A){m=!0;break}if(0!==y&&u.getBBox().height>=A){m=!0;break}}}if(m)return!0;var O=w-_;0<=O&&O<d&&((u=e.pull(b++)).row=x,u.rotation=y,u.index=O,this._prepareLabel(u,h[O],c,d,l),u.setVis(!0))}!a&&e.freeFrom(b)},r.prototype.$_applyStep=function(t,e,i){var r=t.label,n=(0,o.maxv)(0,(0,o.minv)(i-1,r.options.startStep||0));e.forEach((function(t){return t.index=-1}));for(var s=n;s<e.length;s+=i)e[s].index=s;return e.forEach((function(t){return t.setVis(t.index>=0)})),e.filter((function(t){return t.visible}))},r.prototype.$_measureLabelsHorz=function(t,e,i){var r=this;void 0===i&&(i=!1);var n,s=t.options.reversed,a=t.label,l=a.options,u=+l.step|0,c=+l.rows|0,p=+l.rotation%360,h=this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i),d=this._labelViews._internalItems();if(this._labelRowPts=[0],h)if("none"===l.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,n,o){e.rotation=p,e.row=0,e.index=n,r._prepareLabel(e,t._ticks[n],a,o,i),e.setVis(!0)})),d=this.$_applyStep(t,d,u||1);else{switch(u=c=0,a.options.autoArrange){case"rows":c=this.$_getRows(d);break;case"step":u=this.$_getStep(d)}if(u>1)for(;this.$_checkOverlappedHorz2(t,this._labelViews,e,u,1,0,!1,i);)u++;else if(c>1){for(;t._ticks.length>c&&(d.forEach((function(t,e){t.row=e%c,t.index=e})),this.$_checkOverlappedHorz2(t,this._labelViews,e,1,c,0,!1,i));)c++;this._labelRowPts=[]}else if((isNaN(p)||Math.abs(Math.tan(p*f.DEG_RAD))<1)&&(p=-45),this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i))for(u=2;;){if(!this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,p,!1,i)){this.$_checkOverlappedHorz2(t,this._labelViews,e,u,c,0,!0,i)&&d.forEach((function(t,e){t.rotation=p}));break}u++}}else;if(d.length>0){if(c>1){for(var _=!isNaN(p)&&0!=p,y=this._labelRowPts,g=0;g<c;g++)y.push(0);d.forEach((function(t){y[t.row]=(0,o.maxv)(y[t.row],_?t.rotatedHeight():t.getBBox().height)})),y.unshift(0);for(g=2;g<y.length;g++)y[g]+=y[g-1];return y[y.length-1]}if(isNaN(p)||0==p){n=d[0].getBBox().height;for(g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].getBBox().height);if(d.length>1){var v=t._ticks,m=s?l.lastOverflow:l.firstOverflow;if("hidden"===m){var b=(S=d[0]).rotatedWidth(),x=v[S.index].pos-b/2,w=0;for(g=1;g<d.length;g++)w=(0,o.maxv)(w,d[g].getBBox().height);(x+b>d[1].tx||S.elementToSvg(0,0).x<0)&&S.getBBox().height>w?(n=w,S.hidden=!0):S.hidden=!1}if("hidden"===(m=s?l.firstOverflow:l.lastOverflow)){b=(S=d[d.length-1]).rotatedWidth();var S,P=d[d.length-2],A=v[S.index-1].pos+P.getBBox().width/2;for(x=v[S.index].pos-b/2,w=0,g=0;g<d.length-1;g++)w=(0,o.maxv)(w,d[g].getBBox().height);(x<=A||S.elementToSvg(S.getBBox().width,0).x>this.control.getBounds().width)&&S.getBBox().height>w?(n=w,S.hidden=!0):S.hidden=!1}}}else{n=d[0].rotatedHeight();for(var g=1;g<d.length;g++)n=(0,o.maxv)(n,d[g].rotatedHeight())}return n}return 0},r.prototype.$_checkOverlappedVert2=function(t,e,i,r,n){for(var s,a=t.label,l=t._ticks,u=l.length,c=(0,o.maxv)(1,r),p=a.options.startStep||0,h=0;p<u;p+=c){for(var f=0,d=p;d<p+c&&d<u;d++)f+=t.getLabelLength(i,l[d].value);if(p+c<u&&((s=e.pull(h++)).rotation=0,s.index=p,this._prepareLabel(s,l[p],a,u,n),s.setVis(!0),s._text.getBBox().height>=f))return!0}var _=p-c;0<=_&&_<u&&((s=e.pull(h++)).rotation=0,s.index=_,this._prepareLabel(s,l[_],a,u,n),s.setVis(!0)),e.freeFrom(h)},r.prototype.$_measureLabelsVert=function(t,e,i,r){var n=this;if(void 0===i&&(i=!1),void 0===r&&(r=0),r>1&&t instanceof m.ContinuousAxis)return this._prevWidth;var s=t.label,a=(0,o.maxv)(1,+s.options.step|0),l=this.$_checkOverlappedVert2(t,this._labelViews,e,a,i),u=this._labelViews._internalItems();if(l)if("none"===s.options.autoArrange)this._labelViews.prepare(t._ticks.length,(function(e,r,o){e.rotation=0,e.index=r,n._prepareLabel(e,t._ticks[r],s,o,i),e.setVis(!0)})),u=this.$_applyStep(t,u,a||1);else for(;this.$_checkOverlappedVert2(t,this._labelViews,e,++a,i););else;if(this._labelViews.freeHiddens(),(u=this._labelViews._internalItems()).length>0){var c=t._isOpposite?"left":t._isBetween?"center":"right",p=this._labelContainer.textAlign()||c,h=void 0;u[0].setContrast(null).layout(p),h=u[0].getBBox().width;for(var f=1;f<u.length;f++)u[f].setContrast(null).layout(p),h=(0,o.maxv)(h,u[f].getBBox().width);return this._prevWidth=h}return 0},r.prototype.$_layoutLabelsHorz=function(t,e,i,r,n,s,a,l){var u,c,p,h=this.model,d=h.label,_=this._reversed,y=this._labelContainer.textAlign()||"center",g=this._labelRowPts,v=t.get(0).rotation,m=v*f.DEG_RAD,b=+h.label.options.rows|0,x=v<-15&&v>=-90||v>15&&v<=90,w=t.count,S=(0,o.pickNum)(h._prevRate,1);if(t.freeHiddens(),t.forEach((function(t,r){var f=e[t.index];t.setVis(!!f)&&(t.setContrast(null).layout(y),u=t.getBBox(),c=h.prev(f.pos)+(_?s*(1-S):0),p=i?n?a+l+g[t.row]:-l-u.height-g[t.row]:n?a-l-u.height-g[t.row]:l+g[t.row],v<-15&&v>=-90?i?n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):n?(c-=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):v>15&&v<=90?i?n?(c+=u.width,p-=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,-v)):(c-=u.width,p+=(0,o.sin)(m)*u.height/2,t.setRotation(u.width,u.height/2,v)):n?(p+=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,-v)):(p-=(0,o.sin)(m)*u.height/2,t.setRotation(0,u.height/2,v)):(c-=u.width/2,t.setRotation(u.width/2,0,n?-v:v)),t.trans(c,p))})),!x&&b<2&&w>1){var P=t.get(_?w-1:0);P&&P.visible&&P.setVis(!P.hidden)&&function(t,e,i){var r,n=d.options,o=+n.overflowGap||2,s=!0,a=e.rotatedWidth(),l=_?n.lastOverflow:n.firstOverflow,u=e.tx;u+a>=i.tx?"pull"===l?u=i?i.tx-a-o:0:s="hidden"!==l:(r=e.elementToSvg(0,0).x)<0&&("pull"===l?u=Math.min(i.tx-o,r+4):s="hidden"!==l),s?e.transX(u):e.setVis(!1)}(0,P,t.get(_?w-2:1)),(P=t.get(_?0:w-1))&&P.visible&&P.setVis(!P.hidden)&&function(t,e,i){var r,n,o=d.options,a=+o.overflowGap||2,l=i.tx+i.rotatedWidth(),u=!0,c=e.tx,p=e.rotatedWidth(),h=_?o.firstOverflow:o.lastOverflow;c<=l?"pull"===h?c=Math.max(l+a,s-p):u="hidden"!==h:(r=e.elementToSvg(e.getBBox().width,0).x)>(n=t.control.getBounds().width)&&("pull"===h?c=Math.max(l+a,c-(r-n+4)):u="hidden"!==h),u?e.transX(c):e.setVis(!1)}(this,P,t.get(_?1:w-2))}},r.prototype.$_layoutLabelsVert=function(t,e,i,r,n,s,a,l){var u,c=this.model,p=c instanceof h.CategoryAxis&&c.label.options.fillToCategory,f=n?i?"right":"left":r?"center":i?"left":"right",d=p?c.label.options.verticalAlign:"middle",_=p?c.label.options.align:f,y=this._titleView,g=y.visible?y.rotatedWidth()+(null===(u=y.model)||void 0===u?void 0:u.options.gap):0,v=this._labelSize,m=c.tick._getGap();var b=this._reversed,x=b?(0,o.pickNum)(c._prevRate,1):1,w=b?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER;t.forEach((function(t,o){var u=e[t.index];if(t.setVis(!!u)){var h=t.getBBox(),f=function(t,e){if(i)if(n)switch(t){case"center":return(v-e)/2-v-m-l;case"left":return-v-m-l;default:return-e-m-l}else switch(t){case"right":return s+l+m+v-e;case"center":return!y.visible&&r?(s-e)/2:s+l+m+(v-e)/2;default:return s+l+m}else if(n)switch(t){case"center":return l+(s-g-e-l+m)/2;case"right":return s-e-g+m;default:return l}else switch(t){case"left":return g-m;case"center":return!y.visible&&r?(s-e)/2:g+(s-g-e-l-m)/2;default:return s-l-e}}(_,h.width),S=a*x-c.prev(u.pos)-h.height/2;if(t.trans(f,S),p){var P=c._weights.reduce((function(t,e){return t+e}))/c._weights[t.index],A=a/P,O="top"===d?(A-h.height)/-2:"bottom"===d?(A-h.height)/2:0;t.shiftY(O),t.resizeBackByWeight(c,r,n,s,a,l,m,P,O,g)}else!b&&t.ty+h.height>w+1||b&&t.ty<w-1?t.setVis(!1):w=b?t.ty+h.height:t.ty}}))},r.prototype.$_layoutUnitHorz=function(t,e,i,r,n,o){var s,a,l=this.model,u=l.options.reversed,c="end"===l.unitLabel.options.position,p=t.getBBox(),h=e.first,f=e.last,d=l.unitLabel.options.gap||0;u?c?(s=f.getBBox(),a=Math.min(f.tx-p.width-d,0)):(s=h.getBBox(),a=Math.max(h.tx+s.width+d,r-p.width)):c?(s=f.getBBox(),a=Math.max(f.tx+s.width+d,r-p.width)):(s=h.getBBox(),a=Math.min(h.tx-p.width-d,0)),t.layout().trans(a,o)},r.prototype.$_layoutUnitVert=function(t,e,i,r,n,o){var s,a=this.model,l=a.options.reversed,u="end"===a.unitLabel.options.position,c=t.getBBox(),p=e.first,h=e.last,f=a.unitLabel.options.gap||0,d=i?o:r-c.width-o;l?u?(h.getBBox(),s=Math.max(h.ty+c.height+f,n)):s=Math.min(p.ty-c.height-f,0):u?s=Math.min(h.ty-c.height-f,0):(p.getBBox(),s=Math.max(p.ty+c.height+f,n)),t.layout().trans(d,s)},r.AXIS_CLASS="rct-axis",r.LINE_CLASS="rct-axis-line",r.TICK_CLASS="rct-axis-tick",r}(g.ChartElement);e.AxisView=O}(lW);var nU={},oU={},sU={},aU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sU,"__esModule",{value:!0}),sU.ButtonElement=void 0;var lU=iM,uU=wW,cU=IB,pU=uj,hU=function(t){function e(i,r,n){var o=t.call(this,i,e.STYLE)||this;return o.add(o._back=new cU.RectElement(i,e.BACK_STYLE)),o.add(o._textView=new pU.TextElement(i)),n&&o.dom.classList.add(n),r&&o.setText(r),o}return aU(e,t),e.prototype.setText=function(t){this._textView.text=t},e.prototype.layout=function(t){this.setStyleOrClass(t),this._textView.layoutText();var e=getComputedStyle(this._back.dom),i=(new uU.Sides).applyPadding(e),r=this._textView.getBBox();this._back.rect={x:0,y:0,width:r.width+i.left+i.right,height:r.height+i.top+i.bottom,rx:(0,lU.pickNum)(parseFloat(e.rx),0),ry:(0,lU.pickNum)(parseFloat(e.ry),0)},this._textView.trans(r.width/2+i.left,i.top)},e.prototype.click=function(){return!1},e.prototype.setVis=function(e){if(t.prototype.setVis.call(this,e))return e&&this._textView.stain(),!0},e.STYLE="rct-button",e.BACK_STYLE="rct-button-background",e}(fj.RcElement);sU.ButtonElement=hU;var fU={},dU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_U=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},yU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(fU,"__esModule",{value:!0}),fU.ArcPolyElement=fU.ArcElement=fU.CircumElement=fU.CircleElement=void 0;var gU=fj,vU=GB,mU=function(t){function e(e,i){return t.call(this,e,i,"circle")||this}return dU(e,t),e.prototype.setCircle=function(t,e,i){this.setAttrs({cx:t,cy:e,r:i})},e}(gU.RcElement);fU.CircleElement=mU;var bU=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.setFill("none"),r}return dU(e,t),e.prototype.resetStyles=function(e){var i=t.prototype.resetStyles.call(this,e);return this.setFill("none"),i},e}(mU);fU.CircumElement=bU;var xU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dU(e,t),e.prototype.setArc=function(t,e,i,r,n,o){this.setPath(vU.SvgShapes.arc(t,e,i,i,r,close?r+n:r-n,o))},e}(gU.PathElement);fU.ArcElement=xU;var wU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dU(e,t),e.prototype.setPolyline=function(t){this.setPath(vU.SvgShapes.polygon.apply(vU.SvgShapes,yU([],_U(t),!1)))},e}(xU);fU.ArcPolyElement=wU;var SU={},PU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(SU,"__esModule",{value:!0}),SU.SectorElement=void 0;var AU=GB,OU=function(t){function e(e,i,r){var n=t.call(this,e,i)||this;return n.cx=0,n.cy=0,n.rx=0,n.ry=0,n.innerRadius=0,n.start=0,n.angle=0,n.clockwise=!0,n.rate=1,r&&n._assignShape(r,!1),n.setAttr("role","img"),n}return PU(e,t),e.prototype.equals=function(t){return t.cx===this.cx&&t.cy===this.cy&&t.rx===this.rx&&t.ry===this.ry&&t.innerRadius===this.innerRadius&&t.start===this.start&&t.angle===this.angle&&t.clockwise===this.clockwise},e.prototype.setSector=function(t){this._assignShape(t,!1)},e.prototype.setSectorEx=function(t,e){this._assignShape(t,e)},e.prototype._getShape=function(){return{cx:this.cx,cy:this.cy,rx:this.rx,ry:this.ry,innerRadius:this.innerRadius,start:this.start,angle:this.angle,clockwise:this.clockwise}},e.prototype._assignShape=function(t,e){this.cx=t.cx,this.cy=t.cy,this.rx=t.rx,this.ry=t.ry,this.innerRadius=t.innerRadius,this.start=t.start,this.angle=t.angle,this.clockwise=t.clockwise,this.setPath(e?this.$_renderArc():this.$_renderSector())},e.prototype.$_renderSector=function(){return AU.SvgShapes.sector(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.innerRadius||0,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e.prototype.$_renderArc=function(){return AU.SvgShapes.arc(this.cx,this.cy,this.rx*this.rate,this.ry*this.rate,this.start,this.clockwise?this.start+this.angle:this.start-this.angle,this.clockwise)},e}(fj.PathElement);SU.SectorElement=OU;var CU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationView=e.annotation_view_types=void 0;var r=fj,n=xW;e.annotation_view_types={};var o=function(t){function n(e,i){var o=t.call(this,e,n.CLASS_NAME+" "+i,"rct-annotation-background")||this;return o._transform=new r.RcElement(e,null,"g"),o.add(o._transform),o._transform.add(o._background),o}return i(n,t),n.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.annotation_view_types[t[0].type]=t[1]}))},n.prototype.update=function(t,e,i){this.measure(this.doc,this.model,e,i,0),this._layoutView(this.chart().isInverted(),t,0,0,e,i)},n.prototype.addToTransform=function(t){this._transform.add(t)},n.prototype._layoutView=function(t,e,i,r,n,o){this.resizeByMeasured(),this.layout(this._posByAnchor(e)||this.model.getPosition(this.chart().isInverted(),i,r,n,o,this.width,this.height))},n.prototype._posByAnchor=function(t){var e=this.model,i=e._anchorObj;if(i){var r=t.getAnnotationAnchor(i);if(r){var n=e.getOffset(this.width,this.height),o=r.width,s=r.height,a=r.tx,l=r.ty;switch(this.options.align){case"left":a-=this.width+n.x;break;case"right":a+=o+n.x;break;default:a+=(o-this.width)/2+n.x}switch(this.options.verticalAlign){case"middle":l+=(s-this.height)/2+n.y;break;case"bottom":l+=s+n.y;break;default:l-=this.height+n.y}return{x:a,y:l}}}},n.prototype.resetClip=function(t,e,i){this.isClip(this._clip)||this.setClip(this._clip=t.clipBounds()),this._clip.setBounds(0,0,e,i)},n.prototype.clicked=function(){this.model.clicked()},n.prototype.pointerEnter=function(){},n.prototype.pointerLeave=function(){},n.prototype.remove=function(){var e;return this._clip&&(null===(e=this.control)||void 0===e||e.removeDef(this._clip.dom)),t.prototype.remove.call(this)},n.prototype._updateTransform=function(){this.model.needClip()?this._transform.dom.setAttribute("transform",this.getTransform()):t.prototype._updateTransform.call(this)},n.prototype._marginable=function(){return!1},n.prototype._resetBackBounds=function(){return!1},n.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},n.prototype._doLayout=function(t){var e=this.model.options.rotation;this.trans(t.x,t.y),this._background.resize(this.width,this.height),isNaN(e)||0===e?this.rotation=0:this.setRotation(this.width/2,this.height/2,e)},n.CLASS_NAME="rct-annotation",n}(n.BoundableElement);e.AnnotationView=o}(CU);var VU={};!function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.GaugeGroupView=e.ScaleView=e.ScaleLabelView=e.ValueGaugeView=e.GaugeView=e.gauge_view_types=void 0;var o=iM,s=dj,a=uW,l=NM,u=Pj,c=fj,p=QG,h=IB,f=xW,d=$W;e.gauge_view_types={};var _=function(t){function r(e,i){var n=t.call(this,e,i)||this;return n.dom.classList.add(n._defaultCalss()),n.add(n._paneElement=new h.RectElement(e,r.PANE_CLASS)),n.add(n._contentContainer=new c.LayerElement(e,null)),n._doInitContents(e,n._contentContainer),n}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.gauge_view_types[t[0].type]=t[1]}))},r.prototype._defaultCalss=function(){return r.GAUGE_CLASS},r.prototype.clicked=function(t){},r.prototype.prepareGauge=function(t,e){this._prepareGauge(t,e)},r.prototype.getPosition=function(t,e){var i=this.model,r=i.getLeft(t),n=i.getTop(e);return isNaN(r)&&(r=i.getRight(t)-this.width,isNaN(r)&&(r=(t-this.width)/2)),isNaN(n)&&(n=i.getBottom(e)-this.height,isNaN(n)&&(n=(e-this.height)/2)),{x:r,y:n}},r.prototype.isEmptyView=function(){return!1},r.prototype._prepareStyleOrClass=function(t){this._paneElement.setStyleOrClass(t.options.backgroundStyle)},r.prototype._doMeasure=function(t,e,i,r,n){return e.getSize(i,r)},r.prototype._doLayout=function(){var t=this.width,e=this.height;this._paneElement.resizeRect(t,e);var i=(0,o.assignObj)(s.Dom.getPadding(this.dom));t-=i.left+i.right,e-=i.top+i.bottom,this._renderGauge(t,e),this._contentContainer.trans(i.left,i.top)},r.prototype._getGroupView=function(){for(var t=this.parent;t;){if(t instanceof b)return t;t=t.parent}},r.GAUGE_CLASS="rct-gauge",r.PANE_CLASS="rct-gauge-pane",r}(f.ContentView);e.GaugeView=_;var y=function(t){function e(e){var i=t.call(this)||this;return i.view=e,i}return i(e,t),e.prototype._doUpdate=function(t){return this.view._setValueRate(t),!0},e}(u.RcAnimation),g=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.valueOf=function(t,e,i){var r=t.getParam(e);return(0,o.isNumber)(r)?l.NumberFormatter.getFormatter(i||t.label.numberFormat).toStr(r):r},e._valueRate=NaN,e}return i(e,t),e.prototype._setValueRate=function(t){isNaN(t)&&isNaN(this._valueRate)||t===this._valueRate||(this._valueRate=t,isNaN(t)?this.invalidate():this._doValueRateChanged(t))},e.prototype._prepareStyleOrClass=function(e){t.prototype._prepareStyleOrClass.call(this,e),this._backgroundView().setStyleOrClass(e._style)},e.prototype._doLayout=function(){this.stopAni(),t.prototype._doLayout.call(this),this.$_checkValueAnimation()},e.prototype.$_checkValueAnimation=function(){var t=this.model;this._animatable&&t.options.animatable&&t.options.value!==t._prevValue&&(this._ani=new y(this).start((function(){t._runValue=NaN,t._prevValue=t.options.value})))},e.prototype._doValueRateChanged=function(t){this.model._setValueRate(t),this._renderValue()},e}(_);e.ValueGaugeView=g;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(d.ChartTextElement);e.ScaleLabelView=v;var m=function(t){function e(e){var i=t.call(this,e,"rct-gauge-scale")||this;return i.add(i._line=i._createLine(e,"rct-gauge-scale-line")),i.add(i._tickContainer=new c.LayerElement(e,"rct-gauge-scale-ticks")),i._ticks=new a.ElementPool(i._tickContainer,p.LineElement),i.add(i._labelContainer=new c.LayerElement(e,"rct-gauge-scale-tick-labels")),i._labels=new a.ElementPool(i._labelContainer,v),i}return i(e,t),e}(f.ChartElement);e.ScaleView=m;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._defaultCalss=function(){return e.GAUGE_GROUP_CLASS},e.prototype._doInitContents=function(t,e){e.add(this._gaugeContainer=new c.LayerElement(t,"rct-gauge-group-container")),this._gaugeViews=this._createPool(this._gaugeContainer)},e.prototype._setChartOptions=function(e,i,r){t.prototype._setChartOptions.call(this,e,i,r),this._gaugeViews.forEach((function(t){return t._setChartOptions(e,i,r)}))},e.prototype._prepareGauge=function(t,e){this._gaugeViews.prepare(e.count()),this._doPrepareGauges(t,e,this._gaugeViews)},e.prototype._renderGauge=function(t,e){this._doRenderGauges(this._gaugeContainer,this._gaugeViews,t,e)},e.prototype._doPrepareGauges=function(t,e,i){i.forEach((function(i,r){i.prepareGauge(t,e.getVisible(r))}))},e.GAUGE_GROUP_CLASS="rct-gauge-group",e}(_);e.GaugeGroupView=b}(VU);var EU={},kU={},TU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),LU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},NU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(kU,"__esModule",{value:!0}),kU.PrevAnimation=kU.SpreadAnimation=kU.GrowAnimation=kU.PointAnimation=kU.RevealAnimation2=kU.RevealAnimation=kU.StyleAnimation=kU.SeriesAnimation=void 0;var MU=rM,jU=Pj,RU=fj,BU=function(){function t(t,e){var i=this._createAnimation(t,e);MU.Utils.isAnimation(i)&&(i.addEventListener("finish",(function(){t._animationFinished(i)})),t._animationStarted(i))}return t.reveal=function(t,e){new GU(t,e)},t.grow=function(t,e){new zU(t,e)},t.spread=function(t,e){new $U(t,e)},t.fadeIn=function(t){new DU(t,{prop:"opacity",start:"0",end:"1"})},t}();kU.SeriesAnimation=BU;var DU=function(t){function e(e,i){return t.call(this,e,i)||this}return TU(e,t),e.prototype._createAnimation=function(t,e){var i={},r={};return i[e.prop]=e.start,r[e.prop]=e.end,t.dom.animate([i,r],{duration:jU.RcAnimation.DURATION,fill:"none"})},e}(BU);kU.StyleAnimation=DU;var IU=function(t){function e(e,i){return t.call(this,e,i)||this}return TU(e,t),e.clipRect=function(t,e){var i,r=e.view||t;if(t.model.needClip(!1))i=r.clipRect(.1*-t.width,.1*-t.height,1.2*t.width,1.2*t.height);else if(e.view)i=r.clipRect(0,0,t.width,t.height);else{var n=t.control;i=t.model.chart.isInverted()?r.clipRect(-n.width(),.1*-t.height,2*n.width(),1.2*t.height):r.clipRect(.1*-t.width,-n.height(),1.2*t.width,2*n.height())}return i},e.prototype._createAnimation=function(t,i){var r,n=e.clipRect(t,i);switch(i&&i.from){case"top":r=this.$_top(n,i);break;case"bottom":r=this.$_bottom(n,i);break;case"right":r=this.$_right(n,i);break;default:r=this.$_left(n,i)}return null==r||r.addEventListener("finish",(function(){n.dom.remove()})),r},e.prototype.$_aniOptions=function(t){return{duration:jU.RcAnimation.DURATION,fill:"none"}},e.prototype.$_left=function(t,e){return t.dom.firstElementChild.animate([{width:0},{width:""}],this.$_aniOptions(e))},e.prototype.$_right=function(t,e){return t.dom.firstElementChild.animate([{x:t.width},{x:""}],this.$_aniOptions(e))},e.prototype.$_top=function(t,e){return t.dom.firstElementChild.animate([{height:0},{height:""}],this.$_aniOptions(e))},e.prototype.$_bottom=function(t,e){return t.dom.firstElementChild.animate([{y:t.height},{y:""}],this.$_aniOptions(e))},e}(BU);kU.RevealAnimation=IU;var GU=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r._cr=IU.clipRect(e,i),r._from=i.from,r.endHandler=function(){e._animationFinished(r),r._cr.dom.remove()},r.start(),e._animationStarted(r),r}return TU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof RU.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e.prototype._doUpdate=function(t){var e=this._cr.dom.firstElementChild;switch(this._from){case"top":e.setAttribute("height",this._cr.height*t);break;case"bottom":e.setAttribute("y",this._cr.height*(1-t));break;case"right":e.setAttribute("x",this._cr.width*(1-t));break;default:e.setAttribute("width",this._cr.width*t)}return!0},e}(jU.RcAnimation);kU.RevealAnimation2=GU;var FU=function(t){function e(e,i){var r=t.call(this)||this;return r._series=e,r.endHandler=i,r.start(),r}return TU(e,t),e.prototype._canUpdate=function(){return this._series.parent instanceof RU.RcElement},e.prototype._stop=function(e){t.prototype._stop.call(this,e),this._series=null},e}(jU.RcAnimation);kU.PointAnimation=FU;var zU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TU(e,t),e.prototype._doUpdate=function(t){return this._series.setGrowRate(t),!0},e.prototype._doStop=function(){this._series.setGrowRate(NaN)},e}(FU);kU.GrowAnimation=zU;var $U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TU(e,t),e.prototype._doUpdate=function(t){return this._series.setPosRate(t),!0},e.prototype._doStop=function(){this._series.setPosRate(NaN)},e}(FU);kU.SpreadAnimation=$U;var HU=function(t){function e(){var e=t.apply(this,NU([],LU(arguments),!1))||this;return e.duration=500,e}return TU(e,t),e.prototype._doUpdate=function(t){return this._series.setPrevRate(t),!0},e.prototype._doStop=function(){this._series.setPrevRate(NaN)},e}(FU);kU.PrevAnimation=HU;var WU={},UU=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),XU=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},YU=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(WU,"__esModule",{value:!0}),WU.TrendLineView=void 0;var qU=iM,ZU=Tj,KU=fj,JU=GB,QU=function(t){function e(e){return t.call(this,e,"rct-series-trendline-label")||this}return UU(e,t),e}($W.ChartTextElement),tX=function(t){function e(e){var i=t.call(this,e,"rct-series-trendline")||this;return i.add(i._fixedArea=new KU.PathElement(e,"rct-series-trendline-fixed")),i.add(i._variableArea=new KU.PathElement(e,"rct-series-trendline-variable")),i.add(i._line=new KU.PathElement(e)),i.add(i._label=new QU(e)),i}return UU(e,t),e.prototype.layout=function(t,e,i,r,n){var o=e.chart.isInverted(),s=e.owner._xAxisObj.options.reversed,a=e.owner._yAxisObj.options.reversed,l=this.$_getPoints(e,i);this._line.setStyleOrClass(e._style),this._line.setPath(this.$_getLine(i,l)),e.marker.visible?(this._startMarker||(this.add(this._startMarker=new KU.PathElement(t,"rct-series-trendline-marker")),this.add(this._endMarker=new KU.PathElement(t,"rct-series-trendline-marker"))),this.$_layoutMarkers(e,l)):this._startMarker&&(this._startMarker.setVis(!1),this._endMarker.setVis(!1)),this._fixedArea.setVis(e.fixedArea.visible)&&(this._fixedArea.setStyleOrClass(e.fixedArea._style),this._fixedArea.setPath(this.$_getFixed(o,s,a,i,l,r,n))),this._variableArea.setVis(e.variableArea.visible)&&(this._variableArea.setStyleOrClass(e.variableArea._style),this._variableArea.setPath(this.$_getVariable(o,s,a,i,l,r,n))),this._label.setVis(e.label.visible)&&(this._label.setModel(t,e.label,null,e.label._style),this._label.setText(e.getLabel()),this.$_layoutLabel(i,e,o,s,a,l,r,n))},e.prototype.$_getPoints=function(t,e){var i=t.owner,r=i.chart.isInverted(),n=i._xAxisObj,o=i._yAxisObj,s=o._vlen,a=e?e.total:n._vlen;return e?t._points.map((function(t){var i=e.start+n.getPos(a,t.x),r=o.getPos(e.rd,t.y);return{x:e.cx+r*(0,qU.cos)(i),y:e.cy+r*(0,qU.sin)(i),a:i}})):t._points.map((function(t){var e,i;return r?(i=a-n.getPos(a,t.x),e=o.getPos(s,t.y)):(e=n.getPos(a,t.x),i=s-o.getPos(s,t.y)),{x:e,y:i}}))},e.prototype.$_getLine=function(t,e){var i=new ZU.PathBuilder;return i.move(e[0].x,e[0].y),i.lines.apply(i,YU([],XU(e),!1)),i.end()},e.prototype.$_getVariable=function(t,e,i,r,n,o,s){var a=new ZU.PathBuilder,l=n[0],u=n[n.length-1];if(r);else if(t)if(i){a.move(l.x,l.y);for(var c=0;c<n.length;c++)a.line(n[c].x,n[c].y);a.line(l.x,u.y)}else{a.move(l.x,l.y),a.line(l.x,u.y);for(c=n.length-1;c>=0;c--)a.line(n[c].x,n[c].y)}else if(i){a.move(l.x,l.y),a.line(u.x,l.y);for(c=n.length-1;c>=0;c--)a.line(n[c].x,n[c].y)}else{a.move(l.x,l.y);for(c=0;c<n.length;c++)a.line(n[c].x,n[c].y);a.line(u.x,l.y)}return a.end()},e.prototype.$_getFixed=function(t,e,i,r,n,o,s){var a=new ZU.PathBuilder,l=n[0],u=n[n.length-1];return r||(t?i?a.polygon(l.x,l.y,o,l.y,o,u.y,l.x,u.y):a.polygon(0,l.y,l.x,l.y,l.x,u.y,0,u.y):i?a.polygon(l.x,0,u.x,0,u.x,l.y,l.x,l.y):a.polygon(l.x,l.y,u.x,l.y,u.x,s,l.x,s)),a.end()},e.prototype.$_layoutMarkers=function(t,e){var i=t.marker.getRadius();if(this._startMarker.setVis(i>0)&&this._endMarker.setVis(i>0)){var r=JU.SvgShapes.getDrawer(t.marker.options.shape);this._startMarker.setPath(r(i)),this._endMarker.setPath(r(i)),this._startMarker.setStyleOrClass(t.marker._style),this._endMarker.setStyleOrClass(t.marker._style),this._startMarker.trans(e[0].x,e[0].y),this._endMarker.trans(e[e.length-1].x,e[e.length-1].y)}},e.prototype.$_layoutLabel=function(t,e,i,r,n,o,s,a){var l=e.label,u=e.marker.visible?e.marker.getRadius():0,c=this._label;if(String(l.options.text)){l.prepareRich(l.options.text),l.buildSvg(c._text,c._outline,NaN,NaN,l,e.getLabelDomain());var p,h,f=l.options.position,d=t?function(t){var e,i=Math.floor((o.length-1)*t),r=(o.length-1)*t-i;if(i>=o.length-1)e=o[o.length-1].a;else{var n=o[i],s=o[i+1];e=n.a+(s.a-n.a)*r}return e}(f):0,_=t?l.getAlignPolar(d):l.getAlign(i,r,n,f),y=t?l.getVerticalAlignPolar(d):l.getVerticalAlign(i,r,n),g=l.getOffsetX(_)+("middle"===y?u:0),v=l.getOffsetY(y)+("center"===_?u:0),m=Math.floor((o.length-1)*f),b=(o.length-1)*f-m;if(m>=o.length-1)p=o[o.length-1].x,h=o[o.length-1].y;else{var x=o[m],w=o[m+1];p=x.x+(w.x-x.x)*b,h=x.y+(w.y-x.y)*b}var S=c.getBBox();switch(_){case"left":p-=S.width+g;break;case"center":p-=S.width/2+g;break;case"right":p+=g}switch(y){case"top":h-=S.height+v;break;case"middle":h-=S.height/2+v;break;case"bottom":h+=v}t||(p<0&&(p=0),h<0&&(h=0),p+S.width>s&&(p=s-S.width),h+S.height>a&&(h=a-S.height)),c.trans(p,h)}else c.setVis(!1)},e}(KU.LayerElement);WU.TrendLineView=tX,function(e){var i=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),r=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},n=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.RangedSeriesView=e.BasedSeriesView=e.ClusterableSeriesView=e.RangeElement=e.Bar3DElement=e.BarElement=e.BoxPointElementEx=e.PointElementEx=e.BoxPointElement=e.PointElement=e.SeriesView=e.series_view_types=e.PointContainer=e.PointLabelLineContainer=e.PointLabelLineView=e.PointLabelContainer=e.PointLabelView=void 0;var o=rM,s=iM,a=uW,l=Tj,u=Pj,c=fj,p=fW,h=nM,f=CW,d=IB,_=GB,y=DB,g=qB,v=xW,m=$W,b=kU,x=cj,w=WU,S=dj,P=function(t){function e(e,i,r,n){var o=t.call(this)||this;return o.duration=r?200:100,o._sv=e,o._focused=r,o._marker=i,r||(o._marker.setBoolData(L.DATA_UNFOCUS,!0),o._marker.saveStyles(),e.setHoverStyle(o._marker)),o.start(n),o}return i(e,t),e.prototype._doStart=function(){this._marker.beginHover(this._sv,this._focused)},e.prototype._doUpdate=function(t){return!!this._marker.parent&&(this._marker.setHoverRate(this._sv,this._focused,t),!0)},e.prototype._doStop=function(){this._marker.setBoolData(L.DATA_UNFOCUS,!1),!this._focused&&this._marker.restoreStyles(),this._marker.setHoverRate(this._sv,this._focused,NaN),this._marker=null},e}(u.RcAnimation),A=function(t){function e(e){return t.call(this,e,"rct-point-label")||this}return i(e,t),e}(m.ChartTextElement);e.PointLabelView=A;var O=function(t){function e(e){var i=t.call(this,e,"rct-point-labels")||this;return i._labels=[new a.ElementPool(i,A),new a.ElementPool(i,A)],i._maps=[],i.ignorePointer(),i}return i(e,t),e.prototype.clear=function(){this._labels[0].prepare(0),this._labels[1].prepare(0)},e.prototype.getWidth=function(t){var e=0;return this._labels[t].forEach((function(t){return e=(0,s.maxv)(e,t.getBBox().width)})),e},e.prototype.prepareLabel=function(t,e,i,r,n,o){var s=n.getPointText(r,i,o.options.text);e.point=r,e.setModel(t,o,r.icon?o.getUrl(r.icon):null,n.getPointLabelStyle(r)),null!=s?(o.prepareRich(s),o.buildSvg(e._text,e._outline,NaN,NaN,o,o.getTextDomain(r))):e.setText(o.getText(o.getValue(r,i)))},e.prototype.prepare=function(t,e){var i=this,r=e.model,n=r.pointLabel;if(r.isLabelsVisible()){this.setVis(!0);var o=r.pointLabelCount(),s=this._labels,a=r._getLabeledPoints(),l=this._maps,u=n._style;s[0].prepare(a.length),l[0]={},s[1].prepare(o>1?a.length:0),l[1]={},a.forEach((function(o,a){for(var u=0;u<o.labelCount();u++){var c=s[u].get(a);c.stopAni().setVis(e.isPointLabelVisible(o))&&(i.prepareLabel(t,c,u,o,r,n),l[u][o.pid]=c)}})),this.setStyleOrClass(u),this._textAlign=this.textAlign()||"center"}else this.clear(),this.setVis(!1)},e.prototype.get=function(t,e){var i=this._maps[e];return i&&i[t.pid]},e.prototype.$_checkIntersects=function(t){if(t.length>1)for(var e=t.length-1;e>0;e--){var i=t[e].inflateBBox(-1,-1),r=t[e-1].inflateBBox(-1,-1);if((0,p.intersectsRect)(i,r))return t}},e.prototype.dedupe=function(t,e,i){var r=0,n=t[r];if(i===g._PointLabelDedupeMode.LARGEST_FIRST)for(var o=1;o<t.length;o++){var s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(n.point.yValue<t[o].point.yValue?(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),n=s,r=o):(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1)),--o):(n=s,r=o),o===t.length-1){var h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1),t[0].point.yValue<n.point.yValue?(e.get(t[0].point).setVis(!1),t[0].setVis(!1),t.splice(0,1)):(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1)))}}else for(o=1;o<t.length;o++){s=t[o],a=n.inflateBBox(-1,-1),l=s.inflateBBox(-1,-1),u=Object.assign(a,{rotation:n.rotation}),c=Object.assign(l,{rotation:s.rotation});if((0,p.isColliding)(u,c)?(e.get(s.point).setVis(!1),s.setVis(!1),t.splice(o,1),--o):(n=s,r=o),o===t.length-1){h=Object.assign(t[0].inflateBBox(-1,-1),{rotation:t[0].rotation}),f=Object.assign(n.inflateBBox(-1,-1),{rotation:n.rotation});(0,p.isColliding)(h,f)&&(e.get(n.point).setVis(!1),n.setVis(!1),t.splice(r,1))}}},e.prototype.arrangeVertical=function(t,e,i,r,n,o,s){var a=e.length;if(a<2)return 0;e.sort((function(t,e){return t.ty-e.ty}));for(var l=t.getBBox(),u=l.y+l.height/2,c=Number.MAX_SAFE_INTEGER,p=0,h=0;h<a;h++){var f=e[h].inflateBBox(0,-1),d=Math.abs(u-(f.y+f.height/2));d<c&&(c=d,p=h)}var _=function(t,i){0!==i&&e[t].shiftY(i)},y=function(t,i){var r=e[t].inflateBBox(0,-1),n=e[i].inflateBBox(0,-1);return r.y+r.height-n.y};for(h=0;h<p;h++){if((m=y(h,h+1))>0){_(h,-m);for(var v=h;v>0;v--){(b=y(v-1,v))>0&&_(v-1,-b)}}}for(h=a-1;h>=p&&h>0;h--){var m;if((m=y(h-1,h))>0){_(h,m);for(v=h;v<a-1;v++){var b;(b=y(v,v+1))>0&&_(v+1,b)}}}var x=this.control.chartView().bodyView().height;if(n){var w=function(t,i){for(var r=t;r<i;r++){var n=e[r].tbottom-e[r+1].ty;n>0&&_(r+1,n)}},S=function(t,i){for(var r=t;r>i;r--){var n=e[r].ty-e[r-1].tbottom;n<0&&_(r-1,n)}},P=e[0],A=e[a-1],O=e[p],C=P.ty,V=x-A.tbottom;for(h=0;h<a-1;h++){var E=e[h+1].ty-e[h].tbottom;h<p?C+=E:V+=E}if(P.ty<0)if(C>=0){P.transY(0),w(0,p-1),O.ty<e[p-1].tbottom&&S(p,0),C=0;for(h=0;h<p;h++)C+=e[h+1].ty-e[h].tbottom}else if(C+V>=0)P.transY(0),w(0,a-1),C=0;else{for(h=p;h>0;h--){var k=e[h].ty-e[h-1].tbottom;_(h-1,k)}C=P.ty}if(A.tbottom>x){var T=A.getBBox().height;if(V>0){A.transY(x-T),S(a-1,p+1),O.tbottom<e[p+1].ty&&w(p,a-1),V=0;for(h=p;h<a-1;h++)V+=e[h+1].ty-e[h].tbottom}else if(C+V>0)A.transY(x-T),S(a-1,0),V=0;else{if(C>=0){P.transY(0);for(h=1;h<a;h++)e[h].transY(e[h-1].tbottom)}else for(h=p;h<a-1;h++)e[h+1].transY(e[h].tbottom);V=x-A.tbottom}}if(P.ty<0&&V>0){var L=Math.min(P.ty+V,0);P.transY(L);for(h=1;h<a;h++)e[h-1].tbottom>e[h].ty&&e[h].transY(e[h-1].tbottom)}}return s===g._PointLabelOverflow.HIDDEN&&e.forEach((function(t,e){var r=t.ty+t.getBBox().height;(t.ty<0||r>x)&&(i.get(t.point).setVis(!1),t.setVis(!1))})),1},e}(c.LayerElement);e.PointLabelContainer=O;var C=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._line=new c.PathElement(e)),i}return i(e,t),e.prototype.setLine=function(t){this._line.setPath(t)},e}(f.GroupElement);e.PointLabelLineView=C;var V=function(t){function e(e){var i=t.call(this,e,"rct-point-label-lines")||this;return i._lines=new a.ElementPool(i,C),i}return i(e,t),e.prototype.prepare=function(t){var e=this._lines,i=t._visPoints,r=t.pointLabel,n=this._map={};r.visible?e.prepare(i.length).forEach((function(t,e){var r=i[e];t.visible=r.visible,n[r.pid]=t})):e.prepare(0)},e.prototype.get=function(t){return this._map[t.pid]},e}(f.GroupElement);e.PointLabelLineContainer=V;var E=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e.inverted=!1,e}return i(e,t),e.prototype.invert=function(t,e){return t===this.inverted&&e===this._hSave||((this.inverted=t)?this.setAttr("transform","translate(0,".concat(e,") rotate(90) scale(-1,1)")):this.setAttr("transform",""),this._hSave=e),this.inverted},e}(c.LayerElement);e.PointContainer=E,e.series_view_types={};var k="rct-point-hover",T="rct-point-unhover",L=function(t){function r(e,i){var r=t.call(this,e,"rct-series "+i)||this;return r._simpleMode=!1,r._growRate=NaN,r._posRate=NaN,r._prevRate=NaN,r._animations=[],r._hoverAnis=[],r._hoverPts=[],r.add(r._pointContainer=new E(e,"rct-series-points")),r._labelContainer=new O(e),r}return i(r,t),r.register=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.forEach((function(t){e.series_view_types[t[0].type]=t[1]}))},r.isPointDom=function(t){for(;S.Dom.isSVGElement(t);){if(t.classList.contains(this.POINT_CLASS))return!0;t=t.parentElement}},r.prototype.depthEnabled=function(){return!1},r.prototype.clipInvertable=function(){return!0},r.prototype.getClipContainer=function(){return this._pointContainer},r.prototype.getClipContainer2=function(){return null},r.prototype.defaultAnimation=function(){return"reveal"},r.prototype.setGrowRate=function(t){isNaN(t)&&isNaN(this._growRate)||t===this._growRate||(this._growRate=t,isNaN(t)&&isNaN(this._posRate)&&isNaN(this._prevRate)?this.invalidate():this._doViewRateChanged(t))},r.prototype.setPosRate=function(t){isNaN(t)&&isNaN(this._posRate)||t===this._posRate||(this._posRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPosRateChanged(t))},r.prototype.setPrevRate=function(t){isNaN(t)&&isNaN(this._prevRate)||t===this._prevRate||(this._prevRate=t,isNaN(t)&&isNaN(this._growRate)&&isNaN(this._prevRate)?this.invalidate():this._doPrevRateChanged(t))},r.prototype.isPointLabelVisible=function(t){return t.visible&&!t.isNull&&!t.isEmpty()&&this.model.isPointLabelVisible(t)},r.prototype._doViewRateChanged=function(t){},r.prototype._doPosRateChanged=function(t){},r.prototype._doPrevRateChanged=function(t){},r.prototype._animationStarted=function(t){this._animations.push(t),this._labelContainer&&this._labelContainer.setVis(!1)},r.prototype._animationFinished=function(t){var e=this._animations.indexOf(t);e>=0&&this._animations.splice(e,1),this._invalidate()},r.prototype.pointByDom=function(t){return this._getPointPool().elementOf(t)},r.prototype.getPointView=function(t){return this._getPointPool().find((function(e){return e.point===t}))},r.prototype.clicked=function(t){var e=this.pointByDom(t);e&&(this._clearHoverClasses(e),!0!==this.model.pointClicked(e.point)&&this._doPointClicked(e))},r.prototype._doPointClicked=function(t){},r.prototype._getPointColors=function(){return"a"},r.prototype._setDepth=function(t){this._depthExt=t},r.prototype.setCircular=function(t){},r.prototype.prepareSeries=function(t,e,i,r){var n=getComputedStyle(this.dom);this.setModel(e),this._colorByPoint=e._colorByPoint(),this._randomPalette=e.chart.chartOptions.options.paletteMode===h._PaletteMode.RANDOM,this.setData("index",e._seriesIndex%y.PALETTE_LEN),this.setData("pointcolors",this._colorByPoint?this._getPointColors():h._undef),this.internalClearStyleAndClass(),this.internalSetStyleOrClass(e._style),e._runColor&&this._setModelColor(e._runColor),e._calcedColor=n[this._legendColorProp()],e._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:"",this._visPoints=this._collectVisPoints(e),this._yReversed=e._yAxisObj.options.reversed,this._prepareSeries(t,e,i,r)},r.prototype._setModelColor=function(t){this.setColor(t)},r.prototype._legendColorProp=function(){return"fill"},r.prototype.needDecoreateLegend=function(){return!1},r.prototype.decoreateLegend=function(t){},r.prototype.afterLayout=function(){this._doAfterLayout()},r.prototype.setHoverStyle=function(t){t.internalImportantStylesOrClass(this.model.options.hoverStyle)},r.prototype.hoverPoint=function(t){var e=t&&this.getPointView(t);e&&e.visible?(this._clearHoverClasses(e),this._getPointPool().forEach((function(t){t!==e&&t.removeClass(k).addClass(T)}))):this._getPointPool().forEach((function(t){t.containsClass(T)&&t.removeClass(T).addClass(k)}))},r.prototype._clearHoverClasses=function(t){t instanceof c.RcElement&&t.removeClass(k).removeClass(T)},r.prototype.focusPointView=function(t,e){},r.prototype.focusPoints=function(t){var e=this,i="none"!==this.model.options.hoverEffect,n=this._hoverAnis,o=this._hoverPts,s=[],a=[];this.model.options.interactive&&i&&(o.forEach((function(i){if(i instanceof c.RcElement&&(!t||t.indexOf(i)<0)){var o=n.find((function(t){return t._marker===i}));o&&o.cancel(),i.setBoolData(r.DATA_FOCUS,!1),e.focusPointView(i,!1),i.restoreStyles(),i instanceof $&&s.push(new P(e,i,!1,(function(){i.endHover(e,!1)})))}})),t&&t.forEach((function(t){if(t&&!t.point.isNull){var i=n.find((function(e){return e._marker===t}));i&&i.cancel(),t instanceof c.RcElement&&(t.setBoolData(r.DATA_FOCUS,!0),e.focusPointView(t,!0),t.restoreStyles(),t.saveStyles(),e.setHoverStyle(t),t instanceof $?s.push(new P(e,t,!0,(function(){t.endHover(e,!0)}))):e instanceof U&&e.needFronting()&&e._getPointPool().front(t),a.push(t))}}))),n&&n.forEach((function(t,e){t._started&&s.push(t)})),this._hoverAnis=s,this._hoverPts=a,this.model.pointHovered(a&&a.length>0?a[0].point:null)},r.prototype._needFocusOrder=function(){return!0},r.prototype.getPointsAt=function(t,e){},r.prototype.getSiblings=function(t){return[t]},r.prototype.getSibling=function(t){},r.prototype.applyAutoRotation=function(t,e,i,r){if(this.model.pointLabel.options.autoRotation){var n=t.getBBox(),o=n.width,s=n.height,a=e/i*(r||360)+90;0!==a&&t.setRotation(o/2,s/2,a)}},r.prototype.isEmptyView=function(){return!1},r.prototype._doAttached=function(t){this.control.loaded&&(0,u.createAnimation)(this.dom,"opacity",0,1,500,null)},r.prototype._prepareStyleOrClass=function(t){},r.prototype._prepareViewRanges=function(t){},r.prototype._doMeasure=function(t,e,i,r,n){return this._animating()||this.setClip(),this.model._xAxisObj._seriesChanged&&this._savePrevs(),this._prepareViewRanges(e),!this._lazyPrepareLabels()&&this._labelContainer.prepare(t,this),e instanceof y.ConnectableSeries&&e.trendline.visible?(this._trendView||this.add(this._trendView=new w.TrendLineView(t)),this._trendView.setVis(!this._animating())):this._trendView&&this._trendView.setVis(!1),{width:i,height:r}},r.prototype._doLayout=function(){var t=this.width,e=this.height,i=this.model,r=i.pointLabel,n=this._trendView;this._labelOverlap={model:r,inverted:this._inverted,width:t,height:e,fit:r._overflowFit,outline:r.options.overlapOutline,contrast:r.options.overlapContrast},this._labelViews(),this._renderSeries(t,e),this._animatable&&!this._simpleMode&&this._runShowEffect(!this.control.loaded&&this.chart().loadAnimatable()||i._needAnimate),i._needAnimate=!1,n&&n.setVis(n.visible&&(!i.trendline.options.autoHide||!this.$_labelAnimating()))&&this.$_renderTrendline(n,this._inverted,t,e),this._labelContainer.visible&&this._depthExt&&this._labelContainer.trans(this._depthExt.base,0)},r.prototype._doAfterLayout=function(){},r.prototype._collectVisPoints=function(t){return t._visPoints},r.prototype._setColorIndex=function(t,e){if(this._colorByPoint){var i=this._randomPalette?Math.floor(Math.random()*y.PALETTE_LEN):e.index%y.PALETTE_LEN;t.setData("index",this._model._paletteColors[i].toString())}else t.unsetData("index")},r.prototype._setPointColor=function(t,e){t.setColor(e)},r.prototype._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},r.prototype._labelViews=function(){return this._labelContainer.setVis(this.model.pointLabel.visible&&!this.$_labelAnimating()),this._labelContainer.visible?this._labelContainer:void 0},r.prototype._getGrowRate=function(){return(0,s.pickNum)(this._growRate,1)},r.prototype._getPosRate=function(){return(0,s.pickNum)(this._posRate,1)},r.prototype.$_labelAnimating=function(){return!isNaN(this._growRate)||!isNaN(this._posRate)||this._animations.length>0},r.prototype._animating=function(){return this.$_labelAnimating()||!isNaN(this._prevRate)},r.prototype._lazyPrepareLabels=function(){return!1},r.prototype._getShowAnimation=function(){},r.prototype._runShowEffect=function(t){},r.prototype.$_renderTrendline=function(t,e,i,r){var n=this.model;n instanceof y.ConnectableSeries&&t.layout(this.doc,n.trendline,n.chart._body.getPolar(n._xAxisObj),i,r)},r.prototype._layoutLabel=function(t,e,i,r){var n=e.inverted,o=e.x,s=e.y,a=e.hPoint,l=e.labelView,u=e.labelOff;if(l.setVis(o>=0&&o<=i&&s>=0&&s<=r)){l.layout(e.textAlign);var c=e.below=e.reversed?a<=0:a<0,p=l.getBBox(),h=!0;n?(o-=e.distY,s+=e.distX,s-=p.height/2-p.height*t._vertAdjust):(o-=e.distX,s+=e.distY,o-=p.width/2);var f=o,d=s;switch(e.labelPos){case"inside":n?(o-=e.side,s+=e.base,o-=(a+p.width)/2+(e.reversed?u:-u)):(o-=e.base,s+=e.side,s+=(a-p.height)/2+(e.reversed?u:-u));break;case"head":n?(o-=e.side,s+=e.base,c?o+=u:o-=p.width+u):(o-=e.base,s+=e.side,c?s-=p.height+u:s+=u);break;case"foot":n?(o-=e.side,s+=e.base,o-=c?a+p.width+u:a-u):(o-=e.base,s+=e.side,s+=c?a+u:a-p.height-u);break;case"far":n?o=c?u:i-p.width-u:c?(o-=e.base,s=r-p.height-u):s=u,h=!1;break;default:n?c?o-=p.width+u:o+=u:c?(o-=e.base,s+=e.side,s+=u):s-=p.height+u,h=!1}this._checkLabelOverlap(l,p,f,d,0,0,o,s,h,e.pointView.dom),this._layoutLabelRotation(l,p,o,s)}},r.prototype._checkLabelOverlap=function(t,e,i,r,n,o,s,a,l,u){var c=this._labelOverlap,p=!1;if(!l){var h=c.fit;if(isFinite(h)&&(c.inverted?s+e.width>=c.width?p=(s=c.width+h-e.width)<i+n:s<=0&&(p=(s=-h)+e.width>i-n):a+e.height>=c.height?p=(a=c.height+h-e.height)<r+o:a<=0&&(p=(a=-h)+e.height>r-o)),p){if(!isFinite(h))return t.setVis(!1),!1;c.outline&&t.setOutline(c.model)}}return t.setContrast((l||p&&c.contrast)&&u),t.trans(s,a),!0},r.prototype._clipRange=function(t,e,i,r,n,o){if(o){var a=t;t=e,e=a}var l="x"===i,u=l?this.model._xAxisObj:this.model._yAxisObj,c=u.options.reversed,p=u.getPos(l?t:e,(0,s.maxv)(u.axisMin(),r.fromValue)),h=u.getPos(l?t:e,(0,s.minv)(u.axisMax(),r.toValue));o?l?c?n.setBounds(h,-e,(0,s.absv)(h-p),e):n.setBounds(p,-e,(0,s.absv)(h-p),e):n.setBounds(0,-(0,s.maxv)(p,h),t,(0,s.absv)(h-p)):l?c?n.setBounds(h,0,(0,s.absv)(h-p),e):n.setBounds(p,0,(0,s.absv)(h-p),e):n.setBounds(0,e-(0,s.maxv)(p,h),t,(0,s.absv)(h-p))},r.prototype._setFill=function(t,e){(0,s.isObject)(e)&&e[h.FILL]?t.internalSetStyle(h.FILL,e[h.FILL]):(0,s.isString)(e)&&t.dom.classList.add(e)},r.prototype._savePrevs=function(){},r.prototype._layoutLabelRotation=function(t,e,i,r){if(!this.model.chart.isInverted()){var n=this._labelOverlap,o=this.model.pointLabel.getRotation();e||(e=t.getBBox());var s=e.width/2,a=e.height/2;this._adjustRotatedLabelPosition(t,n,e,i,r),t.setRotation(s,a,o)}},r.prototype._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,a=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==a){var l,u=e.height,c=(0,s.pickNum)(e.fit,0),p=this.model._yAxisObj.options.reversed,h=this.model.chart.isInverted(),f=o.options.position,d=this._getRotatedLabelDisplacement(a,i);if(!h&&f!==g._PointLabelPosition.INSIDE)if(g._PointLabelPosition.FAR,g._PointLabelPosition.HEAD,p?f!==g._PointLabelPosition.FAR&&f!==g._PointLabelPosition.HEAD||(d*=-1):f===g._PointLabelPosition.HEAD&&(d*=-1),n-=d,p){if((l=n+(-2*d+i.height)/2+i.height/2)>u)n-=l-u-c}else(l=n-(2*d+i.height)/2)<0&&(n=d-c);t.trans(r,n)}},r.prototype._getRotatedLabelDisplacement=function(t,e){var i=t*Math.PI/180,r=Math.abs(Math.sin(i)),n=Math.abs(Math.cos(i)),o=e.width,s=e.height;return o/2*r+s/2*n-s/2},r.POINT_CLASS="rct-point",r.DATA_FOCUS="focus",r.DATA_UNFOCUS="unfocus",r.DATA_UNHOVER="unhover",r.LEGEND_MARKER="rct-legend-item-marker",r}(v.ContentView);e.SeriesView=L;var N=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.PathElement);e.PointElement=N;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(N);e.BoxPointElement=M;var j=function(t){function e(e){return t.call(this,e,L.POINT_CLASS)||this}return i(e,t),e.prototype.savePrevs=function(){},e}(c.RcElement);e.PointElementEx=j;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(j);e.BoxPointElementEx=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.layout=function(t,e,i,r,n,o,s){this.x=t,this.y=e,this.setPath(_.SvgShapes.bar(t-this.wPoint/2,e,this.wPoint,-this.hPoint,i,r))},e.prototype.shrink=function(t,e,i,r){var n=this.point;if(!n.isNull){var o=n._vr,s=n._getDrop()*(t?-1:1);if(isNaN(s))this.hPoint*=1-o||1,this.layout(this.x,this.y,i,r,0,0,!1);else{var a=n._getSave();isNaN(a)&&n._setSave(a=this.x);var l=s<0?a*(1-o)-this.wPoint/2*o:e-(e-a)*(1-o)+this.wPoint/2*o;this.layout(l,this.y,i,r,0,0,!1)}this.setStyle("opacity",String(1-.8*this.point._vr))}},e}(M);e.BarElement=B;var D=function(t){function e(e){var i=t.call(this,e)||this;return i.add(i._topView=new c.PathElement(e)),i.add(i._frontView=new c.PathElement(e)),i.add(i._sideView=new c.PathElement(e)),i}return i(e,t),e.prototype.layout=function(t,e,i,r,n,s,a){var l=this.wPoint,u=this.hPoint,c=getComputedStyle(this._frontView.dom).fill,p=u<0?e:e-u;if(o.isIE&&(c=this.control.getIEColor(c)),this.x=t,t-=this.wPoint/2,a){var h=n;n=s,s=h}this._frontView.setPath(_.SvgShapes.rectangle(t-n,e+s,l,-u)),this._topView.setPath(_.SvgShapes.polygon(t,p,t+l,p,t+l-n,p+s,t-n,p+s)),this._topView.setStyle("fill",x.Color.interpolate(a?x.Color.BLACK:x.Color.WHITE,c,.2)),this._sideView.setPath(_.SvgShapes.polygon(t+l-n,e-u+s,t+l,e-u,t+l,e,t+l-n,e+s)),this._sideView.setStyle("fill",x.Color.interpolate(a?x.Color.WHITE:x.Color.BLACK,c,.2))},e}(R);e.Bar3DElement=D;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.savePrevs=function(){this.wSave=this.width,this.xSave=this.x},e}(f.GroupElement);e.RangeElement=I;var G=function(t){function e(){var e=t.apply(this,n([],r(arguments),!1))||this;return e._labelInfo={},e}return i(e,t),e.prototype._prepareSeries=function(t,e,i,r){this._preparePoints(t,e,this._visPoints,!!r)},e.prototype._renderSeries=function(t,e){this._pointContainer.invert(this._inverted,e),this._layoutPoints(t,e)},e.prototype._runShowEffect=function(t){t&&b.SeriesAnimation.grow(this)},e.prototype._doViewRateChanged=function(t){this._layoutPoints(this.width,this.height)},e.prototype._savePrevs=function(){this._getPointPool().forEach((function(t){return t.savePrevs()}))},e.prototype.getPointsAt=function(t,e){return[]},e}(L);e.ClusterableSeriesView=G;var F=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._labelContainer.add(r._labelLineContainer=new V(e)),r}return i(e,t),e.prototype.depthEnabled=function(){return!0},e.prototype._prepareSeries=function(e,i,r,n){n?(this._depthAngle=n.options.angle*h.DEG_RAD,this._base=(0,s.cos)(this._depthAngle)*i.depth,this._side=(0,s.sin)(this._depthAngle)*i.depth):this._depthAngle=this._base=this._side=0,t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._prepareLayoutPoints=function(t,e){},e.prototype._layoutPoints=function(t,e){var i,r=this,n=this.model,o=this._inverted,a=this._getGrowRate(),u=this._prevRate,c=n.pointLabel,p=this._labelViews(),h=this._labelLineContainer,f=n._xAxisObj,d=n._yAxisObj,_=this._yReversed,y=this._depthExt,g=n._group?n._groupDistance:n.distance,v=y?g*(o?(0,s.sin)(this._depthAngle):(0,s.cos)(this._depthAngle)):0,m=y?g*(o?(0,s.cos)(this._depthAngle):(0,s.sin)(this._depthAngle)):0,b=2*f.unitPad(),x=(0,s.pickNum)(n.options.minPointWidth,0),w=this._yLen=o?t:e,S=o?e:t,P=function(t){return d.getPos(w,t)},A=function(t){return f.getPos(S,t)},O=o?0:e,C=d.valueMin(),V=P(C),E=this._baseVal=n.getBaseValue(d),k=!isNaN(E),T=this._yBase=(0,s.pickNum)(P((0,s.maxv)(C,(0,s.pickNum)(E,V))),V),L=this._pointOff,N=p&&(0,s.assignObj)(this._labelInfo,{inverted:o,reversed:_,labelPos:n.getLabelPos(c),labelOff:n.getLabelOff(c.getOffset()),textAlign:this._labelContainer._textAlign,distX:v,distY:m,side:this._side,base:this._base});p&&h.setVis(n.pointLabel.line.visible)&&(h.internalClearStyleAndClass(),h.internalSetStyleOrClass(n.pointLabel.line._style),h.prepare(n),N.pb=new l.PathBuilder),this._prepareLayoutPoints(t,e),null===(i=this._getPointPool().getOrphans())||void 0===i||i.forEach((function(t){r._shrinkPoint(t)})),this._getPointPool().forEach((function(i,s){var l=i.point;if(i.setVis(!l.isNull)){var h=f.getUnitLen(S,l.xValue)*(1-b),d=n.getPointWidth(h,x),_=P(l.yGroup),y=T;if(l.yGroup!=l.yValue){var g=E>l.yGroup,w=l.yGroup<0,C=l.yValue<0,V=g&&w&&!C||g&&!w&&!C||!g&&w&&C||!g&&!w&&C,M=l.yGroup-l.yValue*(V?-1:1);y=P(M)}var j=(_-y)*a,R=A(l.xValue)-h/2,B=O-_;isNaN(u+i.wSave)||(d=i.wSave+(d-i.wSave)*u),R+=n.getPointPos(h)+d/2,isNaN(u+i.xSave)||(R=i.xSave+(R-i.xSave)*u),l.xPos=R+=d*L,l.yPos=B,r._layoutPoint(i,s,R-v,O-T*(1-a)-y*a+m,d,j),o&&(B=S-A(l.xValue)+h/2,R=O,l.yPos=B-=n.getPointPos(h)+d/2+d*L,l.xPos=R+=k?P(l.yGroup)*a:P(l.yGroup*a)),N&&(N.labelView=p.get(l,0))&&(N.pointView=i,N.x=R,N.y=B,N.wPoint=d,N.hPoint=j,r._layoutLabel(c,N,t,e))}}))},e.prototype._layoutLabel=function(e,i,r,n){if(t.prototype._layoutLabel.call(this,e,i,r,n),i.pb){var o=this._labelLineContainer.get(i.pointView.point),s=i.labelView;i.pb.clear(),i.inverted?i.pb.hline(i.y-i.distX,i.x+i.distY,i.below?s.tx+s.getBBox().width:s.tx):i.pb.vline(i.x-i.distX,i.y+i.distY,i.below?s.ty:s.ty+s.getBBox().height),o.setLine(i.pb.end())}},e}(G);e.BasedSeriesView=F;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._getHighValue=function(t){return t.yValue},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._pointOff=+i.options.pointOffset||0},e.prototype._doPrevRateChanged=function(t){0==t&&this._layoutPoints(this.width,this.height),this.invalidate()},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=r.chart.isInverted(),o=this._getGrowRate(),a=this._prevRate,l=r.pointLabel,u=this._labelViews(),c=r._xAxisObj,p=r._yAxisObj,h=2*c.unitPad(),f=(0,s.pickNum)(r.options.minPointWidth,0),d=n?t:e,_=n?e:t,y=n?0:e,g=this._pointOff,v=u&&(0,s.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(l),labelOff:r.getLabelOff(l.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,base:0,side:0});this._getPointPool().forEach((function(s,m){var b=s.point;if(s.setVis(!b.isNull)){var x=c.getUnitLen(_,b.xValue)*(1-h),w=r.getPointWidth(x,f),S=(p.getPos(d,i._getHighValue(b))-p.getPos(d,i._getLowValue(b)))*o,P=c.getPos(_,b.xValue)-x/2,A=y-p.getPos(d,i._getHighValue(b))*o;isNaN(a+s.wSave)||(w=s.wSave+(w-s.wSave)*a),P+=r.getPointPos(x)+w/2,isNaN(a+s.xSave)||(P=s.xSave+(P-s.xSave)*a),b.xPos=P+=w*g,b.yPos=A,i._layoutPoint(s,m,P,A,w,S),n&&(A=_-c.getPos(_,b.xValue)+x/2,P=y,b.yPos=A-=r.getPointPos(x)+w/2+w*g,b.xPos=P+=p.getPos(d,i._getHighValue(b))*o),u&&(v.pointView=s,v.hPoint=S,v.x=P,v.y=A,(v.labelView=u.get(b,0))&&(v.hPoint=S,i._layoutLabel(l,v,t,e)),(v.labelView=u.get(b,1))&&(n?v.x-=S:v.y+=S,v.hPoint=-S,i._layoutLabel(l,v,t,e)))}}))},e}(G);e.RangedSeriesView=z;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.beginHover=function(t,e){},e.prototype.setHoverRate=function(t,e,i){},e.prototype.endHover=function(t,e){},e.prototype.distance=function(t,e,i){return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(this.point.xPos-e,2)+Math.pow(this.point.yPos-i,2))-t},e}(N);e.MarkerSeriesPointView=$;var H=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._markers=r._createMarkers(r._pointContainer),r}return i(e,t),e.prototype.getHintDistance=function(){return this.model.options.hintDistance},e.prototype._getPointPool=function(){return this._markers},e.prototype.clipInvertable=function(){return!1},e.prototype.getPointsAt=function(t,e){return[]},e.prototype._adjustRotatedLabelPosition=function(t,e,i,r,n){var o=this.model.pointLabel,s=o.getRotation();if(isFinite(r)&&isFinite(n)&&0!==s){var a=this.model.chart.isInverted(),l=o.options.position,u=this._getRotatedLabelDisplacement(s,i);if(!a&&l!==g._PointLabelPosition.INSIDE)(n-=u)-(2*u+i.height)/2<0&&(n=u),t.trans(r,n)}},e.prototype._layoutLabelView=function(t,e,i,r,n,o){var s=t.getBBox();if("default"===e&&(e=this._getDefaultPos(s.width>=2*r*.9)),t.setVis(null!=e)){n-=s.width/2;var a=o;"inside"===e?a=o-s.height/2:e&&(a=o-r-s.height-i),t.trans(n,a),this._layoutLabelRotation(t,s,n,a)}},e}(L);e.MarkerSeriesView=H;var W=function(t){function e(e,i){var r=t.call(this)||this;return r.series=e,r.duration=i,r}return i(e,t),e.prototype._doUpdate=function(t){var e=this.series;return!!e&&(e._zombieRate=e._zombie.visible?t:1-t,e._refreshZombie(),!0)},e.prototype._doStop=function(){var t=this.series;t&&(t._zombie=null,t._zombieAni=null,t.invalidate(),this.series=null)},e}(u.RcAnimation),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.togglePointVisible=function(t){var e;t.yValue<0||(this._willZombie=t,t.visible||null===(e=this._labelContainer.get(t,0))||void 0===e||e.hide(250))},e.prototype.needFronting=function(){return!0},e.prototype.clipInvertable=function(){return!1},e.prototype.isPointLabelVisible=function(e){return e===this._zombie||t.prototype.isPointLabelVisible.call(this,e)},e.prototype._collectVisPoints=function(e){var i=t.prototype._collectVisPoints.call(this,e);return this._willZombie&&!this._willZombie.visible&&(i.push(this._willZombie),i=i.sort((function(t,e){return t.index-e.index}))),i},e.prototype._prepareSeries=function(t,e){var i;this._zombie&&(this._zombie=null,null===(i=this._zombieAni)||void 0===i||i.cancel(),this._zombieAni=null),this._willZombie&&(this._zombie=this._willZombie,this._willZombie=null,this._zombieAni=new W(this,300),this._zombieAni.start())},e.prototype._getPointColors=function(){return"f"},e.prototype._createPointLegendMarker=function(t,e,i){return d.RectElement.create(t,"rct-legend-item-marker",0,0,i,i,i/2)},e.prototype._preparePoint=function(t,e,i,r){this._clearHoverClasses(r),i.legendMarker()||i.setLegendMarker(this._createPointLegendMarker(t,i,this.chart()._legend.getMarkerSize())),this._setPointStyle(r,e,i);var n=getComputedStyle(r.dom);i._calcedColor=n.fill,i._calcedStroke=parseFloat(n.strokeWidth)>0?n.stroke:""},e}(L);e.WidgetSeriesView=U}(EU);var eX={},iX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(eX,"__esModule",{value:!0}),eX.ImageAnnotationView=void 0;var rX=fW,nX=HW,oX=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._imageView=new nX.ImageElement(i,!1)),r._imageView.onloadProxy=function(){r._imageView.resize(r._size.width,r._size.height)},r}return iX(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=this._size=e.getSize(i,r);this._deflatePaddings(o),this.$_setImage(this.model.options.imageUrl);var s=this._imageView.getBBox();return this._inflaePaddings(s),(0,rX.rectToSize)(s)},e.prototype._doLayout=function(e){this._imageView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.prototype.$_setImage=function(t){this._imageView.setImage(t,this._size.width,this._size.height)},e.CLASS_NAME="rct-image-annotation",e}(CU.AnnotationView);eX.ImageAnnotationView=oX;var sX={},aX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sX,"__esModule",{value:!0}),sX.ShapeAnnotationView=void 0;var lX=cI,uX=fj,cX=GB,pX=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._shapeView=new uX.PathElement(i)),r}return aX(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a,l,u=e.getSize(i,r),c=null===(o=e.chart.xAxis)||void 0===o?void 0:o.getPos(i,e.options.x1),p=null===(s=e.chart.xAxis)||void 0===s?void 0:s.getPos(i,e.options.x2),h=null===(a=e.chart.yAxis)||void 0===a?void 0:a.getPos(r,e.options.y1),f=null===(l=e.chart.yAxis)||void 0===l?void 0:l.getPos(r,e.options.y2),d=0,_=0;switch(e.getShape()){case lX._ShapeAnnotationShape.HLINE:!Number.isNaN(p)&&Number.isNaN(c)&&(_=p),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:u.height/2),this._shapeView.setPath(cX.SvgShapes.line(_,d,_+u.width,d));break;case lX._ShapeAnnotationShape.VLINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:u.width/2),!Number.isNaN(f)&&Number.isNaN(h)&&(d=r-f),this._shapeView.setPath(cX.SvgShapes.line(_,d,_,d+u.height));break;case lX._ShapeAnnotationShape.LINE:Number.isNaN(p)||(_=Number.isNaN(c)?p:c>p?u.width:0),Number.isNaN(f)||(d=Number.isNaN(h)?r-f:h<f?u.height:0);var y=c>p?_-u.width:_+u.width,g=h<f?d-u.height:d+u.height;this._shapeView.setPath(cX.SvgShapes.line(_,d,y,g));break;default:cX.SvgShapes.setShape(this._shapeView,e.getShape(),u.width/2,u.height/2)}return this._deflatePaddings(u),u},e.prototype._doLayout=function(e){this._shapeView.trans(this._paddings.left,this._paddings.top),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-shape-annotation",e}(CU.AnnotationView);sX.ShapeAnnotationView=pX;var hX={},fX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(hX,"__esModule",{value:!0}),hX.TextAnnotationView=void 0;var dX=iM,_X=fW,yX=FM,gX=uj,vX=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.addToTransform(r._textView=new gX.TextElement(i)),r._textView.anchor=gX.TextAnchor.START,r._richText=new yX.SvgRichText,r}return fX(e,t),e.prototype._doMeasure=function(t,e,i,r,n){var o=e.options,s=e.getSize(i,r),a=this._textView;o.writingMode&&this._textView.setStyle("writingMode",o.writingMode),this._textView.setStyle("textOrientation",e.getTextOrientation()),this._deflatePaddings(s),this._richText._isVertical="vertical"===o.writingMode,this._richText.setFormat(o.text),!isNaN(o.lineHeight)&&this._richText&&(this._richText.lineHeight=o.lineHeight),this._richText.build(a,i,r,null,e._domain);var l=(0,_X.rectToSize)(this._textView.getBBox());return{width:(0,dX.pickNum)(s.width,l.width),height:(0,dX.pickNum)(s.height,l.height)}},e.prototype._doLayout=function(e){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings),this._textView.trans(this._textView.tx,this._textView.ty),t.prototype._doLayout.call(this,e)},e.CLASS_NAME="rct-text-annotation",e}(CU.AnnotationView);hX.TextAnnotationView=vX;var mX={},bX={},xX={},wX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(xX,"__esModule",{value:!0}),xX.PointViewPool=void 0;var SX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wX(e,t),e.prototype.freeOrphans=function(){var t=this,e=this.getOrphans();return e&&e.forEach((function(e){e.point._vr>=1&&t.freeOrphan(e.point)})),this},e.prototype.addOrphanedPoints=function(t,e){var i=this;if(void 0===e&&(e=!0),e&&this.freeOrphans(),Array.isArray(t)){var r=this._prepareOrphans();t.forEach((function(t){var e=r.get(t);e||(e=i.find((function(e){return e.point===t})))&&i.addOrphan(t,e)}))}return this},e.prototype.free=function(e,i){e.x=e.y=NaN,t.prototype.free.call(this,e,i)},e}(uW.ElementPool);xX.PointViewPool=SX;var PX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(bX,"__esModule",{value:!0}),bX.LineSeriesView=bX.LineSeriesBaseView=bX.LineContainer=bX.LineMarkerView=void 0;var AX=iM,OX=dj,CX=uW,VX=Tj,EX=fj,kX=nM,TX=GB,LX=jI,NX=RG,MX=$W,jX=EU,RX=kU,BX=xX,DX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PX(e,t),e.prototype.getTooltipPos=function(){return{x:this.point.xPos,y:this.point.yPos}},e.prototype.shrink=function(){if(+this.getStyle("opacity")>0){var t=1-this.point._vr;TX.SvgShapes.setShape(this,this._shape,this._radius*t,this._radius*t),this.setStyle("opacity",String(.8*t))}},e.prototype.beginHover=function(t,e){this._saveRadius=this._radius},e.prototype.setHoverRate=function(t,e,i){var r=this.point,n=(+t.model.marker.options.hoverScale||1.8)-1,o=this._radius;e?isNaN(i)||(o=this._radius=this._saveRadius*(1+i*n)):o=this._radius=this._saveRadius*(1+n-(isNaN(i)?n:n*i)),TX.SvgShapes.setShape(this,t.model.getShape(r),o,o),this.index>0?this.trans(r.px2-o,r.py2-o):this.trans(r.xPos-o,r.yPos-o)},e.prototype.endHover=function(t,e){this._radius=this._saveRadius},e.prototype.distance=function(t,e,i){var r=0===this.index?this.point.xPos:this.point.px2,n=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:Math.sqrt(Math.pow(r-e,2)+Math.pow(n-i,2))-t},e.prototype.distance2=function(t,e,i,r){var n=0===this.index?this.point.xPos:this.point.px2,o=0===this.index?this.point.yPos:this.point.py2;return this.point.isNull?Number.MAX_VALUE:r?Math.abs(o-i):Math.abs(n-e)},e}(jX.MarkerSeriesPointView);bX.LineMarkerView=DX;var IX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PX(e,t),e}(jX.PointContainer);bX.LineContainer=IX;var GX=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._based=!1,r._needBelow=!1,r._rangeClips=[],r.insertFirst(r._lineContainer=new IX(e,"rct-line-series-lines")),r._lineContainer.add(r._line=new EX.PathElement(e,"rct-line-series-line")),r._markers=new BX.PointViewPool(r._pointContainer,DX),r.add(r._tester=new EX.PathElement(e)),r._tester.setFill("#ff000010"),r}return PX(e,t),e.prototype.getClipContainer=function(){return this._lineContainer},e.prototype._getPointPool=function(){return this._markers},e.prototype.needDecoreateLegend=function(){return!0},e.prototype.decoreateLegend=function(t){var e=getComputedStyle(this._line.dom),i=t._marker;if(i._line.setStyle("strokeWidth",e.strokeWidth),i._shape){var r=getComputedStyle(this.dom);i._marker.setStyles({fill:r.fill,stroke:r.stroke}),i._marker.internalSetStyles(this.model.marker._style),i._line.setStyle("strokeDasharray","")}else i._line.setStyle("strokeDasharray",e.strokeDasharray)},e.prototype._prepareSeries=function(t,e,i){e instanceof NX.LineSeries&&(this._based=e._minY<e.getBaseValue(e._yAxisObj),this._needBelow=this._based&&e.options.belowStyle,this._prepareBelow(e.chart.isPolar())),!this._simpleMode&&this.$_prepareMarkers(e,this._visPoints)},e.prototype._prepareViewRanges=function(e){t.prototype._prepareViewRanges.call(this,e),this._prepareRanges(e,e._runRanges)},e.prototype._renderSeries=function(t,e){this._lineContainer.invert(this._inverted,e),this._layoutMarkers(this._visPoints,t,e),this.model.buildLines(this._visPoints)},e.prototype._doAfterLayout=function(){this._layoutLines(this._polar)},e.prototype._runShowEffect=function(t){this._polar?t&&RX.SeriesAnimation.grow(this):t&&RX.SeriesAnimation.reveal(this,{from:function(t){var e=t.model._xAxisObj.options.reversed;return t._inverted?e?"top":"bottom":e?"right":"left"}(this)})},e.prototype._doViewRateChanged=function(t){this._prepareBelow(!!this._polar),this._layoutMarkers(this._visPoints,this.width,this.height),this._layoutLines(this._polar)},e.prototype.getPointsAt=function(t,e){return[]},e.prototype.getNearest=function(t,e){var i=this.model.marker.options.radius,r=this._markers._internalItems();if(r&&r.length>0){var n=r.reduce((function(r,n){return r.distance(i,t,e)<n.distance(i,t,e)?r:n}));return{pv:n,dist:n.distance(i,t,e)}}},e.prototype.getNearest2=function(t,e,i){var r=this.model.marker.options.radius,n=this._markers._internalItems();if(n&&n.length>0){var o=n.reduce((function(n,o){return n.distance2(r,t,e,i)<o.distance2(r,t,e,i)?n:o}));return{pv:o,dist:o.distance2(r,t,e,i)}}},e.prototype.getHintDistance=function(){return this.model.marker.options.hintDistance},e.prototype.canHover=function(t,e,i){return t<=this.model.marker.options.radius+i},e.prototype._markersPerPoint=function(){return 1},e.prototype._prepareBelow=function(t){var e,i,r=this.control,n=this._lowLine;if(this._needBelow||t)return n||(n=this._lowLine=new EX.PathElement(this.doc,"rct-line-series-line rct-line-series-line-below"),t?this._lineContainer.add(n):this._lineContainer.insertChild(n,this._line),t?this.isClip(this._innerClip)||(this._outerClip=r.clipPath(),this._innerClip=r.clipPath(),this._outerLineClip=r.clipPath(),this._innerLineClip=r.clipPath()):this.isClip(this._upperClip)||(this._upperClip=r.clipBounds(),this._lowerClip=r.clipBounds())),t?this._yReversed?(this._line.setClip(this._needBelow?this._innerLineClip:null),this._lowLine.setClip(this._outerLineClip)):(this._line.setClip(this._needBelow?this._outerLineClip:null),this._lowLine.setClip(this._innerLineClip)):(this._line.setClip(this._upperClip),n.setClip(this._lowerClip)),!0;null==n||n.setClip(),this._line.setClip(),null===(e=this._upperClip)||void 0===e||e.remove(),null===(i=this._lowerClip)||void 0===i||i.remove()},e.prototype._prepareRanges=function(t,e){var i=this._rangeClips,r=this._rangeLines;if(e){for(r||(r=this._rangeLines=new CX.ElementPool(this._lineContainer,EX.PathElement)),r.prepare(e.length);i.length<e.length;){var n=new EX.ClipRectElement(this.doc);this.control.addClip(n),i.push(n)}for(;i.length>e.length;)i.pop().remove()}else r&&(r.freeAll(),i.forEach((function(t){return t.remove()})),i.length=0)},e.prototype.$_resetClips=function(t,e,i,r){var n,o=this._yReversed,s=this._needBelow;if(this._polar){var a=this._polar,l=a.cx,u=a.cy,c=a.rd,p=a.min,h=a.max,f=a.cyclic,d=(0,kX.fixnum)((0,AX.maxv)(0,(0,AX.minv)((kX.PI_2-(0,AX.absv)(p-h))/2,.2))),_=s?1:this._getGrowRate();this._model.isConnectEnds(s,f)?(s?(this._outerClip.setPath(TX.SvgShapes.donut(l,u,c*_,i*_)),this._outerLineClip.setPath(this._outerClip.getPath())):(this._outerClip.setPath(TX.SvgShapes.circle(l,u,c*_)),this._outerLineClip.setPath(this._outerClip.getPath())),this._innerClip.setPath(TX.SvgShapes.circle(l,u,i*_)),this._innerLineClip.setPath(this._innerClip.getPath())):(s?(this._outerClip.setPath(TX.SvgShapes.sector(l,u,c*_,c*_,i/e,p,h,!0)),this._outerLineClip.setPath(f?this._outerClip.getPath():TX.SvgShapes.sector(l,u,c*_,c*_,i/e,p-d,h+d,!0))):(this._outerClip.setPath(TX.SvgShapes.circle(l,u,c*_)),this._outerLineClip.setPath(this._outerClip.getPath())),this._innerClip.setPath(TX.SvgShapes.sector(l,u,i*_,i*_,0,p,h,!0)),this._innerLineClip.setPath(f?this._innerClip.getPath():TX.SvgShapes.sector(l,u,i*_,i*_,0,p-d,h+d,!0)))}else(n=this._upperClip)&&(r?o?n.setBounds(0,-i,e,t):n.setBounds(0,-t,e,t-i):o?n.setBounds(0,0+i,t,e-i):n.setBounds(0,0,t,i)),(n=this._lowerClip)&&(this._inverted?o?n.setBounds(0,-t,e,t-i):n.setBounds(0,-i,e,i):o?n.setBounds(0,0,t,i):n.setBounds(0,0+i,t,e-i))},e.prototype.$_prepareMarkers=function(t,e){var i,r=this,n=t instanceof NX.LineSeries&&this._needBelow,o=n?t.getBaseValue(t._yAxisObj):NaN,s=[t.marker._style,null];if(null===(i=this._markers)||void 0===i||i.addOrphanedPoints(t.getDropPoints()),this._pointContainer.setVis(!this._simpleMode)){var a=this._markersPerPoint(),l=n&&t.options.belowStyle,u=e.length;this._markers.prepare(u*a,(function(i,a){var c=e[a%u];c.isNull||(i.point=c,s[1]=n&&c.yValue<o?l:null,r._setPointStyle(i,t,c,s)),i.point=c,i.index=a<u?0:1}))}else this._markers.prepare(0),this._markers.clearOrphans()},e.prototype._prepareMakrer=function(t){var e=this.model,i=t.point;t._shape=e.getShape(i),t._radius=e.getRadius(i)},e.prototype._layoutMarker=function(t,e,i,r){var n=t._radius;e&&t.internalSetStyleOrClass(e),TX.SvgShapes.setShape(t,t._shape,n,n),t.setPos(i,r),t.trans(i-=n,r-=n)},e.prototype._layoutMarkers=function(t,e,i){var r=this,n=this.model,o=n.marker,s=o._style,a=this._inverted,l=n.needClip(!1),u=this._getGrowRate(),c=o.visible,p=o.options.firstVisible,h=o.options.lastVisible,f=o.options.maxVisible,d=o.options.minVisible,_=n.pointLabel,y=_.options.align,g=_.getAlignOffset(),v=_.getOffset(),m=_.getPosition(),b=this._labelContainer._textAlign,x=this._labelViews(),w=n._xAxisObj,S=n._yAxisObj,P=this._polar=n.chart._body.getPolar(w),A=!!P,O=P||{},C=O.cx,V=O.cy,E=O.rd,k=O.start,T=O.total,L=a?e:i,N=P?T:a?i:e,M=a?0:i,j=t.length,R=S.axisMax(),B=this._yReversed,D=S instanceof LX.LinearAxis?n.getBaseValue(S):NaN,I=D>S.axisMin(),G=S.getPos(E,D);this._pointContainer.visible&&this._shrinkPoints(n),t.forEach((function(t,o){var _,O,F,z;P?(F=k+w.getPos(N,t.xValue),z=B?isNaN(t.yGroup)?I?G:E:I?G+(S.getPos(E,t.yGroup)-G)*u:E-S.getPos(E,R-t.yGroup)*u:isNaN(t.yGroup)?I?G:0:I?G+(S.getPos(E,t.yGroup)-G)*u:S.getPos(E,t.yGroup)*u,_=t.px=C+z*(0,AX.cos)(F),O=t.py=V+z*(0,AX.sin)(F),t.angle=F):(_=t.px=w.getPos(N,t.xValue),O=t.py=M-S.getPos(L,t.yGroup),a&&(_=S.getPos(L,t.yGroup),O=i-w.getPos(N,t.xValue))),t.xPos=_,t.yPos=O;var $=_,H=O,W=r._markers.get(o),U=x&&x.get(t,0);if(W&&W.setVis(!t.isNull&&(A||!l||_>=0&&_<=e&&O>=0&&O<=i))){r._prepareMakrer(W),r._layoutMarker(W,s,_,O),n._maxY,t.yGroup,n._minY,t.yGroup;var X=0==o&&null!=p?p:o==j-1&&null!=h?h:n._maxY==t.yGroup&&null!=f?f:n._minY==t.yGroup&&null!=d?d:c;if(W.setStyle("opacity",X?"1":"0"),U){U.setContrast(null).layout(b);var Y=U.getBBox(),q=W._radius;if(U.visible=!0,P){switch(m){case"inside":B?t.yValue<D?z-=v:z+=v:t.yValue<D?z+=v:z-=v;break;case"foot":B?t.yValue<D?z-=Y.height/2+v:z+=Y.height/2+v:t.yValue<D?z+=Y.height/2+v:z-=Y.height/2+v;break;default:B?t.yValue<D?z+=Y.height/2+v:z-=Y.height/2+v:t.yValue<D?z-=Y.height/2+v:z+=Y.height/2+v}_=C+z*(0,AX.cos)(F),O=V+z*(0,AX.sin)(F)-Y.height/2,r.applyAutoRotation(U,F,T,w.options.totalAngle)}else switch(m){case"inside":O-=Y.height/2+v;break;case"foot":O+=v+(c?q:0);break;default:O-=Y.height+v+(c?q:0)}switch(y){case"left":_-=Y.width+(c?q:0)+g;break;case"right":_+=(c?q:0)+g;break;default:_-=Y.width/2+g}r._checkLabelOverlap(U,Y,$,H,q,q,_,O,!1,null),r._layoutLabelRotation(U,Y,_,O)}}else U&&U.setVis(!1)}))},e.prototype._shrinkPoints=function(t){var e;null===(e=this._getPointPool().getOrphans())||void 0===e||e.forEach((function(t){t.visible&&t.shrink()}))},e.prototype._layoutLines=function(t){var e=this,i=this.model;if(this._lineContainer.setVis(i._lines.length>0)){var r=this.width,n=this.height,o=this._inverted,s=i instanceof NX.LineSeries&&this._needBelow,a=this._buildLines(t,i._lines);if(i._runRanges)this._rangeLines.forEach((function(t,s){var l=i._runRanges[s];t.setPath(a),t.internalClearStyleAndClass(),t.internalSetStyle("stroke",l.color),t.internalSetStyleOrClass(l.style),OX.Dom.setImportantStyle(t.dom.style,kX.FILL,"none"),t.setClip(e._rangeClips[s]),e._clipRange(r,n,i._runRangeValue,l,e._rangeClips[s],o)}));else{var l=this._line;l.setPath(a),l.internalClearStyleAndClass(),l.internalSetStyle("stroke",i._runColor),l.internalSetStyleOrClass(i._style),OX.Dom.setImportantStyle(l.dom.style,kX.FILL,"none")}if(s||t){var u=this._lowLine,c=i._yAxisObj,p=i.getBaseValue(c);t?this.$_resetClips(r,n/2,c.getPos(n/2,p),!0):o?this.$_resetClips(r,n,c.getPos(r,p),!0):this.$_resetClips(r,n,n-c.getPos(n,p),!1),u.setVis(s)&&(u.setPath(a),u.internalClearStyleAndClass(),u.internalSetStyle("stroke",i._runColor),u.internalSetStyleOrClass(i._style),u.internalSetStyleOrClass(i.options.belowStyle),OX.Dom.setImportantStyle(u.dom.style,kX.FILL,"none"))}}},e.prototype._buildLine=function(t,e,i,r){var n=this.model;"spline"===e?this._drawCurve(t,i,r):n instanceof NX.LineSeries&&"step"===e?this._drawStep(t,i,r,i?n.backDir():n.options.stepDir):this.$_drawLine(t,i,r)},e.prototype._buildLines=function(t,e){var i=this.model,r=i.getLineType(),n=new VX.PathBuilder;return"spline"===r?this._drawCurves(t,e,n):i instanceof NX.LineSeries&&"step"===r?this._drawSteps(e,n,i.options.stepDir):this._drawLines(e,n),n.end(t&&t.cyclic)},e.prototype.$_drawLine=function(t,e,i){if(t.length>1){var r=this._model instanceof NX.LineSeries&&this._model.options.connectNullPoints;i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)t[n].isNull&&r||i.line(t[n].px,t[n].py)}},e.prototype._drawLines=function(t,e){var i=this;t.forEach((function(t){return i.$_drawLine(t,!1,e)}))},e.prototype._drawStep=function(t,e,i,r){if(t.length>1){i.moveOrLine(e,t[0].px,t[0].py);for(var n=1;n<t.length;n++)switch(r){case"backward":i.line(t[n-1].px,t[n].py),i.line(t[n].px,t[n].py);break;case"center":i.line((t[n].px+t[n-1].px)/2,t[n-1].py),i.line((t[n].px+t[n-1].px)/2,t[n].py),n+1===t.length&&i.line(t[n].px,t[n].py);break;default:i.line(t[n].px,t[n-1].py),i.line(t[n].px,t[n].py)}}},e.prototype._drawSteps=function(t,e,i){var r=this;t.forEach((function(t){return r._drawStep(t,!1,e,i)}))},e.prototype._drawCurve=function(t,e,i){t.length>1&&(i.moveOrLine(e,t[0].px,t[0].py),i.spline(t,0,t.length-1))},e.prototype._drawCurves=function(t,e,i){var r=this;if(t){var n=t.cx,o=t.cy,s=t.rd,a=t.cyclic,l=this.model,u=l._yAxisObj,c=u instanceof LX.LinearAxis?l.getBaseValue(u):NaN,p=c>u.axisMin()?u.getPos(s,c):0,h=e[0],f=h.length,d=void 0,_=void 0;a?(i.move(h[0].px,h[0].py),i.closedSpline(h,!0)):(d=n+p*(0,AX.cos)(h[0].angle),_=o+p*(0,AX.sin)(h[0].angle),i.move(d,_),i.line(h[0].xPos,h[0].yPos),i.closedSpline(h,!1),d=n+p*(0,AX.cos)(h[f-1].angle),_=o+p*(0,AX.sin)(h[f-1].angle),i.line(d,_))}else e.forEach((function(t){return r._drawCurve(t,!1,i)}))},e.prototype._buildAreas=function(t,e,i){var r=new VX.PathBuilder;i=i||e;for(var n=0;n<t.length;n+=2){var o=t[n],s=t[n+1];this._buildLine(o,e,!1,r),this._buildLine(s,i,!0,r)}return r.end(!0)},e.prototype.setHoverStyle=function(e){t.prototype.setHoverStyle.call(this,e),e.internalImportantStylesOrClass(this.model.marker.options.hoverStyle)},e}(jX.SeriesView);bX.LineSeriesBaseView=GX;var FX=function(t){function e(i){var r=t.call(this,i,e.CLASS)||this;return r._flagView=new MX.ChartTextElement(i,"rct-line-series-flag"),r._pointContainer.add(r._flagView),r}return PX(e,t),e.prototype._legendColorProp=function(){return"stroke"},e.prototype._doLayout=function(){var e;t.prototype._doLayout.call(this);var i,r=this.model,n=r.flag,o=this._flagView,s=this.parent.parent;if(o.setVis(n.visible&&!!(i=n.label()))){o.setText(i),o.setModel(this.doc,n,n.options.icon?n.getUrl(n.options.icon):null,null),o.setContrast(null).layout("left");var a=n.options.offset,l=o.getBBox(),u=void 0,c=void 0;u=this._markers.last.x,c=this._markers.last.y;var p=void 0,h={top:["top","right","left"],right:["right","top","bottom"],bottom:["bottom","right","left"],left:["left","top","bottom"]}[p=("step"==r.options.lineType&&"forward"==r.options.stepDir)!=this._inverted?c>this._markers.get(this._markers.count-2).y?"bottom":"top":u>this._markers.get(this._markers.count-2).x?"right":"left"],f=l.width,d=l.height,_=f/2,y=d/2,g=s.width,v=s.height,m=c>d+a,b=v>c+d+a,x=u>f+a,w=g>u+f+a,S={top:m,right:w,bottom:b,left:x},P=u>_&&g-u>_?u-_:u>g/2?g-f:0,A=c>y&&v>c+y?c-y:c>v/2?v-d:0;switch(p=null!==(e=h.find((function(t){return S[t]})))&&void 0!==e?e:p){case"top":u=P,c=m?c-d-a:0;break;case"bottom":u=P,c=b?c+a:v-d;break;case"left":u=x?u-f-a:0,c=A;break;case"right":u=w?u+a:g-f,c=A}o.trans(u,c)}},e.CLASS="rct-line-series",e}(GX);bX.LineSeriesView=FX;var zX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(mX,"__esModule",{value:!0}),mX.AreaRangeSeriesView=void 0;var $X=iM,HX=dj,WX=fj,UX=bX,XX=function(t){function e(e){var i=t.call(this,e,"rct-arearange-series")||this;return i.insertFirst(i._areaContainer=new UX.LineContainer(e,"rct-arearange-series-areas")),i._areaContainer.add(i._area=new WX.PathElement(e,"rct-arearange-series-area")),i._lineContainer.add(i._lowerLine=new WX.PathElement(e,"rct-areanrange-series-line")),HX.Dom.setImportantStyle(i._lowerLine.dom.style,"fill","none"),i}return zX(e,t),e.prototype._markersPerPoint=function(){return 2},e.prototype.getSiblings=function(t){return[t,this._markers.find((function(e){return e!==t&&e.point===t.point}))]},e.prototype.getSibling=function(t){return t&&this._markers.find((function(e){return e!==t&&e.point===t.point}))},e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype._renderSeries=function(e,i){this._areaContainer.invert(this.model.chart.isInverted(),i),t.prototype._renderSeries.call(this,e,i)},e.prototype._layoutMarkers=function(e,i,r){t.prototype._layoutMarkers.call(this,e,i,r);var n=this.model,o=n.marker,s=o._style,a=o.visible,l=this._inverted,u=n._xAxisObj,c=n._yAxisObj,p=l?i:r,h=l?0:r,f=this._labelViews(),d=this._labelContainer._textAlign,_=this._polar=n.chart._body.getPolar(u),y=n.pointLabel,g=y.options.position,v=y.options.align,m=y.getAlignOffset(),b=y.getOffset();this._getGrowRate();for(var x=0,w=e.length;x<w;x++){(P=e[x]).yLow=h-c.getPos(p,P.lowValue)}var S=this._markers;for(x=0,w=e.length;x<w;x++){var P=e[x],A=S.get(w+x),O=f&&f.get(P,1),C=void 0,V=void 0,E=void 0;this._prepareMakrer(A),l?(C=P.px2=c.getPos(p,P.lowValue),V=P.py2=S.get(x).ty+A._radius):(C=P.px2=P.xPos,V=P.py2=P.yLow);var k=C,T=V;if(A&&A.setVis(!P.isNull&&C>=0&&C<=i&&V>=0&&V<=r)){if(this._layoutMarker(A,s,C,V),A.setStyle("opacity",a||0==x&&!0===o.options.firstVisible||x===w-1&&!0===o.options.lastVisible?"1":"0"),O){O.setContrast(null).layout(d).setVis(!0);var L=O.getBBox(),N=A._radius;if(_){switch(g){case"inside":V-=b;break;case"foot":V-=L.height/2+b;break;default:V+=L.height+b}C=_.cx+V*(0,$X.cos)(E),V=_.cy+V*(0,$X.sin)(E)-L.height/2,this.applyAutoRotation(O,E,_.total,u.options.totalAngle)}else switch(g){case"inside":V-=L.height/2+b;break;case"foot":V+=b+(a?N:0);break;default:V-=L.height+b+(a?N:0)}switch(v){case"left":C-=L.width+(a?N:0)+m;break;case"right":C+=(a?N:0)+m;break;default:C-=L.width/2+m}this._checkLabelOverlap(O,L,k,T,N,N,C,V,!1,null),this._layoutLabelRotation(O,L)}}else O&&O.setVis(!1)}},e.prototype._layoutLines=function(e){t.prototype._layoutLines.call(this,e);var i=this._area,r=this.model;if(this._areaContainer.setVis(r._lines.length>0)){var n=this._buildAreas(r._lines,r.getLineType());i.setPath(n),i.unsetData("polar"),i.setBoolData("simple",this._simpleMode),i.internalClearStyleAndClass(),r._runColor&&i.setFill(r._runColor),this._setFill(i,r._style),r.options.areaStyle&&i.internalSetStyleOrClass(r.options.areaStyle)}},e}(UX.LineSeriesBaseView);mX.AreaRangeSeriesView=XX;var YX={},qX=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ZX=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},KX=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(YX,"__esModule",{value:!0}),YX.AreaSeriesView=void 0;var JX=GB,QX=iM,tY=dj,eY=uW,iY=Tj,rY=fj,nY=nM,oY=jI,sY=bX,aY=function(t){function e(e,i){var r=t.call(this,e,i||"rct-area-series")||this;return r._rangeAreaClips=[],r.insertFirst(r._areaContainer=new sY.LineContainer(e,"rct-area-series-areas")),r._areaContainer.insertFirst(r._area=new rY.PathElement(e,"rct-area-series-area")),r}return qX(e,t),e.prototype.decoreateLegend=function(e){t.prototype.decoreateLegend.call(this,e);var i=getComputedStyle(this._area.dom);e._marker._area.setStroke("none"),e._marker._area.setFill(i.fill),e._marker._area.setStyle("fillOpacity",i.fillOpacity)},e.prototype.getClipContainer2=function(){return this._areaContainer},e.prototype._prepareBelow=function(e){var i=this._area,r=this._lowArea;if(t.prototype._prepareBelow.call(this,e))return r||this._areaContainer.add(r=this._lowArea=new rY.PathElement(this.doc,"rct-area-series-area")),e?this._yReversed?(i.setClip(this._innerClip),r.setClip(this._outerClip)):(i.setClip(this._outerClip),r.setClip(this._innerClip)):(i.setClip(this._upperClip),r.setClip(this._lowerClip)),!0;null==r||r.setClip(),i.setClip()},e.prototype._prepareRanges=function(e,i){t.prototype._prepareRanges.call(this,e,i);var r=this.doc,n=this._rangeAreaClips,o=this._rangeAreas;if(i){o||(o=this._rangeAreas=new eY.ElementPool(this._areaContainer,rY.PathElement,"rct-area-series-area")),o.prepare(i.length);for(var s=0;s<(0,QX.minv)(i.length,n.length);s++)this.isClip(n[s])||(n[s]=this.control.addClip(new rY.ClipRectElement(r)));for(;n.length<i.length;)n.push(this.control.addClip(new rY.ClipRectElement(r)));for(;n.length>i.length;)n.pop().remove()}else o&&(o.freeAll(),n.forEach((function(t){return t.remove()})),n.length=0)},e.prototype._renderSeries=function(e,i){t.prototype._renderSeries.call(this,e,i),this.model.prepareAreas(),this._areaContainer.invert(this._inverted,i)},e.prototype._layoutMarkers=function(e,i,r){t.prototype._layoutMarkers.call(this,e,i,r);for(var n=this._inverted,o=this.model._yAxisObj,s=n?i:r,a=n?0:r,l=0,u=e.length;l<u;l++){var c=e[l];c.isNull?c.yLow=NaN:c.yLow=a-o.getPos(s,c.yGroup-c.yValue)}this._polar&&this.$_layoutPolar(this._area,this._lowArea,this._visPoints)},e.prototype._doAfterLayout=function(){var e;null===(e=this.model._group)||void 0===e||e.prepareLines(this.model),t.prototype._doAfterLayout.call(this),this._polar||this.$_layoutArea(this._area)},e.prototype.$_layoutArea=function(t){var e=this,i=this.model,r=i.options;if(this._areaContainer.setVis(i._areas.length>0)){var n=this.width,o=this.height,s=i.chart.isInverted(),a=this._needBelow?this._lowArea:void 0,l=this._buildAreas(i._areas,i.getLineType());i._runRanges?this._rangeAreas.forEach((function(t,r){var a=i._runRanges[r];t.setBoolData("simple",e._simpleMode),t.setPath(l),t.internalClearStyleAndClass(),t.setFill(a.color),e._setFill(t,a.style),a.areaStyle&&t.internalSetStyleOrClass(a.areaStyle),t.setClip(e._rangeAreaClips[r]),e._clipRange(n,o,i._runRangeValue,a,e._rangeAreaClips[r],s)})):(t.setPath(l),t.unsetData("polar"),t.setBoolData("simple",this._simpleMode),t.internalClearStyleAndClass(),i._runColor&&t.internalSetStyle(nY.FILL,i._runColor),this._setFill(t,r.style),i.options.areaStyle&&t.internalSetStyleOrClass(r.areaStyle)),a&&(a.setBoolData("simple",this._simpleMode),a.setPath(l),a.internalClearStyleAndClass(),i._runColor&&a.internalSetStyle(nY.FILL,i._runColor),r.areaStyle&&a.internalSetStyleOrClass(r.areaStyle),this._setFill(a,i.options.belowStyle),r.belowAreaStyle&&a.internalSetStyleOrClass(r.belowAreaStyle))}},e.prototype.setCircular=function(t){this._circular=t},e.prototype.$_layoutPolar=function(t,e,i){var r=this.model,n=r._group,o=r._xAxisObj,s=r._yAxisObj,a=this._yReversed,l=s instanceof oY.LinearAxis?r.getBaseValue(s):NaN,u=this._polar,c=u.cx,p=u.cy,h=u.rd,f=u.cyclic,d=new iY.PathBuilder,_=i.length;if(!n||"stack"!==n.options.layout&&"fill"!==n.options.layout){var y=l>s.axisMin(),g=y?s.getPos(h,l):0,v=r.chart._body.options.circular,m=!1,b=!1,x=void 0,w=void 0,S=void 0,P=void 0;if("spline"===r.options.lineType)this._drawCurves(this._polar,r.buildLines(i),d);else{f?d.move(i[0].xPos,i[0].yPos):(x=c+g*(0,QX.cos)(i[0].angle),w=p+g*(0,QX.sin)(i[0].angle),d.move(x,w),d.line(i[0].xPos,i[0].yPos));for(L=1;L<_;L++)d.line(i[L].xPos,i[L].yPos);f||(x=c+g*(0,QX.cos)(i[_-1].angle),w=p+g*(0,QX.sin)(i[_-1].angle),d.line(x,w))}var A=i.map((function(t){return t.angle})),O=this._polar.min=QX.minv.apply(void 0,KX([],ZX(A),!1)),C=this._polar.max=QX.maxv.apply(void 0,KX([],ZX(A),!1)),V=(new iY.PathBuilder).push(d.end());if(y)f?d.circle(c,p,g):a&&d.push.apply(d,KX([],ZX(JX.SvgShapes.arc(c,p,g,g,O,C,!0)),!1)),S=d.end(),m=!0,f?V.circle(c,p,g):V.push.apply(V,KX([],ZX(JX.SvgShapes.arc(c,p,g,g,O,C,!0)),!1)),P=V.end(),b=!0;else if(a){var E=o.getStartAngle(),k=o.getTotalAngle(),T=o._ticks;d.push("Z"),f?v?d.circle(c,p,h):d.polygon.apply(d,KX([],ZX(T.map((function(t){return console.log(t.value,t.pos),{x:c+(0,QX.cos)(E+t.pos/h*k/nY.PI_2)*h,y:p+(0,QX.sin)(E+t.pos/h*k/nY.PI_2)*h}}))),!1)):v?d.push.apply(d,KX([],ZX(JX.SvgShapes.sector(c,p,h,h,0,O,C,!0)),!1)):d.polygon.apply(d,KX([{x:c,y:p}],ZX(T.map((function(t){return{x:c+(0,QX.cos)(E+t.pos/h*k/nY.PI_2)*h,y:p+(0,QX.sin)(E+t.pos/h*k/nY.PI_2)*h}}),{x:c,y:p})),!1)),S=d.end(!0),m=!0}else S=d.end();t.setPath(S),t.setAttr("fill-rule",m?"evenodd":""),e&&(e.setPath(P||""),e.setAttr("fill-rule",b?"evenodd":""))}else{d.move((0,QX.pickNum)(i[0].xPos,c),(0,QX.pickNum)(i[0].yLow,p)),d.line((0,QX.pickNum)(i[0].xPos,c),(0,QX.pickNum)(i[0].yPos,p));for(var L=1;L<i.length;L++)d.line((0,QX.pickNum)(i[L].xPos,c),(0,QX.pickNum)(i[L].yPos,p));d.line((0,QX.pickNum)(i[i.length-1].xPos,c),(0,QX.pickNum)(i[i.length-1].yLow,p));for(var L=i.length-1;L>=0;L--)d.line((0,QX.pickNum)(i[L].xPos,c),(0,QX.pickNum)(i[L].yLow,p));t.setPath(d.end())}if(t.setBoolData("polar",!0),t.clearStyleAndClass(),t.setFill(r._runColor),t.addStyleOrClass(r._style),tY.Dom.setImportantStyle(t.dom.style,nY.STROKE,"none"),e&&(e.setBoolData("polar",!0),e.clearStyleAndClass(),e.setFill(r._runColor),e.addStyleOrClass(r._style),e.internalSetStyleOrClass(r.options.belowStyle),tY.Dom.setImportantStyle(e.dom.style,nY.STROKE,"none")),r._xAxisObj.isArced()){this.isClip(this._arcClip)||(this._arcClip=this.control.addClip(new rY.ClipPathElement(this.doc)));var N=JX.SvgShapes.arc(c,p,h,h,u.start,u.start+u.total,!0);N.push("L",c,p),this._arcClip.setPath(N),this._areaContainer.setClip(this._arcClip)}else this._areaContainer.setClip()},e}(sY.LineSeriesBaseView);YX.AreaSeriesView=aY;var lY={},uY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(lY,"__esModule",{value:!0}),lY.BarRangeSeriesView=void 0;var cY=iM,pY=EU,hY=xX,fY=function(t){function e(e){var i=t.call(this,e,"rct-barrange-series")||this;return i._bars=new hY.PointViewPool(i._pointContainer,pY.BarElement),i}return uY(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,cY.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r+o,this._rd,this._rd,0,0,this._inverted)},e}(pY.RangedSeriesView);lY.BarRangeSeriesView=fY;var dY={},_Y=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yY=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},gY=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(dY,"__esModule",{value:!0}),dY.BarSeriesView=dY.BarSeriesViewBase=void 0;var vY=iM,mY=EU,bY=jI,xY=xX,wY=function(t){function e(e){return t.call(this,e,mY.SeriesView.POINT_CLASS)||this}return _Y(e,t),e.prototype.savePrevs=function(){},e}(SU.SectorElement),SY=function(t){function e(){var e=t.apply(this,gY([],yY(arguments),!1))||this;return e._labelInfo={},e}return _Y(e,t),e.prototype._getPointPool=function(){return this.chart().isPolar()?this._sectors:this._bars},e.prototype._prepareSeries=function(e,i,r,n){this._polar=r,t.prototype._prepareSeries.call(this,e,i,r,n)},e.prototype._preparePoints=function(t,e,i,r){this._polar?this.$_parepareSectors(t,e,this._visPoints):this.$_parepareBars(t,e,this._visPoints,r)},e.prototype._setPointStyle=function(e,i,r){t.prototype._setPointStyle.call(this,e,i,r),r.yValue<i.getBaseValue(i._yAxisObj)&&i.options.belowStyle&&e.addStyleOrClass(i.options.belowStyle)},e.prototype._layoutPoints=function(e,i){this._polar?this.$_layoutSectors():t.prototype._layoutPoints.call(this,e,i)},e.prototype.$_parepareBars=function(t,e,i,r){var n,o=this;this._polar?this._bars||(this._bars=this._createBarPool(this._pointContainer,!1)):(r!=this._deep&&this._bars&&(this._bars.prepare(0),this._bars.clearOrphans(),this._bars=null),this._bars||(this._bars=this._createBarPool(this._pointContainer,this._deep=r))),null===(n=this._bars)||void 0===n||n.addOrphanedPoints(e.getDropPoints()),this._bars.prepare(i.length,(function(t,r){var n=t.point=i[r];o._setPointStyle(t,e,n)}))},e.prototype.$_parepareSectors=function(t,e,i){var r=this;this._sectors||(this._sectors=new xY.PointViewPool(this._pointContainer,wY)),this._sectors.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutSectors=function(){var t,e,i,r,n,o=this,s=this.model,a=this._getGrowRate(),l=s.pointLabel,u=this._labelViews(),c=s.chart._body,p=s._xAxisObj,h=s._yAxisObj,f=h.options.reversed,d=2*p.unitPad(),_=c.getPolar(p),y=_.cx,g=_.cy,v=_.rd,m=h instanceof bY.LinearAxis?s.getBaseValue(h):NaN,b=m>h.axisMin(),x=h.getPos(v,m),w=this._pointOff,S=p.getTotalAngle();u&&(t=this._labelInfo,e=s.getLabelPos(l),i=s.getLabelOff(l.getOffset()),r=this._labelContainer._textAlign),this._sectors.forEach((function(l,c){var P=l.point;if(l.setVis(!P.isNull)){var A=h.getPos(v,P.yGroup)*a,O=p.getUnitLen(S,P.xValue)*(1-d),C=s.getPointWidth(O,0),V=_.start+p.getPos(S,P.xValue)-O/2,E=void 0,k=void 0;if(V+=C*w,V+=s.getPointPos(O)+C/2,f?b?(E=x+(h.getPos(v,P.yGroup)-x)*a,k=x):(E=v,k=h.getPos(v,P.yGroup*a)):b?(E=x+(h.getPos(v,P.yGroup)-x)*a,k=x):(E=A,k=0),l.setSector({cx:y,cy:g,rx:E,ry:E,innerRadius:k/E,start:V-C/2,angle:C,clockwise:!0}),V=l.start+l.angle/2,P.xPos=y+l.rx*(0,vY.cos)(V),P.yPos=g+l.ry*(0,vY.sin)(V),u&&(n=t.labelView=u.get(P,0))){n.layout(r);var T,L=n.getBBox(),N=L.width,M=L.height,j=l.ry,R=l.innerRadius*v,B=void 0;B=f?b?P.yValue<m?"outside"===e?j+M/2+i:"head"===e?j-M/2-i:"foot"===e?x+M/2+i:j-(j-x)/2+i:"outside"===e?j-M/2-i:"head"===e?(0,vY.minv)(x,j+M/2+i):"foot"===e?x-M/2-i:x-(x-j)/2-i:"outside"===e?R-M/2-i:"head"===e?(0,vY.minv)(v,R+M/2+i):"foot"===e?v-M/2-i:v-(v-R)/2-i:b?P.yValue<m?"outside"===e?j-M/2-i:"head"===e?j+M/2+i:"foot"===e?x-M/2-i:x-(x-j)/2-i:"outside"===e?j+M/2+i:"head"===e?j-M/2-i:"foot"===e?x+M/2+i:j-(j-x)/2+i:"outside"===e?j+M/2+i:"head"===e?j-M/2-i:.7*j+i,T=g+B*(0,vY.sin)(V),B=y+B*(0,vY.cos)(V),"outside"!==e&&n.setContrast(l.dom),o.applyAutoRotation(n,V,_.total,p.options.totalAngle),n.trans(B-N/2,T-M/2)}}}))},e}(mY.BasedSeriesView);dY.BarSeriesViewBase=SY;var PY=function(t){function e(e,i){return t.call(this,e,null!=i?i:"rct-bar-series")||this}return _Y(e,t),e.prototype._createBarPool=function(t,e){return e&&this._side>0?new xY.PointViewPool(t,mY.Bar3DElement):new xY.PointViewPool(t,mY.BarElement)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n);var o=i.options;this._rdTop=+o.topRadius||0,this._rdBottom=+o.bottomRadius||0},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n*(0,vY.pickNum)(t.point.width,1),t.hPoint=o,t.layout(i,r,this._rdTop,this._rdBottom,this._base,this._side,this._inverted)},e.prototype._shrinkPoint=function(t){if(t instanceof mY.BarElement){var e=this.model._xAxisObj;t.shrink(e.options.reversed,e._vlen,this._rdTop,this._rdBottom)}},e}(SY);dY.BarSeriesView=PY;var AY={},OY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(AY,"__esModule",{value:!0}),AY.BellCurveSeriesView=void 0;var CY=function(t){function e(e){return t.call(this,e,"rct-bellcurve-series")||this}return OY(e,t),e}(YX.AreaSeriesView);AY.BellCurveSeriesView=CY;var VY={},EY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(VY,"__esModule",{value:!0}),VY.BoxPlotSeriesView=void 0;var kY=QG,TY=IB,LY=xX,NY=EU,MY=function(t){function e(e){return t.call(this,e,NY.SeriesView.POINT_CLASS+" rct-boxplot-point")||this}return EY(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.minValue,n=t/2,o=0+e-e*(i.lowValue-i.minValue)/r,s=0+e-e*(i.highValue-i.minValue)/r,a=e*(i.highValue-i.lowValue)/r;i.color&&this._box.setFill(i.color),this.x=this.tx+n,this._stemUp.setVLine(n,0,s),this._stemDown.setVLine(n,o,e),this._max.setHLine(0,t/4,3*t/4),this._min.setHLine(0+e,t/4,3*t/4),this._box.setBox(0,s,t,a),this._mid.setHLine(0+e-e*(i.midValue-i.minValue)/r,0,t)},e.prototype._doInitChildren=function(t){this.add(this._stemUp=new kY.LineElement(t,"rct-boxplot-point-stem")),this.add(this._stemDown=new kY.LineElement(t,"rct-boxplot-point-stem")),this.add(this._box=new TY.RectElement(t,"rct-boxplot-point-box")),this.add(this._mid=new kY.LineElement(t,"rct-boxplot-point-mid")),this.add(this._min=new kY.LineElement(t,"rct-boxplot-point-min")),this.add(this._max=new kY.LineElement(t,"rct-boxplot-point-max"))},e}(NY.RangeElement),jY=function(t){function e(e){var i=t.call(this,e,"rct-boxplot-series")||this;return i._boxes=new LY.PointViewPool(i._pointContainer,MY),i}return EY(e,t),e.prototype._getPointPool=function(){return this._boxes},e.prototype._getLowValue=function(t){return t.minValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._boxes.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(NY.RangedSeriesView);VY.BoxPlotSeriesView=jY;var RY={},BY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(RY,"__esModule",{value:!0}),RY.BubbleSeriesView=RY.BubbleSeriesPointView=void 0;var DY=GB,IY=iM,GY=EU,FY=kU,zY=xX,$Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return BY(e,t),e}(GY.MarkerSeriesPointView);RY.BubbleSeriesPointView=$Y;var HY=function(t){function e(e){return t.call(this,e,"rct-bubble-series")||this}return BY(e,t),e.prototype._createMarkers=function(t){return new zY.PointViewPool(t,$Y)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&FY.SeriesAnimation.grow(this)},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_prepareMarkers=function(t,e){var i=this;this._markers.addOrphanedPoints(t.getDropPoints()),this._markers.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return t?"outside":"inside"},e.prototype.$_layoutMarkers=function(t,e){var i,r,n=this,o=this.model,s=o.options,a=this._inverted,l=o.needClip(!1),u=this._getGrowRate(),c=+s.rotation||0,p=o.pointLabel,h=p.options.position,f=p.getOffset(),d=this._labelContainer._textAlign,_=this._labelViews(),y=o._xAxisObj,g=o._yAxisObj,v=this._polar=o.chart._body.getPolar(y),m=a?t:e,b=a?e:t,x=(o._xAxisObj._vlen<o._yAxisObj._vlen?o._xAxisObj:o._yAxisObj)._vlen,w=o.getPixelMinMax(x),S=w.min,P=w.max,A=a?0:e,O=DY.SvgShapes.getDrawer(s.shape);null===(i=this._markers.getOrphans())||void 0===i||i.forEach((function(t){t.setPath(O(t._radius*(1-t.point._vr))),t.setStyle("opacity",String(1-t.point._vr))})),this._markers.forEach((function(i,s){var p=i.point,x=_&&(r=_.get(p,0));if(i.setVis(!p.isNull&&!isNaN(p.zValue))){var w=i._radius=o.getRadius(p.zValue,S,P),C=w*u*(0,IY.pickNum)(p._vr,1),V=void 0,E=void 0;if(v){var k=v.start+y.getPos(b,p.xValue),T=g.getPos(v.rd,p.yValue);V=v.cx+T*(0,IY.cos)(k),E=v.cy+T*(0,IY.sin)(k)}else V=y.getPos(b,p.xValue),E=A-g.getPos(m,p.yValue),a&&(V=g.getPos(m,p.yValue),E=e-y.getPos(b,p.xValue));p.xPos=V,p.yPos=E,i.setVis(!l||V>=0&&V<=t&&E>=0&&E<=e)?(i.setPath(O(C)).trans(V,E).rotate(c),x&&(r.setContrast(i.dom).layout(d),n._layoutLabelView(r,h,f,w,V,E))):x&&x.setVis(!1)}else x&&x.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=i.reduce((function(i,r){return i.distance(i._radius,t,e)<r.distance(r._radius,t,e)?i:r}));return{pv:r,dist:r.distance(r._radius,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=e._radius+i},e}(GY.MarkerSeriesView);RY.BubbleSeriesView=HY;var WY={},UY=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(WY,"__esModule",{value:!0}),WY.CandlestickSeriesView=void 0;var XY=iM,YY=QG,qY=IB,ZY=xX,KY=EU,JY=function(t){function e(e){return t.call(this,e,KY.SeriesView.POINT_CLASS)||this}return UY(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=0+e-e*(0===r?1:((0,XY.minv)(i.openValue,i.closeValue)-i.lowValue)/r),o=0+e-e*(0===r?1:((0,XY.maxv)(i.openValue,i.closeValue)-i.lowValue)/r),s=(0,XY.minv)(o,n),a=(0,XY.maxv)(1,(0,XY.absv)(n-o)),l=i.close<i.open;this.x=this.tx+0,this._wickUpper.setVLine(0,0,o),this._wickLower.setVLine(0,n,e),this._body.setBox(-t/2,s,t,a),this.setBoolData("decline",l)},e.prototype._doInitChildren=function(t){this.add(this._wickUpper=new YY.LineElement(t,"rct-candlestick-point-wick")),this.add(this._wickLower=new YY.LineElement(t,"rct-candlestick-point-wick")),this.add(this._body=new qY.RectElement(t))},e}(KY.RangeElement),QY=function(t){function e(e){var i=t.call(this,e,"rct-candlestick-series")||this;return i._sticks=new ZY.PointViewPool(i._pointContainer,JY),i}return UY(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._sticks.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._setPointColor=function(t,e){t._body.setColor(e)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r),t.layout(n,o)},e}(KY.RangedSeriesView);WY.CandlestickSeriesView=QY;var tq={},eq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tq,"__esModule",{value:!0}),tq.CircleBarSeriesView=void 0;var iq=Tj,rq=xX,nq=dY,oq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eq(e,t),e.prototype.layout=function(t,e,i){var r=new iq.PathBuilder;r.circle(t,e,i),this.setPath(r.end())},e}(EU.PointElement),sq=function(t){function e(e){return t.call(this,e,"rct-circlebar-series")||this}return eq(e,t),e.prototype._createBarPool=function(t){return new rq.PointViewPool(t,oq)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.layout(i,r-o/2,o/2-1)},e}(nq.BarSeriesViewBase);tq.CircleBarSeriesView=sq;var aq={},lq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(aq,"__esModule",{value:!0}),aq.DumbbellSeriesView=void 0;var uq=fj,cq=QG,pq=GB,hq=xX,fq=EU,dq=function(t){function e(e){var i=t.call(this,e,fq.SeriesView.POINT_CLASS)||this;return i.add(i._line=new cq.LineElement(e,"rct-dumbbell-point-bar")),i.add(i._hmarker=new uq.PathElement(e,"rct-dumbbell-point-marker")),i.add(i._lmarker=new uq.PathElement(e,"rct-dumbbell-point-marker")),i}return lq(e,t),e.prototype.layout=function(t,e,i,r){var n=this._hmarker,o=this._lmarker,s=this.point,a=s.radius,l=s.lowRadius,u=i/2;t._style&&n.setStyleOrClass(t._style),t._style&&o.setStyleOrClass(t._style),e._style&&o.internalSetStyleOrClass(e._style);var c=t.getMarkerStyle(s);c&&n.internalSetStyleOrClass(c),(c=e.getMarkerStyle(s))&&o.internalSetStyleOrClass(c),n.setStyle("opacity",t.visible?"1":"0"),o.setStyle("opacity",e.visible?"1":"0"),this.x=this.tx+u,this._line.setVLine(u,0,r),pq.SvgShapes.setShape(n,s.shape,a,a),pq.SvgShapes.setShape(o,s.lowShape,l,l),n.trans(u-a,0-a),o.trans(u-l,r-a)},e}(fq.RangeElement),_q=function(t){function e(e){var i=t.call(this,e,"rct-dumbbell-series")||this;return i._bars=new hq.PointViewPool(i._pointContainer,dq),i}return lq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(this.model.marker,this.model.lowMarker,n,o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._hmarker.setFill(e),t._lmarker.setFill(e)},e}(fq.RangedSeriesView);aq.DumbbellSeriesView=_q;var yq={},gq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(yq,"__esModule",{value:!0}),yq.EqualizerSeriesView=void 0;var vq=uW,mq=fj,bq=GB,xq=xX,wq=EU,Sq=function(t){function e(e){var i=t.call(this,e,wq.SeriesView.POINT_CLASS)||this;return i._segments=new vq.ElementPool(i,mq.PathElement),i._decimal=0,i.add(i._back=new mq.PathElement(e)),i._back.setTransparent(!0),i}return gq(e,t),e.prototype.prepareSegments=function(t,e,i,r){this._decimal=i,this._segments.prepare(Math.round(e)).forEach((function(t,e){}))},e.prototype.layout=function(t,e,i){var r=this,n=this.wPoint,o=this.hPoint,s=o<0?Math.max:Math.min;e-=n/2,o<0&&(t=t.map((function(t){return-t}))),this._back.setPath(bq.SvgShapes.rectangle(e,i,n,-o)),this._segments.forEach((function(a,l,u){l===u-1&&r._decimal>0?a.setPath(bq.SvgShapes.rectangle(e,i-t[2*l],n,o<0?s(1,r._decimal):s(-1,-r._decimal))):a.setPath(bq.SvgShapes.rectangle(e,i-t[2*l],n,s(-1,t[2*l]-t[2*l+1])))}))},e.prototype.savePrevs=function(){this.wSave=this.wPoint,this.xSave=this.x},e}(CW.GroupElement),Pq=function(t){function e(e){var i=t.call(this,e,"rct-equalizer-series")||this;return i._bars=new xq.PointViewPool(i._pointContainer,Sq),i}return gq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(e,i)},e.prototype._shrinkPoint=function(t){},e.prototype._layoutPoints=function(e,i){var r=this.model._yAxisObj.prev(this._inverted?e:i)*this._getGrowRate();this.$_buildSegments(this.model,r),t.prototype._layoutPoints.call(this,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){var s=this._prevRate;isNaN(s+t.wSave)||(n=t.wSave+(n-t.wSave)*s),isNaN(s+t.xSave)||(i=t.xSave+(i-t.xSave)*s),t.wPoint=n,t.hPoint=o,t.layout(this._pts,i,r)},e.prototype.$_parepareBars=function(t,e){var i=this;this._bars.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype.$_buildSegments=function(t,e){var i,r,n=t.options,o=t._yAxisObj.axisMax(),s=n.segmented,a=n.segmentGap||0,l=this._pts=[],u=0,c=t._yAxisObj,p=c.axisMin(),h=t.getBaseValue(c)||0,f=c.getPos(c.options.reversed?0:e,h);for(r=n.maxCount>0?n.maxCount:Math.round(e/(t.getSegmentSize(e)+a/2)),i=(e-a*(r-1))/r;l.length<2*r;)l.push(u,u+i),u+=i+a;l[l.length-1]=e;var d=l.length/2;this._bars.forEach((function(t){var r=t.point;if(t.setVis(!r.isNull)){for(var a=r.yValue>=h?(e-f)/e*(r.yValue-h)/(o-h):f/e*(h-r.yValue)/(h-p),u=-1,c=0,_=0;_<d-1;_++)if(a>=l[2*_]/e&&a<l[2*(_+1)]/e){u=_+1,c=!s&&a<l[2*_+1]/e?a*e-l[2*_]:i;break}u<0&&(u=d,c=i),0===a&&(u=0),t.prepareSegments(d,u,c,n.backStyle)}}))},e}(wq.BasedSeriesView);yq.EqualizerSeriesView=Pq;var Aq={},Oq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Aq,"__esModule",{value:!0}),Aq.ErrorBarSeriesView=void 0;var Cq=QG,Vq=IB,Eq=xX,kq=EU,Tq=function(t){function e(e){return t.call(this,e,kq.SeriesView.POINT_CLASS)||this}return Oq(e,t),e.prototype._doInitChildren=function(t){this.add(this._stem=new Cq.LineElement(t)),this.add(this._whiskerUp=new Cq.LineElement(t)),this.add(this._whiskerDown=new Cq.LineElement(t)),this.add(this._back=new Vq.RectElement(t,"rct-errorbar-point-back")),this._back.setTransparent(!1)},e.prototype.layout=function(t,e){var i=t/2;this.x=this.tx+i,this._stem.setVLine(i,0,e),this._whiskerUp.setHLine(0,0,t),this._whiskerDown.setHLine(e,0,t),this._back.setBox(0,0,t,e)},e}(kq.RangeElement),Lq=function(t){function e(e){var i=t.call(this,e,"rct-errorbar-series")||this;return i._bars=new Eq.PointViewPool(i._pointContainer,Tq),i}return Oq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i-n/2,r),t.layout(n,o)},e}(kq.RangedSeriesView);Aq.ErrorBarSeriesView=Lq;var Nq={},Mq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Nq,"__esModule",{value:!0}),Nq.FunnelSeriesView=void 0;var jq=iM,Rq=Tj,Bq=nM,Dq=xX,Iq=EU,Gq=kU,Fq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mq(e,t),e}(Iq.PointElement),zq=function(t){function e(e){var i=t.call(this,e,"rct-funnel-series")||this;return i._segments=new Dq.PointViewPool(i._pointContainer,Fq),i.add(i._lineContainer=new Iq.PointLabelLineContainer(e)),i}return Mq(e,t),e.prototype._getPointPool=function(){return this._segments},e.prototype.getClipContainer=function(){return null},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i),this.$_prepareSegments(e,i,this._visPoints),this._lineContainer.prepare(i)},e.prototype._renderSeries=function(t,e){this.$_calcRates(this._visPoints),this.$_layoutSegments(t,e)},e.prototype._runShowEffect=function(t){t&&Gq.SeriesAnimation.reveal(this,{from:this.model.options.reversed?"bottom":"top"})},e.prototype._refreshZombie=function(){this._renderSeries(this.width,this.height)},e.prototype._animationStarted=function(e){t.prototype._animationStarted.call(this,e),this._lineContainer.setVis(this._labelContainer.visible)},e.prototype.$_prepareSegments=function(t,e,i){var r=this;this._segments.prepare(i.length,(function(n,o){var s=n.point=i[o];r._preparePoint(t,e,s,n)}))},e.prototype.$_calcRates=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=0,o=0;if(t.forEach((function(t){n+=t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})),r>1||r>0&&!e)if(1==r&&t[0]._isDeleted())(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr;else if(1===r&&t[0]._vr<1){(a=t[0]).yRate=100,a.yPos=0,a.height=a._vr}else{for(var s=0;s<r-1;s++){var a=t[s],l=(0,Bq.fixnum)(a.yValue*(a===e?i:a._isDeleted()?a._vr:1)/n)||0;a.yRate=100*l,a.yPos=o,a.height=l,o+=l}t[s].yPos=o,t[s].height=1-o}else if(1==r){a=t[0];o=1-(l=(0,Bq.fixnum)(i)),a.yRate=100*l,a.yPos=o,a.height=l,a.yPos=o,a.height=1-o}},e.prototype.$_layoutSegments=function(t,e){var i,r,n=this,o=function(t){return _?x+(O-x)*(S-t)/(S-C):x+(O-x)*(t-w)/(C-w)},s=this.model,a=this._labelViews(),l=s.pointLabel,u="inside"===s.getLabelPos(l),c=l.getOffset(),p=l.getDistance(),h=l.getAlign(),f=null==a?void 0:a.textAlign(),d=this._lineContainer.setVis(l.connector.visible)?this._lineContainer:null,_=s.options.reversed,y=l.options.opposite,g=s.getSize(t,e),v=s.getNeckSize(g.width,g.height),m=new Rq.PathBuilder,b=s.getCenter(t,e),x=b.x-g.width/2,w=b.y-g.height/2,S=w+g.height,P=x+g.width/2,A=g.height-v.height,O=x+(g.width-v.width)/2,C=_?S-A:w+A,V=[],E=new Rq.PathBuilder,k=(null==a?void 0:a.getWidth(0))||0;this._lineContainer.setStyleOrClass(l.connector.options.style),this._segments.forEach((function(s){var l=s.point;if(s.setVis(!l.isNull)){var b=l.yPos*g.height,x=(l.yPos+l.height)*g.height,T=_?S-b:w+b,L=_?S-x:w+x,N=x<A,M=void 0,j=void 0,R=void 0,B=void 0;if(r=null==d?void 0:d.get(l),b>=A?(j=(M=O)+v.width,m.move(M,T).lines(j,T,j,L,M,L),s.ny=s.nx1=NaN):N?(j=(M=o(T))+2*(P-M),B=(R=o(L))+2*(P-R),m.move(M,T).lines(j,T,B,L,R,L),s.ny=NaN,s.nx1=R-M,s.nx2=B-M):(j=(M=o(T))+2*(P-M),B=(R=O)+v.width,m.move(M,T).lines(j,T,B,C,B,L,R,L,R,C),s.nx1=R-M,s.nx2=B-M,s.ny=(0,jq.absv)(C-T),s.nx3=R,s.nx4=B),s.setPath(m.close(!0)),l.xPos=P,l.yPos=T+(L-T)/2,a&&(i=a.get(l,0))&&i.visible){if(u){null==r||r.setVis(!1);var D=i.isDomAnimating(),I=i.getBBox(),G=N?(j-M+(B-R))/2:v.width;switch(!D&&i.layout(f||"center"),h){case-1:i.trans(l.xPos-G/2+c,l.yPos-I.height/2);break;case 1:i.trans(l.xPos+G/2-I.width-c,l.yPos-I.height/2);break;default:i.trans(l.xPos-I.width/2,l.yPos-I.height/2)}}else-1===h?n.$_layoutLabelAligned(!1,l,s,i,f,y,r,E,g,P,c,p):1==h?n.$_layoutLabelEnded(!1,l,s,i,f,y,r,E,P,c,p,k,t,e):n.$_layoutLabelOutside(!1,l,s,i,f,y,r,E,P,c,p);i.setContrast(u&&s.dom),V.push(i),i.setPosY(i.ty),n._layoutLabelRotation(i)}else r&&r.setVis(!1)}}));var T=l.options.convergent,L=l.options.dedupeMode,N=l.options.overflow;a&&(u||0===h?"preserveOrder"!==L&&"largestFirst"!==L||a.dedupe(V,d,L):(null==a?void 0:a.arrangeVertical(this,V,d,e,T,L,N))&&this._segments.forEach((function(o){var s=o.point;s.isNull||(i=a.get(s,0),r=null==d?void 0:d.get(s),(null==i?void 0:i.visible)&&(-1===h?n.$_layoutLabelAligned(!0,s,o,i,f,y,r,E,g,P,c,p):1==h?n.$_layoutLabelEnded(!0,s,o,i,f,y,r,E,P,c,p,k,t,e):n.$_layoutLabelOutside(!0,s,o,i,f,y,r,E,P,c,p)))})))},e.prototype.$_calcX=function(t,e,i,r){var n=e.getBBox(),o=r?-1:1,s=n.height,a=i+o*n.width/2;return isNaN(e.ny)?isNaN(e.nx1)||(a-=0===s?0:o*(e.nx1*s/2)/s):e.ny>n.height/2?a-=o*(e.nx1*s/2)/e.ny:a=r?e.nx3:e.nx4,a},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u,c,p){var h=r.isDomAnimating(),f=t?r.getBBoxEx():r.getBBox(),d=e.yPos;!t&&!h&&r.layout(n||(o?"right":"left"));var _=e.xPos=this.$_calcX(e,i,u,o),y=u;if(o?y-=l.width/2:y+=l.width/2,s){var g=t?f.y+f.height/2-d:0;o?s.setLine(a.reset(0,0).line(y-_-p,g).end()):s.setLine(a.reset(0,0).line(y+p-_,g).end()),s.trans(_,d)}t||(o?y-=c+p+f.width:y+=p+c,r.trans(y,d-f.height/2))},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h,f){var d=r.isDomAnimating(),_=t?r.getBBoxEx():r.getBBox(),y=e.yPos;!t&&!d&&r.layout(n||(o?"right":"left"));var g,v=e.xPos=this.$_calcX(e,i,l,o);if(g=o?c+u+p:h-c-p-u,s){var m=t?_.y+_.height/2-y:0;o?s.setLine(a.reset(0,0).line(g-v-c,m).end()):s.setLine(a.reset(0,0).line(g+c-v,m).end()),s.trans(v,y)}t||(o?g-=u+c+_.width:g+=c+u,r.trans(g,y-_.height/2))},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u,c){var p=r.isDomAnimating(),h=t?r.getBBoxEx():r.getBBox(),f=e.yPos;!t&&!p&&r.layout(n||(o?"right":"left"));var d=this.$_calcX(e,i,l,o);if(s){var _=t?h.y+h.height/2-f:0;o?s.setLine(a.reset(0,0).line(-c,_).end()):s.setLine(a.reset(0,0).line(c,_).end()),s.trans(d,f)}t||(o?d-=c+u+h.width:d+=c+u,r.trans(d,f-h.height/2))},e}(Iq.WidgetSeriesView);Nq.FunnelSeriesView=zq;var $q={},Hq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty($q,"__esModule",{value:!0}),$q.HistogramSeriesView=void 0;var Wq=iM,Uq=GB,Xq=xX,Yq=EU,qq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hq(e,t),e.prototype.layout=function(t,e){this.setPath(Uq.SvgShapes.rect({x:t-this.wPoint/2,y:e,width:this.wPoint,height:-this.hPoint}))},e}(Yq.BoxPointElement),Zq=function(t){function e(e){var i=t.call(this,e,"rct-histogram-series")||this;return i._bars=new Xq.PointViewPool(i._pointContainer,qq),i}return Hq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.wPoint=n,t.hPoint=o,t.layout(i,r)},e.prototype._layoutPoints=function(t,e){var i=this,r=this.model,n=this._inverted,o=this._getGrowRate(),s=r.pointLabel,a=this._labelViews(),l=r._xAxisObj,u=r._yAxisObj,c=n?t:e,p=n?e:t,h=u.getPos(c,r.getBaseValue(u)),f=n?0:e,d=a&&(0,Wq.assignObj)(this._labelInfo,{inverted:n,labelPos:r.getLabelPos(s),labelOff:r.getLabelOff(s.getOffset()),textAlign:this._labelContainer._textAlign,distX:0,distY:0,side:0,base:0});this._getPointPool().forEach((function(r,_){var y=r.point,g=l.getPos(p,y.min),v=l.getPos(p,y.max),m=u.getPos(c,y.yValue),b=v-g+(v>g?-1:1),x=m-h,w=g+(v-g)/2,S=f;y.xPos=w,y.yPos=S-=m,i._layoutPoint(r,_,w,S+x,b,x*o),d&&(d.labelView=a.get(y,0))&&(n&&(S=p-w,w=f,y.yPos=S,y.xPos=w+=u.getPos(c,y.yGroup)),d.pointView=r,d.x=w,d.y=S,d.wPoint=b,d.hPoint=x,i._layoutLabel(s,d,t,e))}))},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o)}))},e.prototype.$_layoutBars=function(t,e){var i=this.model._xAxisObj,r=this.model._yAxisObj,n=this.height,o=this._getGrowRate();this._bars.forEach((function(s,a){var l=s.point,u=i.getPos(t,l.min),c=i.getPos(t,l.max),p=u+(c-u)/2,h=r.getPos(e,s.point.yValue)*o,f=(0,Wq.maxv)(1,c-u-1);l.xPos=p,l.yPos=n-h,s.wPoint=f,s.hPoint=h,s.layout(p,n)}))},e}(Yq.ClusterableSeriesView);$q.HistogramSeriesView=Zq;var Kq={},Jq=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(Kq,"__esModule",{value:!0}),Kq.LollipopSeriesView=void 0;var Qq=fj,tZ=QG,eZ=GB,iZ=xX,rZ=EU,nZ=function(t){function e(e){var i=t.call(this,e,rZ.SeriesView.POINT_CLASS)||this;return i.add(i._line=new tZ.LineElement(e,"rct-lollipop-point-bar")),i.add(i._marker=new Qq.PathElement(e,"rct-lollipop-point-marker")),i}return Jq(e,t),e.prototype.layout=function(t){var e,i=null!==(e=this.point.radius)&&void 0!==e?e:0;this._line.setVLine(0,0,t),eZ.SvgShapes.setShape(this._marker,this.point.shape,i,i),this._marker.trans(-i,-i)},e.prototype.savePrevs=function(){this.xSave=this.tx},e}(CW.GroupElement),oZ=function(t){function e(e){return t.call(this,e,"rct-lollipop-series")||this}return Jq(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._shrinkPoint=function(t){},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r-o),t.layout(o)},e.prototype._setPointColor=function(t,e){t._line.setStyle("stroke",e),t._marker.setFill(e)},e.prototype.$_parepareBars=function(t,e,i){var r=this,n=e.marker,o=n._style;n.options.styleCallback,this._bars||(this._bars=new iZ.PointViewPool(this._pointContainer,nZ)),this._bars.prepare(i.length,(function(t,s){var a=t.point=i[s];r._setPointStyle(t,e,a),o&&t._marker.setStyleOrClass(o);var l=n.getMarkerStyle(a);l&&t.internalSetStyleOrClass(l)}))},e}(rZ.BasedSeriesView);Kq.LollipopSeriesView=oZ;var sZ={},aZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(sZ,"__esModule",{value:!0}),sZ.OhlcSeriesView=void 0;var lZ=iM,uZ=QG,cZ=IB,pZ=xX,hZ=EU,fZ=function(t){function e(e){return t.call(this,e,hZ.SeriesView.POINT_CLASS)||this}return aZ(e,t),e.prototype.layout=function(t,e){var i=this.point,r=i.yValue-i.lowValue,n=-t/2,o=0+e-e*((0,lZ.minv)(i.openValue,i.closeValue)-i.lowValue)/r,s=0+e-e*((0,lZ.maxv)(i.openValue,i.closeValue)-i.lowValue)/r,a=i.close<i.open;this.x=this.tx+0,this._back.setBox(n,0,t,e),this._tickOpen.setHLine(o,n,0),this._tickClose.setHLine(s,0,t/2),this._bar.setVLine(0,0,0+e),this.setBoolData("decline",a)},e.prototype._doInitChildren=function(t){this.add(this._tickOpen=new uZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._tickClose=new uZ.LineElement(t,"rct-ohlc-point-tick")),this.add(this._bar=new uZ.LineElement(t)),this.add(this._back=new cZ.RectElement(t,"rct-ohlc-point-back")),this._back.setTransparent(!1)},e}(hZ.RangeElement),dZ=function(t){function e(e){var i=t.call(this,e,"rct-ohlc-series")||this;return i._sticks=new pZ.PointViewPool(i._pointContainer,fZ),i}return aZ(e,t),e.prototype._getPointPool=function(){return this._sticks},e.prototype._getLowValue=function(t){return t.lowValue},e.prototype._preparePoints=function(t,e,i){this.$_prepareSticks(e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){t.trans(i,r),t.layout(n,o)},e.prototype._setPointStyle=function(e,i,r,n){t.prototype._setPointStyle.call(this,e,i,r,n),r.closeValue<r.openValue&&i.options.declineStyle&&e.addStyleOrClass(i.options.declineStyle)},e.prototype.$_prepareSticks=function(t,e){var i=this;this._sticks.prepare(e.length,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e}(hZ.RangedSeriesView);sZ.OhlcSeriesView=dZ;var _Z={},yZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(_Z,"__esModule",{value:!0}),_Z.ParetoSeriesView=void 0;var gZ=function(t){function e(e){return t.call(this,e,"rct-pareto-series")||this}return yZ(e,t),e}(bX.LineSeriesBaseView);_Z.ParetoSeriesView=gZ;var vZ={},mZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(vZ,"__esModule",{value:!0}),vZ.PieSeriesView=void 0;var bZ=rM,xZ=GB,wZ=cj,SZ=iM,PZ=uW,AZ=Tj,OZ=fj,CZ=nM,VZ=fU,EZ=SU,kZ=uj,TZ=qB,LZ=$W,NZ=EU,MZ=kU,jZ=xX,RZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mZ(e,t),e.prototype.setOff=function(t){return this.off=(0,SZ.absv)(t),this},e}(OZ.PathElement),BZ=function(t){function e(e){return t.call(this,e,NZ.SeriesView.POINT_CLASS)||this}return mZ(e,t),e.prototype.render=function(t,e,i){this._assignShape(i,!1)},e}(EZ.SectorElement),DZ=function(t){function e(e){var i=t.call(this,e,NZ.SeriesView.POINT_CLASS)||this;return i._outPath={},i._inPath={},i.add(i._sectorView=new EZ.SectorElement(e)),i}return mZ(e,t),e.prototype.setSides=function(t,e,i,r,n){var o=this.point,s=(0,CZ.fixnum)(CZ.PI),a=(0,CZ.fixnum)(((t?o.startAngle:o.startAngle+o.angle)+CZ.PI/2+CZ.PI_2)%CZ.PI_2),l=(0,CZ.fixnum)(a+(t?o.angle:-o.angle)-1e-4+CZ.PI_2)%CZ.PI_2,u=s-(a+(0,SZ.absv)(a-l)/2);this._side1View=e.setOff(s-a),this._side2View=i.setOff(s-l),a<=CZ.PI/2&&!(l>=a&&l<CZ.PI/2)||l>=3*CZ.PI/2&&!(a<l&&a>3*CZ.PI/2)?(this._outArcView=r.setOff((0,SZ.minv)(e.off,i.off)),this._inArcView=n.setOff(1/0)):a>=3*CZ.PI/2&&l<=CZ.PI/2?(this._outArcView=r.setOff(1/0),this._inArcView=n.setOff(u)):a>=CZ.PI/2&&l<=3*CZ.PI/2?(this._outArcView=r.setOff((0,SZ.minv)(this._side2View.off,this._side1View.off)),this._inArcView=n.setOff(1/0)):(this._outArcView=r.setOff(u),a>=0&&a<=CZ.PI&&this._outArcView.setOff((0,SZ.minv)(this._outArcView.off,this._side1View.off)),l>=CZ.PI&&l<CZ.PI_2&&this._outArcView.setOff((0,SZ.minv)(this._outArcView.off,this._side2View.off)),this._inArcView=n.setOff(u))},e.prototype.render=function(t,e,i){var r=xZ.SvgShapes.isCircled(i.angle),n=getComputedStyle(this._sectorView.dom).fill,o=i.innerRadius>0,s=i.depth,a=this._outPath,l=this._inPath,u=i.clockwise?i.angle:-i.angle;bZ.isIE&&(n=this.control.getIEColor(n)),this._outArcView.setPath(xZ.SvgShapes.arc3d(i.cx,i.cy,i.rx,i.ry,s,i.start,i.start+u,i.clockwise,a)),this._inArcView.setVis(o)&&this._inArcView.setPath(xZ.SvgShapes.arc3dInner(i.cx,i.cy,i.rx*i.innerRadius,i.ry*i.innerRadius,s,i.start,i.start+u,i.clockwise,l)),this._side1View.setVis(!r),this._side2View.setVis(!r),this._side1View.visible&&(o?(this._side1View.setPath(xZ.SvgShapes.polygon(l.x1,l.y1,a.x1,a.y1,a.x1,a.y1+s,l.x1,l.y1+s)),this._side2View.setPath(xZ.SvgShapes.polygon(a.x2,a.y2,l.x2,l.y2,l.x2,l.y2+s,a.x2,a.y2+s))):(this._side1View.setPath(xZ.SvgShapes.polygon(i.cx,i.cy,a.x1,a.y1,a.x1,a.y1+s,i.cx,i.cy+s)),this._side2View.setPath(xZ.SvgShapes.polygon(i.cx,i.cy,a.x2,a.y2,a.x2,a.y2+s,i.cx,i.cy+s)))),this._sectorView._assignShape(i,!1),this._side1View.setStyle("fill",wZ.Color.interpolate("#000",n,.2)),this._side2View.setStyle("fill",wZ.Color.interpolate("#000",n,.2)),this._inArcView.visible&&this._inArcView.setStyle("fill",wZ.Color.interpolate("#000",n,.2)),this._outArcView.setStyle("fill",wZ.Color.interpolate("#000",n,.1))},e.prototype.focusView=function(t){this._side1View.setBoolData(NZ.SeriesView.DATA_FOCUS,t),this._side2View.setBoolData(NZ.SeriesView.DATA_FOCUS,t),this._inArcView.setBoolData(NZ.SeriesView.DATA_FOCUS,t),this._outArcView.setBoolData(NZ.SeriesView.DATA_FOCUS,t)},e.prototype.contains=function(e){return t.prototype.contains.call(this,e)||this._side1View.contains(e)||this._side2View.contains(e)||this._inArcView.contains(e)||this._outArcView.contains(e)},e.prototype.setVis=function(e){return this._side1View.setVis(e),this._side2View.setVis(e),this._inArcView.setVis(e),this._outArcView.setVis(e),t.prototype.setVis.call(this,e)},e.prototype.addClass=function(e){return this._side1View&&(this._side1View.addClass(e),this._side2View.addClass(e),this._inArcView.addClass(e),this._outArcView.addClass(e)),t.prototype.addClass.call(this,e)},e.prototype.removeClass=function(e){return this._side1View&&(this._side1View.removeClass(e),this._side2View.removeClass(e),this._inArcView.removeClass(e),this._outArcView.removeClass(e)),t.prototype.removeClass.call(this,e)},e.prototype.trans=function(e,i){return this._side1View.trans(e,i),this._side2View.trans(e,i),this._inArcView.trans(e,i),this._outArcView.trans(e,i),t.prototype.trans.call(this,e,i)},e.prototype.transEx=function(e,i,r,n){return this._side1View.transEx(e,i,r,n),this._side2View.transEx(e,i,r,n),this._inArcView.transEx(e,i,r,n),this._outArcView.transEx(e,i,r,n),t.prototype.transEx.call(this,e,i,r,n)},e}(OZ.RcElement),IZ=function(t){function e(e){var i=t.call(this,e,"rct-pie-series")||this;return i._deep=!1,i._pb=new AZ.PathBuilder,i._cx=0,i._cy=0,i._depth=0,i._ratio=1,i._rx=0,i._ry=0,i._rxInner=0,i._ryInner=0,i._slicedOff=0,i.add(i._circle=new VZ.CircleElement(e)),i._circle.setStyles({stroke:"#aaa",fill:"none",strokeDasharray:"2"}),i.add(i._textView=new LZ.ChartTextElement(e,"rct-pie-series-inner")),i._textView._text.anchor=kZ.TextAnchor.MIDDLE,i._pointContainer.add(i._sideContainer=new OZ.LayerElement(e,"rct-pie-series-sides")),i._labelContainer.add(i._lineContainer=new NZ.PointLabelLineContainer(e)),i}return mZ(e,t),e.prototype._getPointPool=function(){return this._sectors},e.prototype._setPointColor=function(t,e){t.setFill(e)},e.prototype._prepareSeries=function(e,i){t.prototype._prepareSeries.call(this,e,i);var r=i.innerText,n=i.depth.getLength()>0;this._depth=i.depth.getLength(),this._ratio=this._depth>0?i.depth.options.ratio:1,this.setBoolData("deep",n),this.$_prepareSectors(e,i,this._visPoints,n),this._lineContainer.prepare(i),this._textView.setVis(i.hasInner()&&r.visible)&&(this._textView.setModel(e,r,r.options.icon?r.getUrl(r.options.icon):null,null),r.buildSvg(this._textView._text,this._textView._outline,NaN,NaN,i,null))},e.prototype._renderSeries=function(t,e){isNaN(this.model._groupPos)?this.$_calcNormal(t,e):this.$_calcGroup(t,e),this._deep?(this._ry=this._rx*this._ratio,this._ryInner=this._rxInner*this._ratio):(this._ry=this._rx,this._ryInner=this._rxInner),this.$_layoutSectors(this._visPoints,t,e)},e.prototype.$_calcNormal=function(t,e){this._rx=this.model.getRadius(t,e),this._rxInner=this.model.getInnerRadius(this._rx)},e.prototype.$_calcGroup=function(t,e){var i=this.model,r=i._group,n=Math.floor(r.getPolarSize(t,e)/2),o=r.getInnerRadius(n)*n,s=n-o;this._rx=o+(i._groupPos+i._groupSize)*s,this._rxInner=(o+i._groupPos*s)/this._rx},e.prototype._runShowEffect=function(t){var e=this;t&&MZ.SeriesAnimation.grow(this,(function(t){var i=e._sectors.count>1&&e._sectors.find((function(t){return t.point.sliced}));i&&(i.trans(0,0),e.$_slice(i,e.model.options.autoSlice,!1))}))},e.prototype._doPointClicked=function(t){if((t instanceof BZ||t instanceof DZ)&&this.model.options.autoSlice){var e=this._sectors.count>1&&this._sectors.find((function(t){return t.point.sliced}));e&&this.$_slice(e,!1,!0),t!==e&&this.$_slice(t,!0,!0)}else this.invalidate()},e.prototype._doViewRateChanged=function(t){this.$_layoutSectors(this._visPoints,this.width,this.height)},e.prototype._refreshZombie=function(){this._renderSeries(this.width,this.height)},e.prototype.focusPointView=function(t,e){t instanceof DZ&&t.focusView(e)},e.prototype.getClipContainer=function(){return null},e.prototype.$_prepareSectors=function(t,e,i,r){var n=this,o=i.length,s=this._sides;r!=this._deep&&this._sectors&&(this._sectors.prepare(0),this._sectors=null,s&&(s.prepare(0),s=this._sides=null)),this._sectors||(r?(this._sectors=new jZ.PointViewPool(this._pointContainer,DZ,null),s=this._sides=new PZ.ElementPool(this._sideContainer,RZ,"rct-pie-series-side")):this._sectors=new jZ.PointViewPool(this._pointContainer,BZ,null)),this._deep=r,s&&s.prepare(4*o,(function(t,e){return t.index=e})),this._sectors.prepare(o,(function(r,o){var s=r.point=i[o];n._preparePoint(t,e,s,r)}))},e.prototype.$_calcAngles=function(t){var e=this._zombie,i=this._zombieRate,r=t.length,n=this._model.options.clockwise?1:-1,o=t.filter((function(t){return(t.visible||t===e)&&!t.isNull})).map((function(t){return t.yValue*(t===e?i:t._isDeleted()?t._vr:1)})).reduce((function(t,e){return t+e}),0),s=this.model._totalRad*this._getGrowRate(),a=this.model._startRad%CZ.PI_2;if(r>1||r>0&&!e)t.forEach((function(t){1===r&&t._isDeleted()||1===r&&t._vr<1?(t.startAngle=a,t.angle=s*n*t._vr,t.yRate=100):t.isNull||(t.yRate=(0,CZ.fixnum)(t.yValue*(t===e?i:t._isDeleted()?t._vr:1)/o)||0,t.startAngle=a,a+=t.angle=n*t.yRate*s,t.yRate*=100)}));else if(1==r){var l=t[0];l.startAngle=a,l.angle=n*i*s,l.yRate=100}},e.prototype.$_layoutSectors=function(t,e,i){var r,n,o=this,s=this.model,a=s.options.clockwise,l=this._getGrowRate(),u=s.getCenter(e,i),c=this._cx=u.x,p=this._cy=u.y,h=this._rx,f=this._rxInner,d=this._depth,_=this._ratio,y=this._sides,g=s.pointLabel,v=g.connector.options.curved,m=this._labelViews(),b="inside"===s.getLabelPos(g),x=(0,SZ.pickNum)(g.options.radius,.7),w=this._pb,S=g.getDistance(b,h,f),P=g.getAlign(),A=null==m?void 0:m.textAlign(),O=this._lineContainer.setVis(g.connector.visible)?this._lineContainer:null,C=this._slicedOff=s.getSliceOffset(h)*l,V=[],E=[],k=[],T=(null==m?void 0:m.getWidth(0))||0,L=this._sectors.count;if(this._lineContainer.setStyleOrClass(g.connector.options.style),!m||A||P||(A="center"),this._textView.visible){var N=this._textView._icon,M=this._textView._text.getBBox(),j=c,R=p;if(N){var B=(0,SZ.pickNum)(this.model.innerText.options.iconGap,0),D=M.width,I=M.height,G=N.getBBox(),F=G.width,z=G.height;switch(this.model.innerText.getIconPos()){case"right":N.trans(D/2+B,(I-z)/2),j-=(F+B)/2;break;case"top":N.trans(F/-2,-(z+B)),R+=z+B/2;break;case"bottom":N.trans(F/-2,I+B),R-=(z+B)/2;break;default:N.trans(-(D/2+F+B),(I-z)/2),j+=(F+B)/2}}this._textView.trans(j,R-M.height/2)}this._circle.setVis(this._sectors.isEmpty)&&this._circle.setCircle(this._cx,this._cy,this._rx),this.$_calcAngles(t),this._sectors.forEach((function(t,u){var g=t.point;if(y){var N=4*u;t.setSides(a,y.get(N),y.get(N+1),y.get(N+2),y.get(N+3))}if(n=null==O?void 0:O.get(g),g.isNull)t.setVis(!1),m&&(r=m.get(g,0))&&r.setVis(!1),null==n||n.setVis(!1);else{var M=L>1&&g.sliced,j=g.startAngle,R=j+g.angle/2,B=0,D=0;if(M&&l>=1&&!t.isDomAnimating()&&(B+=(0,SZ.cos)(R)*C,D+=(0,SZ.sin)(R)*C),t.trans(B,D).setVis(!0),g.xPos=c+(0,SZ.cos)(R)*(C+h*x),g.yPos=p+(0,SZ.sin)(R)*(C+h*x),t.render(m,null,{cx:c,cy:p,rx:h,ry:h*_,innerRadius:f,start:j,angle:(0,SZ.absv)(g.angle),clockwise:a,depth:d}),m&&(r=m.get(g,0))){var I=s.getLabelOff2(g);b?(null==n||n.setVis(!1),o.$_layoutLabelInside(g,r,A,I,S,M?C:0)):(-1===P?o.$_layoutLabelAligned(!1,g,r,A,n,w,v,I,S,M?C:0):1==P?o.$_layoutLabelEnded(!1,g,r,A,n,w,v,I,S,M?C:0,T,e,i):o.$_layoutLabelOutside(!1,g,r,A,n,w,v,I,S,M?C:0))?V.push(r):E.push(r),r.setContrast(b&&t.dom).setVis(!0),k.push(r),o._layoutLabelRotation(r)}else null==n||n.setVis(!1)}})),y&&y.sortDom((function(t,e){var i=e.off-t.off;return 0===i&&(i=t.index-e.index),i}));var $=g.options.convergent,H=g.options.dedupeMode,W=g.options.overflow;m&&(b||0===P?"preserveOrder"!==H&&"largestFirst"!==H||m.dedupe(k,O,H):m.arrangeVertical(this,V,O,i,$,H,W)+m.arrangeVertical(this,E,O,i,$,H,W)>0&&this._sectors.forEach((function(t){var a=t.point;if(!a.isNull){var l=L>1&&a.sliced,u=s.getLabelOff2(a);r=m.get(a,0),n=null==O?void 0:O.get(a),(null==r?void 0:r.visible)&&(-1===P?o.$_layoutLabelAligned(!0,a,r,A,n,w,v,u,S,l?C:0):1==P?o.$_layoutLabelEnded(!0,a,r,A,n,w,v,u,S,l?C:0,T,e,i):o.$_layoutLabelOutside(!0,a,r,A,n,w,v,u,S,l?C:0))}})))},e.prototype.$_layoutLabelAligned=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating(),p=e.startAngle+e.angle/2,h=this._cx,f=this._cy,d=this._rx,_=this._ry,y=d+u,g=_+u,v=h+(0,SZ.cos)(p)*y,m=f+(0,SZ.sin)(p)*g,b=v<h;!t&&!c&&i.layout(r||(b?"right":"left"));var x,w,S=i.getBBox(),P=m-S.height/2,A=f+(0,SZ.sin)(p)*_;if(b?(w=(x=h+(0,SZ.cos)(Math.PI)*d-l)-S.width-a,h+(0,SZ.cos)(Math.PI)*y-l,S.width):(w=(x=h+(0,SZ.cos)(0)*d+l)+a,h+(0,SZ.cos)(0)*y+l),n&&n.setVis(y>0)){var O=t?i.ty-P:0;s?n.setLine(o.reset(0,O).quad(.7*(v-x),O,v-x,0).end()):n.setLine(o.reset(0,O).line(v-x,0).end()),n.setPos(x,A),!c&&n.trans(x,m)}return t||(i.setPos(w,A-S.height/2),!c&&i.trans(w,A-S.height/2)),b},e.prototype.$_layoutLabelEnded=function(t,e,i,r,n,o,s,a,l,u,c,p,h){var f=i.isDomAnimating(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx,v=this._ry,m=g+u,b=v+u,x=_+(0,SZ.cos)(d)*m,w=y+(0,SZ.sin)(d)*b,S=x<_;!t&&!f&&i.layout(r||(S?"right":"left"));var P,A,O,C=i.getBBox(),V=w-C.height/2,E=y+(0,SZ.sin)(d)*v;if(S?(P=l+c+a,O=l+c-C.width,A=P):(O=p-l-c,A=P=p-l-c-a),n&&n.setVis(m>0)){var k=t?i.ty-V:0;s?n.setLine(o.reset(0,k).quad(0,k,x-A,0).end()):n.setLine(o.reset(0,k).line(x-A,0).end()),n.setPos(P,E),!f&&n.trans(A,w)}return t||(i.setPos(O,E-C.height/2),!f&&i.trans(O,E-C.height/2)),S},e.prototype.$_layoutLabelOutside=function(t,e,i,r,n,o,s,a,l,u){var c=i.isDomAnimating();!t&&!c&&i.layout(r);var p,h,f=i.getBBox(),d=e.startAngle+e.angle/2,_=this._cx,y=this._cy,g=this._rx+.5*l,v=this._ry+.5*l,m=(0,SZ.cos)(d)*u,b=(0,SZ.sin)(d)*u,x=_+(0,SZ.cos)(d)*this._rx,w=y+(0,SZ.sin)(d)*this._ry,S=_+(0,SZ.cos)(d)*g,P=y+(0,SZ.sin)(d)*v,A=S<_;return h=p=A?S-.2*l:S+.2*l,n&&n.setVis(g>0)&&(s?n.setLine(o.reset(0,0).quad(S-x,P-w,p-x,P-w).end()):n.setLine(o.reset(0,0).lines(S-x,P-w,p-x,P-w).end()),n.setPos(x,w),!c&&n.trans(x+m,w+b)),t||(A?h-=f.width+a:h+=a,P-=f.height/2,i.setPos(h,P),!c&&i.trans(h+m,P+b)),A},e.prototype.$_layoutLabelInside=function(t,e,i,r,n,o){var s=e.isDomAnimating(),a=this.model,l=a.pointLabel,u=l.options.autoRotation,c=l.options.rotationMode,p=a.options.clockwise;!s&&e.layout(i||"center");var h=e.getBBox(),f=this._rx*this._rxInner,d=t.startAngle+t.angle/2;if(u){var _=a._totalRad,y=(0,SZ.minv)(a.options.totalAngle||360,360);if("angle"===c){var g=d/_*y+90,v=(g+a.options.startAngle)%360;g+=(v+=p?0:360)>180?90:-90,e.setRotation(h.width/2,h.height/2,g)}else this.applyAutoRotation(e,d,_,y)}var m=l.options.align===TZ._PointLabelAlign.NEAR?.3:l.options.align===TZ._PointLabelAlign.NONE?.5:.7,b=f>0?f+(this._rx-f)/2:u?"angle"===c?this._rx*m+r:.8*this._rx+r:.7*this._rx+r,x=this._deep?b*this._ratio:b,w=Math.cos(d),S=Math.sin(d),P=this._cx+w*b,A=this._cy+S*x;e.move(P-h.width/2,A-h.height/2),P=this._cx+w*(o+b),A=this._cy+S*(o+x),e.trans(P-h.width/2,A-h.height/2)},e.prototype.$_slice=function(t,e,i){if(!(e&&this._sectors.count<2)){var r=this.model,n=this._labelViews(),o=r.pointLabel.getAlign(),s=this._slicedOff,a=r.options.autoSlice?r.options.sliceDuration:0,l=t.point,u=l.startAngle+l.angle/2;if((l.sliced=e)?t.transEx((0,SZ.cos)(u)*s,(0,SZ.sin)(u)*s,a):t.transEx(0,0,a),n){var c=r.pointLabel,p=this._lineContainer,h=c.connector.options.curved,f="inside"===r.getLabelPos(c),d=n.get(l,0),_=r.pointLabel.getDistance(f,this._rx,this._rxInner);if(d){var y=!f&&p.get(l);if(i){var g=n.textAlign();!n||g||o||(g="center"),f?this.$_layoutLabelInside(l,d,g,c.getOffset(),_,s):0===o&&this.$_layoutLabelOutside(!1,l,d,g,y,this._pb,h,c.getOffset(),_,s)}if(e){var v=d.tx,m=d.ty,b=y.tx,x=y.ty;(f||0===o)&&(d.trans(d.x,d.y).transEx2(v,m,a),y&&y.trans(y.x,y.y).transEx(b,x,a))}else(f||0===o)&&(d.trans(d.tx,d.ty).transEx2(d.x,d.y,a),y&&y.trans(y.tx,y.ty).transEx(y.x,y.y,a))}}}},e}(NZ.WidgetSeriesView);vZ.PieSeriesView=IZ;var GZ={},FZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(GZ,"__esModule",{value:!0}),GZ.ScatterSeriesView=GZ.ScatterSeriesPointView=void 0;var zZ=iM,$Z=rM,HZ=EU,WZ=kU,UZ=GB,XZ=xX,YZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return FZ(e,t),e.prototype.setHoverRate=function(t,e,i){var r=this.point,n=UZ.SvgShapes.getDrawer(t.model.getShape(r)),o=(+t.model.options.hoverScale||1.8)-1,s=t._radius;e?this._hoverRadius=s=t._radius*(1+(isNaN(i)?1:i)*o):s=t._radius*(1+o-(isNaN(i)?o:o*i)),this.setPath(n(s)),this.trans(r.xPos,r.yPos)},e.prototype.endHover=function(t,e){delete this._hoverRadius},e}(HZ.MarkerSeriesPointView);GZ.ScatterSeriesPointView=YZ;var qZ=function(t){function e(e){return t.call(this,e,"rct-scatter-series")||this}return FZ(e,t),e.prototype._createMarkers=function(t){return new XZ.PointViewPool(t,YZ)},e.prototype._prepareSeries=function(t,e){this.$_prepareMarkers(e,this._visPoints)},e.prototype._renderSeries=function(t,e){this.$_layoutMarkers(t,e)},e.prototype._runShowEffect=function(t){t&&WZ.SeriesAnimation.grow(this)},e.prototype.$_prepareMarkers=function(t,e){var i=this,r=e.length;this._pointContainer.setFill(t._runColor),this._markers.prepare(r,(function(r,n){var o=r.point=e[n];i._setPointStyle(r,t,o)}))},e.prototype._getDefaultPos=function(t){return"outside"},e.prototype._doViewRateChanged=function(t){this.$_layoutMarkers(this.width,this.height)},e.prototype.$_layoutMarkers=function(t,e){var i,r=this,n=this.model,o=n.options,s=this._inverted,a=n.needClip(!1),l=n._xAxisObj,u=n._yAxisObj,c=this._polar=n.chart._body.getPolar(l),p=this._getGrowRate(),h=this._radius=Math.max(0,+n.options.radius||0)*p,f=+o.rotation||0,d=+o.jitterX||0,_=+o.jitterY||0,y=n.pointLabel,g=y.options.position,v=y.getOffset(),m=this._labelViews(),b=s?t:e,x=c?c.total:s?e:t,w=s?0:e;this._markers.forEach((function(o,y){var S=o.point,P=m&&(i=m.get(S,0));if(o.setVis(!S.isNull)){var A=UZ.SvgShapes.getDrawer(n.getShape(S)),O=$Z.Utils.jitter(S.xValue,d),C=$Z.Utils.jitter(S.yGroup,_),V=void 0,E=void 0;if(c){var k=c.start+l.getPos(x,O),T=u.getPos(c.rd,C)*p;V=c.cx+T*(0,zZ.cos)(k),E=c.cy+T*(0,zZ.sin)(k)}else V=l.getPos(x,O),E=w-u.getPos(b,C),s&&(V=u.getPos(b,C),E=e-l.getPos(x,O));if(S.xPos=V,S.yPos=E,o.setVis(!!c||!a||V>=0&&V<=t&&E>=0&&E<=e)){var L=o._hoverRadius||h;o.setPath(A(L)),o.trans(V,E).rotate(f),P&&r._layoutLabelView(i,g,v,L,V,E)}else P&&P.setVis(!1)}else P&&P.setVis(!1)}))},e.prototype.getNearest=function(t,e){var i=this._markers._internalItems();if(i&&i.length>0){var r=this.model.options.radius,n=i.reduce((function(i,n){return i.distance(r,t,e)<n.distance(r,t,e)?i:n}));return{pv:n,dist:n.distance(r,t,e)}}},e.prototype.canHover=function(t,e,i){return t<=this.model.options.radius+i},e}(HZ.MarkerSeriesView);GZ.ScatterSeriesView=qZ;var ZZ={},KZ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(ZZ,"__esModule",{value:!0}),ZZ.WaterfallSeriesView=void 0;var JZ=uW,QZ=fj,tK=QG,eK=EU,iK=xX,rK=function(t){function e(e){var i=t.call(this,e,"rct-waterfall-series")||this;return i._bars=new iK.PointViewPool(i._pointContainer,eK.BarElement),i.add(i._lineContainer=new QZ.LayerElement(e,"rct-waterfall-series-lines")),i._lines=new JZ.ElementPool(i._lineContainer,tK.LineElement),i}return KZ(e,t),e.prototype._getPointPool=function(){return this._bars},e.prototype._getLowValue=function(t){return Math.min(t.from,t.to)},e.prototype._getHighValue=function(t){return Math.max(t.from,t.to)},e.prototype._prepareSeries=function(e,i,r,n){t.prototype._prepareSeries.call(this,e,i,r,n),this._rd=+i.options.cornerRadius||0},e.prototype._preparePoints=function(t,e,i){this.$_parepareBars(t,e,i)},e.prototype._layoutPoint=function(t,e,i,r,n,o){var s=t.point;if(t.wPoint=n,t.hPoint=o,r+=o,t.layout(i,r,this._rd,this._rd,0,0,this._inverted),e>0){var a=this._lines.get(e-1),l=s.y,u=void 0;u=s._isSum||s._isMid?l<0?r:r-o:l<0?r-o:r,a.setHLine(u,this._xPrev+this._wPrev/2,i-n/2)}this._xPrev=i,this._wPrev=n},e.prototype._layoutPoints=function(e,i){this._inverted?this._lineContainer.dom.style.transform="translate(0px, ".concat(i,"px) rotate(90deg) scale(-1, 1)"):this._lineContainer.dom.style.transform="",t.prototype._layoutPoints.call(this,e,i)},e.prototype._setPointStyle=function(t,e,i,r){t.setAttrEx("aria-label",i.ariaHint()),this._setColorIndex(t,i),t.internalClearStyleAndClass(),e.options.pointStyle&&t.internalSetStyleOrClass(e.options.pointStyle),r&&r.forEach((function(e){return e&&t.internalSetStyleOrClass(e)})),i._isSum&&e.options.sumColor?this._setPointColor(t,e.options.sumColor):i.y<0&&e.options.negativeColor?this._setPointColor(t,e.options.negativeColor):i.color&&this._setPointColor(t,i.color),i.range&&(i.range.color&&this._setPointColor(t,i.range.color),i.range.style&&t.internalSetStyleOrClass(i.range.style));var n=e.getPointStyle(i);n&&t.internalSetStyleOrClass(n)},e.prototype.$_parepareBars=function(t,e,i){var r=this;this._bars.prepare(i.length,(function(t,n){var o=t.point=i[n];r._setPointStyle(t,e,o);var s=o._isMid?"rct-waterfall-point-mid":o._isSum?"rct-waterfall-point-sum":o.y<0?"rct-waterfall-point-negative":"";s&&t.setStyleOrClass(s)})),this._lines.prepare(i.length-1,(function(t,e){t.visible=!i[e].isNull&&!i[e+1].isNull}))},e}(eK.RangedSeriesView);ZZ.WaterfallSeriesView=rK;var nK=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oK=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},sK=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},aK=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(oU,"__esModule",{value:!0}),oU.BodyView=oU.ZoomButton=oU.AxisGuideContainer=oU.AxisGridRowContainer=oU.AxisGuideRangeView=oU.AxisGuideLineView=oU.AxisGuideView=oU.AxisBreakView=oU.AxisGridView=void 0,oU.createAnnotationView=wJ,oU.createSeriesView=SJ;var lK=sU,uK=iM,cK=uW,pK=Tj,hK=fj,fK=nM,dK=rM,_K=fU,yK=HW,gK=QG,vK=IB,mK=SU,bK=GB,xK=rB,wK=DB,SK=cD,PK=jI,AK=_G,OK=SG,CK=Sz,VK=Kz,EK=jG,kK=zF,TK=KF,LK=fz,NK=Lz,MK=Fz,jK=s$,RK=v$,BK=RG,DK=V$,IK=G$,GK=q$,FK=rH,zK=mH,$K=VH,HK=SI,WK=uI,UK=yI,XK=CU,YK=xW,qK=VU,ZK=$W,KK=EU,JK=eX,QK=sX,tJ=hX,eJ=mX,iJ=YX,rJ=lY,nJ=dY,oJ=AY,sJ=VY,aJ=RY,lJ=WY,uJ=tq,cJ=aq,pJ=yq,hJ=Aq,fJ=Nq,dJ=$q,_J=bX,yJ=Kq,gJ=sZ,vJ=_Z,mJ=vZ,bJ=GZ,xJ=ZZ;function wJ(t,e){return new(XK.annotation_view_types[e._type()])(t)}function SJ(t,e){return new(KK.series_view_types[e._viewType()])(t)}KK.SeriesView.register([BK.AreaSeries,iJ.AreaSeriesView],[BK.AreaRangeSeries,eJ.AreaRangeSeriesView],[OK.BarSeries,nJ.BarSeriesView],[AK.BarRangeSeries,rJ.BarRangeSeriesView],[EK.BellCurveSeries,oJ.BellCurveSeriesView],[kK.BoxPlotSeries,sJ.BoxPlotSeriesView],[TK.BubbleSeries,aJ.BubbleSeriesView],[LK.CandlestickSeries,lJ.CandlestickSeriesView],[CK.CircleBarSeries,uJ.CircleBarSeriesView],[NK.DumbbellSeries,cJ.DumbbellSeriesView],[MK.EqualizerSeries,pJ.EqualizerSeriesView],[VK.ErrorBarSeries,hJ.ErrorBarSeriesView],[jK.FunnelSeries,fJ.FunnelSeriesView],[RK.HistogramSeries,dJ.HistogramSeriesView],[BK.LineSeries,_J.LineSeriesView],[DK.LollipopSeries,yJ.LollipopSeriesView],[IK.OhlcSeries,gJ.OhlcSeriesView],[GK.ParetoSeries,vJ.ParetoSeriesView],[FK.PieSeries,mJ.PieSeriesView],[zK.ScatterSeries,bJ.ScatterSeriesView],[$K.WaterfallSeries,xJ.WaterfallSeriesView]),XK.AnnotationView.register([HK.TextAnnotation,tJ.TextAnnotationView],[WK.ImageAnnotation,JK.ImageAnnotationView],[UK.ShapeAnnotation,QK.ShapeAnnotationView]);var PJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-grid")||this;return i._lines=new cK.ElementPool(i,gK.LineElement),i}return nK(e,t),e.prototype._doMeasure=function(t,e,i,r,n){return{width:i,height:r}},e.prototype._doLayout=function(){var t,e=this._model,i=e.options,r=e.axis,n=r.options.reversed,o=this.width,s=this.height,a=r.isEmpty()?[]:e.getPositions(r,r._isHorz?o:s),l=this._lines.prepare(a.length,(function(t){t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),t.setClass("rct-axis-grid-line")})),u=l.count-1;l.forEach((function(t,e){t.setBoolData("first",0===e),t.setBoolData("last",a[e]===(r._isHorz?o:s))}));var c=null==i.firstVisible?e.visible:i.firstVisible,p=null==i.lastVisible?e.visible:i.lastVisible;if(r._isHorz){var h=(0,uK.pickNum)(r._prevRate,1);l.forEach((function(i,l){t=0===l?c:l===u?p:e.visible,i.setVis(t)&&i.setVLine(r.prev(a[l])+(n?o*(1-h):0),0,s)}))}else{var f=n?(0,uK.pickNum)(r._prevRate,1):1;l.forEach((function(i,n){a[n],t=0===n?c:n===u?p:e.visible,i.setVis(t)&&i.setHLine(s*f-r.prev(a[n]),0,o)}))}},e}(YK.ChartElement);oU.AxisGridView=PJ;var AJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-break")||this;return i.add(i._mask=new hK.PathElement(e)),i._mask.setStroke("none"),i.add(i._upLine=new hK.PathElement(e)),i._upLine.setFill("none"),i.add(i._downLine=new hK.PathElement(e)),i._downLine.setFill("none"),i}return nK(e,t),e.prototype.setModel=function(t){this._model=t},e.prototype.layout=function(t,e,i){this.isClip(this._clip)?this._clip.resize(t,e):this._clip=this.control.clipBounds(0,0,t,e),this.setClip(this._clip);var r=this._model._sect.len,n=new pK.PathBuilder;if(i){var o=0,s=r/2,a=r;for(n.move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(this._downLine.setPath(n.end(!1)),o=0,n.clear().move(s,o);o<e;)o+=20,n.line(a,o),o+=20,n.line(s,o);for(this._upLine.setPath(n.end(!1)),o=0,n.clear().move(0,o);o<e;)o+=20,n.line(s,o),o+=20,n.line(0,o);for(n.line(s,o);o>=0;)o-=20,n.line(a,o),o-=20,n.line(s,o);this._mask.setPath(n.end())}else{var l=0,u=r/2,c=r;for(n.move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(this._upLine.setPath(n.end(!1)),l=0,n.clear().move(l,c);l<t;)l+=20,n.line(l,u),l+=20,n.line(l,c);for(this._downLine.setPath(n.end(!1)),l=0,n.clear().move(l,u);l<t;)l+=20,n.line(l,0),l+=20,n.line(l,u);for(n.line(l,c);l>=0;)l-=20,n.line(l,u),l-=20,n.line(l,c);this._mask.setPath(n.end())}},e}(hK.RcElement);oU.AxisBreakView=AJ;var OJ=function(t){function e(e){var i=t.call(this,e,"rct-axis-guide")||this;return i.add(i._labelView=new ZK.ChartTextElement(e,"rct-axis-guide-label")),i}return nK(e,t),e.prototype.vertical=function(){return this.model.axis._isHorz},e.prototype.prepare=function(t,e){this.model=e,this._labelView.setVis(!!e.label.options.text)&&this._labelView.setModel(t,e.label,null,null)},e.prototype.layout=function(t,e,i){this._labelView.visible&&(this.model.label.buildSvg(this._labelView._text,this._labelView._outline,t,e,this.model.label,null),this._labelView.layout(this.textAlign()||"center")),i?this._doLayoutPolar(t,e,i):this._doLayout(t,e)},e}(hK.RcElement);oU.AxisGuideView=OJ;var CJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._line=new(i?_K.ArcPolyElement:gK.LineElement)(e,"rct-axis-guide-line")),r}return nK(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i),this.setVis(i.visible&&i.axis.contains(i.options.value))&&this._line.setStyles(i._style)},e.prototype._doLayout=function(t,e){var i,r,n=this.model,o=n.options.value,s=n.label,a=s.options,l=this._line,u=this._labelView.setVis(s.visible)&&this._labelView,c=u.getBBox(),p=(0,uK.pickNum)(a.offsetX,0),h=(0,uK.pickNum)(a.offsetY,0);if(this.vertical()){var f=n.axis.getPos(t,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setVLine(f,0,e),u)){switch(a.align){case"center":i=f-c.width/2+p;break;case"right":i=f+p;break;default:i=f-c.width-p}switch(a.verticalAlign){case"bottom":r="inside"===a.position?e-c.height-h:e+h;break;case"middle":r=(e-c.height)/2-h;break;default:r="inside"===a.position?h:-1*(c.height+h)}}}else{f=e-n.axis.getPos(e,o);if(u.setVis(l.setVis(!isNaN(f)))&&(l.setHLine(f,0,t),u)){switch(a.align){case"center":i=(t-c.width)/2-p;break;case"right":i="inside"===a.position?t-c.width-p:t+p;break;default:i="inside"===a.position?p:-1*(c.width+p)}switch(a.verticalAlign){case"bottom":r=f+h;break;case"middle":r=f-c.height/2-h;break;default:r=f-c.height-h}}}u.visible&&u.trans(i,r)},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._line,o=this._labelView.setVis(r.axis.contains(r.options.value)&&r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.value);n.setArc(i.cx,i.cy,a,s,r.axis.getTotalAngle(),!1),n.setStyle(fK.FILL,"none"),o&&o.trans(i.cx+a*(0,uK.cos)(i.start),i.cy+a*(0,uK.sin)(i.start))},e}(OJ);oU.AxisGuideLineView=CJ;var VJ=function(t){function e(e,i){var r=t.call(this,e)||this;return r.insertFirst(r._box=new(i?mK.SectorElement:vK.BoxElement)(e,"rct-axis-guide-range")),r}return nK(e,t),e.prototype.prepare=function(e,i){t.prototype.prepare.call(this,e,i);var r=i.options,n=(0,uK.minv)(r.startValue,r.endValue),o=(0,uK.maxv)(r.startValue,r.endValue);this._range=i.axis.trimRange(n,o),this.setVis(i.visible&&this._range[1]>this._range[0])&&this._box.setStyleOrClass(i._style)},e.prototype._doLayout=function(t,e){var i=this.model;i.options;var r=i.label,n=r.options,o=this._box,s=oK(this._range,2),a=s[0],l=s[1],u=this._labelView.setVis(r.visible)&&this._labelView,c=u.getBBox(),p=(0,uK.pickNum)(n.offsetX,0),h=(0,uK.pickNum)(n.offsetY,0);if(this.vertical()){var f=i.axis.getPos(t,a),d=i.axis.getPos(t,l);if(!isNaN(f)&&!isNaN(d)&&u.setVis(o.setVis(d!==f))){var _=void 0,y=void 0;switch(n.align){case"center":_=f+(d-f-c.width)/2+p;break;case"right":_=d-c.width-p;break;default:_=f+p}switch(n.verticalAlign){case"bottom":y="inside"===n.position?e-c.height-h:e+h;break;case"middle":y=(e-c.height)/2-h;break;default:y="inside"===n.position?h:-1*(c.height+h)}o.setBox(f,0,d,e),u&&u.trans((0,uK.maxv)(0,(0,uK.minv)(t,_)),y)}}else{var g=e-i.axis.getPos(e,a),v=e-i.axis.getPos(e,l);if(!isNaN(g)&&!isNaN(v)&&u.setVis(o.setVis(g!==v))){_=void 0,y=void 0;switch(n.align){case"center":_=(t-c.width)/2-p;break;case"right":_="inside"===n.position?t-c.width-p:t+p;break;default:_="inside"===n.position?p:-1*(c.width+p)}switch(n.verticalAlign){case"bottom":y=g-c.height-h;break;case"middle":y=v+(g-v-c.height)/2-h;break;default:y=v+h}u&&u.trans(_,y),o.setBox(0,v,t,g)}}},e.prototype._doLayoutPolar=function(t,e,i){var r=this.model,n=this._box,o=this._labelView.setVis(r.label.visible)&&this._labelView,s=r.axis.getStartAngle(),a=r.axis.getPos(i.rd,r.options.startValue),l=r.axis.getPos(i.rd,r.options.endValue);if(n.setSector({cx:i.cx,cy:i.cy,rx:l,ry:l,innerRadius:a/l,start:s,angle:fK.PI_2,clockwise:!0}),o){var u=a+(l-a)/2;o.trans(i.cx+u*(0,uK.cos)(i.start),i.cy+u*(0,uK.sin)(i.start))}},e}(OJ);oU.AxisGuideRangeView=VJ;var EJ=function(t){function e(){var e=t.apply(this,sK([],oK(arguments),!1))||this;return e._views=new cK.ElementPool(e,hK.PathElement),e}return nK(e,t),e.prototype.prepare=function(){this._rows=[]},e.prototype.addAll=function(t,e){var i=this._rows;e.forEach((function(t){i.push.apply(i,sK([],oK(t.grid.rows.getRows()),!1))}))},e.prototype.layout=function(t,e){var i=this._rows;this._views.prepare(i.length),this._views.forEach((function(r,n){var o=i[n],s=o.axis,a=Math.max(s.axisMin(),o.from),l=Math.max(s.axisMax(),o.to);if(o.axis._isHorz){var u=(0,uK.maxv)(0,(0,uK.minv)(t,s.getPos(t,a))),c=(0,uK.maxv)(0,(0,uK.minv)(t,s.getPos(t,l)));r.setPath(bK.SvgShapes.rectangle(u,0,c-u,e))}else{var p=(0,uK.maxv)(0,(0,uK.minv)(e,s.getPos(e,a))),h=(0,uK.maxv)(0,(0,uK.minv)(e,s.getPos(e,l)));r.setPath(bK.SvgShapes.rectangle(0,e-p,t,p-h))}r.setFill(o.color)}))},e}(hK.LayerElement);oU.AxisGridRowContainer=EJ;var kJ=function(t){function e(){var e=t.apply(this,sK([],oK(arguments),!1))||this;return e._linePool=[],e._rangePool=[],e._views=[],e}return nK(e,t),e.prototype.clean=function(){for(var t=this._views;t.length;){var e=t.pop().remove();e instanceof VJ?this._rangePool.push(e):this._linePool.push(e)}},e.prototype.setAll=function(t,e,i){var r=this;e.forEach((function(e){var n;e instanceof xK.AxisRangeGuide?n=r._rangePool.pop()||new VJ(t,i):e instanceof xK.AxisLineGuide&&(n=r._linePool.pop()||new CJ(t,i)),r.add(n),n.prepare(t,e)}))},e.prototype.add=function(e){return this._views.push(e),t.prototype.add.call(this,e)},e}(hK.LayerElement);oU.AxisGuideContainer=kJ;var TJ=function(t){function e(e){var i=t.call(this,e)||this;return i.ignorePointer(),i}return nK(e,t),e.prototype.setModel=function(t){t!=this.model&&(this.model=t,this._bar=t.isBar(),this.setClass(this._bar?"rct-crosshair-bar":"rct-crosshair-line"))},e.prototype.layout=function(t,e,i,r,n){var o=this.model.axis,s=o._isHorz,a=new pK.PathBuilder;if(this._bar){var l=o._isHorz?r:n,u=void 0;if(t?u=t.point.xValue:this.model.options.showAlways&&(u=o.options.reversed?o.xValueAt(s?r-e:i):o.xValueAt(s?e:n-i)),o instanceof SK.CategoryAxis&&(u=(0,uK.floor)(u)),!isNaN(u)){var c=o.getPos(l,u),p=o.getUnitLen(l,u);s?a.rect(c-p/2,0,p,n):a.rect(0,n-c-p/2,r,p)}}else(t||this.model.options.showAlways)&&(s?a.vline(e,0,n):a.hline(i,0,r));this.setPath(a.end())},e}(hK.PathElement),LJ=function(t){function e(i){var r=t.call(this,i,"Reset Zoom",e.CLASS_NAME)||this;return r.setVis(!1),r}return nK(e,t),e.CLASS_NAME="rct-reset-zoom",e}(lK.ButtonElement);oU.ZoomButton=LJ;var NJ=function(t){function e(e){var i=t.call(this,e,"rct-empty-view")||this;return i.add(i._backView=new vK.RectElement(e,"rct-empty-view-back")),i.add(i._labelView=new ZK.ChartTextElement(e,"rct-empty-view-label")),i}return nK(e,t),e.prototype.layout=function(t,e,i){this.setStyleOrClass(t._style),"background"===t.options.effect&&this._backView.setStyleOrClass(t.options.backgroundStyle),this._backView.resize(e,i);var r=this._labelView;t.buildSvg(r._text,r._outline,e,i,null,null),r.layout("center");var n=r.getBBox();r.trans((e-n.width)/2,(i-n.height)/2)},e}(hK.LayerElement),MJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth-grid")||this;return i._lines=new cK.ElementPool(i,gK.LineElement),i}return nK(e,t),e.prototype.layout=function(t,e,i,r,n,o){var s=e.model,a=s.axis,l=r.side,u=r.base,c=a.isEmpty()?[]:s.getPositions(a,a._isHorz?n-u:o-l);this._lines.prepare(c.length,(function(e,r){e.internalClearStyleAndClass(),e.internalSetStyleOrClass(t.gridLine._style),e.setClass("rct-body-depth-grid-line"),i?e.setLine(0,o-c[r],n,o-l-c[r]):e.setLine(c[r]+u,0,c[r],o)}))},e}(hK.LayerElement),jJ=function(t){function e(e,i){var r=t.call(this,e,"rct-body-depth-side")||this;return r.isX=i,r._gridViews=new Map,r.add(r._backView=new hK.PathElement(e)),r.add(r._gridContainer=new hK.LayerElement(e,"rct-body-depth-grids")),r.add(r._lineView=new gK.LineElement(e,"rct-body-depth-side-line")),r.add(r._endView=new gK.LineElement(e,"rct-body-depth-side-line")),r}return nK(e,t),e.prototype.layout=function(t,e,i,r,n){var o=this.width,s=this.height;this.$_renderBack(this._backView,e,i,r,o,s),this.$_renderGrids(t,e,n,i,r,o,s)},e.prototype.$_renderBack=function(t,e,i,r,n,o){var s=r.side,a=r.base,l=this._lineView,u=this._endView;t.internalClearStyleAndClass(),t.internalSetStyleOrClass(e._style),l.setVis(e.line.visible)&&(l.internalClearStyleAndClass(),l.internalSetStyleOrClass(e.line._style)),u.setVis(e.endLine.visible)&&(u.internalClearStyleAndClass(),u.internalSetStyleOrClass(e.endLine._style)),i?(t.setPath(bK.SvgShapes.polygon(0,s,a,0,a,o-s,0,o)),l.visible&&l.setVLineC(0,s,o),u.visible&&u.setLine(0,s,n,0)):(t.setPath(bK.SvgShapes.polygon(a,0,n,0,n-a,s,0,s)),l.visible&&l.setHLineC(o,0,n-a),u.visible&&u.setLine(n,0,n-a,o))},e.prototype.$_renderGrids=function(t,e,i,r,n,o,s){var a,l,u,c,p=this._gridContainer,h=this._gridViews;try{for(var f=aK(this._gridViews.entries()),d=f.next();!d.done;d=f.next()){var _=oK(d.value,2),y=_[0],g=_[1];i.has(y)||(h.delete(y),g.remove())}}catch(t){a={error:t}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(a)throw a.error}}try{for(var v=aK(i.entries()),m=v.next();!m.done;m=v.next()){var b=oK(m.value,2),x=(y=b[0],b[1]);if(y._isX===this.isX){var w=h.get(y);w||(w=new MJ(t),h.set(y,w),p.add(w)),w.layout(e,x,r,n,o,s)}}}catch(t){u={error:t}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}},e}(hK.LayerElement),RJ=function(t){function e(e){var i=t.call(this,e,"rct-body-depth")||this;return i.add(i._xSideView=new jJ(e,!0)),i.add(i._ySideView=new jJ(e,!1)),i.add(i._orgLineView=new gK.LineElement(e,"rct-body-depth-org-line")),i}return nK(e,t),e.prototype.render=function(t,e,i,r,n,o,s){if(this.setVis(!!n)){var a=n.base,l=n.side,u=this._xSideView,c=this._ySideView;u.setVis(i.xSide.visible)&&(e?u.setBounds(0,0,a,s):u.setBounds(0,s-l,o,l),u.layout(t,i.xSide,e,n,r)),c.setVis(i.ySide.visible)&&(e?c.setBounds(0,s-l,o,l):c.setBounds(0,0,a,s),c.layout(t,i.ySide,!e,n,r)),this._orgLineView.setVis(i.orgLine.visible)&&this._orgLineView.setLine(a,s-l,0,s)}},e}(hK.LayerElement),BJ=function(t){function e(i,r){var n=t.call(this,i,e.BODY_CLASS)||this;return n._gridViews=new Map,n._baseViews=new Map,n._breakViews=[],n._seriesViews=[],n._seriesMap=new Map,n._annotationViews=[],n._annotationMap=new Map,n._gaugeViews=[],n._gaugeMap=new Map,n._hoverPointSeries=[],n._owner=r,n.add(n._hitTester=new vK.RectElement(i)),n._hitTester.setFill("transparent"),n.add(n._background=new hK.PathElement(i,"rct-body-background")),n.add(n._depthLayer=new RJ(i)),n.add(n._image=new yK.ImageElement(i,!0,"rct-body-image")),n.add(n._emptyView=new NJ(i)),n.add(n._gridRowContainer=new EJ(i,"rct-axis-grid-rows")),n.add(n._gridContainer=new hK.LayerElement(i,"rct-axis-grids")),n.add(n._baseContainer=new hK.LayerElement(i,"rct-axis-bases")),n.add(n._guideContainer=new kJ(i,"rct-axis-guides")),n.add(n._annotationContainer=new hK.LayerElement(i,"rct-annotations")),n.add(n._seriesContainer=new hK.LayerElement(i,"rct-series-container")),n.add(n._axisBreakContainer=new hK.LayerElement(i,"rct-axis-breaks")),n.add(n._labelContainer=new hK.LayerElement(i,"rct-label-container")),n.add(n._frontGuideContainer=new kJ(i,"rct-front-axis-guides")),n.add(n._frontAnnotationContainer=new hK.LayerElement(i,"rct-front-annotations")),n.add(n._feedbackContainer=new hK.LayerElement(i,"rct-feedbacks")),n.add(n._zoomButton=new LJ(i)),n._crosshairViews=new cK.ElementPool(n._feedbackContainer,TJ),n}return nK(e,t),e.prototype.getAnnotationAnchor=function(t){return this._gaugeMap.get(t)||this._annotationMap.get(t)},e.prototype.getCol=function(){return 0},e.prototype.getRow=function(){return 0},e.prototype.prepareRender=function(t,e,i){var r=e.chart,n=e.depth.visible;this._animatable=hK.RcControl._animatable&&r.animatable(),this._polar=i,this._prepareSeries(t,e,r._getSeries().getVisibleSeries(),n),r._getGauges()&&this._prepareGauges(t,r,r._getGauges().getVisibles()),this._prepareAnnotations(t,r._body.getAnnotations())},e.prototype.prepareGuideContainers=function(){this._guideContainer.clean(),this._frontGuideContainer.clean()},e.prototype.checkDepth=function(t,e,i){return this._depthExt=t._body._getDepth(e,i)},e.prototype.pointerMoved=function(t,e){var i,r,n,o,s=this.width,a=this.height,l=this._inverted,u=this._polar,c=this._seriesViews,p=c.length,h=t.x>=0&&t.x<s&&t.y>=0&&t.y<a;if(KK.SeriesView.isPointDom(e))for(var f=p-1;f>=0;f--)if(o=c[f].pointByDom(e)){n=c[f];break}var d=null==e?void 0:e.classList,_=(null==d?void 0:d.value)&&(d.contains("rct-contextmenu-item")||d.contains("rct-contextmenu-list")),y=h&&!this._zoomRequested&&!this.chart().isEmpty(!0)&&!_;if(this._crosshairViews.forEach((function(e){e.setVis(y)&&e.layout(o,t.x,t.y,s,a)})),o)this.$_setFocused(n,o,t);else if(p>0){var g,v,m=this.chart().chartOptions.pointHovering.getHintDistance(null==n?void 0:n.model),b=!u;try{for(var x=aK(c),w=x.next();!w.done;w=x.next()){if(!(w.value.model instanceof BK.LineSeriesBase)){b=!1;break}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(r=x.return)&&r.call(x)}finally{if(i)throw i.error}}if(n=null,b)if(p>1){var S=[];c.forEach((function(e){g=(0,uK.pickNum)(e.getHintDistance(),m),v=e.getNearest2(t.x,t.y,l),S.push({hint:g,sv:e,pv:v})}));var P=S.reduce((function(e,i){if(!e.pv||!i.pv)return e||i;var r=e.pv.pv.point.xPos-t.x,n=e.pv.pv.point.yPos-t.y,o=r*r+n*n,s=i.pv.pv.point.xPos-t.x,a=i.pv.pv.point.yPos-t.y;return o<s*s+a*a?e:i}));n=P.sv,v=P.pv,g=P.hint}else n=c[0],g=(0,uK.pickNum)(n.getHintDistance(),m),v=n.getNearest2(t.x,t.y,l);else c.forEach((function(e){if(e.getHintDistance&&(g=(0,uK.pickNum)(e.getHintDistance(),m))>0){var i=e.getNearest(t.x,t.y);(!v||i.dist<v.dist)&&(n=e,v=i)}}));h&&v&&n.canHover(v.dist,v.pv,g)?this.$_setFocused(n,v.pv,t):this.$_setFocused(null,null,t)}return h},e.prototype.hoverSeries=function(t){this.$_hoverSeries(this._seriesMap.get(t))},e.prototype.$_setFocused=function(t,e,i){var r,n,o,s=this._owner,a=this.chart(),l=null==t?void 0:t.model,u=this.chart().chartOptions.pointHovering,c=this._focused,p=this._siblings,h=this._siblingSeries;if(l&&l.options.interactive&&e&&u.visible)switch(u.getScope(l,e.point)){case"axis":o=l._xAxisObj.getSeries();case"group":o||(o=l._group.getVisibleSeries());var f=o.map((function(t){if(t instanceof wK.MarkerSeries){for(var r=void 0,n=Number.MAX_SAFE_INTEGER,o=0;o<t.getPoints().count;o++){var s=t.getPoints().get(o),a=void 0;if(t instanceof TK.BubbleSeries){var l=(t._xAxisObj._vlen<t._yAxisObj._vlen?t._xAxisObj:t._yAxisObj)._vlen,u=t.getPixelMinMax(l),c=u.min,p=u.max,h=t.getRadius(s.zValue,c,p);a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2))-h}else a=Math.sqrt(Math.pow(s.xPos-i.x,2)+Math.pow(s.yPos-i.y,2));a<n&&(n=a,r=s)}return r}return t.getPoints().pointAt(e.point.xValue)}));r=o.map((function(t){return s.getSeriesView(t)})),n=[],f.forEach((function(t,e){n.push(r[e].getPointView(t))}));break;default:r=[t],n=[e]}var d=[];if(r&&r.forEach((function(t,e){d.push.apply(d,sK([],oK(t.getSiblings(n[e])),!1))})),d=d.length>1?d.sort((function(t,e){return t.hash-e.hash})):d.length>0?d:null,dK.Utils.equalArrays(p,d)||(r&&r.forEach((function(t,e){t.focusPoints(t.getSiblings(n[e]))})),h&&h.forEach((function(t){(!r||r.indexOf(t)<0)&&t.focusPoints(null)})),this._siblingSeries=r,this._siblings=d),e!==c){var _=this._focusedSeries;this._focused=e,t!==_&&(_&&this.$_focusSeries(_,!1),this._focusedSeries=t,l&&l.options.interactive&&this.$_focusSeries(t,!0),l&&a.chartOptions.options.seriesHovering&&l.options.interactive&&this.$_hoverSeries(t))}this._focused&&l&&l.options.interactive&&(this._focused!==c||!s.tooltipVisible()||a._tooltip.isFollowPointer(t.model))?i.x>0&&i.x<this.width&&i.y>0&&i.y<this.height?s.showTooltip(l,e,[],this,i):s.hideTooltip():!this._focused&&s.tooltipVisible()&&s.hideTooltip()},e.prototype.$_focusSeries=function(t,e){e?t.model._group?t.front(this._seriesViews,this._seriesViews.filter((function(e){return e.model._group===t.model._group}))):t.front(this._seriesViews):t&&t.parent&&t.back(this._seriesViews)},e.prototype.$_hoverSeries=function(t){this._seriesViews.forEach((function(e){e.setBoolData(KK.SeriesView.DATA_UNHOVER,t&&e!==t),e._labelContainer.setBoolData(KK.SeriesView.DATA_UNHOVER,t&&e!==t)}))},e.prototype.hoverPoint=function(t){var e=this.chart().seriesByPoint(t),i=this.getSeries(e);i?(i.hoverPoint(t),this._hoverPointSeries.push(i)):this._hoverPointSeries&&(this._hoverPointSeries.forEach((function(t){return t.hoverPoint(null)})),this._hoverPointSeries.length=0)},e.prototype.clearHover=function(){this.hoverPoint(null),this.hoverSeries(null),this._seriesViews.forEach((function(t){return t.focusPoints(null)})),this.removeFocus()},e.prototype.seriesByDom=function(t){return this._seriesViews.find((function(e){return e.dom.contains(t)}))},e.prototype.annotationByDom=function(t){return this._annotationViews.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeries=function(t){return this._seriesMap.get(t)},e.prototype.isConnected=function(t){return!!this._seriesViews.find((function(e){return e.model._xAxisObj==t||e.model._yAxisObj==t}))},e.prototype.getButton=function(t){if(this._zoomButton.contains(t))return this._zoomButton},e.prototype.buttonClicked=function(t){t===this._zoomButton&&(this.model.chart._getXAxes().resetZoom(),this.model.chart._getYAxes().resetZoom())},e.prototype.addFeedback=function(t){t&&this._feedbackContainer.add(t)},e.prototype.setZoom=function(t,e,i,r){var n=this.chart(),o=n.isInverted(),s=n.xAxis,a=o?this.height:this.width,l=s.valueAt(a,o?a-r:t),u=s.valueAt(a,o?a-e:i);s.zoom(l,u)&&(this._zoomRequested=!0)},e.prototype.getTooltipPos=function(){return{x:this.tx,y:this.ty}},e.prototype.getFocusPointView=function(){return this._focused},e.prototype.getSeries=function(t){return this._seriesViews.find((function(e){return e.model===t}))},e.prototype.removeFocus=function(){this._seriesViews.forEach((function(t){t._hoverPts.forEach((function(e){e instanceof KK.MarkerSeriesPointView&&e.endHover(t,!1),e.setBoolData(KK.SeriesView.DATA_FOCUS,!1)})),t._hoverPts=[],t._hoverAnis.forEach((function(t){t.cancel()})),t._hoverAnis=[]})),this._owner.hideTooltip(),this._focused=null,this._siblings=null,this._siblingSeries=null},e.prototype.getBounds=function(){return this._hitTester.getBounds()},e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a=this,l=this.control,u=e.chart,c=this._depthExt,p=c?c.wBody:i,h=c?c.hBody:r;if(this._zoomRequested=!1,this.isClip(this._seriesClip)||(this._seriesClip=l.clipBounds(),this._seriesClip2=l.clipBounds(),this._bodyClip=l.clipBounds()),this._background.internalSetStyleOrClass(e._style),this._background.setBoolData("polar",this._polar||u.isWidget()),this._seriesViews.forEach((function(e,i){e.measure(t,a._series[i],p,h,n)})),!this._polar){this.$_prepareGrids(t,u);try{for(var f=aK(this._gridViews.keys()),d=f.next();!d.done;d=f.next()){var _=d.value;this._gridViews.get(_).measure(t,_.grid,p,h,n)}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}this.$_prepareAxisBreaks(t,u)}return this._gaugeViews.forEach((function(e,i){e.measure(t,a._gauges[i],p,h,n)})),this._annotationViews.forEach((function(e,i){e.measure(t,a._annotations[i],p,h,n)})),this._zoomButton.setVis(e.zoomButton.visible)&&this._zoomButton.layout(),{width:i,height:r}},e.prototype._clipSeries=function(t,e,i){var r=i?this._seriesClip:this._seriesClip2;t&&t.setClip(r),e&&e.setClip(r)},e.prototype._renderBackground=function(t,e,i){t.setPath(bK.SvgShapes.rectangle(0,0,e,i))},e.prototype._setImage=function(t,e,i,r){if(e.setVis(t.visible&&!!t.options.url))return e.setImage(t.options.url,i,r),e.setStyleOrClass(t._style),!0},e.prototype._doLayout=function(){var t,e,i,r,n=this,o=this.control,s=this.model;s.image;var a=this._depthExt,l=this.width,u=this.height,c=a?a.wBody:l,p=a?a.hBody:u,h=a?a.base:0;if(this._inverted){var f=a?a.side:0;this._seriesClip.setBounds(-f,-c,u,l),this._seriesClip2.setBounds(-f,0,l,u)}else this._seriesClip.setBounds(-h,0,l,u),this._seriesClip2.setBounds(-h,0,l,u);if(this._bodyClip.setBounds(0,0,c,p),this._hitTester.trans(h,0).resize(c,p),this._background.trans(h,0).resize(c,p),this._seriesContainer.trans(h,0),this._renderBackground(this._background,c,p),this._setImage(s.image,this._image,c,p),this._depthLayer.setVis(!this._polar&&a&&a.depth>0),this._seriesViews.forEach((function(t){t.model.needClip(!1)&&n._clipSeries(t.getClipContainer(),t.getClipContainer2(),t.clipInvertable()),t.depthEnabled&&t._setDepth(a),t.resize(c,p),t.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),!this._polar){this._depthLayer.render(o.doc(),this._inverted,s.depth,this._gridViews,a,this.width,this.height);try{for(var d=aK(this._gridViews.values()),_=d.next();!_.done;_=d.next()){(v=_.value).resize(c,p),v.trans(h,0),v.layout()}}catch(e){t={error:e}}finally{try{_&&!_.done&&(e=d.return)&&e.call(d)}finally{if(t)throw t.error}}try{for(var y=aK(this._baseViews.values()),g=y.next();!g.done;g=y.next()){var v,m=(v=g.value).tag;v.setStyleOrClass(m.baseLine._style),m._isHorz?v.setVLine(m.getPos(c,m.getBaseValue()),0,p):v.setHLine(p-m.getPos(p,m.getBaseValue()),0,c)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(r=y.return)&&r.call(y)}finally{if(i)throw i.error}}if(this._breakViews.forEach((function(t){var e=t._model,i=e.axis;i._isHorz?i.options.reversed?t.trans(c-e._sect.pos,0):t.trans(e._sect.pos,0):i.options.reversed?t.trans(0,e._sect.pos):t.trans(0,p-e._sect.pos-e._sect.len),t.layout(c,p,e.axis._isHorz)})),this.isClip(this._guideClip))this._guideClip.resize(o.width(),o.height());else{var b=o._padding;this._guideClip=o.clipBounds(-1*(b.left+this.tx),-1*(b.top+this.ty),o.width(),o.height())}[this._guideContainer,this._frontGuideContainer].forEach((function(t){t.setVis(t._views.length>0)&&(t._views.forEach((function(t){return t.visible&&t.layout(c,p)})),t.setClip(n._guideClip))})),this._gridRowContainer.layout(c,p),this._gridRowContainer.trans(h,0)}this.$_prepareCrosshairs(s.chart),this._gaugeViews.forEach((function(t){t.resizeByMeasured(),t.layout().transp(t.getPosition(c,p))})),this._layoutAnnotations(this._inverted,this,c,p),this._zoomButton.visible&&this._zoomButton.trans(c-this._zoomButton.getBBox().width-10,10),this._emptyView.setVis(this.$_isEmptyVisible(s))&&(this.model.emptyView._prepareRender(),this._emptyView.layout(s.emptyView,c,p))},e.prototype.$_isEmptyVisible=function(t){var e,i,r,n;if(!1!==t.emptyView.visible&&t.chart.isEmpty(!0))return!0;var o=!0;try{for(var s=aK(this._seriesViews),a=s.next();!a.done;a=s.next()){if(!a.value.isEmptyView()){o=!1;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}if(o)try{for(var l=aK(this._gaugeViews),u=l.next();!u.done;u=l.next()){if(!u.value.isEmptyView()){o=!1;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return o&&!1!==t.emptyView.visible},e.prototype.$_createGaugeView=function(t,e){return new(qK.gauge_view_types[e._type()])(t)},e.prototype.$_prepareGrids=function(t,e){var i,r,n,o,s=e._needAxes(),a=this._gridContainer,l=this._gridViews,u=this._baseContainer,c=this._baseViews,p=this.getCol(),h=this.getRow();try{for(var f=aK(l.keys()),d=f.next();!d.done;d=f.next()){var _=d.value;s&&e.containsAxis(_)&&_.checkVisible()&&_.grid.visible||(l.get(_).remove(),l.delete(_))}}catch(t){i={error:t}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}try{for(var y=aK(c.keys()),g=y.next();!g.done;g=y.next()){_=g.value;s&&e.containsAxis(_)&&_.checkVisible()&&(!(_ instanceof PK.ContinuousAxis)||_.baseLine.visible)&&_.isBaseVisible()||(c.get(_).remove(),c.delete(_))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}s&&[e._getXAxesAtPane(p,h,!0),e._getYAxesAtPane(p,h,!0)].forEach((function(e){return e.forEach((function(e){var i=e.grid;if(!l.has(e)&&(i.visible||i.options.firstVisible||i.options.lastVisible)){var r=new PJ(t);l.set(e,r),a.add(r)}if(e instanceof PK.ContinuousAxis&&e.baseLine.visible&&e.isBaseVisible()&&!c.has(e)){r=new gK.LineElement(t,"rct-axis-baseline");c.set(e,r),u.add(r),r.tag=e}}))}))},e.prototype._prepareSeries=function(t,e,i,r){var n,o,s=this,a=e.chart,l=this._inverted=a.isInverted(),u=this._seriesMap,c=this._seriesViews,p=r?e.depth:null;try{for(var h=aK(u.keys()),f=h.next();!f.done;f=h.next()){var d=f.value;i.indexOf(d)<0&&(u.get(d).remove(),u.delete(d))}}catch(t){n={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}this._series=i,c.forEach((function(t){i.indexOf(t.model)<0&&(s.control.loaded?t.removeLater(200):t.remove(),t._labelContainer.remove())})),c.length=0,i.forEach((function(e){var i=u.get(e)||SJ(t,e);i._setChartOptions(l,s._animatable,a.loadAnimatable()),i.parent||(s._seriesContainer.add(i),s._labelContainer.add(i._labelContainer)),u.set(e,i),c.push(i),i.prepareSeries(t,e,s._polar,p)})),this._seriesContainer.sort(c),c.forEach((function(t){return s._labelContainer.dom.appendChild(t._labelContainer.dom)}))},e.prototype._prepareGauges=function(t,e,i){var r,n,o=this,s=this._seriesContainer,a=e.isInverted(),l=this._gaugeMap,u=this._gaugeViews;try{for(var c=aK(l.keys()),p=c.next();!p.done;p=c.next()){var h=p.value;i.indexOf(h)<0&&(l.get(h).remove(),l.delete(h))}}catch(t){r={error:t}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this._gauges=i,u.forEach((function(t){return t.remove()})),u.length=0,i.forEach((function(i){var r=l.get(i)||o.$_createGaugeView(t,i);s.add(r),l.set(i,r),u.push(r),r.prepareGauge(t,i),r._setChartOptions(a,o._animatable,e.loadAnimatable())}))},e.prototype._prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=aK(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&(s.get(c).remove(),s.delete(c))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||wJ(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_prepareAxisBreaks=function(t,e){var i=this._axisBreakContainer,r=this._breakViews,n=this.getCol(),o=this.getRow(),s=[];for([e._getXAxesAtPane(n,o,!1),e._getYAxesAtPane(n,o,!1)].forEach((function(t){return t.forEach((function(t){t instanceof PK.LinearAxis&&s.push.apply(s,sK([],oK(t._getBreaks()),!1))}))}));r.length<s.length;){var a=new AJ(t);i.add(a),r.push(a)}for(;r.length>s.length;)r.pop().remove();r.forEach((function(t,e){return t.setModel(s[e])}))},e.prototype.$_prepareCrosshairs=function(t){var e=this,i=this._crosshairViews,r=this.getCol(),n=this.getRow(),o=[];t._needAxes()&&[t._getXAxesAtPane(r,n,!0),t._getYAxesAtPane(r,n,!0)].forEach((function(t){return t.forEach((function(t){t.crosshair.visible&&o.push(t.crosshair)}))})),i.prepare(o.length,(function(t,i){t.setModel(o[i]),t.setClip(e._bodyClip)}))},e.prototype._layoutAnnotations=function(t,e,i,r){var n=this;this._annotationViews.length>0&&this._annotationViews.forEach((function(o){o._layoutView(t,e,0,0,i,r),!n._polar&&o.model.needClip()&&o.resetClip(n.control,i,r)}))},e.BODY_CLASS="rct-body",e}(YK.ChartElement);oU.BodyView=BJ;var DJ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(nU,"__esModule",{value:!0}),nU.NavigatorView=nU.NavigatorHandleView=void 0;var IJ=Tj,GJ=fj,FJ=IB,zJ=lW,$J=oU,HJ=xW,WJ=iM,UJ=function(t){function e(e){var i=t.call(this,e,XJ.HANDLE_STYLE)||this;return i.add(i._back=new FJ.RectElement(e)),i.add(i._shape=new GJ.PathElement(e)),i._shape.setFill("white"),i}return DJ(e,t),e.prototype.layout=function(t,e,i){if(t!==this._w||e!==this._h||i!==this._vertical){var r=1.3*(0,WJ.minv)(t,e),n=new IJ.PathBuilder;this._back.rect={x:-r/2,y:-r/2,width:r,height:r,rx:r/2},r/=3,n.polygon(-r-1,0,-1,-r,-1,r),n.polygon(r+1,0,1,-r,1,r),this._shape.setPath(n.end()),this._w=this.width=t,this._h=this.height=e,this._vertical=i}},e}(GJ.RcElement);nU.NavigatorHandleView=UJ;var XJ=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r.add(r._back=new FJ.RectElement(i,e.BACK_STYLE)),r.add(r._container=new GJ.LayerElement(i,null)),r.add(r._mask=new FJ.RectElement(i,e.MASK_STYLE)),r.add(r._trackView=new FJ.RectElement(i,e.TRACK_CLASS)),r.add(r._thumbView=new FJ.RectElement(i,e.THUMB_CLASS)),r.add(r._startHandle=new UJ(i)),r.add(r._endHandle=new UJ(i)),r._startHandle.setStyle("cursor","ew-resize"),r._endHandle.setStyle("cursor","ew-resize"),r._mask.setStyle("cursor","ew-resize"),r._mask.dom.addEventListener("dblclick",(function(){r.model.axis()._zoom&&r.model.axis().resetZoom()})),r}return DJ(e,t),e.isHandle=function(t){var i;return null===(i=t.parentElement)||void 0===i?void 0:i.classList.contains(e.HANDLE_STYLE)},e.isMask=function(t){return t.classList.contains(e.MASK_STYLE)},e.prototype.dblClick=function(t){var e=this.model.axis();return this._startHandle.contains(t)?(e.zoom(e._zoom.min,e._zoom.end),!0):this._endHandle.contains(t)?(e.zoom(e._zoom.start,e._zoom.max),!0):void(this.contains(t)&&e.resetZoom())},e.prototype.svgToElement=function(t,e){return this.control.svgToElement(this._back,t,e)},e.prototype._doMeasure=function(t,e,i,r,n){var o=e._naviChart;o.firstSeries;var s=i,a=r;return e._vertical?s=e.getSize():a=e.getSize(),e._naviChart.layoutAxes(s,a,!1,1),this.$_prepareSeriesView(t,o),this.$_prepareXAxisView(t,o),this.$_prepareYAxisView(t,o),e._naviChart.xAxis._calcPoints(s,101),e._naviChart.yAxis._calcPoints(a,1),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this.model,i=e.axis()._zoom,r=e.options,n=this.width,o=this.height;if(this._back.resize(n,o),e._vertical);else{var s=i?(i.start-i.min)*n/i.total():0,a=i?(i.end-i.min)*n/i.total():n;this._mask.setVis(r.mask.visible)&&(this._mask.setBounds(s,0,a-s,o),this._mask.setStyleOrClass(r.mask.style)),this._trackView.setBounds(-2,o,n+4,6),this._trackView.setRadius(4),this._thumbView.setBounds(s,o,a-s,6),this._startHandle.setVis(r.handle.visible),this._endHandle.setVis(r.handle.visible),this._startHandle.visible&&this._endHandle&&(this._startHandle.layout(o/3,o/3,!1),this._startHandle.trans(s,o+3),this._endHandle.layout(o/3,o/3,!1),this._endHandle.trans(a,o+3),this._startHandle.setStyleOrClass(r.handle.style),this._endHandle.setStyleOrClass(r.handle.style))}this._seriesView&&(this._seriesView.measure(this.doc,e._naviChart.firstSeries,n,o,1),this._seriesView.resize(n,o),this._seriesView.layout(),this._seriesView.afterLayout()),this._xAxisView&&(this._xAxisView.measure(this.doc,e._naviChart.xAxis,n,o,1),this._xAxisView.resize(n,o),this._xAxisView.layout()),this._yAxisView.setVis(!1)},e.prototype.$_prepareSeriesView=function(t,e){var i=e.firstSeries,r=this._seriesView;r&&r.model!==i&&(r.remove(),r=this._seriesView=null),r||(this._container.add(r=this._seriesView=(0,$J.createSeriesView)(t,i)),r._simpleMode=!0),r&&r.prepareSeries(t,i,!1,null)},e.prototype.$_prepareXAxisView=function(t,e){var i=e.xAxis,r=this._xAxisView;r&&r.model!==i&&(r.remove(),r=this._xAxisView=null),r||(this._container.add(r=this._xAxisView=new zJ.AxisView(t)),r._simpleMode=!0)},e.prototype.$_prepareYAxisView=function(t,e){var i=e.yAxis,r=this._yAxisView;r&&r.model!==i&&(r.remove(),r=this._yAxisView=null),r||(this._container.add(r=this._yAxisView=new zJ.AxisView(t)),r._simpleMode=!0)},e.CLASS_NAME="rct-navigator",e.BACK_STYLE="rct-navigator-back",e.MASK_STYLE="rct-navigator-mask",e.HANDLE_STYLE="rct-navigator-handle",e.HANDLE_BACK_STYLE="rct-navigator-handle-back",e.TRACK_CLASS="rct-navigator-track",e.THUMB_CLASS="rct-navigator-thumb",e}(HJ.ChartElement);nU.NavigatorView=XJ;var YJ={},qJ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(YJ,"__esModule",{value:!0}),YJ.NavigatorMaskTracker=YJ.NavigatorHandleTracker=YJ.ScrollTracker=YJ.ZoomTracker=YJ.ChartDragTracker=void 0;var ZJ=iM,KJ=IB,JJ=function(t){function e(e){var i=t.call(this)||this;return i.chart=e,i}return qJ(e,t),e}(fj.DragTracker);YJ.ChartDragTracker=JJ;var QJ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._body=i,n._vertical=r,n}return qJ(e,t),e.prototype._doStart=function(t,e,i,r,n){if(this._body.chart().isPolar())return!1;var o=this.chart.getBounds(),s=this._body.getBounds();return this._xStart=(0,ZJ.maxv)(0,e-(s.x-o.x)),this._yStart=(0,ZJ.maxv)(0,i-(s.y-o.y)),this._body.addFeedback(this._feedback=new KJ.RectElement(this.chart.doc(),"rct-zoom-tracker")),!0},e.prototype._hideFeedback=function(){this._feedback.remove()},e.prototype._doEnded=function(t,e){var i=this.chart.getBounds(),r=this._body.getBounds();this._vertical?(e=(0,ZJ.maxv)(0,(0,ZJ.minv)(r.height,e-(r.y-i.y))),this._body.setZoom(0,(0,ZJ.minv)((0,ZJ.maxv)(0,this._yStart),e),this._body.width,(0,ZJ.maxv)((0,ZJ.minv)(this._yStart,r.height),e))):(t=(0,ZJ.maxv)(0,(0,ZJ.minv)(r.width,t-(r.x-i.x))),this._body.setZoom((0,ZJ.maxv)(0,(0,ZJ.minv)(this._xStart,t)),0,(0,ZJ.maxv)((0,ZJ.minv)(this._xStart,r.width),t),this._body.height)),this._feedback.remove()},e.prototype._doDrag=function(t,e,i,r,n){var o=this.chart.getBounds(),s=this._body.getBounds();return this._vertical?(n=(0,ZJ.maxv)(0,(0,ZJ.minv)(s.height,n-(s.y-o.y))),this._feedback.setBounds(0,(0,ZJ.minv)(this._yStart,n),this._body.width,(0,ZJ.absv)(this._yStart-n))):(r=(0,ZJ.maxv)(0,(0,ZJ.minv)(s.width,r-(s.x-o.x))),this._feedback.setBounds((0,ZJ.minv)(this._xStart,r),0,(0,ZJ.absv)(this._xStart-r),this._body.height)),!0},e}(JJ);YJ.ZoomTracker=QJ;var tQ=function(t){function e(e,i){var r=t.call(this,e)||this;return r._view=i,r}return qJ(e,t),e.prototype._doStart=function(t,e,i,r,n){var o=this._view,s=o.model.axis._zoom;if(s){var a=o._thumbView.elementToSvg(0,0);return this._startOff=o._vertical?i-a.y:e-a.x,this._zoomLen=Math.floor(s.length()),!0}return!1},e.prototype._doDrag=function(t,e,i,r,n){var o,s=this._view;return s._vertical?(o=s.svgToElement(r,n).y-this._startOff,o=s.getZoomPos(s.height-o-s._thumbView.height)):(o=s.svgToElement(r,n).x-this._startOff,o=s.getZoomPos(o)),s.model.axis.zoom(o,o+this._zoomLen),!0},e}(JJ);YJ.ScrollTracker=tQ;var eQ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,(n._isStart=i._startHandle.contains(r))?n._handleView=i._startHandle:n._handleView=i._endHandle,n}return qJ(e,t),e.prototype.cancel=function(){t.prototype.cancel.call(this),this._handleView.setBoolData("select",!1)},e.prototype._doStart=function(t,e,i,r,n){var o=this._handleView,s=o.elementToSvg(0,0);return this._startOff=o._vertical?i-s.y-o.height/2:e-s.x-o.width/2,this._handleView.setBoolData("select",!0),!0},e.prototype._doEnded=function(t,e){this._handleView.setBoolData("select",!1)},e.prototype._doDrag=function(t,e,i,r,n){var o=this._view,s=o.model.axis();s._prepareZoom();var a=o.svgToElement(r,n).x-this._startOff,l=s._zoom.total(),u=s._zoom.min,c=o.model.options.minSize,p=a*l/o.width+u;return this._handleView._vertical?this._isStart:this._isStart?a>0?s.zoom(p,NaN,c):s.zoom(u,NaN,c):a>0&&a<o.width?s.zoom(NaN,p,c):a>=o.width&&s.zoom(NaN,s._zoom.max,c),!0},e}(JJ);YJ.NavigatorHandleTracker=eQ;var iQ=function(t){function e(e,i,r){var n=t.call(this,e)||this;return n._view=i,n._maskView=i._mask,n}return qJ(e,t),e.prototype._doStart=function(t,e,i,r,n){var o=this._view.model.axis(),s=this._maskView.elementToSvg(0,0);return this._startOff=this._view.model._vertical?i-s.y:e-s.x,this._totalLen=o._zoom.total(),this._zoomLen=o._zoom.length(),!0},e.prototype._doEnded=function(t,e){},e.prototype._doDrag=function(t,e,i,r,n){var o=this._view,s=o.svgToElement(r,n).x-this._startOff;return o.model._vertical?this.$_moveZoom(s*this._totalLen/o.height):this.$_moveZoom(s*this._totalLen/o.width),!0},e.prototype.$_moveZoom=function(t){var e=this._view.model;t=(0,ZJ.maxv)(0,(0,ZJ.minv)(t,this._totalLen-this._zoomLen))+e.axis()._zoom.min,e.axis().zoom(t,t+this._zoomLen)},e}(JJ);YJ.NavigatorMaskTracker=iQ,Object.defineProperty(aW,"__esModule",{value:!0}),aW.ChartPointerHandler=void 0;var rQ=rM,nQ=iM,oQ=ZB,sQ=lW,aQ=nU,lQ=EU,uQ=YJ,cQ=function(){function t(t){this._chart=t}return t.prototype.handleDown=function(t){if(t.isPrimary){var e=this._clickElement=t.target;if(e){var i=this.$_pointerToPoint(t);this._dragTracker&&this.$_stopDragTracker(t,e,i.x,i.y),this._prevX=this._clickX=i.x,this._prevY=this._clickY=i.y}}},t.prototype.handleUp=function(t){this.isDragging()&&this.$_stopDragTracker(t,t.target,this._prevX,this._prevY)},t.prototype.handleMove=function(t){var e=this._chart.chartView(),i=t.target,r=this.$_pointerToPoint(t),n=r.x,o=r.y;if(t.buttons>=1||0===t.buttons&&0===t.button){var s=this.isDragging(),a=this._clickElement;n<0||n>=e.control.dom().offsetWidth||o<0||o>=e.control.dom().offsetHeight||(s?this.$_doDrag(t,a,n,o):(!this._dragTracker&&((0,nQ.absv)(this._clickX-n)>3||(0,nQ.absv)(this._clickY-o)>3)||this._dragTracker&&!s)&&this.$_startMove(t,a,n,o))}else this.$_stopDragTracker(t,i,n,o,!0);this._prevX=n,this._prevY=o,this.isDragging()?(e.pointerMoved(-1,-1,null),this._stopEvent(t)):e.getButton(i)||e.pointerMoved(t.pointX,t.pointY,t.target)},t.prototype.handleLeave=function(t){this._chart.chartView().pointerLeaved(t.pointX,t.pointY,t.target)},t.prototype.handleClick=function(t){var e,i,r,n,o,s,a=this._chart.model,l=this._chart.chartView(),u=this._clickElement,c=l.getButton(u),p=this._chart.chart.exporter;if(p.isContextMenuVisible()&&p.toggleContextMenu(),c)!0!==c.click()&&l.buttonClicked(c);else if(r=l.legendByDom(u)){var h=null===(e=r.legend.options)||void 0===e?void 0:e.onLegendItemClick;if("function"!=typeof h||!1!==h({chart:a.wrapper,source:r.legend.getSources(r)}))rQ.Utils.makeArray(r.legend.getSources(r),!0).forEach((function(t){if(t instanceof oQ.DataPoint){var e=t,i=a.seriesByPoint(e);if(i){i.setPointVisible(e,!e.visible);var n=l.findSeriesView(i);n instanceof lQ.WidgetSeriesView&&n.togglePointVisible(e)}}else r.source.visible=!r.source.visible,l.bodyView().hoverSeries(r.source.visible?r.source:null)}))}else(n=l.seriesByDom(u))?n.clicked(u):(s=l.htmlButtonByDom(u))?s.click():(o=l.annotationByDom(u))?o.clicked():(i=l.creditByDom(u))&&i.clicked(u)},t.prototype.handleDblClick=function(t){var e=this._chart.chartView()._navigatorView,i=this._clickElement;!e.visible||e.dblClick(i)},t.prototype.handleWheel=function(t){},Object.defineProperty(t.prototype,"dragTracker",{get:function(){return this._dragTracker},enumerable:!1,configurable:!0}),t.prototype.setDragTracker=function(t){t!=this._dragTracker&&(this._dragTracker&&this._dragTracker.cancel(),this._dragTracker=t)},t.prototype.isDragging=function(){return this._dragTracker&&this._dragTracker.dragging},t.prototype._stopEvent=function(t){t.cancelable&&t.preventDefault(),t.stopImmediatePropagation()},t.prototype.$_pointerToPoint=function(t){var e=this._chart.svg().getBoundingClientRect();return{x:t.clientX-e.left,y:t.clientY-e.top}},t.prototype._getDragTracker=function(t,e,i){var r=this._chart.chartView(),n=r.bodyOf(t);return sQ.AxisScrollView.isThumb(t)?new uQ.ScrollTracker(this._chart,r.getScrollView(t)):aQ.NavigatorView.isHandle(t)?new uQ.NavigatorHandleTracker(this._chart,r._navigatorView,t):aQ.NavigatorView.isMask(t)&&n&&n.model.isZoomed()?new uQ.NavigatorMaskTracker(this._chart,r._navigatorView,t):n&&n.model.canZoom()&&n.contains(t)?new uQ.ZoomTracker(this._chart,n,r._inverted):void 0},t.prototype.$_doDrag=function(t,e,i,r){if(!this.$_drag(e,this._prevX,this._prevY,i,r))return this.$_stopDragTracker(t,e,i,r,!0),this._stopEvent(t),!0},t.prototype.$_startMove=function(t,e,i,r){this.$_startDrag(e,this._prevX,this._prevY,i,r)&&(i!==this._prevX||r!==this._prevY?this.$_doDrag(t,e,i,r):this._stopEvent(t),this._chart.setPointerCapture(t))},t.prototype.$_startDrag=function(t,e,i,r,n){if(this._dragTracker||this.setDragTracker(this._getDragTracker(t,r-e,n-i)),this._dragTracker){if(this._dragTracker.start(t,e,i,r,n))return!0;this._dragTracker=null}return!1},t.prototype.$_drag=function(t,e,i,r,n){return this._dragTracker.drag(t,e,i,r,n)},t.prototype.$_stopDragTracker=function(t,e,i,r,n){void 0===n&&(n=!1),this.isDragging()&&(this._chart.releasePointerCapture(t),n?this._dragTracker.cancel():this._dragTracker.drop(null,i,r),this._dragTracker=null)},t}();aW.ChartPointerHandler=cQ;var pQ={},hQ={},fQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(hQ,"__esModule",{value:!0}),hQ.HistoryView=void 0;var dQ=uj,_Q=function(t){function e(i){var r=t.call(this,i,e.TITLE_CLASS)||this;return r._itemViews=[],r._separators=[],r.itemGap=8,r.setVis(!1),r}return fQ(e,t),e.prototype.setHistory=function(t,e){if(this.setVis(e&&e.length>0)){for(var i=this._itemViews,r=this._separators;i.length<e.length;){(n=new dQ.TextElement(t,"rct-history-item")).anchor=dQ.TextAnchor.START,i.push(n)}for(;i.length>e.length;)i.pop().remove();for(;r.length<e.length-1;){var n;(n=new dQ.TextElement(t)).anchor=dQ.TextAnchor.START,n.text=">",r.push(n)}for(;r.length>e.length-1;)r.pop().remove();this.$_layout(e)}},e.prototype.$_layout=function(t){for(var e=this._itemViews,i=this._separators,r=this.itemGap,n=t.length,o=0,s=0;s<n;s++)e[s].text=t[s].name,e[s].transX(o),s<n-1&&(o+=e[s].width+r,i[s].transX(o),o+=i[s].width+r)},e.TITLE_CLASS="rct-history",e}(fj.LayerElement);hQ.HistoryView=_Q;var yQ={},gQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(yQ,"__esModule",{value:!0}),yQ.LegendView=yQ.LegendItemView=void 0;var vQ=iM,mQ=uW,bQ=fW,xQ=nM,wQ=IB,SQ=uj,PQ=xW,AQ=function(t){function e(e){var i=t.call(this,e,"rct-legend-item")||this;return i.add(i._back=new wQ.RectElement(e)),i._back.setFill("transparent"),i._back.setStroke("none"),i.add(i._label=new SQ.TextElement(e,"rct-legend-item-label")),i._label.anchor=SQ.TextAnchor.START,i}return gQ(e,t),e.prototype.setMarker=function(t){return t===this._marker&&t.parent===this||this.insertFirst(this._marker=t),this._marker},e.prototype._doMeasure=function(t,e,i,r,n){var o,s,a=e.source;this._label.setBoolData("hidden",!a.visible),this._marker.setBoolData("hidden",!a.visible),this._label.setBoolData("empty",null===(o=a.isEmpty)||void 0===o?void 0:o.call(a)),this._marker.setBoolData("empty",null===(s=a.isEmpty)||void 0===s?void 0:s.call(a)),this._label.text=e.text()||xQ.ELLIPSIS;var l=this._rMarker=this._marker.setVis(e.legend.options.markerVisible)?this._marker.getBBox():bQ.RECT_Z,u=(0,bQ.rectToSize)(this._label.getBBox());return this._gap=(0,vQ.pickNum)(e.legend.options.markerGap,0),{width:l.width+this._gap+u.width,height:(0,vQ.maxv)(l.height,u.height)}},e.prototype._doLayout=function(t){var e=this._rMarker,i=(0,vQ.pickNum)(t,e.width);this._back.setBounds(0,0,this.width,this.height),this._marker.visible&&this._marker.trans((i-e.width)/2,(this.height-e.height)/2),this._label.trans(i+this._gap,(this.height-this._label.getBBox().height)/2)},e}(PQ.ChartElement);yQ.LegendItemView=AQ;var OQ=function(t){function e(i){var r=t.call(this,i,e.LEGEND_CLASS,"rct-legend-background")||this;return r._itemViews=new mQ.ElementPool(r,AQ),r}return gQ(e,t),e.prototype.legendByDom=function(t){var e=this._itemViews.elementOf(t);return e&&e.model},e.prototype.legendOfSeries=function(t){return this._itemViews.find((function(e){return e.model.source===t}))},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,r,n){var o=e.options,s=e.items(),a=this._vertical="vertical"===e.getLayout();return this._ipr=(0,vQ.pickNum)(o.itemsPerLine,Number.MAX_SAFE_INTEGER),this._gap="body"!==e._location?(0,vQ.pickNum)(o.gap,0):0,a?r=e.getMaxHeight(r):i=e.getMaxWidth(i),this.$_prepareItems(t,s),this.$_measure(t,e,a,this._ipr,i,r)},e.prototype._doLayout=function(){var t,e=this,i=this.model.options,r=this._rowViews,n=i.useTextColor,o=this._sizes,s=i.itemsAlign,a=i.lineGap||0,l=i.itemGap||0,u=this._margins,c=this._paddings,p=this._vertical,h=u.left+c.left,f=u.top+c.top,d=h,_=f;this._itemViews.forEach((function(t){var e=t.model.source,i=e.legendColor(),r=e.legendStroke();t._marker.setColor(i),r&&t._marker.setStroke(r),n&&e.visible?t._label.setFill(i):t._label.setFill("")})),r.forEach((function(i,r){p?(i.forEach((function(t){t.mw=o[r],t.resizeByMeasured().layout(e._wMarkers[r])})),_=f,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.height})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.top+u.bottom+c.top+c.bottom,_+="center"===s?(e.height-t)/2:e.height-t),i.forEach((function(t){t.trans(d,_),_+=t.height+l})),d+=o[r]+a):(i.forEach((function(t){t.resizeByMeasured().layout(NaN)})),d=h,"center"!==s&&"end"!==s||(t=i.map((function(t){return t.width})).reduce((function(t,e){return t+e}))+l*(i.length-1)+u.left+u.right+c.left+c.right,d+="center"===s?(e.width-t)/2:e.width-t),i.forEach((function(t){t.trans(d,_),d+=t.width+l})),_+=o[r]+a)}))},e.prototype.$_prepareItems=function(t,e){this._itemViews.prepare(e.length)},e.prototype.$_measure=function(t,e,i,r,n,o){var s,a,l,u,c=this,p=e.options,h=e.items(),f=this._itemViews,d=p.itemGap||0,_=p.lineGap||0,y=e.getMarkerSize(),g=f.count,v=this._rowViews=[],m=this._sizes=[];f.forEach((function(e,i){e.setMarker(h[i].source.legendMarker(t,y)),e.measure(t,h[i],n,o,1)}));var b=0,x=0;if(i){for(;b<g;)u=f.get(b),x%r==0?(v.push(l=[u]),a=u.mh,x++,b++):(a+=d+u.mh)<=o?(l.push(u),x++,b++):x=0;this._wMarkers=[],s=a=0,v.forEach((function(t,e){var i=0,r=0,n=0;t.forEach((function(t){r+=t.mh,i=(0,vQ.maxv)(i,t.mw),n=(0,vQ.maxv)(n,t._rMarker.width),t._col=e})),r+=d*(t.length-1),a=(0,vQ.maxv)(a,r),s+=i,m.push(i),c._wMarkers.push(n)})),s+=_*(v.length-1)}else{for(;b<g;)u=f.get(b),x%r==0?(v.push(l=[u]),s=u.mw,x++,b++):(s+=d+u.mw)<=n?(l.push(u),x++,b++):x=0;s=a=0,v.forEach((function(t){var e=0,i=0;t.forEach((function(t){e+=t.mw,i=(0,vQ.maxv)(i,t.mh)})),e+=d*(t.length-1),s=(0,vQ.maxv)(s,e),a+=i,m.push(i)})),a+=_*(v.length-1)}return{width:s,height:a}},e.LEGEND_CLASS="rct-legend",e}(PQ.BoundableElement);yQ.LegendView=OQ;var CQ={},VQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(CQ,"__esModule",{value:!0}),CQ.PolarBodyView=void 0;var EQ=iM,kQ=rM,TQ=uW,LQ=fj,NQ=GB,MQ=nM,jQ=fU,RQ=QG,BQ=lW,DQ=oU,IQ=jI,GQ=function(t){function e(e){var i=t.call(this,e,"rct-polar-axis-tick-mark")||this;return i.add(i._lineView=new jQ.CircleElement(e)),i}return VQ(e,t),e.prototype.layout=function(){},e}(LQ.RcElement),FQ=function(t){function e(e,i,r,n){var o=t.call(this,e,i)||this;return o.add(o._markContainer=new LQ.LayerElement(e,"rct-polar-axis-markers")),o._markViews=new TQ.ElementPool(o._markContainer,GQ),o.add(o._gridContainer=new LQ.RcElement(e,"rct-polar-axis-grids")),o._labelViews=new TQ.ElementPool(o._labelContainer=r,BQ.AxisLabelView,n?"rct-polar-xaxis-label":"rct-polar-yaxis-label"),o}return VQ(e,t),e.prototype.prepare=function(t,e,i,r){this._model=e,this._circular=i,this.$_prepareTickMarks(t,e),this.$_prepareLabels(t,e),this._doPrepare(e,e._ticks,i,r)},e.prototype.layout=function(t,e,i,r){var n=this._model._ticks;return this._doLayout(this._model,e,i,r,n,t),this},e.prototype.$_prepareTickMarks=function(t,e){this._markViews.prepare(e._ticks.length)},e.prototype._prepareLabel=function(t,e,i,r){var n=i.getLabelText(e,r),o=e.label,s=i.getLabelStyle(e,r);(t.value=e.value,null!=n)?o&&n.match(BQ.axis_label_reg)?t.setLabel(i,s,e,n.replace(BQ.axis_label_reg,o),1e3,1e3):(i.prepareRich(n),i._paramTick=e,i.buildSvg(t._text,t._outline,NaN,NaN,i,i._domain)):t.setLabel(i,s,e,o,1e3,1e3)},e.prototype.$_prepareLabels=function(t,e){var i=this,r=e.label;if(r.visible&&e.checkVisible()){var n=e._ticks,o=r.chart._body.getPolar(e),s=o.start,a=o.total,l="auto"===r.options.rotation,u=n.length;this._labelContainer.setStyleOrClass(r._style),this._labelViews.prepare(u,(function(t,o,c){t.setVis(!0),i._prepareLabel(t,n[o],r,c);var p=l?(s+e.getPos(u,n[o].value))/a*360+90:0,h=t.getBBox(),f=h.width,d=h.height;t.setRotation(f/2,d/2,p)}))}else this._labelViews.forEach((function(t){return t.setVis(!1)}))},e.prototype.prepareGuides=function(t,e,i){var r=this._model.guides.filter((function(t){return!t.options.front}));e.setAll(t,r,!0),r=this._model.guides.filter((function(t){return t.options.front})),i.setAll(t,r,!0)},e}(LQ.RcElement),zQ=function(t){function e(i,r,n){var o=t.call(this,i,"rct-polar-xaxis",n,!0)||this;return o._gridLines=new TQ.ElementPool(o._gridContainer,RQ.LineElement,e.GRID_CLASS),r.insertFirst(o._startView=new RQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._endView=new RQ.LineElement(i,e.SECTOR_LINE_CLASS)),r.insertFirst(o._lineView=new jQ.ArcPolyElement(i,e.LINE_CLASS)),o}return VQ(e,t),e.prototype._doPrepare=function(t,e,i){var r=t.line,n=t.sectorLine,o=this._lineView;this._gridContainer.setVis(t.grid.visible)&&this._gridLines.prepare(e.length),o.setVis(r.visible)&&(o.setStyleOrClass(r._style),o.setFill("none")),this._startView.setVis(i&&t.isArced()&&n.visible)?(this._startView.setStyleOrClass(n._style),this._endView.setVis(!0),this._endView.setStyleOrClass(n._style)):this._endView.setVis(!1)},e.prototype._doLayout=function(t,e,i,r,n,o){var s=t.getStartAngle(),a=t.getTotalAngle();if(n.forEach((function(t){return t.pos=t.pos/r*a/MQ.PI_2})),this._gridContainer.visible&&this._gridLines.forEach((function(o,a){var l=n[a].pos,u=e+(0,EQ.cos)(s+l)*r,c=i+(0,EQ.sin)(s+l)*r;o.setFill("none"),o.setLine(e,i,u,c),o.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var l=this._labelViews.count;if(l>0){var u=Math.ceil(9/(360/l)),c=r+t.tick._getLength(),p=this._labelContainer.textAlign()||"center",h=[];this._labelViews.forEach((function(t,r){if(t.setVis(r%u==0)){t.layout(p);var o=n[r],a=t.getBBox(),l=t.angle=s+o.pos,f=e+(0,EQ.cos)(l)*(c+a.width/2)-a.width/2,d=i+(0,EQ.sin)(l)*(c+a.height/2)-a.height/2;t.trans(f,d),h.push(t)}}));var f=h.length;f>2&&((0,EQ.absv)(h[f-1].angle-h[f-2].angle)<MQ.PI_2/24||kQ.Utils.diffAngle(h[f-1].angle,h[0].angle)<MQ.PI_2/24)&&h[f-1].setVis(!1)}}if(this._lineView.visible)if(this._circular)this._lineView.setArc(e,i,r,s,a,!0);else{var d=t.isArced(),_=[];d&&n[0].pos>0&&_.push(e+(0,EQ.cos)(s)*r,i+(0,EQ.sin)(s)*r),n.map((function(t){var n=t.pos;_.push(e+(0,EQ.cos)(s+n)*r,i+(0,EQ.sin)(s+n)*r)})),d&&n[n.length-1].pos<a&&_.push(e+(0,EQ.cos)(s+a)*r,i+(0,EQ.sin)(s+a)*r),this._lineView.setPolyline(_)}this._startView.visible&&(this._startView.setLine(e,i,e+(0,EQ.cos)(s)*r,i+(0,EQ.sin)(s)*r),this._endView.setLine(e,i,e+(0,EQ.cos)(s+a)*r,i+(0,EQ.sin)(s+a)*r))},e.LINE_CLASS="rct-polar-xaxis-line",e.SECTOR_LINE_CLASS="rct-polar-xaxis-sector-line",e.GRID_CLASS="rct-polar-xaxis-grid-line",e}(FQ),$Q=function(t){function e(e,i,r){var n=t.call(this,e,"rct-polar-yaxis",r,!1)||this;return n._gridViews=new TQ.ElementPool(n._gridContainer,jQ.ArcPolyElement,"rct-polar-yaxis-grid-line"),i.add(n._lineView=new RQ.LineElement(e,"rct-polar-yaxis-line")),i.add(n._baseView=new jQ.ArcPolyElement(e,"rct-polar-yaxis-baseline")),n}return VQ(e,t),e.prototype._doPrepare=function(t,e,i,r){var n=t.line,o=t instanceof IQ.ContinuousAxis&&t.baseLine;this._gridContainer.setVis(!1!==t.grid.visible)&&this._gridViews.prepare(e.length,null),this._lineView.setVis(n.visible)&&this._lineView.setStyleOrClass(n._style),this._baseView.setVis(o.visible&&t.isBaseVisible())&&this._baseView.setStyleOrClass(o._style)},e.prototype._doLayout=function(t,e,i,r,n,o){function s(t,r){if(t.setFill("none"),a)t.setArc(e,i,r,c,p,!0);else{var n=[];u&&l[0].pos>0&&n.push(e+(0,EQ.cos)(c)*r,i+(0,EQ.sin)(c)*r),l.forEach((function(t){var o=t.pos;n.push(e+(0,EQ.cos)(c+o)*r,i+(0,EQ.sin)(c+o)*r)})),u&&l[l.length-1].pos<p&&n.push(e+(0,EQ.cos)(c+p)*r,i+(0,EQ.sin)(c+p)*r),t.setPolyline(n)}}var a=this._circular,l=o._ticks,u=o.isArced(),c=o.getStartAngle(),p=o.getTotalAngle();if(this._gridContainer.visible&&this._gridViews.forEach((function(e,i){s(e,n[i].pos),e.setStyleOrClass(t.grid.options.style)})),this._labelContainer.visible){var h=this._labelContainer.textAlign()||"right",f="left"===h?0:"center"===h?.5:1,d="left"===h?3:"center"===h?0:-3;if(u){var _=o.getStartAngle();this._labelViews.forEach((function(t,r){var o=t.getBBox();t.setContrast(null).trans(e+(0,EQ.cos)(_)*n[r].pos-o.width*f+d,i+(0,EQ.sin)(_)*n[r].pos-o.height/2)}))}else this._labelViews.forEach((function(t,r){var o=t.getBBox();t.setContrast(null).trans(e-o.width*f+d,i-n[r].pos-o.height/2)}))}this._lineView.visible&&(u?this._lineView.setLine(e,i,e+r*(0,EQ.cos)(c),i+r*(0,EQ.sin)(c)):this._lineView.setVLine(e,i,i-r)),this._baseView.visible&&s(this._baseView,t.getPos(r,t.getBaseValue()))},e}(FQ),HQ=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r._yAxisViews=[],r}return VQ(e,t),e.prototype._doMeasure=function(e,i,r,n,o){var s=i.chart,a=t.prototype._doMeasure.call(this,e,i,r,n,o);return this._circular=this.model.options.circular,this._prepareAxes(e,s.xAxis,s._getYAxes().visibles(),this._circular,s.xAxis.isArced()),a},e.prototype._renderBackground=function(t,e,i){var r=this.model.getPolar(null),n=r.cx,o=r.cy,s=r.rd;t.setPath(NQ.SvgShapes.circle(n,o,s))},e.prototype._setImage=function(e,i,r,n){var o=this.model.getPolar(null),s=o.cx,a=o.cy,l=o.rd;if(t.prototype._setImage.call(this,e,i,2*l,2*l))return i.trans(s-l,a-l),this.isClip(this._polarBodyClip)||(this._polarBodyClip=this.control.clipCircle()),this._polarBodyClip.setCircle(l,l,l),i.setClip(this._polarBodyClip),!0},e.prototype._doLayout=function(){var t=this,e=this.width,i=this.height,r=this.model.setPolar(e,i),n=r.getPolar(null),o=n.cx,s=n.cy,a=n.rd;this._renderBackground(this._background,e,i),this._setImage(r.image,this._image,e,i),this._seriesViews.forEach((function(e){var i;e.setCircular(t._circular),e.model.needClip(!0)&&(t.isClip(t._polarClip)||(t._polarClip=t.control.clipCircle()),t._polarClip.setCircle(o,s,a),e.getClipContainer().setClip(t._polarClip),null===(i=e.getClipContainer2())||void 0===i||i.setClip(t._polarClip)),e.resize(2*a,2*a),e.layout()})),this._seriesViews.forEach((function(t){t.afterLayout()})),this._xAxisContainer.visible&&this._xAxisView.layout(r.chart.yAxis,o,s,a),this._yAxisViews.forEach((function(t){t.layout(r.chart.xAxis,o,s,a)})),[this._guideContainer,this._frontGuideContainer].forEach((function(e){e._views.forEach((function(e){return e.visible&&e.layout(t.width,t.height,r.getPolar(e.model.axis))}))})),this._layoutAnnotations(!1,this,e,i)},e.prototype._prepareAxes=function(t,e,i,r,n){var o=this;if(!this._xAxisContainer){var s=this._image;this.insertAfter(this._xAxisLabelContainer=new LQ.LayerElement(t,"rct-axis-labels rct-polar-axis-labels rct-polar-x-axis-labels"),s),this.insertAfter(this._yAxisLabelContainer=new LQ.LayerElement(t,"rct-axis-labels rct-polar-axis-labels rct-polar-y-axis-labels"),s),this.insertAfter(this._lineContainer=new LQ.LayerElement(t,"rct_axis-lines"),s),this.insertAfter(this._xAxisContainer=new LQ.LayerElement(t,"rct-polar-axes"),s),this.insertAfter(this._yAxisContainer=new LQ.LayerElement(t,"rct-polar-axes"),s)}for(var a=this._yAxisViews;a.length<i.length;){var l=new $Q(t,this._lineContainer,this._xAxisLabelContainer);this._yAxisContainer.add(l),a.push(l)}for(;a.length>i.length;)a.pop().remove();a.forEach((function(e,s){e.setVis(!0),e.prepare(t,i[s],r,n),e.prepareGuides(t,o._guideContainer,o._frontGuideContainer)})),this._xAxisContainer.setVis(e.checkVisible())&&(this._xAxisView||(this._xAxisView=new zQ(t,this._lineContainer,this._yAxisLabelContainer)),this._xAxisContainer.add(this._xAxisView),this._xAxisView.prepare(t,e,r,n))},e}(DQ.BodyView);CQ.PolarBodyView=HQ;var WQ={},UQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(WQ,"__esModule",{value:!0}),WQ.TitleView=void 0;var XQ=fW,YQ=FM,qQ=uj,ZQ=function(t){function e(i,r){var n=t.call(this,i,r?e.SUBTITLE_CLASS:e.TITLE_CLASS,r?"rct-subtitle-background":"rct-title-background")||this;return n.isSub=r,n.add(n._textView=new qQ.TextElement(i)),n._richText=new YQ.SvgRichText,n}return UQ(e,t),e.prototype._marginable=function(){return!1},e.prototype._setBackgroundStyle=function(t){t.setStyleOrClass(this.model.options.backgroundStyle)},e.prototype._doMeasure=function(t,e,i,r,n){return this._richText.setFormat(e.options.text),this._richText.build(this._textView,i,r,null,null),(0,XQ.rectToSize)(this._textView.getBBox())},e.prototype._doLayout=function(){this._richText.layout(this._textView,this.textAlign(),this.width,this.height,this._paddings)},e.TITLE_CLASS="rct-title",e.SUBTITLE_CLASS="rct-subtitle",e}(xW.BoundableElement);WQ.TitleView=ZQ;var KQ={},JQ=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(KQ,"__esModule",{value:!0}),KQ.HtmlTooltipView=KQ.TooltipView=void 0;var QQ=uW,t0=iM,e0=Pj,i0=fj,r0=FM,n0=uj,o0=DB,s0=iI,a0=GB,l0=function(t){function e(e){var i=t.call(this,e,"rct-tooltip-row")||this;return i.add(i._marker=new i0.PathElement(e,"rct-tooltip-row-marker")),i.add(i._textView=new n0.TextElement(e,"rct-tooltip-row-text")),i._textView.anchor=n0.TextAnchor.START,i.add(i._detailView=new n0.TextElement(e,"rct-tooltip-row-detail")),i._detailView.anchor=n0.TextAnchor.START,i}return JQ(e,t),e.prototype.layout=function(t,e,i,r,n){var o,s=e.options,a=e.getMarkerSize(),l=e.getMarkerGap(),u=a0.SvgShapes.getDrawer(s.listMarkerShape);this._marker.setPath(u(a/2)),this._marker.setFill((null===(o=r.legendColor)||void 0===o?void 0:o.call(r))||""),n[0]?(i.setFormat(n[0]),i.build(this._textView,NaN,NaN,null,e.getTextDomain()),this._textView.transX(a+l)):this._textView.text="",n[1]?(i.setFormat(n[1]),i.build(this._detailView,NaN,NaN,null,e.getTextDomain()),this._detailView.transX(a+l+this._textView.getBBox().width+(0,t0.pickNum)(e.options.listGap,4))):this._detailView.text=""},e.prototype.alignDetail=function(t){var e=this._marker.getBBox();this._detailView.transX(t-this._detailView.getBBox().width),this._marker.trans(e.width/2,this.r.height/2)},e}(i0.RcElement),u0=function(t){function e(e){var i=t.call(this,e,"rct-tooltip-list")||this;return i.add(i._headerView=new n0.TextElement(e)),i._headerView.anchor=n0.TextAnchor.START,i.add(i._rowLayer=new i0.LayerElement(e,"")),i.add(i._footerView=new n0.TextElement(e)),i._footerView.anchor=n0.TextAnchor.START,i._rows=new QQ.ElementPool(i._rowLayer,l0),i}return JQ(e,t),e.prototype.layout=function(t,e,i,r){var n=this._headerView,o=this._footerView,s=(0,t0.pickNum)(e.options.listRowGap,4),a=e.getMarkerSize()+e.getMarkerGap(),l=0,u=0;n.setVis(!!r.header)&&(i.setFormat(r.header),i.build(n,NaN,NaN,null,e.getTextDomain()),n.trans(a,l),l+=n.getBBox().height+s),this._rows.prepare(r.items.length).forEach((function(n,o){n.trans(0,l),n.layout(t,e,i,r.items[o],r.rows[o]),l+=n.getBBox().height+s,u=n._width=(0,t0.maxv)(u,(n.r=n.getBBox()).width)})),o.setVis(!!r.footer)&&(i.setFormat(r.footer),i.build(o,NaN,NaN,null,e.getTextDomain()),o.trans(a,l)),this._rows.forEach((function(t){t.alignDetail(u)}))},e}(i0.RcElement),c0=function(t){function e(i){var r=t.call(this,i,e.CLASS_NAME)||this;return r._list={items:null,header:"",rows:null,footer:""},r._hideHandler=function(){r.$_hide(),r._hideTimer=void 0},r.add(r._back=new i0.PathElement(i,"rct-tooltip-back")),r.add(r._top=new i0.PathElement(i,"rct-tooltip-top")),r.add(r._textView=new n0.TextElement(i,"rct-tooltip-text")),r.add(r._listView=new u0(i)),r._back.setAttr("filter","url(#"+i0.RcControl.SHADOW_FILTER+")"),r._textView.anchor=n0.TextAnchor.START,r._richText=new r0.SvgRichText,r.close(!0,!1),r}return JQ(e,t),e.prototype.show=function(t,e,i,r,n,o,s){var a=i.point,l=this._model=t.chart._tooltip,u=l.setTarget(t,a,r&&r.map((function(t){return t.point})));if(u){var c,p=l.options,h=u.isGroupTooltip(),f=this._list;if(h){f.header=f.footer="",f.items=[],f.rows=[];var d=u.getTooltipText(t,a,f);if(0===f.rows.length){if(!(c=(0,t0.isArray)(d)?d.join(" "):d)||!c.trim())return;f.rows=f.items.map((function(){return[c,""]}))}}else{d=p.text||u.getTooltipText(t,a,null);if(!(c=(0,t0.isArray)(d)?d.join(" "):d)||!c.trim())return}this.setStyleOrClass(l._style);var _,y,g,v=e.contentWidth(),m=e.contentHeight(),b=this._listView,x=this._textView,w=l.getHeaderHeight(),S=l.getTailSize(),P=t.chart.isInverted(),A=t._yAxisObj,O=A.options.reversed;t instanceof o0.BasedSeries&&t.getBaseValue(A)>i.point.yValue&&(O=!O),h?(b.setVis(!0),x.setVis(!1),b.layout(e.doc(),l,this._richText,this._list),_=b.getBBox()):(b.setVis(!1),x.setVis(!0),this._richText.setFormat(c),this._richText.build(x,NaN,NaN,null,l.getTextDomain()),_=x.getBBox()),y=(0,t0.maxv)(p.minWidth||0,_.width+16),g=(0,t0.maxv)(p.minHeight||0,_.height+12)+w;var C=t._calcedColor;t instanceof o0.WidgetSeries?(t.options.legendByPoint||t._colorByPoint())&&(C=a._calcedColor):t._colorByPoint()&&(C=getComputedStyle(i.dom).fill),this._top.setFill(C);var V,E,k=this.isVisible()?300:0,T=p.offset+S,L=s.getFocusPointView().getBounds(),N=e.getBounds(),M=l.isFollowPointer(t);if(P&&!t.isWidget)V=o-g/2-(0,t0.maxv)(0,(0,t0.minv)(o-g/2,m-g)),(M?O?y+T>n:n+y+T>v:O?y+T>L.x-N.x+L.width:L.x-N.x-T>v-y)&&(O=!O),E=O?"left":"right",this.$_drawTooltip(0,0,y,g,E,V),O?n-=y+T:n+=T,o-=g/2;else{V=n-y/2-(0,t0.maxv)(0,(0,t0.minv)(n-y/2,v-y));var j=M?o-e.getRootDistance().y:L.y-N.y-e._padding.top,R=M?m-o:N.bottom-L.bottom;if(j>=g+T||R>=g+T){(O?R>=g+T:j>=g+T)?E=O?"bottom":"top":(E=O?"top":"bottom",O=!O),this.$_drawTooltip(0,0,y,g,E,V),n-=y/2,O?o+=T:o-=g+T}else{V=o-g/2-(0,t0.maxv)(0,(0,t0.minv)(o-g/2,m-g));var B=L.x-N.x;E=v-B>=y+T||B<y+T?"right":"left",this.$_drawTooltip(0,0,y,g,E,V),"right"===E?n+=T:n-=y+T,o-=g/2}}return n=(0,t0.maxv)(0,(0,t0.minv)(n,v-y)),o=(0,t0.maxv)(0,(0,t0.minv)(o,m-g)),isNaN(this.tx)||isNaN(this.tx)?(this.trans((0,t0.maxv)(0,n-20),(0,t0.maxv)(0,o-20)),this.transEx(n,o,k/2,!1)):this.transEx(n,o,k,!1),0===k&&this.setStyle("visibility","visible"),this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),{x:n,y:o,w:y,h:g}}},e.prototype.close=function(t,e){t?(this._hideTimer&&(clearTimeout(this._hideTimer),this._hideTimer=void 0),this.$_hide()):this._hideTimer||(this._hideTimer=setTimeout(this._hideHandler,this._model?this._model.options.hideDelay:s0.Tooltip.defaults.hideDelay))},e.prototype.isVisible=function(){return"visible"===this.getStyle("visibility")},e.prototype.$_hide=function(){var t=this;(0,e0.createAnimation)(this.dom,"opacity",void 0,0,200,(function(){t.setStyle("visibility","hidden")}))},e.prototype.$_drawTooltip=function(t,e,i,r,n,o){var s=this._model,a=s.getTailSize(),l=s.getBorderRadius(),u=s.getHeaderHeight(),c=["M",t+l,e,"L",t+i-l,e,"Q",t+i,e,t+i,e+l,"L",t+i,e+r-l,"Q",t+i,e+r,t+i-l,e+r,"L",t+l,e+r,"Q",t,e+r,t,e+r-l,"L",t,e+l,"Q",t,e,t+l,e];if(a>0)switch(n){case"top":c=c.concat(["M",t+i/2-a/2+o,e+r,"L",t+i/2+o,e+r+a,"L",t+i/2+a/2+o,e+r]);break;case"bottom":c=c.concat(["M",t+i/2-a/2+o,e,"L",t+i/2+o,e-a,"L",t+i/2+a/2+o,e]);break;case"left":c=c.concat(["M",t+i,e+r/2-a/2+o,"L",t+i+a,e+r/2+o,"L",t+i,e+r/2+a/2+o]);break;case"right":c=c.concat(["M",t,e+r/2-a/2+o,"L",t-a,e+r/2+o,"L",t,e+r/2+a/2+o])}var p="bottom"===n,h=p?["M",t,e+r-u,"l",i,0,"l",0,u-l,"q",0,l,-l,l,"l",2*l-i,0,"q",-l,0,-l,-l]:["M",t+l,e,"l",i-2*l,0,"q",l,0,l,l,"l",0,u-l,"l",-i,0,"l",0,l-u,"q",0,-l,l,-l],f=this._listView.visible?this._listView:this._textView,d=f.getBBox();t+=(i-d.width)/2,e+=(r-d.height+(p?-u:u))/2,f.trans(t,e),this._top.setPath(u>0?h:""),this._back.setPath(c)},e.CLASS_NAME="rct-tooltip",e}(i0.RcElement);KQ.TooltipView=c0;var p0=function(t){function e(e,i){var r=t.call(this,e,i,!0)||this;return r.addSvg(r._tooltipView=new c0(e)),r}return JQ(e,t),e.prototype._doInitDom=function(e){t.prototype._doInitDom.call(this,e),e.style.pointerEvents="none",e.style.overflow="visible"},e.prototype.show=function(t,e,i,r,n,o){this.setVisibility(!0);var s=this._tooltipView.show(t,this.control,e,i,r,n,o),a=this.control.getRootDistance();this.setBounds(a.x,a.y,s.w,s.h)},e.prototype.close=function(t,e){this.setVisibility(!1),this._tooltipView.close(t,e)},e}(i0.RcHtmlElement);KQ.HtmlTooltipView=p0;var h0={},f0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(h0,"__esModule",{value:!0}),h0.HtmlButtonView=void 0;var d0=dj,_0=nM,y0=rM,g0=function(t){function e(e){var i=t.call(this)||this;return i._dom=i.$_initDom(e),i}return f0(e,t),e.isButton=function(t){return t.classList.contains("rct-html-button")},e.prototype._doDestroy=function(){this._dom.remove(),this._dom=null,t.prototype._doDestroy.call(this)},Object.defineProperty(e.prototype,"dom",{get:function(){return this._dom},enumerable:!1,configurable:!0}),e.prototype.setVisible=function(t){return this._dom.style.display=t?"":"none",t},e.prototype.setModel=function(t){var e=this._dom,i=d0.Dom.isHoverAt(e),r=(this._model=t).options;return d0.Dom.setBoolData(e,"hoverBack","background"===t.getHoverEffect()),isNaN(r.width)?r.autoWidth?e.style.width="max-content":e.style.width="":e.style.width=(0,_0.dimStr)(r.width),isNaN(r.height)?e.style.height="":e.style.height=(0,_0.dimStr)(r.height),"custom"===r.hintMode?(r.hint?e.dataset.hint=r.hint:delete e.dataset.hint,delete e.title):(delete e.dataset.hint,e.title=r.hint||""),r.imageUrl?d0.Dom.setStyles(this._img,{display:"",width:(0,_0.pixel)(r.imageWidth),height:(0,_0.pixel)(r.imageHeight)}):d0.Dom.setStyles(this._img,{display:"none",width:"",height:""}),this.$_setImage(y0.isIE?this._hovered:i),this._span.textContent=r.text||"",this},e.prototype.layout=function(t){var e=this._dom,i=e.style,r=this._model.options,n=r.align,o=r.verticalAlign;i.left=(0,_0.pixel)("left"===n?t.x+(r.offsetX||0):"right"===n?t.x+t.width-e.offsetWidth-(r.offsetX||0):t.x+(t.width-e.offsetWidth)/2+(r.offsetX||0)),i.top=(0,_0.pixel)("top"===o?t.y+(r.offsetY||0):"bottom"===o?t.y+t.height-e.offsetHeight-(r.offsetY||0):t.y+(t.height-e.offsetHeight)/2+(r.offsetY||0))},e.prototype.pointerEnter=function(){this._hovered=!0,this.$_setImage(!0)},e.prototype.pointerLeave=function(){this._hovered=!1,this.$_setImage(!1)},e.prototype.click=function(){this._model.click()},e.prototype.$_initDom=function(t){var e=t.createElement("button"),i=t.createElement("div");return e.className="rct-html-button",d0.Dom.setStyles(e,{position:"absolute",textAlign:"center"}),d0.Dom.setStyles(i,{display:y0.isIE?"flex":"inline-flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),e.appendChild(i),this._img=t.createElement("span"),this._img.className="rct-html-button-image",d0.Dom.setStyles(this._img,{backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center",pointerEvents:"none"}),i.appendChild(this._img),this._span=t.createElement("span"),d0.Dom.setStyles(this._span,{whiteSpace:"pre-line",pointerEvents:"none",textAlign:"center",padding:"2px"}),y0.isIE&&d0.Dom.setStyles(this._span,{wordWrap:"break-word",overflowWrap:"break-word",maxWidth:"100%"}),i.appendChild(this._span),e},e.prototype.$_setImage=function(t){var e=this._model.options;e.imageUrl?t&&"image"===this._model.getHoverEffect()?this._img.style.backgroundImage="url(".concat(e.hoverImageUrl||e.imageUrl,")"):this._img.style.backgroundImage="url(".concat(e.imageUrl,")"):this._img.style.backgroundImage=""},e}(_M.RcObject);h0.HtmlButtonView=g0;var v0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),m0=t&&t.__read||function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,o=i.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return s},b0=t&&t.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},x0=t&&t.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(pQ,"__esModule",{value:!0}),pQ.ChartView=pQ.PaneContainer=pQ.CreditView=void 0;var w0=iM,S0=rM,P0=fj,A0=uj,O0=kM,C0=ZB,V0=CB,E0=DB,k0=RG,T0=lW,L0=oU,N0=xW,M0=hQ,j0=yQ,R0=nU,B0=CQ,D0=WQ,I0=KQ,G0=cD,F0=h0,z0=function(t){function e(){var e=t.apply(this,b0([],m0(arguments),!1))||this;return e._hTitle=0,e._wTitle=0,e._hSub=0,e._wSub=0,e}return v0(e,t),e.prototype._doInitChildren=function(t){this.add(this.titleView=new D0.TitleView(t,!1)),this.add(this.subtitleView=new D0.TitleView(t,!0))},e.prototype._doMeasure=function(t,e,i,r,n){var o,s=e._title,a=e._subtitle,l=0,u=0,c=0,p=0,h=this.titleView,f=i,d=0,_=0;switch(h.setVis(s.visible)?(o=h.measure(t,s,i,r,n),u=this._hTitle=o.height,l=this._wTitle=o.width):h.setModel(s),(h=this.subtitleView).setVis(a.visible)?(o=h.measure(t,a,i,r,n),p=this._hSub=o.height,c=this._wSub=o.width,_=+a.options.titleGap||0):h.setModel(a),a.options.position){case"leftSide":case"left":case"rightSide":case"right":d=(0,w0.maxv)(u,p),f=l+_+c;break;default:d=u+_+p,f=(0,w0.maxv)(f,l+c)}return d>0&&(d+=this.titleView.visible?(0,w0.pickNum)(s.options.gap,0):(0,w0.pickNum)(a.options.gap,0)),{width:f,height:d}},e.prototype._doLayout=function(t){var e=this,i=this.titleView,r=this.subtitleView,n=i.model,o=r.model,s=n&&n.options,a=o&&o.options,l=n&&n.visible?this._wTitle>t.wPlot||"chart"===s.alignBase?t.wChart:t.wPlot:0,u=o&&o.visible?this._wSub>t.wPlot||"chart"===a.alignBase?t.wChart:t.wPlot:0,c=this._wTitle>t.wPlot||n&&"chart"===s.alignBase?0:t.xPlot,p=this._wSub>t.wPlot||o&&"chart"===a.alignBase?0:t.xPlot;if(l>0&&u>0){var h=function(t,e,i){switch(t.options.verticalAlign){case"top":return 0;case"bottom":return e-i;default:return(e-i)/2}},f=function(){var t=(0,w0.maxv)(e._hTitle,e._hSub);g=(0,w0.maxv)(g,g+h(n,t,e._hTitle)),m=(0,w0.maxv)(m,m+h(o,t,e._hSub))},d=function(t,e,i){switch(t.options.align){case"left":return 0;case"right":return e-i;default:return(e-i)/2}},_=function(){if(v=(0,w0.maxv)(v,v+d(n,l,e._wTitle)),"parent"===o.options.alignBase)switch(o.options.align){case"left":b=v;break;case"right":b=v+e._wTitle-e._wSub;break;default:b=v+(e._wTitle-e._wSub)/2}else b=(0,w0.maxv)(b,b+d(o,u,e._wSub))},y=(0,w0.pickNum)(a.titleGap,0),g=0,v=c,m=0,b=p;switch(s.align){case"left":switch(a.position){case"leftSide":case"left":v=b+this._wSub+y,f();break;case"rightSide":b=v+this._wTitle+y,f();break;case"right":switch(b=v+this._wTitle+y,a.align){case"center":b=(0,w0.maxv)(b,b+(u-this._wTitle-this._wSub)/2);break;case"right":b=(0,w0.maxv)(b,p+u-this._wSub)}f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;case"right":switch(a.position){case"leftSide":v+=l-this._wTitle,b=v-y-this._wSub,f();break;case"left":switch(v+=l-this._wTitle,a.align){case"center":b+=(l-this._wTitle-this._wSub)/2;break;case"right":b=v-y-this._wSub}f();break;case"rightSide":case"right":b+=u-this._wSub,v=b-y-this._wTitle,f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}break;default:switch(a.position){case"leftSide":v+=(l-this._wTitle)/2,b=v-this._wSub-y,f();break;case"left":switch(v+=(l-this._wTitle)/2,a.align){case"left":break;case"center":b+=(v-b-this._wSub)/2;break;case"right":b=v-this._wSub-y}f();break;case"rightSide":v+=(l-this._wTitle)/2,b=v+this._wTitle+y,f();break;case"right":switch(v+=(l-this._wTitle)/2,a.align){case"left":b=v+this._wTitle+y;break;case"center":b+=v+this._wTitle+y,b+=(u-b-this._wSub)/2;break;case"right":b+=u-y-this._wSub}f();break;case"top":_(),g=m+this._hSub+y;break;default:_(),m=g+this._hTitle+y}}var x=(0,w0.pickNum)(s.offset,0),w=(0,w0.pickNum)(a.offset,0);0!==x&&(v+="right"===s.align?-x:x,"leftSide"!==a.position&&"rightSide"!==a.position||(b+="right"===s.align?-x:x)),0!==w&&"leftSide"!==a.position&&"rightSide"!==a.position&&(b+="right"===a.align?-w:w),i.resizeByMeasured().layout().trans(v,g),r.resizeByMeasured().layout().trans(b,m)}else if(l>0||u>0){var S=l?n:o,P=l?i:r,A=l||u,O=l?this._wTitle:this._wSub,C=l?c:p;switch(P.resizeByMeasured().layout(),S.options.align){case"left":break;case"right":C+=A-O;break;default:C+=(A-O)/2}P.trans(C,0)}},e}(N0.SectionView),$0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v0(e,t),e.prototype._doInitChildren=function(t){this.add(this._legendView=new j0.LegendView(t))},e.prototype._doMeasure=function(t,e,i,r,n){var o=e._legend,s=this._legendView.measure(t,o,i,r,n),a=this._pos=o._location;return"left"===a||"right"===a?s.width+=this._legendView._gap:s.height+=this._legendView._gap,s},e.prototype._doLayout=function(){var t=this._legendView,e=t._gap,i=this.width,r=this.height,n=0,o=0;switch(this._pos){case"left":i-=e;break;case"right":i-=e,n+=e;break;case"top":r-=e;break;default:o+=e,r-=e}t.trans(n,o).resize(i,r),t.layout()},e}(N0.SectionView),H0=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dir=i,r.views=[],r._gap=0,r}return v0(e,t),e.prototype.prepare=function(t,e,i,r,n,o){var s,a=this.views;for(a.length;a.length<r.length;)s=e.createAxisView(t),this.add(s),a.push(s);for(;a.length>r.length;)(s=a.pop()).parent&&s.remove();if(a.forEach((function(t,e){t.prepare(r[e])})),this.setVis(a.length>0)){var l=a[0].model;this.isX=l._isX,this.isHorz=l._isHorz,this._gap=l.chart.getAxesGap()}},e.prototype.prepareGuides=function(t,e,i){this.views.forEach((function(r,n){r.prepareGuides(t,NaN,NaN,e,i)}))},e.prototype.checkHeights=function(t,e,i){return this.views.length>0?this.$_checkHeights(this.views,t,e,i):0},e.prototype.$_checkHeights=function(t,e,i,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkHeight(e,i,r)})),n+=(this.views.length-1)*this._gap),n},e.prototype.checkWidths=function(t,e,i){return this.views.length>0?this.$_checkWidths(this.views,t,e,i):0},e.prototype.$_checkWidths=function(t,e,i,r){var n=0;return t&&(t.forEach((function(t){n+=t.checkWidth(e,i,r)})),n+=(this.views.length-1)*this._gap),n},e.prototype.getScrollView=function(t){var e,i,r;try{for(var n=x0(this.views),o=n.next();!o.done;o=n.next()){var s=o.value;if(null===(r=s._scrollView)||void 0===r?void 0:r.contains(t))return s._scrollView}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(e)throw e.error}}},e.prototype.prepareGridRows=function(t,e){e.addAll(t,this.views.map((function(t){return t.model})))},e.prototype.clean=function(){this.views.forEach((function(t){return t.clean()}))},e.prototype._doMeasure=function(t,e,i,r,n){var o=this,s=(this._inverted,0),a=0;return[this.views].forEach((function(e){if(e){var l=(o.isX,i),u=(o.isX,r),c=0,p=0;e.forEach((function(e){if(e.visible){var i=e.measure(t,e.model,l,u,n);e.setAttr("xy",e.model._isX?"x":"y"),c+=i.width,p+=i.height}})),o.isHorz?p+=(e.length-1)*o._gap:c+=(e.length-1)*o._gap,s=(0,w0.maxv)(s,c),a=(0,w0.maxv)(a,p)}})),{width:s,height:a}},e.prototype._doLayout=function(t){var e=this,i=this.control,r=i.loaded,n=[],o=this.width,s=this.height,a=0,l=0;t=+t||0,[this.views].forEach((function(i){if(i){var u=0;i.forEach((function(t){if(t.visible){var i=t.checkExtents(r);i&&n.push(i),e.isHorz?(t.resize(o,t.mh),t.model._calcPoints(e.width,999)):(t.model._calcPoints(e.height,999),t.resize(t.mw,s)),t.layout(),e.isHorz?(t.trans(a,e.dir===O0.SectionDir.TOP?s-u-t.mh:u),u+=t.mh+e._gap):(t.trans(e.dir===O0.SectionDir.RIGHT?u:o-u-t.mw,l),u+=t.mw+e._gap)}})),e.isHorz?a+=o+t:l+=s+t}}));var u=n.length>0&&i.chart.body.options.zoomCallback;u&&Promise.resolve().then((function(){n.forEach((function(t){var e=t.axis,i=t.from,r=t.to;u({chart:e.chart.wrapper,series:e.getConnectableSeries().slice(0),from:e instanceof G0.CategoryAxis?Math.floor(i):i,to:e instanceof G0.CategoryAxis?Math.floor(r):r})}))}))},e}(N0.SectionView),W0=function(t){function e(e){var i=t.call(this,e,"rct-credits")||this;return i.add(i._textView=new A0.TextElement(e)),i._textView.anchor=A0.TextAnchor.START,i}return v0(e,t),e.prototype.clicked=function(t){this.model.options.url&&window.open(this.model.options.url,"new")},e.prototype._doMeasure=function(t,e,i,r,n){return this._textView.text=e.options.text,this.setCursor(e.options.url?"pointer":""),this._textView.getBBox()},e}(N0.ChartElement);pQ.CreditView=W0;var U0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v0(e,t),e}(P0.LayerElement);pQ.PaneContainer=U0;var X0=function(t){function e(i){var r=t.call(this,i,"rct-chart")||this;for(var n in r._inverted=!1,r._axisSectionMap={},r._annotationViews=[],r._annotationMap=new Map,r._htmlButtons=[],r.add(r._annotationContainer=new P0.LayerElement(i,"rct-annotations")),r.add(r._plotContainer=new P0.LayerElement(i,"rct-plot-container")),r._plotContainer.add(r._currBody=r._bodyView=new L0.BodyView(i,r)),O0.SectionDir){var o=new H0(i,O0.SectionDir[n]);r._plotContainer.add(o),r._axisSectionMap[O0.SectionDir[n]]=o}return e.pane_class&&r.add(r._paneContainer=new e.pane_class(i,r)),r.add(r._titleSectionView=new z0(i)),r.add(r._legendSectionView=new $0(i)),r.add(r._frontAnnotationContainer=new P0.LayerElement(i,"rct-front-annotations")),r.add(r._creditView=new W0(i)),r.add(r._navigatorView=new R0.NavigatorView(i)),r.add(r._historyView=new M0.HistoryView(i)),r}return v0(e,t),e.registerPaneClass=function(t){this.pane_class=t},e.prototype._doDestroy=function(){var e;this._htmlTooltipView=null===(e=this._htmlTooltipView)||void 0===e?void 0:e.destroy(),t.prototype._doDestroy.call(this)},e.prototype.getAnnotationAnchor=function(t){return this._annotationMap.get(t)},e.prototype.titleView=function(){return this._titleSectionView.titleView},e.prototype.subtitleView=function(){return this._titleSectionView.subtitleView},e.prototype.bodyView=function(){return this._bodyView},e.prototype.clean=function(){for(var t in this._axisSectionMap)this._axisSectionMap[t].clean()},e.prototype.measure=function(t,e,i,r,n){var o,s,a,l,u=this,c=this._model=e,p=c.isPolar(),h=c._credits,f=c._legend,d=c._navigator,_=i,y=r;if(e._width=i,e._height=r,this._inverted=c.isInverted(),c.isSplitted()?(this._plotContainer.setVis(!1),null===(o=this._paneContainer)||void 0===o||o.setVis(!0),this.$_preparePanes(t,c._split)):(this._plotContainer.setVis(!0),null===(s=this._paneContainer)||void 0===s||s.setVis(!1),this.$_prepareBody(t,p)),this._creditView.setVis(h.visible)&&(l=this._creditView.measure(t,h,_,y,n),h.isFloating()||("middle"!==h.options.verticalAlign?y-=l.height+(+h.options.offsetY||0)+(+h.options.gap||0):"center"!==h.options.align&&(_-=l.width+(+h.options.offsetX||0)+(+h.options.gap||0)))),y-=(l=this._titleSectionView.measure(t,c,_,y,n)).height,this._legendSectionView.setVis(f.visible))switch(l=this._legendSectionView.measure(t,c,_,y,n),f._location){case"top":case"bottom":y-=l.height;break;case"right":case"left":_-=l.width}if(this._navigatorView.setVis(d.visible),null===(a=this._paneContainer)||void 0===a?void 0:a.visible)this._paneContainer.measure(t,c._split,_,y,1);else{if(this._navigatorView.visible){var g=c._navigator;g._vertical?_-=g.getSize():y-=g.getSize()}p?this.$_measurePolar(t,c,_,y,1):this.$_measurePlot(t,c,_,y,1)}if(this._navigatorView.visible){var v=p?this._polarView:this._bodyView;c._navigator._vertical?y=v.mh:_=v.mw,this._navigatorView.measure(t,d,_,y,n)}this.$_prepareAnnotations(t,e.getAnnotations()),this._annotationViews.forEach((function(e,o){e.measure(t,u._annotations[o],i,r,n)}))},e.prototype.layout=function(){var t,e=this,i=this.width,r=this.height,n=i,o=r,s=this._model,a=s.isPolar(),l=s._legend,u=this._creditView,c=s._credits,p=c.options,h=+p.gap||0,f=this._bodyView._depthExt,d=0,_=0,y=0,g=0,v=0,m=0,b=0,x=0;u.visible&&(u.resizeByMeasured(),c.isFloating()||("middle"!==p.verticalAlign?(d=+p.offsetY||0,"top"===p.verticalAlign?o-=y=u.height+d+h:o-=g=u.height+d+h):(_=+p.offsetX||0,"left"===p.align?n-=v=u.width+_+h:n-=m=u.width+_+h)));var w=this._titleSectionView,S=0,P=x+y;w.visible&&(w.resizeByMeasured(),o-=S=w.height),b=v,x=r-g;var A=this._navigatorView,O=0;A.visible&&(A.model._vertical||(A.resize(A.mw,A.mh-A.model.getGap()-A.model.getGapFar()),o-=O=A.mh));var C,V,E=this._legendSectionView,k=0,T=0;if(E.visible)switch(E.resizeByMeasured().layout(),k=E.height,T=E.width,l._location){case"top":C=S+y,o-=k;break;case"bottom":o-=k,C=x-k,x-=k;break;case"right":n-=T,V=i-T;break;case"left":n-=T,b+=T,V=0}A.visible&&(x-=O,A.layout().transY(x+A.model.getGap()));var L,N=0,M=0;if(null===(t=this._paneContainer)||void 0===t?void 0:t.visible)this._paneContainer.trans(b,P+S).resize(n,o),this._paneContainer.layout(),N=o,M=n,L=this._paneContainer.getRect();else{var j,R=this._axisSectionMap;a||([O0.SectionDir.LEFT,O0.SectionDir.RIGHT].forEach((function(t){(j=R[t])&&j.visible&&(n-=j.mw)})),[O0.SectionDir.TOP,O0.SectionDir.BOTTOM].forEach((function(t){(j=R[t])&&j.visible&&(o-=j.mh)})),(j=R[O0.SectionDir.LEFT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0),b+=j.mw),(j=R[O0.SectionDir.RIGHT])&&j.visible&&(j.resize(j.mw,o-(f?f.side:0)),j.layout(0)),(j=R[O0.SectionDir.BOTTOM])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0),x-=j.mh),(j=R[O0.SectionDir.TOP])&&j.visible&&(j.resize(n-(f?f.base:0),j.mh),a||j.transX(b),j.layout(0))),A.visible&&A.layout().transX(b);var B={x:b,y:x};this._plotWidth=n,this._plotHeight=o,a||((j=R[O0.SectionDir.LEFT])&&j.visible&&j.trans(B.x-j.mw,B.y-j.height),(j=R[O0.SectionDir.RIGHT])&&j.visible&&j.trans(B.x+n,B.y-j.height),(j=R[O0.SectionDir.BOTTOM])&&j.visible&&j.trans(B.x,B.y),(j=R[O0.SectionDir.TOP])&&j.visible&&j.trans(B.x,B.y-o-j.height));var D=this._currBody;N=this._plotHeight-0,M=this._plotWidth-0,b=B.x,x=B.y-this._plotHeight,D.resize(M,N),D.trans(b,x),D.layout(),L=D.getRect(),D._seriesViews.forEach((function(t){if(t.needDecoreateLegend()){var i=e._legendSectionView._legendView.legendOfSeries(t.model);i&&t.decoreateLegend(i)}}))}if(u.visible){var I=void 0,G=void 0;switch(u.layout(),p.verticalAlign){case"top":G=d;break;case"middle":G=(r-u.height)/2+d;break;default:G=g>0?r-g+h:r-u.height-d}switch(p.align){case"left":I=_;break;case"center":I=(i-u.width)/2+_;break;default:I=m>0?i-m+h:i-u.width-_}u.trans(I,G)}if(M+=0,w.visible&&w.layout({xPlot:b,wPlot:M,wChart:i}).trans(0,P),E.visible){var F=l.options,z=F.align,$=F.verticalAlign;if("body"===l._location){var H=+F.offsetX||0;switch(z){case"right":b+=M-T-H;break;case"center":b+=(M-T)/2+H;break;default:b+=H}switch(H=+F.offsetY||0,$){case"bottom":x+=N-k-H;break;case"middle":x+=(N-k)/2+H;break;default:x+=H}}else if(isNaN(C)){H=+F.offsetY||0;if(b=V,"chart"===F.alignBase){switch($){case"top":x=H;break;case"bottom":x=r-k-H;break;default:x=(r-k)/2+H}x+k>r&&(x=(r-k)/2)}else switch($){case"top":x+=H;break;case"bottom":x=x+o-k-H;break;default:x=x+(o-k)/2+H}x+k>r&&(x=(r-k)/2),x<0&&(x=0)}else{var H=+F.offsetX||0;if(x=C,"chart"===F.alignBase)switch(z){case"left":b=H;break;case"right":b=i-T-H;break;default:b=(i-T)/2+H}else switch(z){case"left":b+=H;break;case"right":b=b+n-T-H;break;default:b+=(n-T)/2+H}b+T>i&&(b=(i-T)/2),b<0&&(b=0)}E.trans(b,x)}this.$_layoutHtmlButtons(i,r),this.$_layoutAnnotations(this._inverted,i,r,L),this.hideTooltip()},e.prototype.showTooltip=function(t,e,i,r,n){var o,s=this.control,a=this._model.chart._tooltip,l=a.isFollowPointer(t),u=e.getTooltipPos?e.getTooltipPos():{x:e.point.xPos,y:e.point.yPos},c=u.x,p=u.y,h=r.getTooltipPos(),f=l?n.x+h.x:c+h.x,d=l?n.y+h.y:p+h.y;a.getNoClip()?(this._htmlTooltipView||(this.control.appendSvg(this._htmlTooltipView=new I0.HtmlTooltipView(this.doc,s)),this._htmlTooltip=!0),this._htmlTooltipView.show(t,e,i,f,d,r)):(null===(o=this._htmlTooltipView)||void 0===o||o.setVisibility(!1),this._htmlTooltip=!1,this._tooltipView||this.add(this._tooltipView=new I0.TooltipView(this.doc)),this._tooltipView.show(t,s,e,i,f,d,r))},e.prototype.tooltipVisible=function(){var t,e;return this._htmlTooltip?null===(t=this._htmlTooltipView)||void 0===t?void 0:t.hasVisibility():null===(e=this._tooltipView)||void 0===e?void 0:e.isVisible()},e.prototype.hideTooltip=function(t){var e,i;void 0===t&&(t=!0),this._htmlTooltip?null===(e=this._htmlTooltipView)||void 0===e||e.close(!1,t):null===(i=this._tooltipView)||void 0===i||i.close(!1,t)},e.prototype.getSeriesView=function(t){return this._model.isSplitted()?this._paneContainer.getSeries(t):this._currBody.getSeries(t)},e.prototype.createAxisView=function(t){return new T0.AxisView(t)},e.prototype.legendByDom=function(t){var e=this._legendSectionView._legendView.legendByDom(t);return!e&&this._model.isSplitted()&&(e=this._paneContainer.legendByDom(t)),e},e.prototype.seriesByDom=function(t){var e;return(null===(e=this._paneContainer)||void 0===e?void 0:e.visible)?this._paneContainer.seriesByDom(t):this._currBody.seriesByDom(t)},e.prototype.annotationByDom=function(t){var e,i=this._annotationViews.find((function(e){return e.dom.contains(t)}));return i||((null===(e=this._paneContainer)||void 0===e?void 0:e.visible)?this._paneContainer.annotationByDom(t):this._currBody.annotationByDom(t))},e.prototype.htmlButtonByDom=function(t){return this._htmlButtons.find((function(e){return e.dom.contains(t)}))},e.prototype.findSeriesView=function(t){return this._currBody.findSeries(t)},e.prototype.creditByDom=function(t){return this._creditView.dom.contains(t)?this._creditView:null},e.prototype.bodyOf=function(t){return this._model.isSplitted()?this._paneContainer.bodyViewOf(t):this._currBody},e.prototype.pointerMoved=function(t,e,i){var r,n,o=this,s=i,a=this._model&&this.bodyOf(i),l=null==s?void 0:s.classList,u=(null==l?void 0:l.value)&&(l.contains("rct-contextmenu-item")||l.contains("rct-contextmenu-list")),c=this._hoverItem;if(this._hoverItem=null,(null===(r=this._model)||void 0===r?void 0:r.isSplitted())&&this._paneContainer.bodies.forEach((function(t){t!==a&&t.clearHover()})),a){var p=a.controlToElement(t,e),h=a.pointerMoved(p,i);if(!this._hoverItem&&this._legendSectionView._legendView.contains(s)){var f=this._hoverItem=this._legendSectionView._legendView.legendByDom(s);if(f){var d=f.legend;S0.Utils.makeArray(d.getSources(f),!0).forEach((function(t){d.options.seriesHovering&&t instanceof E0.Series?a.hoverSeries(t):d.options.pointHovering&&t instanceof C0.DataPoint&&a.hoverPoint(t)}))}}if(c instanceof V0.LegendItem&&!(this._hoverItem instanceof V0.LegendItem)&&(a.hoverPoint(null),a.hoverSeries(null)),this.$_handleAnnotationHover(i),!h)return void a.removeFocus();for(var _ in this._axisSectionMap)this._axisSectionMap[_].views.forEach((function(t){var e=t.model,i=e.crosshair,r=e._isHorz?a.width:a.height,n=e._isHorz?p.x:p.y,s=h&&i.visible&&!u&&i.flag.visible&&!i.isBar()&&i.getFlag(r,n);if(s){t.showCrosshair(n,s);var l=[];a._seriesViews.forEach((function(t){var i,r=Number.MAX_SAFE_INTEGER,n=o._model.inverted;t.model._visPoints.forEach((function(t){var o=t.xPos,s=t instanceof k0.AreaRangeSeriesPoint&&!n?t.yPos-(t.yPos-t.yLow)/2:t.yPos,a=e._isX?Math.abs(p.x-o):Math.abs(p.y-s);a<r&&(r=a,i=t)})),l.push(i)})),i.moved(n,s,l)}else t.hideCrosshiar()}))}else(null===(n=this._model)||void 0===n?void 0:n.isSplitted())?this._paneContainer.bodies.forEach((function(t){t.removeFocus()})):this._currBody.removeFocus(),this.$_handleAnnotationHover(i)},e.prototype.pointerLeaved=function(t,e,i){this.$_clearAnnotationHover()},e.prototype.getAxis=function(t){for(var e in this._axisSectionMap){var i=this._axisSectionMap[e].views.find((function(e){return e.model===t}));if(i)return i}},e.prototype.getButton=function(t){return this._currBody.getButton(t)},e.prototype.buttonClicked=function(t){this._currBody.buttonClicked(t)},e.prototype.getScrollView=function(t){for(var e in O0.SectionDir){var i=this._axisSectionMap[O0.SectionDir[e]].getScrollView(t);if(i)return i}},e.prototype.updateAnnotation=function(t){var e=this._annotationViews.find((function(e){return e.model===t}));e?e.update(this,this.width,this.height):this._model.isSplitted()||(e=this._currBody._annotationViews.find((function(e){return e.model===t})))&&e.update(this._currBody,this._currBody.width,this._currBody.height)},e.prototype._doAttached=function(t){},e.prototype.$_preparePanes=function(t,e){this._paneContainer.prepare(t,e)},e.prototype.$_prepareBody=function(t,e){var i,r;e?(this._polarView||(this._polarView=new B0.PolarBodyView(t,this),this._plotContainer.insertChild(this._polarView,this._bodyView)),this._currBody=this._polarView,null===(i=this._bodyView)||void 0===i||i.setVis(!1),this._polarView.setVis(!0)):(null===(r=this._polarView)||void 0===r||r.setVis(!1),this._bodyView.setVis(!0),this._currBody=this._bodyView),this._currBody.prepareRender(t,this._model._body,e)},e.prototype.$_prepareHtmlButtons=function(t){var e=this,i=this._model._getButtons(),r=[];i._internalItems().forEach((function(i,n){var o=e._htmlButtons[n];o||(o=new F0.HtmlButtonView(t),e.control.appendDom(o.dom),e._htmlButtons[n]=o),r.push(o)}));for(var n=i.count;n<this._htmlButtons.length;n++)this._htmlButtons[n].destroy();this._htmlButtons=r},e.prototype.$_layoutHtmlButtons=function(t,e){var i=this.control._padding,r=this._htmlButtons;if(r.length>0){var n={x:0,y:0,width:this.control.width(),height:this.control.height()},o={x:i.left,y:i.top,width:t,height:e},s=this._model._getButtons()._internalItems();r.forEach((function(t,e){var i=s[e];t.setVisible(i.visible)&&t.setModel(i).layout(i.isChartScope()?o:n)}))}},e.prototype.$_prepareAxes=function(t,e){var i=this._currBody._gridRowContainer,r=this._currBody._guideContainer,n=this._currBody._frontGuideContainer,o=!e.isPolar()&&e._needAxes(),s=this._axisSectionMap;for(var a in s){var l=s[a];o?l.prepare(t,this,e,e.getAxes(a,!0),r,n):l.visible=!1}i.prepare()},e.prototype.$_prepareAxisGuides=function(t,e){var i=this._currBody._guideContainer,r=this._currBody._frontGuideContainer,n=!e.isPolar()&&e._needAxes(),o=this._axisSectionMap;for(var s in o){var a=o[s];n&&a.visible&&a.prepareGuides(t,i,r)}},e.prototype.$_measurePlot=function(t,e,i,r,n){var o=this._axisSectionMap,s=i,a=r,l=this._bodyView.checkDepth(e,i,r),u=i-(l?l.base:0),c=r-(l?l.side:0);for(var p in this._bodyView.prepareGuideContainers(),this.$_prepareHtmlButtons(t),this.$_prepareAxes(t,e),e.layoutAxes(u,c,this._inverted,n),i-=o[O0.SectionDir.LEFT].checkWidths(t,i,r),i-=o[O0.SectionDir.RIGHT].checkWidths(t,i,r),r-=o[O0.SectionDir.BOTTOM].checkHeights(t,i,r),r-=o[O0.SectionDir.TOP].checkHeights(t,i,r),u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),o){(h=o[p]).visible&&h.measure(t,e,u,c,n)}for(var p in i=s,r=a,o){(h=o[p]).visible&&(p===O0.SectionDir.LEFT||p===O0.SectionDir.RIGHT?i-=h.mw:p!==O0.SectionDir.BOTTOM&&p!==O0.SectionDir.TOP||(r-=h.mh))}for(var p in n++,u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.layoutAxes(u,c,this._inverted,n),this.$_prepareAxisGuides(t,e),o){(h=o[p]).visible&&(h.measure(t,e,u,c,n),h.prepareGridRows(t,this._bodyView._gridRowContainer))}for(var p in i=s,r=a,o){var h;(h=o[p]).visible&&(p===O0.SectionDir.LEFT||p===O0.SectionDir.RIGHT?i-=h.mw:p!==O0.SectionDir.BOTTOM&&p!==O0.SectionDir.TOP||(r-=h.mh))}u=i-((l=this._bodyView.checkDepth(e,i,r))?l.base:0),c=r-(l?l.side:0),e.axesLayouted(u,c,this._inverted),this._bodyView.measure(t,e._body,i,r,n)},e.prototype.$_measurePolar=function(t,e,i,r,n){var o=e._body.getRadius(i,r),s=2*Math.PI*o,a=o;this._polarView.prepareGuideContainers(),this.$_prepareAxes(t,e),e.layoutAxes(s,a,!1,n),this.$_prepareAxisGuides(t,e),e.axesLayouted(s,a,!1),this._polarView.measure(t,e._body,i,r,n)},e.prototype.$_prepareAnnotations=function(t,e){var i,r,n=this._annotationContainer,o=this._frontAnnotationContainer,s=this._annotationMap,a=this._annotationViews;try{for(var l=x0(s.keys()),u=l.next();!u.done;u=l.next()){var c=u.value;e.indexOf(c)<0&&(s.get(c).remove(),s.delete(c))}}catch(t){i={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.length=0,(this._annotations=e).forEach((function(e){var i=s.get(e)||(0,L0.createAnnotationView)(t,e);(e.options.front?o:n).add(i),s.set(e,i),a.push(i)}))},e.prototype.$_layoutAnnotations=function(t,e,i,r){var n,o,s,a,l=this,u=this.control._padding;this._annotationViews.forEach((function(r){if("container"===r.model.options.scope)n=-u.left,o=-u.top,s=e+u.left+u.right,a=i+u.top+u.bottom;else n=o=0,s=e,a=i;r._layoutView(t,l,n,o,s,a)}))},e.prototype.$_handleAnnotationHover=function(t){var e,i;if(t){var r=this.htmlButtonByDom(t);if(r!==this._hoverButton)return null===(e=this._hoverButton)||void 0===e||e.pointerLeave(),this._hoverButton=r,void(null===(i=this._hoverButton)||void 0===i||i.pointerEnter());var n=this.annotationByDom(t),o=this._hoverAnnotation;n!==o&&(null==o||o.pointerLeave(),null==n||n.pointerEnter())}},e.prototype.$_clearAnnotationHover=function(){this._hoverButton&&(this._hoverButton.pointerLeave(),this._hoverButton=null),this._hoverAnnotation&&(this._hoverAnnotation.pointerLeave(),this._hoverAnnotation=null)},e}(P0.LayerElement);pQ.ChartView=X0;var Y0=t&&t.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},t(e,i)};return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}();Object.defineProperty(tM,"__esModule",{value:!0}),tM.ChartControl=void 0;var q0,Z0=eM,K0=iM,J0=fj,Q0=TM,t1=LM,e1=aW,i1=pQ;!function(t){t.EXPORT="$$realchart_export"}(q0||(q0={}));var r1=function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.addElement(r._chartView=r._createChartView(e)),r.setPointerHandler(r._createPointerHandler()),r._chart=new Z0.Chart(null,(function(t,e){r.$_changeModel(t,e)})),r}return Y0(e,t),e.prototype._createChartView=function(t){return new i1.ChartView(t)},e.prototype._createPointerHandler=function(){return new e1.ChartPointerHandler(this)},e.prototype._doDestroy=function(){this.setPointerHandler(null),this._chart=null,t.prototype._doDestroy.call(this)},e.prototype.onModelChanged=function(t,e,i){e instanceof Q0.Annotation&&i===t1.ChartItem.REFRESHED?this._chartView.updateAnnotation(e):this.invalidateLayout()},e.prototype.onVisibleChanged=function(t,e){this.invalidateLayout()},e.prototype.onPointVisibleChanged=function(t,e,i){this.invalidateLayout()},e.prototype.onExportRequest=function(t,e){this._export(e)},e.prototype.onRefreshRequest=function(t){this.refresh()},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){t instanceof Z0.Chart&&t!==this._chart&&(this.$_changeModel(t._obj,this.model),this._chart=t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._chart._obj},enumerable:!1,configurable:!0}),e.prototype.$_changeModel=function(t,e){t!==e&&(this.clearAssetDefs(),this.clearClipDefs(),e&&(e._assets.unregister(this),e._removeListener(this)),t&&(t._addListener(this),t._assets.register(this.doc(),this)),this.loaded=!1,this.invalidateLayout(!0))},e.prototype.chartView=function(){return this._chartView},e.prototype.refresh=function(){this._render()},e.prototype.scroll=function(t,e){var i;null===(i=this._chartView.getAxis(t))||void 0===i||i.scroll(e)},e.prototype.use=function(t){if(t.MODULE_NAME&&t.MODULE_NAME===q0.EXPORT){var e=t.createExporter(this.doc(),this.dom(),this.model);this.chart.exporter.compose(e)}},e.prototype._canOverflowRender=function(){return!1},e.prototype._doRender=function(t){var e,i=this,r=this.model,n=r._chartOptions.options,o=this._chartView;if(this.clearTemporaryDefs(),r&&(this.setData("theme",n.theme,!0),this.setData("palette",n.palette),this.setResizeDelay(n.resizeDelay),r._prepareRender(),this._loadModules()),this.loaded||o.clean(),o.setVis(!1!==n.visible)&&(o.measure(this.doc(),r,t.width,t.height,1),o.setRect(t),o.layout(),r&&r.afterRender()),null===(e=this._chart)||void 0===e?void 0:e._loadCallback){var s=this._chart._loadCallback;setTimeout((function(){s({chart:i.chart})}),0),this._chart._loadCallback=void 0}},e.prototype._doRenderBackground=function(t,e,i,r){if(this.model){var n=this.model._chartOptions._style;if((0,K0.isObject)(n))for(var o in n)o.startsWith("padding")?e.setStyle(o,n[o]):t.style[o]=n[o]}},e.prototype._loadModules=function(){if(!this.chart.exporter.isCompose()){var t=null===window||void 0===window?void 0:window.$$_RealChartExporter;t&&t.RealchartExport(this.chart)}},e.prototype._export=function(t){var e=this.model;if(e&&this.chart.exporter.isCompose()){var i=this.dom();switch(t.type){case"png":case"jpeg":case"svg":this.chart.exporter.exportToImage(i,t,e._exporter.options)}}},e}(J0.RcControl);tM.ChartControl=r1,Object.defineProperty(QN,"__esModule",{value:!0}),QN.Globals=void 0;var n1=tM,o1=eM,s1=iM,a1=fj,l1=oM,u1=rM,c1=mj,p1=kM,h1=function(){function t(){}return t.getVersion=function(){return c1.globalRealChartInfo.version},t.setLicenseKey=function(t){c1.globalRealChartInfo.code=t},t.setLocale=function(t,e){e&&(0,l1.$_registerLocale)(t,e),(0,l1.$_setLocale)(t)},t.registerLocale=function(t,e){(0,l1.$_registerLocale)(t,e)},t.setDebugging=function(t){a1.RcElement.DEBUGGING=s1.RcDebug._debugging=t},t.setLogging=function(t){u1.Utils.LOGGING=t},t.setAnimatable=function(t){a1.RcControl._animatable=t},t.configure=function(t){return t},t.createChart=function(t,e,i,r,n){void 0===r&&(r=!0);var o=new n1.ChartControl(t,e);return o.chart.load((0,s1.isObject)(i)?i:{},r,n),o.chart[p1.CTRL]=o,o.chart},t.createData=function(t,e){return new o1.ChartData(t||{},e)},t}();QN.Globals=h1;var f1={};Object.defineProperty(f1,"__esModule",{value:!0}),f1.Point=void 0;var d1=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=t,this.y=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();f1.Point=d1;var _1={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.GaugeGroupTypes=t.GaugeTypes=t.LinearGaugeGroupType=t.LinearGaugeType=t.ClockGaugeType=t._ClockGaugeLabelPosition=t.CircleGaugeGroupType=t.CircleGaugeType=t._GaugeItemPosition=t.BulletGaugeGroupType=t.BulletGaugeType=void 0,t.BulletGaugeType="bullet",t.BulletGaugeGroupType="bulletgroup",t._GaugeItemPosition={DEFAULT:"default",OPPOSITE:"opposite",INSIDE:"inside"},t.CircleGaugeType="circle",t.CircleGaugeGroupType="circlegroup",t._ClockGaugeLabelPosition={TOP:"top",BOTTOM:"bottom"},t.ClockGaugeType="clock",t.LinearGaugeType="linear",t.LinearGaugeGroupType="lineargroup",t.GaugeTypes={BulletGaugeType:t.BulletGaugeType,CircleGaugeType:t.CircleGaugeType,ClockGaugeType:t.ClockGaugeType,LinearGaugeType:t.LinearGaugeType},t.GaugeGroupTypes={CircleGaugeGroupType:t.CircleGaugeGroupType,LinearGaugeGroupType:t.LinearGaugeGroupType,BulletGaugeGroupType:t.BulletGaugeGroupType}}(_1);var y1={};Object.defineProperty(y1,"__esModule",{value:!0}),y1.Size=void 0;var g1=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=t,this.height=e}return t.empty=function(){return new t},t.create=function(e,i){return void 0===e&&(e=0),void 0===i&&(i=0),new t(e,i)},t}();return y1.Size=g1,function(e){var i=t&&t.__createBinding||(Object.create?function(t,e,i,r){void 0===r&&(r=i);var n=Object.getOwnPropertyDescriptor(e,i);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,r,n)}:function(t,e,i,r){void 0===r&&(r=i),t[r]=e[i]}),r=t&&t.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.AxisTick=e.AxisSectorLine=e.AxisScrollBar=e.AxisLine=e.AxisLabel=e.AxisItem=e.AxisGrid=e.AxisCollection=e.Axis=e.Exporter=e.SvgShapes=e.Tooltip=e.Subtitle=e.Title=e.NavigatorMask=e.NavigiatorHandle=e.SeriesNavigator=e.LegendItem=e.Legend=e.BodyDepth=e.Body=e.AssetCollection=e.Annotation=e.ZValuePoint=e.DataPointCollection=e.DataPoint=e.ChartObject=e.PointHovering=e.Credits=e.ChartOptions=e.extend=e.ChartText=e.IconedText=e.ChartItem=e.ChartPointerHandler=e.ChartControl=e.Point=e.RcObject=e.ChartData=e.Chart=e.ChartDataCollection=e.RcControl=e.setLicenseKey=e.createData=e.createChart=e.configure=e.setAnimatable=e.setLogging=e.setDebugging=e.getVersion=void 0,e.SeriesGroup=e.Series=e.BarSeriesGroupBase=e.BarSeriesBase=e.LineSeriesBase=e.WaterfallSeries=e.ScatterSeries=e.PieSeriesText=e.PieSeriesLabel=e.PieSeriesGroup=e.PieSeries=e.ParetoSeries=e.OhlcSeries=e.LollipopSeries=e.HistogramSeries=e.FunnelSeries=e.ErrorBarSeries=e.EqualizerSeries=e.DumbbellSeries=e.CircelBarPointLabel=e.CircleBarSeriesGroup=e.CircleBarSeries=e.CandlestickSeries=e.BumpSeriesGroup=e.BubbleSeries=e.BoxPlotSeries=e.BellCurveSeries=e.BarRangeSeries=e.BarSeriesGroup=e.BarSeries=e.BarSeriesPoint=e.LineSeriesPoint=e.LinePointLabel=e.AreaSeriesGroup=e.LineSeriesGroup=e.SplineSeries=e.LineSeries=e.AreaRangeSeries=e.AreaSeries=e.LogAxis=e.TimeAxis=e.AxisBaseLine=e.ContinuousAxis=e.LinearAxis=e.CategoryAxisLabel=e.CategoryAxisGrid=e.CategoryAxisTick=e.CategoryAxis=e.Crosshair=e.AxisTitle=void 0,e.CircleGaugeGroupType=e.CircleGaugeType=e.BulletGaugeGroupType=e.BulletGaugeType=e.LinearGaugeGroupType=e.LinearGaugeType=e.PictorialSeriesType=e.PictorialBarSeriesType=e.PictogramSeriesType=e.RaceLineSeriesType=e.RaceBarSeriesType=e.WordCloudSeriesType=e.VectorSeriesType=e.HeatmapSeriesType=e.TreemapSeriesType=e.ShapeAnnotation=e.ImageAnnotation=e.TextAnnotation=e.ValueGauge=e.GaugeRangeLabel=e.GaugeRangeBand=e.GaugeScale=e.GaugeGroup=e.GaugeItem=e.GaugeLabel=e.GaugeBase=e.Gauge=e.CircularGaugeLabel=e.CircularGaugeGroup=e.CircularGauge=e.Widget=e.TrendLineLabel=e.TrendLineArea=e.Trendline=e.OthersGroup=e.ConnectableSeries=e.SeriesMarker=e.MarkerSeries=e.DataPointLabel=e.WidgetSeriesConnector=e.WidgetSeriesLabel=e.WidgetSeriesPoint=e.WidgetSeries=e.RadialSeries=e.BasedSeries=e.RangedSeries=e.LowRangedSeries=e.ClusterableSeriesGroup=e.ClusterableSeries=e.ConstraintSeriesGroup=void 0,e.SVGNS=e.LayerElement=e.RcElement=e.PathElement=e.RcAnimation=e.PathBuilder=e.ImageElement=e.ArcElement=e.CircleElement=e.SectorElement=e.RectElement=e.LineElement=e.SeriesAnimation=e.LineSeriesBaseView=e.BarSeriesView=e.BarSeriesViewBase=e.BoxPointElementEx=e.WidgetSeriesView=e.MarkerSeriesView=e.MarkerSeriesPointView=e.BasedSeriesView=e.SeriesView=e.PointLabelLineView=e.PointLabelLineContainer=e.PointElement=e.PointLabelView=e.LegendItemView=e.LegendView=e.BodyView=e.AxisScrollView=e.AxisView=e.PaneContainer=e.ChartView=e.SectionView=e.ContentView=e.ChartElement=e.ElementPool=e.Dom=e.Size=e.Color=e.pixel=e.fixnum=e.RAD_DEG=e.PI_2=e.ORG_ANGLE=e.buildValueRanges=e.parsePercentSize=e.calcPercent=e.toStr=e.ClockGaugeType=void 0,e.TextLayout=e.TextElement=e.TextAnchor=e.isEmptyRect=e.createRect=e.rectToSize=e.ValueGaugeView=e.GaugeGroupView=e.ScaleView=e.GaugeView=e.sin=e.cos=e.absv=e.copyObj=e.pickProp3=e.pickProp=e.incv=e.minv=e.pickNum=e.maxv=e.isObject=e.isArray=e.assignObj=e.isNumber=e.isString=void 0;var n=QN;e.getVersion=n.Globals.getVersion,e.setDebugging=n.Globals.setDebugging,e.setLogging=n.Globals.setLogging,e.setAnimatable=n.Globals.setAnimatable,e.configure=n.Globals.configure,e.createChart=n.Globals.createChart,e.createData=n.Globals.createData,e.setLicenseKey=n.Globals.setLicenseKey;var o=fj;Object.defineProperty(e,"RcControl",{enumerable:!0,get:function(){return o.RcControl}});var s=dM;Object.defineProperty(e,"ChartDataCollection",{enumerable:!0,get:function(){return s.ChartDataCollection}});var a=eM;Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return a.Chart}}),Object.defineProperty(e,"ChartData",{enumerable:!0,get:function(){return a.ChartData}});var l=_M;Object.defineProperty(e,"RcObject",{enumerable:!0,get:function(){return l.RcObject}});var u=f1;Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return u.Point}});var c=tM;Object.defineProperty(e,"ChartControl",{enumerable:!0,get:function(){return c.ChartControl}});var p=aW;Object.defineProperty(e,"ChartPointerHandler",{enumerable:!0,get:function(){return p.ChartPointerHandler}});var h=LM;Object.defineProperty(e,"ChartItem",{enumerable:!0,get:function(){return h.ChartItem}}),Object.defineProperty(e,"IconedText",{enumerable:!0,get:function(){return h.IconedText}}),Object.defineProperty(e,"ChartText",{enumerable:!0,get:function(){return h.ChartText}}),Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return h.extend}});var f=kM;Object.defineProperty(e,"ChartOptions",{enumerable:!0,get:function(){return f.ChartOptions}}),Object.defineProperty(e,"Credits",{enumerable:!0,get:function(){return f.Credits}}),Object.defineProperty(e,"PointHovering",{enumerable:!0,get:function(){return f.PointHovering}}),Object.defineProperty(e,"ChartObject",{enumerable:!0,get:function(){return f.ChartObject}});var d=ZB;Object.defineProperty(e,"DataPoint",{enumerable:!0,get:function(){return d.DataPoint}}),Object.defineProperty(e,"DataPointCollection",{enumerable:!0,get:function(){return d.DataPointCollection}}),Object.defineProperty(e,"ZValuePoint",{enumerable:!0,get:function(){return d.ZValuePoint}});var _=TM;Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return _.Annotation}});var y=FR;Object.defineProperty(e,"AssetCollection",{enumerable:!0,get:function(){return y.AssetCollection}});var g=nB;Object.defineProperty(e,"Body",{enumerable:!0,get:function(){return g.Body}}),Object.defineProperty(e,"BodyDepth",{enumerable:!0,get:function(){return g.BodyDepth}});var v=CB;Object.defineProperty(e,"Legend",{enumerable:!0,get:function(){return v.Legend}}),Object.defineProperty(e,"LegendItem",{enumerable:!0,get:function(){return v.LegendItem}});var m=BD;Object.defineProperty(e,"SeriesNavigator",{enumerable:!0,get:function(){return m.SeriesNavigator}}),Object.defineProperty(e,"NavigiatorHandle",{enumerable:!0,get:function(){return m.NavigiatorHandle}}),Object.defineProperty(e,"NavigatorMask",{enumerable:!0,get:function(){return m.NavigatorMask}});var b=qD;Object.defineProperty(e,"Title",{enumerable:!0,get:function(){return b.Title}}),Object.defineProperty(e,"Subtitle",{enumerable:!0,get:function(){return b.Subtitle}});var x=iI;Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return x.Tooltip}});var w=GB;Object.defineProperty(e,"SvgShapes",{enumerable:!0,get:function(){return w.SvgShapes}});var S=xB;Object.defineProperty(e,"Exporter",{enumerable:!0,get:function(){return S.Exporter}});var P=rB;Object.defineProperty(e,"Axis",{enumerable:!0,get:function(){return P.Axis}}),Object.defineProperty(e,"AxisCollection",{enumerable:!0,get:function(){return P.AxisCollection}}),Object.defineProperty(e,"AxisGrid",{enumerable:!0,get:function(){return P.AxisGrid}}),Object.defineProperty(e,"AxisItem",{enumerable:!0,get:function(){return P.AxisItem}}),Object.defineProperty(e,"AxisLabel",{enumerable:!0,get:function(){return P.AxisLabel}}),Object.defineProperty(e,"AxisLine",{enumerable:!0,get:function(){return P.AxisLine}}),Object.defineProperty(e,"AxisScrollBar",{enumerable:!0,get:function(){return P.AxisScrollBar}}),Object.defineProperty(e,"AxisSectorLine",{enumerable:!0,get:function(){return P.AxisSectorLine}}),Object.defineProperty(e,"AxisTick",{enumerable:!0,get:function(){return P.AxisTick}}),Object.defineProperty(e,"AxisTitle",{enumerable:!0,get:function(){return P.AxisTitle}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return P.Crosshair}});var A=cD;Object.defineProperty(e,"CategoryAxis",{enumerable:!0,get:function(){return A.CategoryAxis}}),Object.defineProperty(e,"CategoryAxisTick",{enumerable:!0,get:function(){return A.CategoryAxisTick}}),Object.defineProperty(e,"CategoryAxisGrid",{enumerable:!0,get:function(){return A.CategoryAxisGrid}}),Object.defineProperty(e,"CategoryAxisLabel",{enumerable:!0,get:function(){return A.CategoryAxisLabel}});var O=jI;Object.defineProperty(e,"LinearAxis",{enumerable:!0,get:function(){return O.LinearAxis}}),Object.defineProperty(e,"ContinuousAxis",{enumerable:!0,get:function(){return O.ContinuousAxis}}),Object.defineProperty(e,"AxisBaseLine",{enumerable:!0,get:function(){return O.AxisBaseLine}});var C=eG;Object.defineProperty(e,"TimeAxis",{enumerable:!0,get:function(){return C.TimeAxis}});var V=IH;Object.defineProperty(e,"LogAxis",{enumerable:!0,get:function(){return V.LogAxis}});var E=RG;Object.defineProperty(e,"AreaSeries",{enumerable:!0,get:function(){return E.AreaSeries}}),Object.defineProperty(e,"AreaRangeSeries",{enumerable:!0,get:function(){return E.AreaRangeSeries}}),Object.defineProperty(e,"LineSeries",{enumerable:!0,get:function(){return E.LineSeries}}),Object.defineProperty(e,"SplineSeries",{enumerable:!0,get:function(){return E.SplineSeries}}),Object.defineProperty(e,"LineSeriesGroup",{enumerable:!0,get:function(){return E.LineSeriesGroup}}),Object.defineProperty(e,"AreaSeriesGroup",{enumerable:!0,get:function(){return E.AreaSeriesGroup}}),Object.defineProperty(e,"LinePointLabel",{enumerable:!0,get:function(){return E.LinePointLabel}}),Object.defineProperty(e,"LineSeriesPoint",{enumerable:!0,get:function(){return E.LineSeriesPoint}});var k=SG;Object.defineProperty(e,"BarSeriesPoint",{enumerable:!0,get:function(){return k.BarSeriesPoint}}),Object.defineProperty(e,"BarSeries",{enumerable:!0,get:function(){return k.BarSeries}}),Object.defineProperty(e,"BarSeriesGroup",{enumerable:!0,get:function(){return k.BarSeriesGroup}});var T=_G;Object.defineProperty(e,"BarRangeSeries",{enumerable:!0,get:function(){return T.BarRangeSeries}});var L=jG;Object.defineProperty(e,"BellCurveSeries",{enumerable:!0,get:function(){return L.BellCurveSeries}});var N=zF;Object.defineProperty(e,"BoxPlotSeries",{enumerable:!0,get:function(){return N.BoxPlotSeries}});var M=KF;Object.defineProperty(e,"BubbleSeries",{enumerable:!0,get:function(){return M.BubbleSeries}});var j=sz;Object.defineProperty(e,"BumpSeriesGroup",{enumerable:!0,get:function(){return j.BumpSeriesGroup}});var R=fz;Object.defineProperty(e,"CandlestickSeries",{enumerable:!0,get:function(){return R.CandlestickSeries}});var B=Sz;Object.defineProperty(e,"CircleBarSeries",{enumerable:!0,get:function(){return B.CircleBarSeries}}),Object.defineProperty(e,"CircleBarSeriesGroup",{enumerable:!0,get:function(){return B.CircleBarSeriesGroup}}),Object.defineProperty(e,"CircelBarPointLabel",{enumerable:!0,get:function(){return B.CircelBarPointLabel}});var D=Lz;Object.defineProperty(e,"DumbbellSeries",{enumerable:!0,get:function(){return D.DumbbellSeries}});var I=Fz;Object.defineProperty(e,"EqualizerSeries",{enumerable:!0,get:function(){return I.EqualizerSeries}});var G=Kz;Object.defineProperty(e,"ErrorBarSeries",{enumerable:!0,get:function(){return G.ErrorBarSeries}});var F=s$;Object.defineProperty(e,"FunnelSeries",{enumerable:!0,get:function(){return F.FunnelSeries}});var z=v$;Object.defineProperty(e,"HistogramSeries",{enumerable:!0,get:function(){return z.HistogramSeries}});var $=V$;Object.defineProperty(e,"LollipopSeries",{enumerable:!0,get:function(){return $.LollipopSeries}});var H=G$;Object.defineProperty(e,"OhlcSeries",{enumerable:!0,get:function(){return H.OhlcSeries}});var W=q$;Object.defineProperty(e,"ParetoSeries",{enumerable:!0,get:function(){return W.ParetoSeries}});var U=rH;Object.defineProperty(e,"PieSeries",{enumerable:!0,get:function(){return U.PieSeries}}),Object.defineProperty(e,"PieSeriesGroup",{enumerable:!0,get:function(){return U.PieSeriesGroup}}),Object.defineProperty(e,"PieSeriesLabel",{enumerable:!0,get:function(){return U.PieSeriesLabel}}),Object.defineProperty(e,"PieSeriesText",{enumerable:!0,get:function(){return U.PieSeriesText}});var X=mH;Object.defineProperty(e,"ScatterSeries",{enumerable:!0,get:function(){return X.ScatterSeries}});var Y=VH;Object.defineProperty(e,"WaterfallSeries",{enumerable:!0,get:function(){return Y.WaterfallSeries}});var q=RG;Object.defineProperty(e,"LineSeriesBase",{enumerable:!0,get:function(){return q.LineSeriesBase}});var Z=SG;Object.defineProperty(e,"BarSeriesBase",{enumerable:!0,get:function(){return Z.BarSeriesBase}}),Object.defineProperty(e,"BarSeriesGroupBase",{enumerable:!0,get:function(){return Z.BarSeriesGroupBase}});var K=DB;Object.defineProperty(e,"Series",{enumerable:!0,get:function(){return K.Series}}),Object.defineProperty(e,"SeriesGroup",{enumerable:!0,get:function(){return K.SeriesGroup}}),Object.defineProperty(e,"ConstraintSeriesGroup",{enumerable:!0,get:function(){return K.ConstraintSeriesGroup}}),Object.defineProperty(e,"ClusterableSeries",{enumerable:!0,get:function(){return K.ClusterableSeries}}),Object.defineProperty(e,"ClusterableSeriesGroup",{enumerable:!0,get:function(){return K.ClusterableSeriesGroup}}),Object.defineProperty(e,"LowRangedSeries",{enumerable:!0,get:function(){return K.LowRangedSeries}}),Object.defineProperty(e,"RangedSeries",{enumerable:!0,get:function(){return K.RangedSeries}}),Object.defineProperty(e,"BasedSeries",{enumerable:!0,get:function(){return K.BasedSeries}}),Object.defineProperty(e,"RadialSeries",{enumerable:!0,get:function(){return K.RadialSeries}}),Object.defineProperty(e,"WidgetSeries",{enumerable:!0,get:function(){return K.WidgetSeries}}),Object.defineProperty(e,"WidgetSeriesPoint",{enumerable:!0,get:function(){return K.WidgetSeriesPoint}}),Object.defineProperty(e,"WidgetSeriesLabel",{enumerable:!0,get:function(){return K.WidgetSeriesLabel}}),Object.defineProperty(e,"WidgetSeriesConnector",{enumerable:!0,get:function(){return K.WidgetSeriesConnector}}),Object.defineProperty(e,"DataPointLabel",{enumerable:!0,get:function(){return K.DataPointLabel}}),Object.defineProperty(e,"MarkerSeries",{enumerable:!0,get:function(){return K.MarkerSeries}}),Object.defineProperty(e,"SeriesMarker",{enumerable:!0,get:function(){return K.SeriesMarker}}),Object.defineProperty(e,"ConnectableSeries",{enumerable:!0,get:function(){return K.ConnectableSeries}}),Object.defineProperty(e,"OthersGroup",{enumerable:!0,get:function(){return K.OthersGroup}});var J=OD;Object.defineProperty(e,"Trendline",{enumerable:!0,get:function(){return J.Trendline}}),Object.defineProperty(e,"TrendLineArea",{enumerable:!0,get:function(){return J.TrendlineArea}}),Object.defineProperty(e,"TrendLineLabel",{enumerable:!0,get:function(){return J.TrendlineLabel}});var Q=sB;Object.defineProperty(e,"Widget",{enumerable:!0,get:function(){return Q.Widget}});var tt=oB;Object.defineProperty(e,"CircularGauge",{enumerable:!0,get:function(){return tt.CircularGauge}}),Object.defineProperty(e,"CircularGaugeGroup",{enumerable:!0,get:function(){return tt.CircularGaugeGroup}}),Object.defineProperty(e,"CircularGaugeLabel",{enumerable:!0,get:function(){return tt.CircularGaugeLabel}}),Object.defineProperty(e,"Gauge",{enumerable:!0,get:function(){return tt.Gauge}}),Object.defineProperty(e,"GaugeBase",{enumerable:!0,get:function(){return tt.GaugeBase}}),Object.defineProperty(e,"GaugeLabel",{enumerable:!0,get:function(){return tt.GaugeLabel}}),Object.defineProperty(e,"GaugeItem",{enumerable:!0,get:function(){return tt.GaugeItem}}),Object.defineProperty(e,"GaugeGroup",{enumerable:!0,get:function(){return tt.GaugeGroup}}),Object.defineProperty(e,"GaugeScale",{enumerable:!0,get:function(){return tt.GaugeScale}}),Object.defineProperty(e,"GaugeRangeBand",{enumerable:!0,get:function(){return tt.GaugeRangeBand}}),Object.defineProperty(e,"GaugeRangeLabel",{enumerable:!0,get:function(){return tt.GaugeRangeLabel}}),Object.defineProperty(e,"ValueGauge",{enumerable:!0,get:function(){return tt.ValueGauge}});var et=SI;Object.defineProperty(e,"TextAnnotation",{enumerable:!0,get:function(){return et.TextAnnotation}});var it=uI;Object.defineProperty(e,"ImageAnnotation",{enumerable:!0,get:function(){return it.ImageAnnotation}});var rt=yI;Object.defineProperty(e,"ShapeAnnotation",{enumerable:!0,get:function(){return rt.ShapeAnnotation}});var nt=qB;Object.defineProperty(e,"TreemapSeriesType",{enumerable:!0,get:function(){return nt.TreemapSeriesType}}),Object.defineProperty(e,"HeatmapSeriesType",{enumerable:!0,get:function(){return nt.HeatmapSeriesType}}),Object.defineProperty(e,"VectorSeriesType",{enumerable:!0,get:function(){return nt.VectorSeriesType}}),Object.defineProperty(e,"WordCloudSeriesType",{enumerable:!0,get:function(){return nt.WordCloudSeriesType}}),Object.defineProperty(e,"RaceBarSeriesType",{enumerable:!0,get:function(){return nt.RaceBarSeriesType}}),Object.defineProperty(e,"RaceLineSeriesType",{enumerable:!0,get:function(){return nt.RaceLineSeriesType}}),Object.defineProperty(e,"PictogramSeriesType",{enumerable:!0,get:function(){return nt.PictogramSeriesType}}),Object.defineProperty(e,"PictorialBarSeriesType",{enumerable:!0,get:function(){return nt.PictorialBarSeriesType}}),Object.defineProperty(e,"PictorialSeriesType",{enumerable:!0,get:function(){return nt.PictorialSeriesType}});var ot=_1;Object.defineProperty(e,"LinearGaugeType",{enumerable:!0,get:function(){return ot.LinearGaugeType}}),Object.defineProperty(e,"LinearGaugeGroupType",{enumerable:!0,get:function(){return ot.LinearGaugeGroupType}}),Object.defineProperty(e,"BulletGaugeType",{enumerable:!0,get:function(){return ot.BulletGaugeType}}),Object.defineProperty(e,"BulletGaugeGroupType",{enumerable:!0,get:function(){return ot.BulletGaugeGroupType}}),Object.defineProperty(e,"CircleGaugeType",{enumerable:!0,get:function(){return ot.CircleGaugeType}}),Object.defineProperty(e,"CircleGaugeGroupType",{enumerable:!0,get:function(){return ot.CircleGaugeGroupType}}),Object.defineProperty(e,"ClockGaugeType",{enumerable:!0,get:function(){return ot.ClockGaugeType}});var st=nM;Object.defineProperty(e,"toStr",{enumerable:!0,get:function(){return st.toStr}}),Object.defineProperty(e,"calcPercent",{enumerable:!0,get:function(){return st.calcPercent}}),Object.defineProperty(e,"parsePercentSize",{enumerable:!0,get:function(){return st.parsePercentSize}}),Object.defineProperty(e,"buildValueRanges",{enumerable:!0,get:function(){return st.buildValueRanges}}),Object.defineProperty(e,"ORG_ANGLE",{enumerable:!0,get:function(){return st.ORG_ANGLE}}),Object.defineProperty(e,"PI_2",{enumerable:!0,get:function(){return st.PI_2}}),Object.defineProperty(e,"RAD_DEG",{enumerable:!0,get:function(){return st.RAD_DEG}}),Object.defineProperty(e,"fixnum",{enumerable:!0,get:function(){return st.fixnum}}),Object.defineProperty(e,"pixel",{enumerable:!0,get:function(){return st.pixel}});var at=cj;Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return at.Color}});var lt=y1;Object.defineProperty(e,"Size",{enumerable:!0,get:function(){return lt.Size}});var ut=dj;Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return ut.Dom}});var ct=uW;Object.defineProperty(e,"ElementPool",{enumerable:!0,get:function(){return ct.ElementPool}});var pt=xW;Object.defineProperty(e,"ChartElement",{enumerable:!0,get:function(){return pt.ChartElement}}),Object.defineProperty(e,"ContentView",{enumerable:!0,get:function(){return pt.ContentView}}),Object.defineProperty(e,"SectionView",{enumerable:!0,get:function(){return pt.SectionView}});var ht=pQ;Object.defineProperty(e,"ChartView",{enumerable:!0,get:function(){return ht.ChartView}}),Object.defineProperty(e,"PaneContainer",{enumerable:!0,get:function(){return ht.PaneContainer}});var ft=lW;Object.defineProperty(e,"AxisView",{enumerable:!0,get:function(){return ft.AxisView}}),Object.defineProperty(e,"AxisScrollView",{enumerable:!0,get:function(){return ft.AxisScrollView}});var dt=oU;Object.defineProperty(e,"BodyView",{enumerable:!0,get:function(){return dt.BodyView}});var _t=yQ;Object.defineProperty(e,"LegendView",{enumerable:!0,get:function(){return _t.LegendView}}),Object.defineProperty(e,"LegendItemView",{enumerable:!0,get:function(){return _t.LegendItemView}});var yt=EU;Object.defineProperty(e,"PointLabelView",{enumerable:!0,get:function(){return yt.PointLabelView}}),Object.defineProperty(e,"PointElement",{enumerable:!0,get:function(){return yt.PointElement}}),Object.defineProperty(e,"PointLabelLineContainer",{enumerable:!0,get:function(){return yt.PointLabelLineContainer}}),Object.defineProperty(e,"PointLabelLineView",{enumerable:!0,get:function(){return yt.PointLabelLineView}}),Object.defineProperty(e,"SeriesView",{enumerable:!0,get:function(){return yt.SeriesView}}),Object.defineProperty(e,"BasedSeriesView",{enumerable:!0,get:function(){return yt.BasedSeriesView}}),Object.defineProperty(e,"MarkerSeriesPointView",{enumerable:!0,get:function(){return yt.MarkerSeriesPointView}}),Object.defineProperty(e,"MarkerSeriesView",{enumerable:!0,get:function(){return yt.MarkerSeriesView}}),Object.defineProperty(e,"WidgetSeriesView",{enumerable:!0,get:function(){return yt.WidgetSeriesView}}),Object.defineProperty(e,"BoxPointElementEx",{enumerable:!0,get:function(){return yt.BoxPointElementEx}});var gt=dY;Object.defineProperty(e,"BarSeriesViewBase",{enumerable:!0,get:function(){return gt.BarSeriesViewBase}}),Object.defineProperty(e,"BarSeriesView",{enumerable:!0,get:function(){return gt.BarSeriesView}});var vt=bX;Object.defineProperty(e,"LineSeriesBaseView",{enumerable:!0,get:function(){return vt.LineSeriesBaseView}});var mt=kU;Object.defineProperty(e,"SeriesAnimation",{enumerable:!0,get:function(){return mt.SeriesAnimation}});var bt=QG;Object.defineProperty(e,"LineElement",{enumerable:!0,get:function(){return bt.LineElement}});var xt=IB;Object.defineProperty(e,"RectElement",{enumerable:!0,get:function(){return xt.RectElement}});var wt=SU;Object.defineProperty(e,"SectorElement",{enumerable:!0,get:function(){return wt.SectorElement}});var St=fU;Object.defineProperty(e,"CircleElement",{enumerable:!0,get:function(){return St.CircleElement}}),Object.defineProperty(e,"ArcElement",{enumerable:!0,get:function(){return St.ArcElement}});var Pt=HW;Object.defineProperty(e,"ImageElement",{enumerable:!0,get:function(){return Pt.ImageElement}});var At=Tj;Object.defineProperty(e,"PathBuilder",{enumerable:!0,get:function(){return At.PathBuilder}});var Ot=Pj;Object.defineProperty(e,"RcAnimation",{enumerable:!0,get:function(){return Ot.RcAnimation}});var Ct=fj;Object.defineProperty(e,"PathElement",{enumerable:!0,get:function(){return Ct.PathElement}}),Object.defineProperty(e,"RcElement",{enumerable:!0,get:function(){return Ct.RcElement}}),Object.defineProperty(e,"LayerElement",{enumerable:!0,get:function(){return Ct.LayerElement}});var Vt=iM;Object.defineProperty(e,"SVGNS",{enumerable:!0,get:function(){return Vt.SVGNS}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return Vt.isString}}),Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return Vt.isNumber}}),Object.defineProperty(e,"assignObj",{enumerable:!0,get:function(){return Vt.assignObj}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return Vt.isArray}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return Vt.isObject}}),Object.defineProperty(e,"maxv",{enumerable:!0,get:function(){return Vt.maxv}}),Object.defineProperty(e,"pickNum",{enumerable:!0,get:function(){return Vt.pickNum}}),Object.defineProperty(e,"minv",{enumerable:!0,get:function(){return Vt.minv}}),Object.defineProperty(e,"incv",{enumerable:!0,get:function(){return Vt.incv}}),Object.defineProperty(e,"pickProp",{enumerable:!0,get:function(){return Vt.pickProp}}),Object.defineProperty(e,"pickProp3",{enumerable:!0,get:function(){return Vt.pickProp3}}),Object.defineProperty(e,"copyObj",{enumerable:!0,get:function(){return Vt.copyObj}}),Object.defineProperty(e,"absv",{enumerable:!0,get:function(){return Vt.absv}}),Object.defineProperty(e,"cos",{enumerable:!0,get:function(){return Vt.cos}}),Object.defineProperty(e,"sin",{enumerable:!0,get:function(){return Vt.sin}});var Et=VU;Object.defineProperty(e,"GaugeView",{enumerable:!0,get:function(){return Et.GaugeView}}),Object.defineProperty(e,"ScaleView",{enumerable:!0,get:function(){return Et.ScaleView}}),Object.defineProperty(e,"GaugeGroupView",{enumerable:!0,get:function(){return Et.GaugeGroupView}}),Object.defineProperty(e,"ValueGaugeView",{enumerable:!0,get:function(){return Et.ValueGaugeView}});var kt=fW;Object.defineProperty(e,"rectToSize",{enumerable:!0,get:function(){return kt.rectToSize}}),Object.defineProperty(e,"createRect",{enumerable:!0,get:function(){return kt.createRect}}),Object.defineProperty(e,"isEmptyRect",{enumerable:!0,get:function(){return kt.isEmptyRect}});var Tt=uj;Object.defineProperty(e,"TextAnchor",{enumerable:!0,get:function(){return Tt.TextAnchor}}),Object.defineProperty(e,"TextElement",{enumerable:!0,get:function(){return Tt.TextElement}}),Object.defineProperty(e,"TextLayout",{enumerable:!0,get:function(){return Tt.TextLayout}}),r(rM,e)}(i),e(i)}));