@arcgis/charts-components 5.2.0-next.24 → 5.2.0-next.26
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/dist/cdn/{KCJKQ44K.js → 2A24ACPF.js} +1 -1
- package/dist/cdn/{5M57QONK.js → 2ASYBTGM.js} +1 -1
- package/dist/cdn/{L6NNUSXU.js → 2B3QBXNI.js} +1 -1
- package/dist/cdn/{RBAE74TA.js → 2KCA3K57.js} +1 -1
- package/dist/cdn/{5VQQA6MA.js → 3BS7VF2U.js} +1 -1
- package/dist/cdn/{MSN54T3T.js → 4AF64XYR.js} +1 -1
- package/dist/cdn/{FRSKVY2N.js → 4N3NVAA2.js} +1 -1
- package/dist/cdn/{YNHUPD3J.js → 4RJT43K4.js} +1 -1
- package/dist/cdn/{J72BLOD2.js → 4XIBUPM6.js} +1 -1
- package/dist/cdn/{DNSJAZKI.js → 4YRCWE6Z.js} +1 -1
- package/dist/cdn/{QUR7IUKK.js → 5JREGZML.js} +1 -1
- package/dist/cdn/{JGSF55NE.js → 5NVUOG5B.js} +1 -1
- package/dist/cdn/{U6MMH2LR.js → 5UX2FYTM.js} +1 -1
- package/dist/cdn/{6VDLIICW.js → 5W76WCRM.js} +1 -1
- package/dist/cdn/{MDMUNG7R.js → 662GFATG.js} +1 -1
- package/dist/cdn/{OQWDZSTM.js → 6ODWWOUP.js} +1 -1
- package/dist/cdn/{NUIBH3VT.js → 6Y6EK76O.js} +1 -1
- package/dist/cdn/{F2N6CMAL.js → 75XWLYW5.js} +1 -1
- package/dist/cdn/{GZU5HJCQ.js → 7LI5APDL.js} +1 -1
- package/dist/cdn/{EUGGSDEV.js → ADJHTT4M.js} +1 -1
- package/dist/cdn/{TLP2PMYA.js → ASEWMED3.js} +1 -1
- package/dist/cdn/{KXKOTDCQ.js → AYNWMLFD.js} +1 -1
- package/dist/cdn/{FP72YYAO.js → AZZIMLGE.js} +1 -1
- package/dist/cdn/{KOKJLIPK.js → BMC75GCV.js} +1 -1
- package/dist/cdn/{YMFG2IVU.js → BUUTWPEP.js} +1 -1
- package/dist/cdn/{LZMLIBIH.js → D46R6YHX.js} +1 -1
- package/dist/cdn/{QQSX47ZE.js → D6GG2ADV.js} +1 -1
- package/dist/cdn/{S6SBVFMN.js → DE2LP6LN.js} +1 -1
- package/dist/cdn/{XNJIGVQJ.js → DKMTGCWH.js} +1 -1
- package/dist/cdn/{NNP5LCX5.js → ECG7HC37.js} +1 -1
- package/dist/cdn/{CTXTTI3G.js → FFE3EGXQ.js} +1 -1
- package/dist/cdn/{NDBH7YLO.js → GSYV5MTU.js} +1 -1
- package/dist/cdn/{NUK4NPOT.js → GW6GNNLA.js} +1 -1
- package/dist/cdn/{IOAD36KI.js → GZLTMREM.js} +1 -1
- package/dist/cdn/{3RA3JNKB.js → HFSVUO2D.js} +2 -2
- package/dist/cdn/{O6CSF6KG.js → HK3P3FUS.js} +1 -1
- package/dist/cdn/{G7SXRDMI.js → HPEG72LB.js} +1 -1
- package/dist/cdn/{ZERRCOSM.js → ICJALFR4.js} +1 -1
- package/dist/cdn/{A3TAYUWE.js → IHJWEEOX.js} +1 -1
- package/dist/cdn/{7WMOXCPU.js → IK5VZ54O.js} +1 -1
- package/dist/cdn/{JF7YQCM6.js → IP3FZZNM.js} +1 -1
- package/dist/cdn/{G5TRNV2I.js → IPECBZP3.js} +1 -1
- package/dist/cdn/{RAUYMTSM.js → IUMYBJDG.js} +1 -1
- package/dist/cdn/{6UVZ3NXS.js → K7VEKFCK.js} +1 -1
- package/dist/cdn/{UYKZWTFH.js → KBUBJ24X.js} +1 -1
- package/dist/cdn/{W6CKM3J3.js → L6SM2ORZ.js} +1 -1
- package/dist/cdn/{APNALJWN.js → LSF6ITTC.js} +1 -1
- package/dist/cdn/{U7ZGT3IG.js → LSKFMUX4.js} +1 -1
- package/dist/cdn/{KXAMHTYD.js → MLD566HE.js} +4 -4
- package/dist/cdn/{KXGVMPQJ.js → MUG3AZLX.js} +1 -1
- package/dist/cdn/{WHBJYAT4.js → N3FUI2RC.js} +1 -1
- package/dist/cdn/{6RD22S75.js → N4EH5HUB.js} +1 -1
- package/dist/cdn/{WHLDUYAG.js → N4IFMTPA.js} +1 -1
- package/dist/cdn/{2V4LOGZL.js → N5AW3HBF.js} +1 -1
- package/dist/cdn/{T5NY73Y2.js → N6IOWWIK.js} +1 -1
- package/dist/cdn/{XST7FY7F.js → NJAGOS7G.js} +1 -1
- package/dist/cdn/{GOZIQ6A2.js → OO5SFCWJ.js} +1 -1
- package/dist/cdn/{3XMGXTZB.js → RSYMKZMX.js} +1 -1
- package/dist/cdn/{LHGLUPW5.js → SUTVT5OC.js} +1 -1
- package/dist/cdn/{NNP7U57T.js → TG4EXCPF.js} +1 -1
- package/dist/cdn/{OFP7FIPS.js → TNKGWBUO.js} +1 -1
- package/dist/cdn/{QSH4RLKM.js → TS6MWMCQ.js} +1 -1
- package/dist/cdn/{NOAJPX72.js → TSQOEJB4.js} +1 -1
- package/dist/cdn/{BFIXNPQC.js → UB4O3XGF.js} +1 -1
- package/dist/cdn/{XX6OXKZK.js → UFI4PRSB.js} +1 -1
- package/dist/cdn/{ZX4AZXEF.js → VD3DRJBH.js} +1 -1
- package/dist/cdn/{7LGIXLPP.js → VHY7DPE3.js} +1 -1
- package/dist/cdn/{MVNNQWQB.js → VWW6TY7N.js} +1 -1
- package/dist/cdn/{OLPU6MNA.js → WJLUWK7Z.js} +1 -1
- package/dist/cdn/{GQK23IL4.js → WXWLMWG5.js} +1 -1
- package/dist/cdn/{S4SG2V5X.js → WY3UGKLF.js} +1 -1
- package/dist/cdn/{UV5LIHCE.js → X4LAYI76.js} +1 -1
- package/dist/cdn/{GP5MHPDX.js → XKHA7K4P.js} +1 -1
- package/dist/cdn/{YPRIULPN.js → XKJN3WVL.js} +1 -1
- package/dist/cdn/{LVSNOD77.js → XWDLT2E4.js} +1 -1
- package/dist/cdn/{CU56A45C.js → Y5GMGU4M.js} +1 -1
- package/dist/cdn/{YPFJW7NS.js → Y7HYSSRW.js} +1 -1
- package/dist/cdn/{YL45GUSC.js → ZB5KGMQ6.js} +1 -1
- package/dist/cdn/{C3MXUPEW.js → ZPFHE4XY.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +373 -372
- package/dist/components/arcgis-chart/customElement.js +101 -102
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as sn}from"./3VMHKSYP.js";import{b as Xx}from"./P4HSSZRL.js";import o from"./RBAE74TA.js";import n from"./YMFG2IVU.js";import{c as kx,e as lp,f as $x,g as Ox,h as Ex,i as Mx,j as md}from"./IVLVCLDE.js";import{a as OT,g as ET}from"./OBPAQN4H.js";import m from"./U7ZGT3IG.js";import{a as Qx}from"./JHANH4UG.js";import{a as gT}from"./AK7X7SGI.js";import l from"./QUR7IUKK.js";import k from"./G5TRNV2I.js";import j from"./MSN54T3T.js";import i from"./NOAJPX72.js";import h from"./F2N6CMAL.js";import g from"./GP5MHPDX.js";import{a as Ro,b as DT,c as LT,d as IT,e as Hx,k as jx,q as kT}from"./THTYR6IL.js";import f from"./WHBJYAT4.js";import e from"./OQWDZSTM.js";import"./Y7HBWU3M.js";import d from"./GZU5HJCQ.js";import c from"./W6CKM3J3.js";import b from"./LZMLIBIH.js";import{c as fd,d as Px,e as np,o as pg,q as Dx,r as fT,s as fg,t as mT,u as op}from"./WNKDEOFZ.js";import a from"./3RA3JNKB.js";import{e as bs,g as io}from"./EZV7JSQJ.js";import{D as qA,E as JA,a as Ut,b as Ym,c as pt,d as ke,e as Tr,f as vr,g as Fl,h as us,i as ZA,j as ks,l as tx,n as Or,p as ix,r as zi,v as rx,w as yF,x as Zr}from"./3TBK72EK.js";import{F as KA,I as Wm,J as Yb,K as Xm,N as dF,P as zm,Q as Kb,R as Zb,S as qb,T as AF,Y as pF,Z as fF,aa as Jb,ea as Gm,f as Ou,h as hd,i as Qm,j as Gb,k as lF,l as Hm,o as an,p as jm,q as xr,ra as mF,s as hF,v as uF,va as gF,w as cF,y as gh,ya as ex,z as Eu}from"./PAIRUVLU.js";import{a as GA,b as hs,c as YA,d as vs,e as Nm,f as Rt}from"./KX7KGXKQ.js";import{g as _r,h as Is,k as Iu,l as rn}from"./SP2IPHWF.js";import{a as aF,b as Qb,c as Um,g as Lu}from"./IHHPUKGG.js";import{A as Nb,B as iF,C as Rm,H as rF,I as sF,g as ZS,h as qS,i as ld,l as JS,n as Xs,p as eF,z as tF}from"./RIM4HLHN.js";import{a as $T}from"./KOKJLIPK.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import{a as ze,b as oF}from"./XJFVSX2E.js";import{a as V,b as Pn,e as st,f as $i,h as zA,i as Hb,j as jb,k as er,l as Vm,m as ku,n as Wb,p as tr,q as nF,r as $u,t as Xb,u as zb}from"./547RDEMV.js";import{a as XA,b as Mm,c as KS,d as Vb}from"./U67P6YAZ.js";export default $arcgis.t(([Ia,{substitute:Uc},QL,BN,SN,{$:ux,$a:Ll,$b:oT,A:hx,Aa:fx,Ab:iT,B:Yt,Ba:jF,C:Oo,Ca:Ra,D:yh,Da:tg,E:bF,Ea:ig,F:qm,Fa:xa,Fb:xx,G:ep,Gb:ng,Ha:WF,Hb:og,I:Nu,Ia:XF,Ib:dd,J:$s,Ja:mx,Jb:lg,Ka:rg,Kb:rT,Lb:_x,Ma:on,Mb:hg,N:xF,Na:gx,Oa:Qu,Ob:Cx,Pa:zF,Q:Dn,Qa:yx,R:vh,Ra:GF,S:_F,Sa:rp,Sb:wx,T:kt,Ta:oa,Tb:Ad,U:CF,Ua:Eo,Ub:sT,V:wF,Va:sp,Vb:ug,W:Jm,Wb:aT,X:bh,Xa:cd,Xb:Bx,Y:BF,Ya:YF,Yb:nT,Z:SF,Za:KF,Zb:Sx,_:FF,_b:Fx,aa:TF,ab:ZF,b:Tl,ba:PF,bc:ap,c:Km,ca:DF,cb:qF,d:vF,da:LF,db:vx,dc:Hu,e:$o,ea:IF,ec:Ln,f:ba,fa:cx,fc:pd,g:Mu,ga:kF,gc:Zi,h:ud,ha:$F,i:ro,ia:dx,ic:Mo,j:sx,ja:OF,k:Pl,ka:EF,kc:lT,l:Zm,la:MF,lb:sg,lc:hT,m:so,ma:Ax,mc:uT,n:Dl,na:RF,nc:Tx,o:ax,oa:UF,ob:bx,oc:cg,p:nx,pa:eg,pb:_a,pc:dg,q:ao,qa:VF,qc:cT,r:Ru,ra:NF,rb:xh,rc:dT,sa:QF,sb:JF,sc:AT,ta:HF,tb:eT,u:q,uc:Ag,v:ox,va:tp,vb:tT,vc:pT,w:Uu,wa:no,x:Vu,xa:oo,y:lx,ya:px,z:nn,za:ip,zb:ag},,{g:yT,i:vT},,,{a:Lx,b:_h},,,,,,{m:bT,n:xT,o:_T,p:CT,q:Ix,r:wT,s:BT,t:ST},{q:Wx},{b:MT,c:RT,e:gd},{a:FT,b:TT,c:PT,d:Rx,g:Ux,h:Vx,i:Nx}])=>{var QT=Mm((WY,NT)=>{"use strict";function bU(a){var t=new a,e=t;function i(){var s=t;return s.next?t=s.next:(t=new a,e=t),s.next=null,s}function r(s){e.next=s,e=s}return{get:i,release:r}}NT.exports=bU});var jT=Mm((XY,zx)=>{"use strict";var xU=QT();function HT(a,t,e){if(typeof a=="function"&&(e=t,t=a,a=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var i=xU(_U),r=null,s=null,n=0,o=null,l={push:f,drain:kn,saturated:kn,pause:c,paused:!1,concurrency:e,running:h,resume:A,idle:p,length:u,getQueue:d,unshift:m,empty:kn,kill:y,killAndDrain:x,error:w};return l;function h(){return n}function c(){l.paused=!0}function u(){for(var S=r,T=0;S;)S=S.next,T++;return T}function d(){for(var S=r,T=[];S;)T.push(S.value),S=S.next;return T}function A(){if(l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)n++,g()}}function p(){return n===0&&l.length()===0}function f(S,T){var F=i.get();F.context=a,F.release=g,F.value=S,F.callback=T||kn,F.errorHandler=o,n===l.concurrency||l.paused?s?(s.next=F,s=F):(r=F,s=F,l.saturated()):(n++,t.call(a,F.value,F.worked))}function m(S,T){var F=i.get();F.context=a,F.release=g,F.value=S,F.callback=T||kn,n===l.concurrency||l.paused?r?(F.next=r,r=F):(r=F,s=F,l.saturated()):(n++,t.call(a,F.value,F.worked))}function g(S){S&&i.release(S);var T=r;T?l.paused?n--:(s===r&&(s=null),r=T.next,T.next=null,t.call(a,T.value,T.worked),s===null&&l.empty()):--n===0&&l.drain()}function y(){r=null,s=null,l.drain=kn}function x(){r=null,s=null,l.drain(),l.drain=kn}function w(S){o=S}}function kn(){}function _U(){this.value=null,this.callback=kn,this.next=null,this.release=kn,this.context=null,this.errorHandler=null;var a=this;this.worked=function(e,i){var r=a.callback,s=a.errorHandler,n=a.value;a.value=null,a.callback=kn,a.errorHandler&&s(e,n),r.call(a.context,e,i),a.release(a)}}function CU(a,t,e){typeof a=="function"&&(e=t,t=a,a=null);function i(c,u){t.call(this,c).then(function(d){u(null,d)},u)}var r=HT(a,i,e),s=r.push,n=r.unshift;return r.push=o,r.unshift=l,r.drained=h,r;function o(c){var u=new Promise(function(d,A){s(c,function(p,f){if(p){A(p);return}d(f)})});return u.catch(kn),u}function l(c){var u=new Promise(function(d,A){n(c,function(p,f){if(p){A(p);return}d(f)})});return u.catch(kn),u}function h(){var c=r.drain,u=new Promise(function(d){r.drain=function(){c(),d()}});return u}}zx.exports=HT;zx.exports.promise=CU});var WT=Mm((Gx,Yx)=>{(function(a,t){typeof Gx=="object"&&typeof Yx<"u"?Yx.exports=t():typeof define=="function"&&define.amd?define(t):(a=typeof globalThis<"u"?globalThis:a||self,a.html2canvas=t())})(Gx,(function(){"use strict";var a=function(b,v){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&(C[D]=_[D])},a(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");a(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,D=arguments.length;_<D;_++){C=arguments[_];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(v[O]=C[O])}return v},e.apply(this,arguments)};function i(b,v,C,_){function D(O){return O instanceof C?O:new C(function(H){H(O)})}return new(C||(C=Promise))(function(O,H){function W(ne){try{ae(_.next(ne))}catch(Ae){H(Ae)}}function j(ne){try{ae(_.throw(ne))}catch(Ae){H(Ae)}}function ae(ne){ne.done?O(ne.value):D(ne.value).then(W,j)}ae((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},_,D,O,H;return H={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function W(ae){return function(ne){return j([ae,ne])}}function j(ae){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,D&&(O=ae[0]&2?D.return:ae[0]?D.throw||((O=D.return)&&O.call(D),0):D.next)&&!(O=O.call(D,ae[1])).done)return O;switch(D=0,O&&(ae=[ae[0]&2,O.value]),ae[0]){case 0:case 1:O=ae;break;case 4:return C.label++,{value:ae[1],done:!1};case 5:C.label++,D=ae[1],ae=[0];continue;case 7:ae=C.ops.pop(),C.trys.pop();continue;default:if(O=C.trys,!(O=O.length>0&&O[O.length-1])&&(ae[0]===6||ae[0]===2)){C=0;continue}if(ae[0]===3&&(!O||ae[1]>O[0]&&ae[1]<O[3])){C.label=ae[1];break}if(ae[0]===6&&C.label<O[1]){C.label=O[1],O=ae;break}if(O&&C.label<O[2]){C.label=O[2],C.ops.push(ae);break}O[2]&&C.ops.pop(),C.trys.pop();continue}ae=v.call(b,C)}catch(ne){ae=[6,ne],D=0}finally{_=O=0}if(ae[0]&5)throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}}function s(b,v,C){if(C||arguments.length===2)for(var _=0,D=v.length,O;_<D;_++)(O||!(_ in v))&&(O||(O=Array.prototype.slice.call(v,0,_)),O[_]=v[_]);return b.concat(O||v)}for(var n=(function(){function b(v,C,_,D){this.left=v,this.top=C,this.width=_,this.height=D}return b.prototype.add=function(v,C,_,D){return new b(this.left+v,this.top+C,this.width+_,this.height+D)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(D){return D.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),D=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,D)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((D&1023)<<10)+(O&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},c=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,O="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<u.length;A++)d[u.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array>"u"?[]:new Uint8Array(256),m=0;m<p.length;m++)f[p.charCodeAt(m)]=m;for(var g=function(b){var v=b.length*.75,C=b.length,_,D=0,O,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)O=f[b.charCodeAt(_)],H=f[b.charCodeAt(_+1)],W=f[b.charCodeAt(_+2)],j=f[b.charCodeAt(_+3)],ne[D++]=O<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,T=2,F=S-w,L=65536>>w,$=1<<w,I=$-1,U=1024>>w,P=L+U,Q=P,G=32,Y=Q+G,ee=65536>>S,te=1<<F,le=te-1,z=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},K=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},we=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),D=Array.isArray(C)?y(C):new Uint16Array(C),O=24,H=z(D,O/2,_[4]/2),W=_[5]===2?z(D,(O+_[4])/2):K(_,Math.ceil((O+_[4])/4));return new se(_[0],_[1],_[2],_[3],H,W)},se=(function(){function b(v,C,_,D,O,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=O,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<T)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<T)+(v&I),this.data[C];if(v<this.highStart)return C=Y-ee+(v>>S),C=this.index[C],C+=v>>w&le,C=this.index[C],C=(C<<T)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ye=0;Ye<de.length;Ye++)$e[de.charCodeAt(Ye)]=Ye;var He="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qe=50,Tt=1,At=2,xi=3,wi=4,R=5,Be=7,ye=8,Z=9,X=10,oe=11,De=12,Le=13,pe=14,Oe=15,Je=16,Me=17,_t=18,Yi=19,ci=20,gs=21,Bi=22,Yr=23,yr=24,Si=25,Po=26,vl=27,aa=28,qf=29,bl=30,eb=31,Kc=32,Cu=33,xl=34,nh=35,tb=36,DA=37,ib=38,Jf=39,em=40,rb=41,oB=42,_$=43,C$=[9001,65288],lB="!",_i="\xD7",tm="\xF7",sb=we(He),_l=[bl,tb],ab=[Tt,At,xi,R],hB=[X,ye],uB=[vl,Po],w$=ab.concat(hB),cB=[ib,Jf,em,xl,nh],B$=[Oe,Le],S$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],D=[];return b.forEach(function(O,H){var W=sb.get(O);if(W>qe?(D.push(!0),W-=qe):D.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf(O)!==-1)return _.push(H),C.push(Je);if(W===wi||W===oe){if(H===0)return _.push(H),C.push(bl);var j=C[H-1];return w$.indexOf(j)===-1?(_.push(_[H-1]),C.push(j)):(_.push(H),C.push(bl))}if(_.push(H),W===eb)return C.push(v==="strict"?gs:DA);if(W===oB||W===qf)return C.push(bl);if(W===_$)return O>=131072&&O<=196605||O>=196608&&O<=262141?C.push(DA):C.push(bl);C.push(W)}),[_,C,D]},nb=function(b,v,C,_){var D=_[C];if(Array.isArray(b)?b.indexOf(D)!==-1:b===D)for(var O=C;O<=_.length;){O++;var H=_[O];if(H===v)return!0;if(H!==X)break}if(D===X)for(var O=C;O>0;){O--;var W=_[O];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var H=_[j];if(H===v)return!0;if(H!==X)break}if(W!==X)break}return!1},dB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},F$=function(b,v,C,_,D){if(C[_]===0)return _i;var O=_-1;if(Array.isArray(D)&&D[O]===!0)return _i;var H=O-1,W=O+1,j=v[O],ae=H>=0?v[H]:0,ne=v[W];if(j===At&&ne===xi)return _i;if(ab.indexOf(j)!==-1)return lB;if(ab.indexOf(ne)!==-1||hB.indexOf(ne)!==-1)return _i;if(dB(O,v)===ye)return tm;if(sb.get(b[O])===oe||(j===Kc||j===Cu)&&sb.get(b[W])===oe||j===Be||ne===Be||j===Z||[X,Le,Oe].indexOf(j)===-1&&ne===Z||[Me,_t,Yi,yr,aa].indexOf(ne)!==-1||dB(O,v)===Bi||nb(Yr,Bi,O,v)||nb([Me,_t],gs,O,v)||nb(De,De,O,v))return _i;if(j===X)return tm;if(j===Yr||ne===Yr)return _i;if(ne===Je||j===Je)return tm;if([Le,Oe,gs].indexOf(ne)!==-1||j===pe||ae===tb&&B$.indexOf(j)!==-1||j===aa&&ne===tb||ne===ci||_l.indexOf(ne)!==-1&&j===Si||_l.indexOf(j)!==-1&&ne===Si||j===vl&&[DA,Kc,Cu].indexOf(ne)!==-1||[DA,Kc,Cu].indexOf(j)!==-1&&ne===Po||_l.indexOf(j)!==-1&&uB.indexOf(ne)!==-1||uB.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||[vl,Po].indexOf(j)!==-1&&(ne===Si||[Bi,Oe].indexOf(ne)!==-1&&v[W+1]===Si)||[Bi,Oe].indexOf(j)!==-1&&ne===Si||j===Si&&[Si,aa,yr].indexOf(ne)!==-1)return _i;if([Si,aa,yr,Me,_t].indexOf(ne)!==-1)for(var Ae=O;Ae>=0;){var _e=v[Ae];if(_e===Si)return _i;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if([vl,Po].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?H:O;Ae>=0;){var _e=v[Ae];if(_e===Si)return _i;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if(ib===j&&[ib,Jf,xl,nh].indexOf(ne)!==-1||[Jf,xl].indexOf(j)!==-1&&[Jf,em].indexOf(ne)!==-1||[em,nh].indexOf(j)!==-1&&ne===em||cB.indexOf(j)!==-1&&[ci,Po].indexOf(ne)!==-1||cB.indexOf(ne)!==-1&&j===vl||_l.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||j===yr&&_l.indexOf(ne)!==-1||_l.concat(Si).indexOf(j)!==-1&&ne===Bi&&C$.indexOf(b[W])===-1||_l.concat(Si).indexOf(ne)!==-1&&j===_t)return _i;if(j===rb&&ne===rb){for(var lt=C[O],Ue=1;lt>0&&(lt--,v[lt]===rb);)Ue++;if(Ue%2!==0)return _i}return j===Kc&&ne===Cu?_i:tm},T$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=S$(b,v.lineBreak),_=C[0],D=C[1],O=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(D=D.map(function(W){return[Si,bl,oB].indexOf(W)!==-1?DA:W}));var H=v.wordBreak==="keep-all"?O.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,D,H]},P$=(function(){function b(v,C,_,D){this.codePoints=v,this.required=C===lB,this.start=_,this.end=D}return b.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),D$=function(b,v){var C=h(b),_=T$(C,v),D=_[0],O=_[1],H=_[2],W=C.length,j=0,ae=0;return{next:function(){if(ae>=W)return{done:!0,value:null};for(var ne=_i;ae<W&&(ne=F$(C,O,D,++ae,H))===_i;);if(ne!==_i||ae===W){var Ae=new P$(C,ne,j,ae);return j=ae,{value:Ae,done:!1}}return{done:!0,value:null}}}},L$=1,I$=2,LA=4,AB=8,im=10,pB=47,IA=92,k$=9,$$=32,rm=34,kA=61,O$=35,E$=36,M$=37,sm=39,am=40,$A=41,R$=95,$a=45,U$=33,V$=60,N$=62,Q$=64,H$=91,j$=93,W$=61,X$=123,nm=63,z$=125,fB=124,G$=126,Y$=128,mB=65533,ob=42,wu=43,K$=44,Z$=58,q$=59,OA=46,J$=0,eO=8,tO=11,iO=14,rO=31,sO=127,Do=-1,gB=48,yB=97,vB=101,aO=102,nO=117,oO=122,bB=65,xB=69,_B=70,lO=85,hO=90,na=function(b){return b>=gB&&b<=57},uO=function(b){return b>=55296&&b<=57343},Zc=function(b){return na(b)||b>=bB&&b<=_B||b>=yB&&b<=aO},cO=function(b){return b>=yB&&b<=oO},dO=function(b){return b>=bB&&b<=hO},AO=function(b){return cO(b)||dO(b)},pO=function(b){return b>=Y$},om=function(b){return b===im||b===k$||b===$$},lm=function(b){return AO(b)||pO(b)||b===R$},CB=function(b){return lm(b)||na(b)||b===$a},fO=function(b){return b>=J$&&b<=eO||b===tO||b>=iO&&b<=rO||b===sO},oh=function(b,v){return b!==IA?!1:v!==im},hm=function(b,v,C){return b===$a?lm(v)||oh(v,C):lm(b)?!0:!!(b===IA&&oh(b,v))},lb=function(b,v,C){return b===wu||b===$a?na(v)?!0:v===OA&&na(C):na(b===OA?v:b)},mO=function(b){var v=0,C=1;(b[v]===wu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];na(b[v]);)_.push(b[v++]);var D=_.length?parseInt(c.apply(void 0,_),10):0;b[v]===OA&&v++;for(var O=[];na(b[v]);)O.push(b[v++]);var H=O.length,W=H?parseInt(c.apply(void 0,O),10):0;(b[v]===xB||b[v]===vB)&&v++;var j=1;(b[v]===wu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var ae=[];na(b[v]);)ae.push(b[v++]);var ne=ae.length?parseInt(c.apply(void 0,ae),10):0;return C*(D+W*Math.pow(10,-H))*Math.pow(10,j*ne)},gO={type:2},yO={type:3},vO={type:4},bO={type:13},xO={type:8},_O={type:21},CO={type:9},wO={type:10},BO={type:11},SO={type:12},FO={type:14},um={type:23},TO={type:1},PO={type:25},DO={type:24},LO={type:26},IO={type:27},kO={type:28},$O={type:29},OO={type:31},hb={type:32},wB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==hb;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case rm:return this.consumeStringToken(rm);case O$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),D=this.peekCodePoint(2);if(CB(C)||oh(_,D)){var O=hm(C,_,D)?I$:L$,H=this.consumeName();return{type:5,value:H,flags:O}}break;case E$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),bO;break;case sm:return this.consumeStringToken(sm);case am:return gO;case $A:return yO;case ob:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),FO;break;case wu:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case K$:return vO;case $a:var W=v,j=this.peekCodePoint(0),ae=this.peekCodePoint(1);if(lb(W,j,ae))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(hm(W,j,ae))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&ae===N$)return this.consumeCodePoint(),this.consumeCodePoint(),DO;break;case OA:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case pB:if(this.peekCodePoint(0)===ob)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ob&&(ne=this.consumeCodePoint(),ne===pB))return this.consumeToken();if(ne===Do)return this.consumeToken()}break;case Z$:return LO;case q$:return IO;case V$:if(this.peekCodePoint(0)===U$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),PO;break;case Q$:var Ae=this.peekCodePoint(0),_e=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(hm(Ae,_e,lt)){var H=this.consumeName();return{type:7,value:H}}break;case H$:return kO;case IA:if(oh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case j$:return $O;case W$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),xO;break;case X$:return BO;case z$:return SO;case nO:case lO:var Ue=this.peekCodePoint(0),Ze=this.peekCodePoint(1);return Ue===wu&&(Zc(Ze)||Ze===nm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case fB:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),CO;if(this.peekCodePoint(0)===fB)return this.consumeCodePoint(),_O;break;case G$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),wO;break;case Do:return hb}return om(v)?(this.consumeWhiteSpace(),OO):na(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):lm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:c(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Zc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===nm&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var D=parseInt(c.apply(void 0,v.map(function(j){return j===nm?gB:j})),16),O=parseInt(c.apply(void 0,v.map(function(j){return j===nm?_B:j})),16);return{type:30,start:D,end:O}}var H=parseInt(c.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Zc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Zc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var O=parseInt(c.apply(void 0,W),16);return{type:30,start:H,end:O}}else return{type:30,start:H,end:H}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===am?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===am?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===sm||C===rm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===$A)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),um)}for(;;){var D=this.consumeCodePoint();if(D===Do||D===$A)return{type:22,value:c.apply(void 0,v)};if(om(D))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===$A?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,v)}):(this.consumeBadUrlRemnants(),um);if(D===rm||D===sm||D===am||fO(D))return this.consumeBadUrlRemnants(),um;if(D===IA)if(oh(D,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),um;else v.push(D)}},b.prototype.consumeWhiteSpace=function(){for(;om(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===$A||v===Do)return;oh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var D=Math.min(C,v);_+=c.apply(void 0,this._value.splice(0,D)),v-=D}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var D=this._value[_];if(D===Do||D===void 0||D===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(D===im)return this._value.splice(0,_),TO;if(D===IA){var O=this._value[_+1];O!==Do&&O!==void 0&&(O===im?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):oh(D,O)&&(C+=this.consumeStringSlice(_),C+=c(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=LA,_=this.peekCodePoint(0);for((_===wu||_===$a)&&v.push(this.consumeCodePoint());na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var D=this.peekCodePoint(1);if(_===OA&&na(D))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=AB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),D=this.peekCodePoint(1);var O=this.peekCodePoint(2);if((_===xB||_===vB)&&((D===wu||D===$a)&&na(O)||na(D)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=AB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[mO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],D=this.peekCodePoint(0),O=this.peekCodePoint(1),H=this.peekCodePoint(2);if(hm(D,O,H)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return D===M$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Zc(v)){for(var C=c(v);Zc(this.peekCodePoint(0))&&C.length<6;)C+=c(this.consumeCodePoint());om(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||uO(_)||_>1114111?mB:_}return v===Do?mB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(CB(C))v+=c(C);else if(oh(C,this.peekCodePoint(0)))v+=c(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),BB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new wB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||MO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?hb:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),EA=function(b){return b.type===15},qc=function(b){return b.type===17},ur=function(b){return b.type===20},EO=function(b){return b.type===0},ub=function(b,v){return ur(b)&&b.value===v},SB=function(b){return b.type!==31},Jc=function(b){return b.type!==31&&b.type!==4},Lo=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},MO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},lh=function(b){return b.type===17||b.type===15},os=function(b){return b.type===16||lh(b)},FB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Hs={type:17,number:0,flags:LA},cb={type:16,number:50,flags:LA},hh={type:16,number:100,flags:LA},MA=function(b,v,C){var _=b[0],D=b[1];return[br(_,v),br(typeof D<"u"?D:_,C)]},br=function(b,v){if(b.type===16)return b.number/100*v;if(EA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},TB="deg",PB="grad",DB="rad",LB="turn",cm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case TB:return Math.PI*v.number/180;case PB:return Math.PI/200*v.number;case DB:return v.number;case LB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},IB=function(b){return b.type===15&&(b.unit===TB||b.unit===PB||b.unit===DB||b.unit===LB)},kB=function(b){var v=b.filter(ur).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Hs,Hs];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Hs,hh];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hh,hh];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hh,Hs];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},uh={name:"color",parse:function(b,v){if(v.type===18){var C=RO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),D=v.value.substring(1,2),O=v.value.substring(2,3);return dh(parseInt(_+_,16),parseInt(D+D,16),parseInt(O+O,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),D=v.value.substring(1,2),O=v.value.substring(2,3),H=v.value.substring(3,4);return dh(parseInt(_+_,16),parseInt(D+D,16),parseInt(O+O,16),parseInt(H+H,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),D=v.value.substring(2,4),O=v.value.substring(4,6);return dh(parseInt(_,16),parseInt(D,16),parseInt(O,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),D=v.value.substring(2,4),O=v.value.substring(4,6),H=v.value.substring(6,8);return dh(parseInt(_,16),parseInt(D,16),parseInt(O,16),parseInt(H,16)/255)}}if(v.type===20){var W=Cl[v.value.toUpperCase()];if(typeof W<"u")return W}return Cl.TRANSPARENT}},ch=function(b){return(255&b)===0},Ls=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,D=255&b>>24;return v<255?"rgba("+D+","+_+","+C+","+v/255+")":"rgb("+D+","+_+","+C+")"},dh=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},$B=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},OB=function(b,v){var C=v.filter(Jc);if(C.length===3){var _=C.map($B),D=_[0],O=_[1],H=_[2];return dh(D,O,H,1)}if(C.length===4){var W=C.map($B),D=W[0],O=W[1],H=W[2],j=W[3];return dh(D,O,H,j)}return 0};function db(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var EB=function(b,v){var C=v.filter(Jc),_=C[0],D=C[1],O=C[2],H=C[3],W=(_.type===17?Bn(_.number):cm.parse(b,_))/(Math.PI*2),j=os(D)?D.number/100:0,ae=os(O)?O.number/100:0,ne=typeof H<"u"&&os(H)?br(H,1):1;if(j===0)return dh(ae*255,ae*255,ae*255,1);var Ae=ae<=.5?ae*(j+1):ae+j-ae*j,_e=ae*2-Ae,lt=db(_e,Ae,W+1/3),Ue=db(_e,Ae,W),Ze=db(_e,Ae,W-1/3);return dh(lt*255,Ue*255,Ze*255,ne)},RO={hsl:EB,hsla:EB,rgb:OB,rgba:OB},RA=function(b,v){return uh.parse(b,BB.create(v).parseComponentValue())},Cl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},UO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(ur(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},VO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dm=function(b,v){var C=uh.parse(b,v[0]),_=v[1];return _&&os(_)?{color:C,stop:_}:{color:C,stop:null}},MB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=Hs),_.stop===null&&(_.stop=hh);for(var D=[],O=0,H=0;H<b.length;H++){var W=b[H].stop;if(W!==null){var j=br(W,v);j>O?D.push(j):D.push(O),O=j}else D.push(null)}for(var ae=null,H=0;H<D.length;H++){var ne=D[H];if(ne===null)ae===null&&(ae=H);else if(ae!==null){for(var Ae=H-ae,_e=D[ae-1],lt=(ne-_e)/(Ae+1),Ue=1;Ue<=Ae;Ue++)D[ae+Ue-1]=lt*Ue;ae=null}}return b.map(function(Ze,ii){var bt=Ze.color;return{color:bt,stop:Math.max(Math.min(1,D[ii]/v),0)}})},NO=function(b,v,C){var _=v/2,D=C/2,O=br(b[0],v)-_,H=D-br(b[1],C);return(Math.atan2(H,O)+Math.PI*2)%(Math.PI*2)},QO=function(b,v,C){var _=typeof b=="number"?b:NO(b,v,C),D=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),O=v/2,H=C/2,W=D/2,j=Math.sin(_-Math.PI/2)*W,ae=Math.cos(_-Math.PI/2)*W;return[D,O-ae,O+ae,H-j,H+j]},to=function(b,v){return Math.sqrt(b*b+v*v)},RB=function(b,v,C,_,D){var O=[[0,0],[0,v],[b,0],[b,v]];return O.reduce(function(H,W){var j=W[0],ae=W[1],ne=to(C-j,_-ae);return(D?ne<H.optimumDistance:ne>H.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:H},{optimumDistance:D?1/0:-1/0,optimumCorner:null}).optimumCorner},HO=function(b,v,C,_,D){var O=0,H=0;switch(b.size){case 0:b.shape===0?O=H=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&(O=Math.min(Math.abs(v),Math.abs(v-_)),H=Math.min(Math.abs(C),Math.abs(C-D)));break;case 2:if(b.shape===0)O=H=Math.min(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-D))/Math.min(Math.abs(v),Math.abs(v-_)),j=RB(_,D,v,C,!0),ae=j[0],ne=j[1];O=to(ae-v,(ne-C)/W),H=W*O}break;case 1:b.shape===0?O=H=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&(O=Math.max(Math.abs(v),Math.abs(v-_)),H=Math.max(Math.abs(C),Math.abs(C-D)));break;case 3:if(b.shape===0)O=H=Math.max(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-D))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=RB(_,D,v,C,!1),ae=Ae[0],ne=Ae[1];O=to(ae-v,(ne-C)/W),H=W*O}break}return Array.isArray(b.size)&&(O=br(b.size[0],_),H=b.size.length===2?br(b.size[1],D):O),[O,H]},jO=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,O){if(O===0){var H=D[0];if(H.type===20&&H.value==="to"){C=kB(D);return}else if(IB(H)){C=cm.parse(b,H);return}}var W=dm(b,D);_.push(W)}),{angle:C,stops:_,type:1}},Am=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,O){if(O===0){var H=D[0];if(H.type===20&&["top","left","right","bottom"].indexOf(H.value)!==-1){C=kB(D);return}else if(IB(H)){C=(cm.parse(b,H)+Bn(270))%Bn(360);return}}var W=dm(b,D);_.push(W)}),{angle:C,stops:_,type:1}},WO=function(b,v){var C=Bn(180),_=[],D=1,O=0,H=3,W=[];return Lo(v).forEach(function(j,ae){var ne=j[0];if(ae===0){if(ur(ne)&&ne.value==="linear"){D=1;return}else if(ur(ne)&&ne.value==="radial"){D=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=uh.parse(b,ne.values[0]);_.push({stop:Hs,color:Ae})}else if(ne.name==="to"){var Ae=uh.parse(b,ne.values[0]);_.push({stop:hh,color:Ae})}else if(ne.name==="color-stop"){var _e=ne.values.filter(Jc);if(_e.length===2){var Ae=uh.parse(b,_e[1]),lt=_e[0];qc(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),D===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:D}:{size:H,shape:O,stops:_,position:W,type:D}},UB="closest-side",VB="farthest-side",NB="closest-corner",QB="farthest-corner",HB="circle",jB="ellipse",WB="cover",XB="contain",XO=function(b,v){var C=0,_=3,D=[],O=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0){var ae=!1;j=H.reduce(function(Ae,_e){if(ae)if(ur(_e))switch(_e.value){case"center":return O.push(cb),Ae;case"top":case"left":return O.push(Hs),Ae;case"right":case"bottom":return O.push(hh),Ae}else(os(_e)||lh(_e))&&O.push(_e);else if(ur(_e))switch(_e.value){case HB:return C=0,!1;case jB:return C=1,!1;case"at":return ae=!0,!1;case UB:return _=0,!1;case WB:case VB:return _=1,!1;case XB:case NB:return _=2,!1;case QB:return _=3,!1}else if(lh(_e)||os(_e))return Array.isArray(_)||(_=[]),_.push(_e),!1;return Ae},j)}if(j){var ne=dm(b,H);D.push(ne)}}),{size:_,shape:C,stops:D,position:O,type:2}},pm=function(b,v){var C=0,_=3,D=[],O=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0?j=H.reduce(function(ne,Ae){if(ur(Ae))switch(Ae.value){case"center":return O.push(cb),!1;case"top":case"left":return O.push(Hs),!1;case"right":case"bottom":return O.push(hh),!1}else if(os(Ae)||lh(Ae))return O.push(Ae),!1;return ne},j):W===1&&(j=H.reduce(function(ne,Ae){if(ur(Ae))switch(Ae.value){case HB:return C=0,!1;case jB:return C=1,!1;case XB:case UB:return _=0,!1;case VB:return _=1,!1;case NB:return _=2,!1;case WB:case QB:return _=3,!1}else if(lh(Ae)||os(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var ae=dm(b,H);D.push(ae)}}),{size:_,shape:C,stops:D,position:O,type:2}},zO=function(b){return b.type===1},GO=function(b){return b.type===2},Ab={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=zB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function YO(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!zB[b.name])}var zB={"linear-gradient":jO,"-moz-linear-gradient":Am,"-ms-linear-gradient":Am,"-o-linear-gradient":Am,"-webkit-linear-gradient":Am,"radial-gradient":XO,"-moz-radial-gradient":pm,"-ms-radial-gradient":pm,"-o-radial-gradient":pm,"-webkit-radial-gradient":pm,"-webkit-gradient":WO},KO={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return Jc(_)&&YO(_)}).map(function(_){return Ab.parse(b,_)})}},ZO={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(ur(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qO={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(os)}).map(FB)}},JO={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(ur).map(function(_){return _.value}).join(" ")}).map(eE)}},eE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ed;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(ed||(ed={}));var tE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(iE)})}},iE=function(b){return ur(b)||os(b)},fm=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rE=fm("top"),sE=fm("right"),aE=fm("bottom"),nE=fm("left"),mm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return FB(C.filter(os))}}},oE=mm("top-left"),lE=mm("top-right"),hE=mm("bottom-right"),uE=mm("bottom-left"),gm=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cE=gm("top"),dE=gm("right"),AE=gm("bottom"),pE=gm("left"),ym=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return EA(C)?C.number:0}}},fE=ym("top"),mE=ym("right"),gE=ym("bottom"),yE=ym("left"),vE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},xE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).reduce(function(C,_){return C|_E(_.value)},0)}},_E=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},CE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},vm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(vm||(vm={}));var BE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?vm.STRICT:vm.NORMAL}},SE={name:"line-height",initialValue:"normal",prefix:!1,type:4},GB=function(b,v){return ur(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:os(b)?br(b,v):v},FE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:Ab.parse(b,v)}},TE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},pb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},bm=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},PE=bm("top"),DE=bm("right"),LE=bm("bottom"),IE=bm("left"),kE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},$E={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},xm=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},OE=xm("top"),EE=xm("right"),ME=xm("bottom"),RE=xm("left"),UE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},VE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},NE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:Cl.TRANSPARENT,offsetX:Hs,offsetY:Hs,blur:Hs},D=0,O=0;O<C.length;O++){var H=C[O];lh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:_.blur=H,D++):_.color=uh.parse(b,H)}return _})}},QE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},HE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=XE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},jE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},WE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var D=v[4],O=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var H=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,D,O,H,W]:null},XE={matrix:jE,matrix3d:WE},YB={type:16,number:50,flags:LA},zE=[YB,YB],GE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(os);return C.length!==2?zE:[C[0],C[1]]}},YE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},UA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(UA||(UA={}));for(var KE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return UA.BREAK_ALL;case"keep-all":return UA.KEEP_ALL;default:return UA.NORMAL}}},ZE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(qc(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},KB={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},qE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return qc(v)?v.number:1}},JE={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},tM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(D){switch(D.type){case 20:case 0:C.push(D.value);break;case 17:C.push(D.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(D){return D.indexOf(" ")===-1?D:"'"+D+"'"})}},iM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},rM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return qc(v)?v.number:ur(v)&&v.value==="bold"?700:400}},sM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(ur).map(function(C){return C.value})}},aM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ys=function(b,v){return(b&v)!==0},nM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},oM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],D=v.filter(SB),O=0;O<D.length;O++){var H=D[O],W=D[O+1];if(H.type===20){var j=W&&qc(W)?W.number:1;_.push({counter:H.value,increment:j})}}return _}},lM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(SB),D=0;D<_.length;D++){var O=_[D],H=_[D+1];if(ur(O)&&O.value!=="none"){var W=H&&qc(H)?H.number:0;C.push({counter:O.value,reset:W})}}return C}},hM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(EA).map(function(C){return KB.parse(b,C)})}},uM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],D=v.filter(EO);if(D.length%2!==0)return null;for(var O=0;O<D.length;O+=2){var H=D[O].value,W=D[O+1].value;_.push({open:H,close:W})}return _}},ZB=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},cM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:255,offsetX:Hs,offsetY:Hs,blur:Hs,spread:Hs,inset:!1},D=0,O=0;O<C.length;O++){var H=C[O];ub(H,"inset")?_.inset=!0:lh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:D===2?_.blur=H:_.spread=H,D++):_.color=uh.parse(b,H)}return _})}},dM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(ur).forEach(function(D){switch(D.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(D){_.indexOf(D)===-1&&_.push(D)}),_}},AM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},pM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return EA(v)?v.number:0}},fM=(function(){function b(v,C){var _,D;this.animationDuration=dt(v,hM,C.animationDuration),this.backgroundClip=dt(v,UO,C.backgroundClip),this.backgroundColor=dt(v,VO,C.backgroundColor),this.backgroundImage=dt(v,KO,C.backgroundImage),this.backgroundOrigin=dt(v,ZO,C.backgroundOrigin),this.backgroundPosition=dt(v,qO,C.backgroundPosition),this.backgroundRepeat=dt(v,JO,C.backgroundRepeat),this.backgroundSize=dt(v,tE,C.backgroundSize),this.borderTopColor=dt(v,rE,C.borderTopColor),this.borderRightColor=dt(v,sE,C.borderRightColor),this.borderBottomColor=dt(v,aE,C.borderBottomColor),this.borderLeftColor=dt(v,nE,C.borderLeftColor),this.borderTopLeftRadius=dt(v,oE,C.borderTopLeftRadius),this.borderTopRightRadius=dt(v,lE,C.borderTopRightRadius),this.borderBottomRightRadius=dt(v,hE,C.borderBottomRightRadius),this.borderBottomLeftRadius=dt(v,uE,C.borderBottomLeftRadius),this.borderTopStyle=dt(v,cE,C.borderTopStyle),this.borderRightStyle=dt(v,dE,C.borderRightStyle),this.borderBottomStyle=dt(v,AE,C.borderBottomStyle),this.borderLeftStyle=dt(v,pE,C.borderLeftStyle),this.borderTopWidth=dt(v,fE,C.borderTopWidth),this.borderRightWidth=dt(v,mE,C.borderRightWidth),this.borderBottomWidth=dt(v,gE,C.borderBottomWidth),this.borderLeftWidth=dt(v,yE,C.borderLeftWidth),this.boxShadow=dt(v,cM,C.boxShadow),this.color=dt(v,vE,C.color),this.direction=dt(v,bE,C.direction),this.display=dt(v,xE,C.display),this.float=dt(v,CE,C.cssFloat),this.fontFamily=dt(v,tM,C.fontFamily),this.fontSize=dt(v,iM,C.fontSize),this.fontStyle=dt(v,aM,C.fontStyle),this.fontVariant=dt(v,sM,C.fontVariant),this.fontWeight=dt(v,rM,C.fontWeight),this.letterSpacing=dt(v,wE,C.letterSpacing),this.lineBreak=dt(v,BE,C.lineBreak),this.lineHeight=dt(v,SE,C.lineHeight),this.listStyleImage=dt(v,FE,C.listStyleImage),this.listStylePosition=dt(v,TE,C.listStylePosition),this.listStyleType=dt(v,pb,C.listStyleType),this.marginTop=dt(v,PE,C.marginTop),this.marginRight=dt(v,DE,C.marginRight),this.marginBottom=dt(v,LE,C.marginBottom),this.marginLeft=dt(v,IE,C.marginLeft),this.opacity=dt(v,qE,C.opacity);var O=dt(v,kE,C.overflow);this.overflowX=O[0],this.overflowY=O[O.length>1?1:0],this.overflowWrap=dt(v,$E,C.overflowWrap),this.paddingTop=dt(v,OE,C.paddingTop),this.paddingRight=dt(v,EE,C.paddingRight),this.paddingBottom=dt(v,ME,C.paddingBottom),this.paddingLeft=dt(v,RE,C.paddingLeft),this.paintOrder=dt(v,dM,C.paintOrder),this.position=dt(v,VE,C.position),this.textAlign=dt(v,UE,C.textAlign),this.textDecorationColor=dt(v,JE,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=dt(v,eM,(D=C.textDecorationLine)!==null&&D!==void 0?D:C.textDecoration),this.textShadow=dt(v,NE,C.textShadow),this.textTransform=dt(v,QE,C.textTransform),this.transform=dt(v,HE,C.transform),this.transformOrigin=dt(v,GE,C.transformOrigin),this.visibility=dt(v,YE,C.visibility),this.webkitTextStrokeColor=dt(v,AM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=dt(v,pM,C.webkitTextStrokeWidth),this.wordBreak=dt(v,KE,C.wordBreak),this.zIndex=dt(v,ZE,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return ch(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return ys(this.display,4)||ys(this.display,33554432)||ys(this.display,268435456)||ys(this.display,536870912)||ys(this.display,67108864)||ys(this.display,134217728)},b})(),mM=(function(){function b(v,C){this.content=dt(v,nM,C.content),this.quotes=dt(v,uM,C.quotes)}return b})(),qB=(function(){function b(v,C){this.counterIncrement=dt(v,oM,C.counterIncrement),this.counterReset=dt(v,lM,C.counterReset)}return b})(),dt=function(b,v,C){var _=new wB,D=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(D);var O=new BB(_.read());switch(v.type){case 2:var H=O.parseComponentValue();return v.parse(b,ur(H)?H.value:v.initialValue);case 0:return v.parse(b,O.parseComponentValue());case 1:return v.parse(b,O.parseComponentValues());case 4:return O.parseComponentValue();case 3:switch(v.format){case"angle":return cm.parse(b,O.parseComponentValue());case"color":return uh.parse(b,O.parseComponentValue());case"image":return Ab.parse(b,O.parseComponentValue());case"length":var W=O.parseComponentValue();return lh(W)?W:Hs;case"length-percentage":var j=O.parseComponentValue();return os(j)?j:Hs;case"time":return KB.parse(b,O.parseComponentValue())}break}},gM="data-html2canvas-debug",yM=function(b){var v=b.getAttribute(gM);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fb=function(b,v){var C=yM(b);return C===1||v===C},Io=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,fb(C,3))debugger;this.styles=new fM(v,window.getComputedStyle(C,null)),Pb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),fb(C,4)&&(this.flags|=16)}return b})(),vM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",JB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VA=typeof Uint8Array>"u"?[]:new Uint8Array(256),_m=0;_m<JB.length;_m++)VA[JB.charCodeAt(_m)]=_m;for(var bM=function(b){var v=b.length*.75,C=b.length,_,D=0,O,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)O=VA[b.charCodeAt(_)],H=VA[b.charCodeAt(_+1)],W=VA[b.charCodeAt(_+2)],j=VA[b.charCodeAt(_+3)],ne[D++]=O<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},xM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},_M=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},Bu=5,mb=11,gb=2,CM=mb-Bu,eS=65536>>Bu,wM=1<<Bu,yb=wM-1,BM=1024>>Bu,SM=eS+BM,FM=SM,TM=32,PM=FM+TM,DM=65536>>mb,LM=1<<CM,IM=LM-1,tS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},kM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},$M=function(b,v){var C=bM(b),_=Array.isArray(C)?_M(C):new Uint32Array(C),D=Array.isArray(C)?xM(C):new Uint16Array(C),O=24,H=tS(D,O/2,_[4]/2),W=_[5]===2?tS(D,(O+_[4])/2):kM(_,Math.ceil((O+_[4])/4));return new OM(_[0],_[1],_[2],_[3],H,W)},OM=(function(){function b(v,C,_,D,O,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=O,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>Bu],C=(C<<gb)+(v&yb),this.data[C];if(v<=65535)return C=this.index[eS+(v-55296>>Bu)],C=(C<<gb)+(v&yb),this.data[C];if(v<this.highStart)return C=PM-DM+(v>>mb),C=this.index[C],C+=v>>Bu&IM,C=this.index[C],C=(C<<gb)+(v&yb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),iS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",EM=typeof Uint8Array>"u"?[]:new Uint8Array(256),Cm=0;Cm<iS.length;Cm++)EM[iS.charCodeAt(Cm)]=Cm;var MM=1,vb=2,bb=3,rS=4,sS=5,RM=7,aS=8,xb=9,_b=10,nS=11,oS=12,lS=13,hS=14,Cb=15,UM=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((D&1023)<<10)+(O&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},VM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,O="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},NM=$M(vM),Sn="\xD7",wb="\xF7",QM=function(b){return NM.get(b)},HM=function(b,v,C){var _=C-2,D=v[_],O=v[C-1],H=v[C];if(O===vb&&H===bb)return Sn;if(O===vb||O===bb||O===rS||H===vb||H===bb||H===rS)return wb;if(O===aS&&[aS,xb,nS,oS].indexOf(H)!==-1||(O===nS||O===xb)&&(H===xb||H===_b)||(O===oS||O===_b)&&H===_b||H===lS||H===sS||H===RM||O===MM)return Sn;if(O===lS&&H===hS){for(;D===sS;)D=v[--_];if(D===hS)return Sn}if(O===Cb&&H===Cb){for(var W=0;D===Cb;)W++,D=v[--_];if(W%2===0)return Sn}return wb},jM=function(b){var v=UM(b),C=v.length,_=0,D=0,O=v.map(QM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var H=Sn;_<C&&(H=HM(v,O,++_))===Sn;);if(H!==Sn||_===C){var W=VM.apply(null,v.slice(D,_));return D=_,{value:W,done:!1}}return{done:!0,value:null}}}},WM=function(b){for(var v=jM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},XM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var D=C.getBoundingClientRect(),O=Math.round(D.height);if(b.body.removeChild(_),O===v)return!0}}return!1},zM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var _=v.firstChild,D=h(_.data).map(function(j){return c(j)}),O=0,H={},W=D.every(function(j,ae){C.setStart(_,O),C.setEnd(_,O+j.length);var ne=C.getBoundingClientRect();O+=j.length;var Ae=ne.x>H.x||ne.y>H.y;return H=ne,ae===0?!0:Ae});return b.body.removeChild(v),W},GM=function(){return typeof new Image().crossOrigin<"u"},YM=function(){return typeof new XMLHttpRequest().responseType=="string"},KM=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},uS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},ZM=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var D=new Image,O=v.toDataURL();D.src=O;var H=Bb(C,C,0,0,D);return _.fillStyle="red",_.fillRect(0,0,C,C),cS(H).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var ae=b.createElement("div");return ae.style.backgroundImage="url("+O+")",ae.style.height=C+"px",uS(j)?cS(Bb(C,C,0,0,ae)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),uS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Bb=function(b,v,C,_,D){var O="http://www.w3.org/2000/svg",H=document.createElementNS(O,"svg"),W=document.createElementNS(O,"foreignObject");return H.setAttributeNS(null,"width",b.toString()),H.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),H.appendChild(W),W.appendChild(D),H},cS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},js={get SUPPORT_RANGE_BOUNDS(){var b=XM(document);return Object.defineProperty(js,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=js.SUPPORT_RANGE_BOUNDS&&zM(document);return Object.defineProperty(js,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=KM(document);return Object.defineProperty(js,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?ZM(document):Promise.resolve(!1);return Object.defineProperty(js,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=GM();return Object.defineProperty(js,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=YM();return Object.defineProperty(js,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(js,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(js,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},NA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),qM=function(b,v,C,_){var D=tR(v,C),O=[],H=0;return D.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(js.SUPPORT_RANGE_BOUNDS){var j=dS(_,H,W.length).getClientRects();if(j.length>1){var ae=Sb(W),ne=0;ae.forEach(function(_e){O.push(new NA(_e,n.fromDOMRectList(b,dS(_,ne+H,_e.length).getClientRects()))),ne+=_e.length})}else O.push(new NA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);O.push(new NA(W,JM(b,_))),_=Ae}else js.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));H+=W.length}),O},JM=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var D=v.parentNode;if(D){D.replaceChild(_,v);var O=o(b,_);return _.firstChild&&D.replaceChild(_.firstChild,_),O}}return n.EMPTY},dS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var D=_.createRange();return D.setStart(b,v),D.setEnd(b,v+C),D},Sb=function(b){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return WM(b)},eR=function(b,v){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return rR(b,v)},tR=function(b,v){return v.letterSpacing!==0?Sb(b):eR(b,v)},iR=[32,160,4961,65792,65793,4153,4241],rR=function(b,v){for(var C=D$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],D,O=function(){if(D.value){var H=D.value.slice(),W=h(H),j="";W.forEach(function(ae){iR.indexOf(ae)===-1?j+=c(ae):(j.length&&_.push(j),_.push(c(ae)),j="")}),j.length&&_.push(j)}};!(D=C.next()).done;)O();return _},sR=(function(){function b(v,C,_){this.text=aR(C.data,_.textTransform),this.textBounds=qM(v,this.text,_,C)}return b})(),aR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(nR,oR);case 2:return b.toUpperCase();default:return b}},nR=/(^|\s|:|-|\(|\))([a-z])/g,oR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},AS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.src=_.currentSrc||_.src,D.intrinsicWidth=_.naturalWidth,D.intrinsicHeight=_.naturalHeight,D.context.cache.addImage(D.src),D}return v})(Io),pS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.canvas=_,D.intrinsicWidth=_.width,D.intrinsicHeight=_.height,D}return v})(Io),fS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,O=new XMLSerializer,H=o(C,_);return _.setAttribute("width",H.width+"px"),_.setAttribute("height",H.height+"px"),D.svg="data:image/svg+xml,"+encodeURIComponent(O.serializeToString(_)),D.intrinsicWidth=_.width.baseVal.value,D.intrinsicHeight=_.height.baseVal.value,D.context.cache.addImage(D.svg),D}return v})(Io),mS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),Fb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.start=_.start,D.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,D}return v})(Io),lR=[{type:15,flags:0,unit:"px",number:3}],hR=[{type:16,flags:0,number:50}],uR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},cR=function(b){var v=b.type===dR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},wm="checkbox",Bm="radio",dR="password",gS=707406591,Tb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;switch(D.type=_.type.toLowerCase(),D.checked=_.checked,D.value=cR(_),(D.type===wm||D.type===Bm)&&(D.styles.backgroundColor=3739148031,D.styles.borderTopColor=D.styles.borderRightColor=D.styles.borderBottomColor=D.styles.borderLeftColor=2779096575,D.styles.borderTopWidth=D.styles.borderRightWidth=D.styles.borderBottomWidth=D.styles.borderLeftWidth=1,D.styles.borderTopStyle=D.styles.borderRightStyle=D.styles.borderBottomStyle=D.styles.borderLeftStyle=1,D.styles.backgroundClip=[0],D.styles.backgroundOrigin=[0],D.bounds=uR(D.bounds)),D.type){case wm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=lR;break;case Bm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=hR;break}return D}return v})(Io),yS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,O=_.options[_.selectedIndex||0];return D.value=O&&O.text||"",D}return v})(Io),vS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),bS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;D.src=_.src,D.width=parseInt(_.width,10)||0,D.height=parseInt(_.height,10)||0,D.backgroundColor=D.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){D.tree=_S(C,_.contentWindow.document.documentElement);var O=_.contentWindow.document.documentElement?RA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Cl.TRANSPARENT,H=_.contentWindow.document.body?RA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Cl.TRANSPARENT;D.backgroundColor=ch(O)?ch(H)?D.styles.backgroundColor:H:O}}catch{}return D}return v})(Io),AR=["OL","UL","MENU"],Sm=function(b,v,C,_){for(var D=v.firstChild,O=void 0;D;D=O)if(O=D.nextSibling,CS(D)&&D.data.trim().length>0)C.textNodes.push(new sR(b,D,C.styles));else if(td(D))if(PS(D)&&D.assignedNodes)D.assignedNodes().forEach(function(W){return Sm(b,W,C,_)});else{var H=xS(b,D);H.styles.isVisible()&&(pR(D,H,_)?H.flags|=4:fR(H.styles)&&(H.flags|=2),AR.indexOf(D.tagName)!==-1&&(H.flags|=8),C.elements.push(H),D.slot,D.shadowRoot?Sm(b,D.shadowRoot,H,_):!Tm(D)&&!wS(D)&&!Pm(D)&&Sm(b,D,H,_))}},xS=function(b,v){return Lb(v)?new AS(b,v):BS(v)?new pS(b,v):wS(v)?new fS(b,v):mR(v)?new mS(b,v):gR(v)?new Fb(b,v):yR(v)?new Tb(b,v):Pm(v)?new yS(b,v):Tm(v)?new vS(b,v):FS(v)?new bS(b,v):new Io(b,v)},_S=function(b,v){var C=xS(b,v);return C.flags|=4,Sm(b,v,C,C),C},pR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Db(b)&&C.styles.isTransparent()},fR=function(b){return b.isPositioned()||b.isFloating()},CS=function(b){return b.nodeType===Node.TEXT_NODE},td=function(b){return b.nodeType===Node.ELEMENT_NODE},Pb=function(b){return td(b)&&typeof b.style<"u"&&!Fm(b)},Fm=function(b){return typeof b.className=="object"},mR=function(b){return b.tagName==="LI"},gR=function(b){return b.tagName==="OL"},yR=function(b){return b.tagName==="INPUT"},vR=function(b){return b.tagName==="HTML"},wS=function(b){return b.tagName==="svg"},Db=function(b){return b.tagName==="BODY"},BS=function(b){return b.tagName==="CANVAS"},SS=function(b){return b.tagName==="VIDEO"},Lb=function(b){return b.tagName==="IMG"},FS=function(b){return b.tagName==="IFRAME"},TS=function(b){return b.tagName==="STYLE"},bR=function(b){return b.tagName==="SCRIPT"},Tm=function(b){return b.tagName==="TEXTAREA"},Pm=function(b){return b.tagName==="SELECT"},PS=function(b){return b.tagName==="SLOT"},DS=function(b){return b.tagName.indexOf("-")>0},xR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,D=v.counterReset,O=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&(O=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var H=[];return O&&D.forEach(function(W){var j=C.counters[W.counter];H.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),H},b})(),LS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},IS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},_R={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},CR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},id=function(b,v,C,_,D,O){return b<v||b>C?HA(b,D,O.length>0):_.integers.reduce(function(H,W,j){for(;b>=W;)b-=W,H+=_.values[j];return H},"")+O},kS=function(b,v,C,_){var D="";do C||b--,D=_(b)+D,b/=v;while(b*v>=v);return D},Kr=function(b,v,C,_,D){var O=C-v+1;return(b<0?"-":"")+(kS(Math.abs(b),O,_,function(H){return c(Math.floor(H%O)+v)})+D)},Su=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return kS(Math.abs(b),_,!1,function(D){return v[Math.floor(D%_)]})+C},rd=1,Ah=2,ph=4,QA=8,wl=function(b,v,C,_,D,O){if(b<-9999||b>9999)return HA(b,4,D.length>0);var H=Math.abs(b),W=D;if(H===0)return v[0]+W;for(var j=0;H>0&&j<=4;j++){var ae=H%10;ae===0&&ys(O,rd)&&W!==""?W=v[ae]+W:ae>1||ae===1&&j===0||ae===1&&j===1&&ys(O,Ah)||ae===1&&j===1&&ys(O,ph)&&b>100||ae===1&&j>1&&ys(O,QA)?W=v[ae]+(j>0?C[j-1]:"")+W:ae===1&&j>0&&(W=C[j-1]+W),H=Math.floor(H/10)}return(b<0?_:"")+W},$S="\u5341\u767E\u5343\u842C",OS="\u62FE\u4F70\u4EDF\u842C",ES="\u30DE\u30A4\u30CA\u30B9",Ib="\uB9C8\uC774\uB108\uC2A4",HA=function(b,v,C){var _=C?". ":"",D=C?"\u3001":"",O=C?", ":"",H=C?" ":"";switch(v){case 0:return"\u2022"+H;case 1:return"\u25E6"+H;case 2:return"\u25FE"+H;case 5:var W=Kr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Su(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",D);case 6:return id(b,1,3999,LS,3,_).toLowerCase();case 7:return id(b,1,3999,LS,3,_);case 8:return Kr(b,945,969,!1,_);case 9:return Kr(b,97,122,!1,_);case 10:return Kr(b,65,90,!1,_);case 11:return Kr(b,1632,1641,!0,_);case 12:case 49:return id(b,1,9999,IS,3,_);case 35:return id(b,1,9999,IS,3,_).toLowerCase();case 13:return Kr(b,2534,2543,!0,_);case 14:case 30:return Kr(b,6112,6121,!0,_);case 15:return Su(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",D);case 16:return Su(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",D);case 17:case 48:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",$S,"\u8CA0",D,Ah|ph|QA);case 47:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",OS,"\u8CA0",D,rd|Ah|ph|QA);case 42:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",$S,"\u8D1F",D,Ah|ph|QA);case 41:return wl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",OS,"\u8D1F",D,rd|Ah|ph|QA);case 26:return wl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",ES,D,0);case 25:return wl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",ES,D,rd|Ah|ph);case 31:return wl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ib,O,rd|Ah|ph);case 33:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ib,O,0);case 32:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ib,O,rd|Ah|ph);case 18:return Kr(b,2406,2415,!0,_);case 20:return id(b,1,19999,CR,3,_);case 21:return Kr(b,2790,2799,!0,_);case 22:return Kr(b,2662,2671,!0,_);case 22:return id(b,1,10999,_R,3,_);case 23:return Su(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Su(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Kr(b,3302,3311,!0,_);case 28:return Su(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",D);case 29:return Su(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",D);case 34:return Kr(b,3792,3801,!0,_);case 37:return Kr(b,6160,6169,!0,_);case 38:return Kr(b,4160,4169,!0,_);case 39:return Kr(b,2918,2927,!0,_);case 40:return Kr(b,1776,1785,!0,_);case 43:return Kr(b,3046,3055,!0,_);case 44:return Kr(b,3174,3183,!0,_);case 45:return Kr(b,3664,3673,!0,_);case 46:return Kr(b,3872,3881,!0,_);default:return Kr(b,48,57,!0,_)}},MS="data-html2canvas-ignore",RS=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new xR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,D=wR(v,C);if(!D.contentWindow)return Promise.reject("Unable to find iframe window");var O=v.defaultView.pageXOffset,H=v.defaultView.pageYOffset,W=D.contentWindow,j=W.document,ae=FR(D).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(_e){switch(_e.label){case 0:return this.scrolledElements.forEach(LR),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:_e.sent(),_e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,SR(j)]:[3,4];case 3:_e.sent(),_e.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return D})]:[2,D]}})})});return j.open(),j.write(PR(document.doctype)+"<html></html>"),DR(this.referenceElement.ownerDocument,O,H),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),ae},b.prototype.createElementClone=function(v){if(fb(v,2))debugger;if(BS(v))return this.createCanvasClone(v);if(SS(v))return this.createVideoClone(v);if(TS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Lb(C)&&(Lb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),DS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return kb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function(O,H){return H&&typeof H.cssText=="string"?O+H.cssText:O},""),D=v.cloneNode(!1);return D.textContent=_,D}}catch(O){if(this.context.logger.error("Unable to access cssRules property",O),O.name!=="SecurityError")throw O}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var D=v.cloneNode(!1);try{D.width=v.width,D.height=v.height;var O=v.getContext("2d"),H=D.getContext("2d");if(H)if(!this.options.allowTaint&&O)H.putImageData(O.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}H.drawImage(v,0,0)}return D}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return D},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var D=v.ownerDocument.createElement("canvas");return D.width=v.offsetWidth,D.height=v.offsetHeight,D},b.prototype.appendChildNode=function(v,C,_){(!td(C)||!bR(C)&&!C.hasAttribute(MS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!td(C)||!TS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var D=this,O=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;O;O=O.nextSibling)if(td(O)&&PS(O)&&typeof O.assignedNodes=="function"){var H=O.assignedNodes();H.length&&H.forEach(function(W){return D.appendChildNode(C,W,_)})}else this.appendChildNode(C,O,_)},b.prototype.cloneNode=function(v,C){if(CS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&td(v)&&(Pb(v)||Fm(v))){var D=this.createElementClone(v);D.style.transitionProperty="none";var O=_.getComputedStyle(v),H=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Pb(D)&&(this.clonedReferenceElement=D),Db(D)&&$R(D);var j=this.counters.parse(new qB(this.context,O)),ae=this.resolvePseudoContent(v,D,H,jA.BEFORE);DS(v)&&(C=!0),SS(v)||this.cloneChildNodes(v,D,C),ae&&D.insertBefore(ae,D.firstChild);var ne=this.resolvePseudoContent(v,D,W,jA.AFTER);return ne&&D.appendChild(ne),this.counters.pop(j),(O&&(this.options.copyStyles||Fm(v))&&!FS(v)||C)&&kb(O,D),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([D,v.scrollLeft,v.scrollTop]),(Tm(v)||Pm(v))&&(Tm(D)||Pm(D))&&(D.value=v.value),D}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,D){var O=this;if(_){var H=_.content,W=C.ownerDocument;if(!(!W||!H||H==="none"||H==="-moz-alt-content"||_.display==="none")){this.counters.parse(new qB(this.context,_));var j=new mM(this.context,_),ae=W.createElement("html2canvaspseudoelement");kb(_,ae),j.content.forEach(function(Ae){if(Ae.type===0)ae.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var _e=W.createElement("img");_e.src=Ae.value,_e.style.opacity="1",ae.appendChild(_e)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(ur);lt.length&&ae.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(Jc),Ze=Ue[0],ii=Ue[1];if(Ze&&ur(Ze)){var bt=O.counters.getCounterValue(Ze.value),gt=ii&&ur(ii)?pb.parse(O.context,ii.value):3;ae.appendChild(W.createTextNode(HA(bt,gt,!1)))}}else if(Ae.name==="counters"){var Wi=Ae.values.filter(Jc),Ze=Wi[0],ni=Wi[1],ii=Wi[2];if(Ze&&ur(Ze)){var Mt=O.counters.getCounterValues(Ze.value),rt=ii&&ur(ii)?pb.parse(O.context,ii.value):3,Ii=ni&&ni.type===0?ni.value:"",ki=Mt.map(function(Oa){return HA(Oa,rt,!1)}).join(Ii);ae.appendChild(W.createTextNode(ki))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":ae.appendChild(W.createTextNode(ZB(j.quotes,O.quoteDepth++,!0)));break;case"close-quote":ae.appendChild(W.createTextNode(ZB(j.quotes,--O.quoteDepth,!1)));break;default:ae.appendChild(W.createTextNode(Ae.value))}}),ae.className=$b+" "+Ob;var ne=D===jA.BEFORE?" "+$b:" "+Ob;return Fm(C)?C.className.baseValue+=ne:C.className+=ne,ae}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),jA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(jA||(jA={}));var wR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(MS,"true"),b.body.appendChild(C),C},BR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},SR=function(b){return Promise.all([].slice.call(b.images,0).map(BR))},FR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var D=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var O=setInterval(function(){D.body.childNodes.length>0&&D.readyState==="complete"&&(clearInterval(O),v(b))},50)}})},TR=["all","d","content"],kb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);TR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},PR=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},DR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},LR=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},IR=":before",kR=":after",$b="___html2canvas___pseudoelement_before",Ob="___html2canvas___pseudoelement_after",US=`{
|
|
2
|
+
import{a as sn}from"./3VMHKSYP.js";import{b as Xx}from"./P4HSSZRL.js";import o from"./2KCA3K57.js";import n from"./BUUTWPEP.js";import{c as kx,e as lp,f as $x,g as Ox,h as Ex,i as Mx,j as md}from"./IVLVCLDE.js";import{a as OT,g as ET}from"./OBPAQN4H.js";import m from"./LSKFMUX4.js";import{a as Qx}from"./JHANH4UG.js";import{a as gT}from"./AK7X7SGI.js";import l from"./5JREGZML.js";import k from"./IPECBZP3.js";import j from"./4AF64XYR.js";import i from"./TSQOEJB4.js";import h from"./75XWLYW5.js";import g from"./XKHA7K4P.js";import{a as Ro,b as DT,c as LT,d as IT,e as Hx,k as jx,q as kT}from"./THTYR6IL.js";import f from"./N3FUI2RC.js";import e from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import d from"./7LI5APDL.js";import c from"./L6SM2ORZ.js";import b from"./D46R6YHX.js";import{c as fd,d as Px,e as np,o as pg,q as Dx,r as fT,s as fg,t as mT,u as op}from"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import{e as bs,g as io}from"./EZV7JSQJ.js";import{D as qA,E as JA,a as Ut,b as Ym,c as pt,d as ke,e as Tr,f as vr,g as Fl,h as us,i as ZA,j as ks,l as tx,n as Or,p as ix,r as zi,v as rx,w as yF,x as Zr}from"./3TBK72EK.js";import{F as KA,I as Wm,J as Yb,K as Xm,N as dF,P as zm,Q as Kb,R as Zb,S as qb,T as AF,Y as pF,Z as fF,aa as Jb,ea as Gm,f as Ou,h as hd,i as Qm,j as Gb,k as lF,l as Hm,o as an,p as jm,q as xr,ra as mF,s as hF,v as uF,va as gF,w as cF,y as gh,ya as ex,z as Eu}from"./PAIRUVLU.js";import{a as GA,b as hs,c as YA,d as vs,e as Nm,f as Rt}from"./KX7KGXKQ.js";import{g as _r,h as Is,k as Iu,l as rn}from"./SP2IPHWF.js";import{a as aF,b as Qb,c as Um,g as Lu}from"./IHHPUKGG.js";import{A as Nb,B as iF,C as Rm,H as rF,I as sF,g as ZS,h as qS,i as ld,l as JS,n as Xs,p as eF,z as tF}from"./RIM4HLHN.js";import{a as $T}from"./BMC75GCV.js";import"./KDJ5RVHA.js";import"./QP5UAIC6.js";import{a as ze,b as oF}from"./XJFVSX2E.js";import{a as V,b as Pn,e as st,f as $i,h as zA,i as Hb,j as jb,k as er,l as Vm,m as ku,n as Wb,p as tr,q as nF,r as $u,t as Xb,u as zb}from"./547RDEMV.js";import{a as XA,b as Mm,c as KS,d as Vb}from"./U67P6YAZ.js";export default $arcgis.t(([Ia,{substitute:Uc},QL,BN,SN,{$:ux,$a:Ll,$b:oT,A:hx,Aa:fx,Ab:iT,B:Yt,Ba:jF,C:Oo,Ca:Ra,D:yh,Da:tg,E:bF,Ea:ig,F:qm,Fa:xa,Fb:xx,G:ep,Gb:ng,Ha:WF,Hb:og,I:Nu,Ia:XF,Ib:dd,J:$s,Ja:mx,Jb:lg,Ka:rg,Kb:rT,Lb:_x,Ma:on,Mb:hg,N:xF,Na:gx,Oa:Qu,Ob:Cx,Pa:zF,Q:Dn,Qa:yx,R:vh,Ra:GF,S:_F,Sa:rp,Sb:wx,T:kt,Ta:oa,Tb:Ad,U:CF,Ua:Eo,Ub:sT,V:wF,Va:sp,Vb:ug,W:Jm,Wb:aT,X:bh,Xa:cd,Xb:Bx,Y:BF,Ya:YF,Yb:nT,Z:SF,Za:KF,Zb:Sx,_:FF,_b:Fx,aa:TF,ab:ZF,b:Tl,ba:PF,bc:ap,c:Km,ca:DF,cb:qF,d:vF,da:LF,db:vx,dc:Hu,e:$o,ea:IF,ec:Ln,f:ba,fa:cx,fc:pd,g:Mu,ga:kF,gc:Zi,h:ud,ha:$F,i:ro,ia:dx,ic:Mo,j:sx,ja:OF,k:Pl,ka:EF,kc:lT,l:Zm,la:MF,lb:sg,lc:hT,m:so,ma:Ax,mc:uT,n:Dl,na:RF,nc:Tx,o:ax,oa:UF,ob:bx,oc:cg,p:nx,pa:eg,pb:_a,pc:dg,q:ao,qa:VF,qc:cT,r:Ru,ra:NF,rb:xh,rc:dT,sa:QF,sb:JF,sc:AT,ta:HF,tb:eT,u:q,uc:Ag,v:ox,va:tp,vb:tT,vc:pT,w:Uu,wa:no,x:Vu,xa:oo,y:lx,ya:px,z:nn,za:ip,zb:ag},,{g:yT,i:vT},,,{a:Lx,b:_h},,,,,,{m:bT,n:xT,o:_T,p:CT,q:Ix,r:wT,s:BT,t:ST},{q:Wx},{b:MT,c:RT,e:gd},{a:FT,b:TT,c:PT,d:Rx,g:Ux,h:Vx,i:Nx}])=>{var QT=Mm((WY,NT)=>{"use strict";function bU(a){var t=new a,e=t;function i(){var s=t;return s.next?t=s.next:(t=new a,e=t),s.next=null,s}function r(s){e.next=s,e=s}return{get:i,release:r}}NT.exports=bU});var jT=Mm((XY,zx)=>{"use strict";var xU=QT();function HT(a,t,e){if(typeof a=="function"&&(e=t,t=a,a=null),e<1)throw new Error("fastqueue concurrency must be greater than 1");var i=xU(_U),r=null,s=null,n=0,o=null,l={push:f,drain:kn,saturated:kn,pause:c,paused:!1,concurrency:e,running:h,resume:A,idle:p,length:u,getQueue:d,unshift:m,empty:kn,kill:y,killAndDrain:x,error:w};return l;function h(){return n}function c(){l.paused=!0}function u(){for(var S=r,T=0;S;)S=S.next,T++;return T}function d(){for(var S=r,T=[];S;)T.push(S.value),S=S.next;return T}function A(){if(l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)n++,g()}}function p(){return n===0&&l.length()===0}function f(S,T){var F=i.get();F.context=a,F.release=g,F.value=S,F.callback=T||kn,F.errorHandler=o,n===l.concurrency||l.paused?s?(s.next=F,s=F):(r=F,s=F,l.saturated()):(n++,t.call(a,F.value,F.worked))}function m(S,T){var F=i.get();F.context=a,F.release=g,F.value=S,F.callback=T||kn,n===l.concurrency||l.paused?r?(F.next=r,r=F):(r=F,s=F,l.saturated()):(n++,t.call(a,F.value,F.worked))}function g(S){S&&i.release(S);var T=r;T?l.paused?n--:(s===r&&(s=null),r=T.next,T.next=null,t.call(a,T.value,T.worked),s===null&&l.empty()):--n===0&&l.drain()}function y(){r=null,s=null,l.drain=kn}function x(){r=null,s=null,l.drain(),l.drain=kn}function w(S){o=S}}function kn(){}function _U(){this.value=null,this.callback=kn,this.next=null,this.release=kn,this.context=null,this.errorHandler=null;var a=this;this.worked=function(e,i){var r=a.callback,s=a.errorHandler,n=a.value;a.value=null,a.callback=kn,a.errorHandler&&s(e,n),r.call(a.context,e,i),a.release(a)}}function CU(a,t,e){typeof a=="function"&&(e=t,t=a,a=null);function i(c,u){t.call(this,c).then(function(d){u(null,d)},u)}var r=HT(a,i,e),s=r.push,n=r.unshift;return r.push=o,r.unshift=l,r.drained=h,r;function o(c){var u=new Promise(function(d,A){s(c,function(p,f){if(p){A(p);return}d(f)})});return u.catch(kn),u}function l(c){var u=new Promise(function(d,A){n(c,function(p,f){if(p){A(p);return}d(f)})});return u.catch(kn),u}function h(){var c=r.drain,u=new Promise(function(d){r.drain=function(){c(),d()}});return u}}zx.exports=HT;zx.exports.promise=CU});var WT=Mm((Gx,Yx)=>{(function(a,t){typeof Gx=="object"&&typeof Yx<"u"?Yx.exports=t():typeof define=="function"&&define.amd?define(t):(a=typeof globalThis<"u"?globalThis:a||self,a.html2canvas=t())})(Gx,(function(){"use strict";var a=function(b,v){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var D in _)Object.prototype.hasOwnProperty.call(_,D)&&(C[D]=_[D])},a(b,v)};function t(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");a(b,v);function C(){this.constructor=b}b.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}var e=function(){return e=Object.assign||function(v){for(var C,_=1,D=arguments.length;_<D;_++){C=arguments[_];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(v[O]=C[O])}return v},e.apply(this,arguments)};function i(b,v,C,_){function D(O){return O instanceof C?O:new C(function(H){H(O)})}return new(C||(C=Promise))(function(O,H){function W(ne){try{ae(_.next(ne))}catch(Ae){H(Ae)}}function j(ne){try{ae(_.throw(ne))}catch(Ae){H(Ae)}}function ae(ne){ne.done?O(ne.value):D(ne.value).then(W,j)}ae((_=_.apply(b,v||[])).next())})}function r(b,v){var C={label:0,sent:function(){if(O[0]&1)throw O[1];return O[1]},trys:[],ops:[]},_,D,O,H;return H={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function W(ae){return function(ne){return j([ae,ne])}}function j(ae){if(_)throw new TypeError("Generator is already executing.");for(;C;)try{if(_=1,D&&(O=ae[0]&2?D.return:ae[0]?D.throw||((O=D.return)&&O.call(D),0):D.next)&&!(O=O.call(D,ae[1])).done)return O;switch(D=0,O&&(ae=[ae[0]&2,O.value]),ae[0]){case 0:case 1:O=ae;break;case 4:return C.label++,{value:ae[1],done:!1};case 5:C.label++,D=ae[1],ae=[0];continue;case 7:ae=C.ops.pop(),C.trys.pop();continue;default:if(O=C.trys,!(O=O.length>0&&O[O.length-1])&&(ae[0]===6||ae[0]===2)){C=0;continue}if(ae[0]===3&&(!O||ae[1]>O[0]&&ae[1]<O[3])){C.label=ae[1];break}if(ae[0]===6&&C.label<O[1]){C.label=O[1],O=ae;break}if(O&&C.label<O[2]){C.label=O[2],C.ops.push(ae);break}O[2]&&C.ops.pop(),C.trys.pop();continue}ae=v.call(b,C)}catch(ne){ae=[6,ne],D=0}finally{_=O=0}if(ae[0]&5)throw ae[1];return{value:ae[0]?ae[1]:void 0,done:!0}}}function s(b,v,C){if(C||arguments.length===2)for(var _=0,D=v.length,O;_<D;_++)(O||!(_ in v))&&(O||(O=Array.prototype.slice.call(v,0,_)),O[_]=v[_]);return b.concat(O||v)}for(var n=(function(){function b(v,C,_,D){this.left=v,this.top=C,this.width=_,this.height=D}return b.prototype.add=function(v,C,_,D){return new b(this.left+v,this.top+C,this.width+_,this.height+D)},b.fromClientRect=function(v,C){return new b(C.left+v.windowBounds.left,C.top+v.windowBounds.top,C.width,C.height)},b.fromDOMRectList=function(v,C){var _=Array.from(C).find(function(D){return D.width!==0});return _?new b(_.left+v.windowBounds.left,_.top+v.windowBounds.top,_.width,_.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b})(),o=function(b,v){return n.fromClientRect(b,v.getBoundingClientRect())},l=function(b){var v=b.body,C=b.documentElement;if(!v||!C)throw new Error("Unable to get document size");var _=Math.max(Math.max(v.scrollWidth,C.scrollWidth),Math.max(v.offsetWidth,C.offsetWidth),Math.max(v.clientWidth,C.clientWidth)),D=Math.max(Math.max(v.scrollHeight,C.scrollHeight),Math.max(v.offsetHeight,C.offsetHeight),Math.max(v.clientHeight,C.clientHeight));return new n(0,0,_,D)},h=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((D&1023)<<10)+(O&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},c=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,O="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),A=0;A<u.length;A++)d[u.charCodeAt(A)]=A;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=typeof Uint8Array>"u"?[]:new Uint8Array(256),m=0;m<p.length;m++)f[p.charCodeAt(m)]=m;for(var g=function(b){var v=b.length*.75,C=b.length,_,D=0,O,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)O=f[b.charCodeAt(_)],H=f[b.charCodeAt(_+1)],W=f[b.charCodeAt(_+2)],j=f[b.charCodeAt(_+3)],ne[D++]=O<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},y=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},x=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},w=5,S=11,T=2,F=S-w,L=65536>>w,$=1<<w,I=$-1,U=1024>>w,P=L+U,Q=P,G=32,Y=Q+G,ee=65536>>S,te=1<<F,le=te-1,z=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},K=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},we=function(b,v){var C=g(b),_=Array.isArray(C)?x(C):new Uint32Array(C),D=Array.isArray(C)?y(C):new Uint16Array(C),O=24,H=z(D,O/2,_[4]/2),W=_[5]===2?z(D,(O+_[4])/2):K(_,Math.ceil((O+_[4])/4));return new se(_[0],_[1],_[2],_[3],H,W)},se=(function(){function b(v,C,_,D,O,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=O,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>w],C=(C<<T)+(v&I),this.data[C];if(v<=65535)return C=this.index[L+(v-55296>>w)],C=(C<<T)+(v&I),this.data[C];if(v<this.highStart)return C=Y-ee+(v>>S),C=this.index[C],C+=v>>w&le,C=this.index[C],C=(C<<T)+(v&I),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ye=0;Ye<de.length;Ye++)$e[de.charCodeAt(Ye)]=Ye;var He="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",qe=50,Tt=1,At=2,xi=3,wi=4,R=5,Be=7,ye=8,Z=9,X=10,oe=11,De=12,Le=13,pe=14,Oe=15,Je=16,Me=17,_t=18,Yi=19,ci=20,gs=21,Bi=22,Yr=23,yr=24,Si=25,Po=26,vl=27,aa=28,qf=29,bl=30,eb=31,Kc=32,Cu=33,xl=34,nh=35,tb=36,DA=37,ib=38,Jf=39,em=40,rb=41,oB=42,_$=43,C$=[9001,65288],lB="!",_i="\xD7",tm="\xF7",sb=we(He),_l=[bl,tb],ab=[Tt,At,xi,R],hB=[X,ye],uB=[vl,Po],w$=ab.concat(hB),cB=[ib,Jf,em,xl,nh],B$=[Oe,Le],S$=function(b,v){v===void 0&&(v="strict");var C=[],_=[],D=[];return b.forEach(function(O,H){var W=sb.get(O);if(W>qe?(D.push(!0),W-=qe):D.push(!1),["normal","auto","loose"].indexOf(v)!==-1&&[8208,8211,12316,12448].indexOf(O)!==-1)return _.push(H),C.push(Je);if(W===wi||W===oe){if(H===0)return _.push(H),C.push(bl);var j=C[H-1];return w$.indexOf(j)===-1?(_.push(_[H-1]),C.push(j)):(_.push(H),C.push(bl))}if(_.push(H),W===eb)return C.push(v==="strict"?gs:DA);if(W===oB||W===qf)return C.push(bl);if(W===_$)return O>=131072&&O<=196605||O>=196608&&O<=262141?C.push(DA):C.push(bl);C.push(W)}),[_,C,D]},nb=function(b,v,C,_){var D=_[C];if(Array.isArray(b)?b.indexOf(D)!==-1:b===D)for(var O=C;O<=_.length;){O++;var H=_[O];if(H===v)return!0;if(H!==X)break}if(D===X)for(var O=C;O>0;){O--;var W=_[O];if(Array.isArray(b)?b.indexOf(W)!==-1:b===W)for(var j=C;j<=_.length;){j++;var H=_[j];if(H===v)return!0;if(H!==X)break}if(W!==X)break}return!1},dB=function(b,v){for(var C=b;C>=0;){var _=v[C];if(_===X)C--;else return _}return 0},F$=function(b,v,C,_,D){if(C[_]===0)return _i;var O=_-1;if(Array.isArray(D)&&D[O]===!0)return _i;var H=O-1,W=O+1,j=v[O],ae=H>=0?v[H]:0,ne=v[W];if(j===At&&ne===xi)return _i;if(ab.indexOf(j)!==-1)return lB;if(ab.indexOf(ne)!==-1||hB.indexOf(ne)!==-1)return _i;if(dB(O,v)===ye)return tm;if(sb.get(b[O])===oe||(j===Kc||j===Cu)&&sb.get(b[W])===oe||j===Be||ne===Be||j===Z||[X,Le,Oe].indexOf(j)===-1&&ne===Z||[Me,_t,Yi,yr,aa].indexOf(ne)!==-1||dB(O,v)===Bi||nb(Yr,Bi,O,v)||nb([Me,_t],gs,O,v)||nb(De,De,O,v))return _i;if(j===X)return tm;if(j===Yr||ne===Yr)return _i;if(ne===Je||j===Je)return tm;if([Le,Oe,gs].indexOf(ne)!==-1||j===pe||ae===tb&&B$.indexOf(j)!==-1||j===aa&&ne===tb||ne===ci||_l.indexOf(ne)!==-1&&j===Si||_l.indexOf(j)!==-1&&ne===Si||j===vl&&[DA,Kc,Cu].indexOf(ne)!==-1||[DA,Kc,Cu].indexOf(j)!==-1&&ne===Po||_l.indexOf(j)!==-1&&uB.indexOf(ne)!==-1||uB.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||[vl,Po].indexOf(j)!==-1&&(ne===Si||[Bi,Oe].indexOf(ne)!==-1&&v[W+1]===Si)||[Bi,Oe].indexOf(j)!==-1&&ne===Si||j===Si&&[Si,aa,yr].indexOf(ne)!==-1)return _i;if([Si,aa,yr,Me,_t].indexOf(ne)!==-1)for(var Ae=O;Ae>=0;){var _e=v[Ae];if(_e===Si)return _i;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if([vl,Po].indexOf(ne)!==-1)for(var Ae=[Me,_t].indexOf(j)!==-1?H:O;Ae>=0;){var _e=v[Ae];if(_e===Si)return _i;if([aa,yr].indexOf(_e)!==-1)Ae--;else break}if(ib===j&&[ib,Jf,xl,nh].indexOf(ne)!==-1||[Jf,xl].indexOf(j)!==-1&&[Jf,em].indexOf(ne)!==-1||[em,nh].indexOf(j)!==-1&&ne===em||cB.indexOf(j)!==-1&&[ci,Po].indexOf(ne)!==-1||cB.indexOf(ne)!==-1&&j===vl||_l.indexOf(j)!==-1&&_l.indexOf(ne)!==-1||j===yr&&_l.indexOf(ne)!==-1||_l.concat(Si).indexOf(j)!==-1&&ne===Bi&&C$.indexOf(b[W])===-1||_l.concat(Si).indexOf(ne)!==-1&&j===_t)return _i;if(j===rb&&ne===rb){for(var lt=C[O],Ue=1;lt>0&&(lt--,v[lt]===rb);)Ue++;if(Ue%2!==0)return _i}return j===Kc&&ne===Cu?_i:tm},T$=function(b,v){v||(v={lineBreak:"normal",wordBreak:"normal"});var C=S$(b,v.lineBreak),_=C[0],D=C[1],O=C[2];(v.wordBreak==="break-all"||v.wordBreak==="break-word")&&(D=D.map(function(W){return[Si,bl,oB].indexOf(W)!==-1?DA:W}));var H=v.wordBreak==="keep-all"?O.map(function(W,j){return W&&b[j]>=19968&&b[j]<=40959}):void 0;return[_,D,H]},P$=(function(){function b(v,C,_,D){this.codePoints=v,this.required=C===lB,this.start=_,this.end=D}return b.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},b})(),D$=function(b,v){var C=h(b),_=T$(C,v),D=_[0],O=_[1],H=_[2],W=C.length,j=0,ae=0;return{next:function(){if(ae>=W)return{done:!0,value:null};for(var ne=_i;ae<W&&(ne=F$(C,O,D,++ae,H))===_i;);if(ne!==_i||ae===W){var Ae=new P$(C,ne,j,ae);return j=ae,{value:Ae,done:!1}}return{done:!0,value:null}}}},L$=1,I$=2,LA=4,AB=8,im=10,pB=47,IA=92,k$=9,$$=32,rm=34,kA=61,O$=35,E$=36,M$=37,sm=39,am=40,$A=41,R$=95,$a=45,U$=33,V$=60,N$=62,Q$=64,H$=91,j$=93,W$=61,X$=123,nm=63,z$=125,fB=124,G$=126,Y$=128,mB=65533,ob=42,wu=43,K$=44,Z$=58,q$=59,OA=46,J$=0,eO=8,tO=11,iO=14,rO=31,sO=127,Do=-1,gB=48,yB=97,vB=101,aO=102,nO=117,oO=122,bB=65,xB=69,_B=70,lO=85,hO=90,na=function(b){return b>=gB&&b<=57},uO=function(b){return b>=55296&&b<=57343},Zc=function(b){return na(b)||b>=bB&&b<=_B||b>=yB&&b<=aO},cO=function(b){return b>=yB&&b<=oO},dO=function(b){return b>=bB&&b<=hO},AO=function(b){return cO(b)||dO(b)},pO=function(b){return b>=Y$},om=function(b){return b===im||b===k$||b===$$},lm=function(b){return AO(b)||pO(b)||b===R$},CB=function(b){return lm(b)||na(b)||b===$a},fO=function(b){return b>=J$&&b<=eO||b===tO||b>=iO&&b<=rO||b===sO},oh=function(b,v){return b!==IA?!1:v!==im},hm=function(b,v,C){return b===$a?lm(v)||oh(v,C):lm(b)?!0:!!(b===IA&&oh(b,v))},lb=function(b,v,C){return b===wu||b===$a?na(v)?!0:v===OA&&na(C):na(b===OA?v:b)},mO=function(b){var v=0,C=1;(b[v]===wu||b[v]===$a)&&(b[v]===$a&&(C=-1),v++);for(var _=[];na(b[v]);)_.push(b[v++]);var D=_.length?parseInt(c.apply(void 0,_),10):0;b[v]===OA&&v++;for(var O=[];na(b[v]);)O.push(b[v++]);var H=O.length,W=H?parseInt(c.apply(void 0,O),10):0;(b[v]===xB||b[v]===vB)&&v++;var j=1;(b[v]===wu||b[v]===$a)&&(b[v]===$a&&(j=-1),v++);for(var ae=[];na(b[v]);)ae.push(b[v++]);var ne=ae.length?parseInt(c.apply(void 0,ae),10):0;return C*(D+W*Math.pow(10,-H))*Math.pow(10,j*ne)},gO={type:2},yO={type:3},vO={type:4},bO={type:13},xO={type:8},_O={type:21},CO={type:9},wO={type:10},BO={type:11},SO={type:12},FO={type:14},um={type:23},TO={type:1},PO={type:25},DO={type:24},LO={type:26},IO={type:27},kO={type:28},$O={type:29},OO={type:31},hb={type:32},wB=(function(){function b(){this._value=[]}return b.prototype.write=function(v){this._value=this._value.concat(h(v))},b.prototype.read=function(){for(var v=[],C=this.consumeToken();C!==hb;)v.push(C),C=this.consumeToken();return v},b.prototype.consumeToken=function(){var v=this.consumeCodePoint();switch(v){case rm:return this.consumeStringToken(rm);case O$:var C=this.peekCodePoint(0),_=this.peekCodePoint(1),D=this.peekCodePoint(2);if(CB(C)||oh(_,D)){var O=hm(C,_,D)?I$:L$,H=this.consumeName();return{type:5,value:H,flags:O}}break;case E$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),bO;break;case sm:return this.consumeStringToken(sm);case am:return gO;case $A:return yO;case ob:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),FO;break;case wu:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case K$:return vO;case $a:var W=v,j=this.peekCodePoint(0),ae=this.peekCodePoint(1);if(lb(W,j,ae))return this.reconsumeCodePoint(v),this.consumeNumericToken();if(hm(W,j,ae))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();if(j===$a&&ae===N$)return this.consumeCodePoint(),this.consumeCodePoint(),DO;break;case OA:if(lb(v,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(v),this.consumeNumericToken();break;case pB:if(this.peekCodePoint(0)===ob)for(this.consumeCodePoint();;){var ne=this.consumeCodePoint();if(ne===ob&&(ne=this.consumeCodePoint(),ne===pB))return this.consumeToken();if(ne===Do)return this.consumeToken()}break;case Z$:return LO;case q$:return IO;case V$:if(this.peekCodePoint(0)===U$&&this.peekCodePoint(1)===$a&&this.peekCodePoint(2)===$a)return this.consumeCodePoint(),this.consumeCodePoint(),PO;break;case Q$:var Ae=this.peekCodePoint(0),_e=this.peekCodePoint(1),lt=this.peekCodePoint(2);if(hm(Ae,_e,lt)){var H=this.consumeName();return{type:7,value:H}}break;case H$:return kO;case IA:if(oh(v,this.peekCodePoint(0)))return this.reconsumeCodePoint(v),this.consumeIdentLikeToken();break;case j$:return $O;case W$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),xO;break;case X$:return BO;case z$:return SO;case nO:case lO:var Ue=this.peekCodePoint(0),Ze=this.peekCodePoint(1);return Ue===wu&&(Zc(Ze)||Ze===nm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(v),this.consumeIdentLikeToken();case fB:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),CO;if(this.peekCodePoint(0)===fB)return this.consumeCodePoint(),_O;break;case G$:if(this.peekCodePoint(0)===kA)return this.consumeCodePoint(),wO;break;case Do:return hb}return om(v)?(this.consumeWhiteSpace(),OO):na(v)?(this.reconsumeCodePoint(v),this.consumeNumericToken()):lm(v)?(this.reconsumeCodePoint(v),this.consumeIdentLikeToken()):{type:6,value:c(v)}},b.prototype.consumeCodePoint=function(){var v=this._value.shift();return typeof v>"u"?-1:v},b.prototype.reconsumeCodePoint=function(v){this._value.unshift(v)},b.prototype.peekCodePoint=function(v){return v>=this._value.length?-1:this._value[v]},b.prototype.consumeUnicodeRangeToken=function(){for(var v=[],C=this.consumeCodePoint();Zc(C)&&v.length<6;)v.push(C),C=this.consumeCodePoint();for(var _=!1;C===nm&&v.length<6;)v.push(C),C=this.consumeCodePoint(),_=!0;if(_){var D=parseInt(c.apply(void 0,v.map(function(j){return j===nm?gB:j})),16),O=parseInt(c.apply(void 0,v.map(function(j){return j===nm?_B:j})),16);return{type:30,start:D,end:O}}var H=parseInt(c.apply(void 0,v),16);if(this.peekCodePoint(0)===$a&&Zc(this.peekCodePoint(1))){this.consumeCodePoint(),C=this.consumeCodePoint();for(var W=[];Zc(C)&&W.length<6;)W.push(C),C=this.consumeCodePoint();var O=parseInt(c.apply(void 0,W),16);return{type:30,start:H,end:O}}else return{type:30,start:H,end:H}},b.prototype.consumeIdentLikeToken=function(){var v=this.consumeName();return v.toLowerCase()==="url"&&this.peekCodePoint(0)===am?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===am?(this.consumeCodePoint(),{type:19,value:v}):{type:20,value:v}},b.prototype.consumeUrlToken=function(){var v=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do)return{type:22,value:""};var C=this.peekCodePoint(0);if(C===sm||C===rm){var _=this.consumeStringToken(this.consumeCodePoint());return _.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===$A)?(this.consumeCodePoint(),{type:22,value:_.value}):(this.consumeBadUrlRemnants(),um)}for(;;){var D=this.consumeCodePoint();if(D===Do||D===$A)return{type:22,value:c.apply(void 0,v)};if(om(D))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Do||this.peekCodePoint(0)===$A?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,v)}):(this.consumeBadUrlRemnants(),um);if(D===rm||D===sm||D===am||fO(D))return this.consumeBadUrlRemnants(),um;if(D===IA)if(oh(D,this.peekCodePoint(0)))v.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),um;else v.push(D)}},b.prototype.consumeWhiteSpace=function(){for(;om(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var v=this.consumeCodePoint();if(v===$A||v===Do)return;oh(v,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(v){for(var C=5e4,_="";v>0;){var D=Math.min(C,v);_+=c.apply(void 0,this._value.splice(0,D)),v-=D}return this._value.shift(),_},b.prototype.consumeStringToken=function(v){var C="",_=0;do{var D=this._value[_];if(D===Do||D===void 0||D===v)return C+=this.consumeStringSlice(_),{type:0,value:C};if(D===im)return this._value.splice(0,_),TO;if(D===IA){var O=this._value[_+1];O!==Do&&O!==void 0&&(O===im?(C+=this.consumeStringSlice(_),_=-1,this._value.shift()):oh(D,O)&&(C+=this.consumeStringSlice(_),C+=c(this.consumeEscapedCodePoint()),_=-1))}_++}while(!0)},b.prototype.consumeNumber=function(){var v=[],C=LA,_=this.peekCodePoint(0);for((_===wu||_===$a)&&v.push(this.consumeCodePoint());na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0);var D=this.peekCodePoint(1);if(_===OA&&na(D))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=AB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());_=this.peekCodePoint(0),D=this.peekCodePoint(1);var O=this.peekCodePoint(2);if((_===xB||_===vB)&&((D===wu||D===$a)&&na(O)||na(D)))for(v.push(this.consumeCodePoint(),this.consumeCodePoint()),C=AB;na(this.peekCodePoint(0));)v.push(this.consumeCodePoint());return[mO(v),C]},b.prototype.consumeNumericToken=function(){var v=this.consumeNumber(),C=v[0],_=v[1],D=this.peekCodePoint(0),O=this.peekCodePoint(1),H=this.peekCodePoint(2);if(hm(D,O,H)){var W=this.consumeName();return{type:15,number:C,flags:_,unit:W}}return D===M$?(this.consumeCodePoint(),{type:16,number:C,flags:_}):{type:17,number:C,flags:_}},b.prototype.consumeEscapedCodePoint=function(){var v=this.consumeCodePoint();if(Zc(v)){for(var C=c(v);Zc(this.peekCodePoint(0))&&C.length<6;)C+=c(this.consumeCodePoint());om(this.peekCodePoint(0))&&this.consumeCodePoint();var _=parseInt(C,16);return _===0||uO(_)||_>1114111?mB:_}return v===Do?mB:v},b.prototype.consumeName=function(){for(var v="";;){var C=this.consumeCodePoint();if(CB(C))v+=c(C);else if(oh(C,this.peekCodePoint(0)))v+=c(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(C),v}},b})(),BB=(function(){function b(v){this._tokens=v}return b.create=function(v){var C=new wB;return C.write(v),new b(C.read())},b.parseValue=function(v){return b.create(v).parseComponentValue()},b.parseValues=function(v){return b.create(v).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var v=this.consumeToken();v.type===31;)v=this.consumeToken();if(v.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(v);var C=this.consumeComponentValue();do v=this.consumeToken();while(v.type===31);if(v.type===32)return C;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var v=[];;){var C=this.consumeComponentValue();if(C.type===32)return v;v.push(C),v.push()}},b.prototype.consumeComponentValue=function(){var v=this.consumeToken();switch(v.type){case 11:case 28:case 2:return this.consumeSimpleBlock(v.type);case 19:return this.consumeFunction(v)}return v},b.prototype.consumeSimpleBlock=function(v){for(var C={type:v,values:[]},_=this.consumeToken();;){if(_.type===32||MO(_,v))return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue()),_=this.consumeToken()}},b.prototype.consumeFunction=function(v){for(var C={name:v.value,values:[],type:18};;){var _=this.consumeToken();if(_.type===32||_.type===3)return C;this.reconsumeToken(_),C.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var v=this._tokens.shift();return typeof v>"u"?hb:v},b.prototype.reconsumeToken=function(v){this._tokens.unshift(v)},b})(),EA=function(b){return b.type===15},qc=function(b){return b.type===17},ur=function(b){return b.type===20},EO=function(b){return b.type===0},ub=function(b,v){return ur(b)&&b.value===v},SB=function(b){return b.type!==31},Jc=function(b){return b.type!==31&&b.type!==4},Lo=function(b){var v=[],C=[];return b.forEach(function(_){if(_.type===4){if(C.length===0)throw new Error("Error parsing function args, zero tokens for arg");v.push(C),C=[];return}_.type!==31&&C.push(_)}),C.length&&v.push(C),v},MO=function(b,v){return v===11&&b.type===12||v===28&&b.type===29?!0:v===2&&b.type===3},lh=function(b){return b.type===17||b.type===15},os=function(b){return b.type===16||lh(b)},FB=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Hs={type:17,number:0,flags:LA},cb={type:16,number:50,flags:LA},hh={type:16,number:100,flags:LA},MA=function(b,v,C){var _=b[0],D=b[1];return[br(_,v),br(typeof D<"u"?D:_,C)]},br=function(b,v){if(b.type===16)return b.number/100*v;if(EA(b))switch(b.unit){case"rem":case"em":return 16*b.number;default:return b.number}return b.number},TB="deg",PB="grad",DB="rad",LB="turn",cm={name:"angle",parse:function(b,v){if(v.type===15)switch(v.unit){case TB:return Math.PI*v.number/180;case PB:return Math.PI/200*v.number;case DB:return v.number;case LB:return Math.PI*2*v.number}throw new Error("Unsupported angle type")}},IB=function(b){return b.type===15&&(b.unit===TB||b.unit===PB||b.unit===DB||b.unit===LB)},kB=function(b){var v=b.filter(ur).map(function(C){return C.value}).join(" ");switch(v){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Hs,Hs];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Hs,hh];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[hh,hh];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[hh,Hs];case"to left":case"right":return Bn(270)}return 0},Bn=function(b){return Math.PI*b/180},uh={name:"color",parse:function(b,v){if(v.type===18){var C=RO[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported color function "'+v.name+'"');return C(b,v.values)}if(v.type===5){if(v.value.length===3){var _=v.value.substring(0,1),D=v.value.substring(1,2),O=v.value.substring(2,3);return dh(parseInt(_+_,16),parseInt(D+D,16),parseInt(O+O,16),1)}if(v.value.length===4){var _=v.value.substring(0,1),D=v.value.substring(1,2),O=v.value.substring(2,3),H=v.value.substring(3,4);return dh(parseInt(_+_,16),parseInt(D+D,16),parseInt(O+O,16),parseInt(H+H,16)/255)}if(v.value.length===6){var _=v.value.substring(0,2),D=v.value.substring(2,4),O=v.value.substring(4,6);return dh(parseInt(_,16),parseInt(D,16),parseInt(O,16),1)}if(v.value.length===8){var _=v.value.substring(0,2),D=v.value.substring(2,4),O=v.value.substring(4,6),H=v.value.substring(6,8);return dh(parseInt(_,16),parseInt(D,16),parseInt(O,16),parseInt(H,16)/255)}}if(v.type===20){var W=Cl[v.value.toUpperCase()];if(typeof W<"u")return W}return Cl.TRANSPARENT}},ch=function(b){return(255&b)===0},Ls=function(b){var v=255&b,C=255&b>>8,_=255&b>>16,D=255&b>>24;return v<255?"rgba("+D+","+_+","+C+","+v/255+")":"rgb("+D+","+_+","+C+")"},dh=function(b,v,C,_){return(b<<24|v<<16|C<<8|Math.round(_*255)<<0)>>>0},$B=function(b,v){if(b.type===17)return b.number;if(b.type===16){var C=v===3?1:255;return v===3?b.number/100*C:Math.round(b.number/100*C)}return 0},OB=function(b,v){var C=v.filter(Jc);if(C.length===3){var _=C.map($B),D=_[0],O=_[1],H=_[2];return dh(D,O,H,1)}if(C.length===4){var W=C.map($B),D=W[0],O=W[1],H=W[2],j=W[3];return dh(D,O,H,j)}return 0};function db(b,v,C){return C<0&&(C+=1),C>=1&&(C-=1),C<1/6?(v-b)*C*6+b:C<1/2?v:C<2/3?(v-b)*6*(2/3-C)+b:b}var EB=function(b,v){var C=v.filter(Jc),_=C[0],D=C[1],O=C[2],H=C[3],W=(_.type===17?Bn(_.number):cm.parse(b,_))/(Math.PI*2),j=os(D)?D.number/100:0,ae=os(O)?O.number/100:0,ne=typeof H<"u"&&os(H)?br(H,1):1;if(j===0)return dh(ae*255,ae*255,ae*255,1);var Ae=ae<=.5?ae*(j+1):ae+j-ae*j,_e=ae*2-Ae,lt=db(_e,Ae,W+1/3),Ue=db(_e,Ae,W),Ze=db(_e,Ae,W-1/3);return dh(lt*255,Ue*255,Ze*255,ne)},RO={hsl:EB,hsla:EB,rgb:OB,rgba:OB},RA=function(b,v){return uh.parse(b,BB.create(v).parseComponentValue())},Cl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},UO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(ur(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},VO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dm=function(b,v){var C=uh.parse(b,v[0]),_=v[1];return _&&os(_)?{color:C,stop:_}:{color:C,stop:null}},MB=function(b,v){var C=b[0],_=b[b.length-1];C.stop===null&&(C.stop=Hs),_.stop===null&&(_.stop=hh);for(var D=[],O=0,H=0;H<b.length;H++){var W=b[H].stop;if(W!==null){var j=br(W,v);j>O?D.push(j):D.push(O),O=j}else D.push(null)}for(var ae=null,H=0;H<D.length;H++){var ne=D[H];if(ne===null)ae===null&&(ae=H);else if(ae!==null){for(var Ae=H-ae,_e=D[ae-1],lt=(ne-_e)/(Ae+1),Ue=1;Ue<=Ae;Ue++)D[ae+Ue-1]=lt*Ue;ae=null}}return b.map(function(Ze,ii){var bt=Ze.color;return{color:bt,stop:Math.max(Math.min(1,D[ii]/v),0)}})},NO=function(b,v,C){var _=v/2,D=C/2,O=br(b[0],v)-_,H=D-br(b[1],C);return(Math.atan2(H,O)+Math.PI*2)%(Math.PI*2)},QO=function(b,v,C){var _=typeof b=="number"?b:NO(b,v,C),D=Math.abs(v*Math.sin(_))+Math.abs(C*Math.cos(_)),O=v/2,H=C/2,W=D/2,j=Math.sin(_-Math.PI/2)*W,ae=Math.cos(_-Math.PI/2)*W;return[D,O-ae,O+ae,H-j,H+j]},to=function(b,v){return Math.sqrt(b*b+v*v)},RB=function(b,v,C,_,D){var O=[[0,0],[0,v],[b,0],[b,v]];return O.reduce(function(H,W){var j=W[0],ae=W[1],ne=to(C-j,_-ae);return(D?ne<H.optimumDistance:ne>H.optimumDistance)?{optimumCorner:W,optimumDistance:ne}:H},{optimumDistance:D?1/0:-1/0,optimumCorner:null}).optimumCorner},HO=function(b,v,C,_,D){var O=0,H=0;switch(b.size){case 0:b.shape===0?O=H=Math.min(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&(O=Math.min(Math.abs(v),Math.abs(v-_)),H=Math.min(Math.abs(C),Math.abs(C-D)));break;case 2:if(b.shape===0)O=H=Math.min(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.min(Math.abs(C),Math.abs(C-D))/Math.min(Math.abs(v),Math.abs(v-_)),j=RB(_,D,v,C,!0),ae=j[0],ne=j[1];O=to(ae-v,(ne-C)/W),H=W*O}break;case 1:b.shape===0?O=H=Math.max(Math.abs(v),Math.abs(v-_),Math.abs(C),Math.abs(C-D)):b.shape===1&&(O=Math.max(Math.abs(v),Math.abs(v-_)),H=Math.max(Math.abs(C),Math.abs(C-D)));break;case 3:if(b.shape===0)O=H=Math.max(to(v,C),to(v,C-D),to(v-_,C),to(v-_,C-D));else if(b.shape===1){var W=Math.max(Math.abs(C),Math.abs(C-D))/Math.max(Math.abs(v),Math.abs(v-_)),Ae=RB(_,D,v,C,!1),ae=Ae[0],ne=Ae[1];O=to(ae-v,(ne-C)/W),H=W*O}break}return Array.isArray(b.size)&&(O=br(b.size[0],_),H=b.size.length===2?br(b.size[1],D):O),[O,H]},jO=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,O){if(O===0){var H=D[0];if(H.type===20&&H.value==="to"){C=kB(D);return}else if(IB(H)){C=cm.parse(b,H);return}}var W=dm(b,D);_.push(W)}),{angle:C,stops:_,type:1}},Am=function(b,v){var C=Bn(180),_=[];return Lo(v).forEach(function(D,O){if(O===0){var H=D[0];if(H.type===20&&["top","left","right","bottom"].indexOf(H.value)!==-1){C=kB(D);return}else if(IB(H)){C=(cm.parse(b,H)+Bn(270))%Bn(360);return}}var W=dm(b,D);_.push(W)}),{angle:C,stops:_,type:1}},WO=function(b,v){var C=Bn(180),_=[],D=1,O=0,H=3,W=[];return Lo(v).forEach(function(j,ae){var ne=j[0];if(ae===0){if(ur(ne)&&ne.value==="linear"){D=1;return}else if(ur(ne)&&ne.value==="radial"){D=2;return}}if(ne.type===18){if(ne.name==="from"){var Ae=uh.parse(b,ne.values[0]);_.push({stop:Hs,color:Ae})}else if(ne.name==="to"){var Ae=uh.parse(b,ne.values[0]);_.push({stop:hh,color:Ae})}else if(ne.name==="color-stop"){var _e=ne.values.filter(Jc);if(_e.length===2){var Ae=uh.parse(b,_e[1]),lt=_e[0];qc(lt)&&_.push({stop:{type:16,number:lt.number*100,flags:lt.flags},color:Ae})}}}}),D===1?{angle:(C+Bn(180))%Bn(360),stops:_,type:D}:{size:H,shape:O,stops:_,position:W,type:D}},UB="closest-side",VB="farthest-side",NB="closest-corner",QB="farthest-corner",HB="circle",jB="ellipse",WB="cover",XB="contain",XO=function(b,v){var C=0,_=3,D=[],O=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0){var ae=!1;j=H.reduce(function(Ae,_e){if(ae)if(ur(_e))switch(_e.value){case"center":return O.push(cb),Ae;case"top":case"left":return O.push(Hs),Ae;case"right":case"bottom":return O.push(hh),Ae}else(os(_e)||lh(_e))&&O.push(_e);else if(ur(_e))switch(_e.value){case HB:return C=0,!1;case jB:return C=1,!1;case"at":return ae=!0,!1;case UB:return _=0,!1;case WB:case VB:return _=1,!1;case XB:case NB:return _=2,!1;case QB:return _=3,!1}else if(lh(_e)||os(_e))return Array.isArray(_)||(_=[]),_.push(_e),!1;return Ae},j)}if(j){var ne=dm(b,H);D.push(ne)}}),{size:_,shape:C,stops:D,position:O,type:2}},pm=function(b,v){var C=0,_=3,D=[],O=[];return Lo(v).forEach(function(H,W){var j=!0;if(W===0?j=H.reduce(function(ne,Ae){if(ur(Ae))switch(Ae.value){case"center":return O.push(cb),!1;case"top":case"left":return O.push(Hs),!1;case"right":case"bottom":return O.push(hh),!1}else if(os(Ae)||lh(Ae))return O.push(Ae),!1;return ne},j):W===1&&(j=H.reduce(function(ne,Ae){if(ur(Ae))switch(Ae.value){case HB:return C=0,!1;case jB:return C=1,!1;case XB:case UB:return _=0,!1;case VB:return _=1,!1;case NB:return _=2,!1;case WB:case QB:return _=3,!1}else if(lh(Ae)||os(Ae))return Array.isArray(_)||(_=[]),_.push(Ae),!1;return ne},j)),j){var ae=dm(b,H);D.push(ae)}}),{size:_,shape:C,stops:D,position:O,type:2}},zO=function(b){return b.type===1},GO=function(b){return b.type===2},Ab={name:"image",parse:function(b,v){if(v.type===22){var C={url:v.value,type:0};return b.cache.addImage(v.value),C}if(v.type===18){var _=zB[v.name];if(typeof _>"u")throw new Error('Attempting to parse an unsupported image function "'+v.name+'"');return _(b,v.values)}throw new Error("Unsupported image type "+v.type)}};function YO(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!zB[b.name])}var zB={"linear-gradient":jO,"-moz-linear-gradient":Am,"-ms-linear-gradient":Am,"-o-linear-gradient":Am,"-webkit-linear-gradient":Am,"radial-gradient":XO,"-moz-radial-gradient":pm,"-ms-radial-gradient":pm,"-o-radial-gradient":pm,"-webkit-radial-gradient":pm,"-webkit-gradient":WO},KO={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v.filter(function(_){return Jc(_)&&YO(_)}).map(function(_){return Ab.parse(b,_)})}},ZO={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,v){return v.map(function(C){if(ur(C))switch(C.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qO={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(os)}).map(FB)}},JO={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(ur).map(function(_){return _.value}).join(" ")}).map(eE)}},eE=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ed;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(ed||(ed={}));var tE={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,v){return Lo(v).map(function(C){return C.filter(iE)})}},iE=function(b){return ur(b)||os(b)},fm=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},rE=fm("top"),sE=fm("right"),aE=fm("bottom"),nE=fm("left"),mm=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(v,C){return FB(C.filter(os))}}},oE=mm("top-left"),lE=mm("top-right"),hE=mm("bottom-right"),uE=mm("bottom-left"),gm=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(v,C){switch(C){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},cE=gm("top"),dE=gm("right"),AE=gm("bottom"),pE=gm("left"),ym=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(v,C){return EA(C)?C.number:0}}},fE=ym("top"),mE=ym("right"),gE=ym("bottom"),yE=ym("left"),vE={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bE={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,v){return v==="rtl"?1:0}},xE={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).reduce(function(C,_){return C|_E(_.value)},0)}},_E=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},CE={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wE={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,v){return v.type===20&&v.value==="normal"?0:v.type===17||v.type===15?v.number:0}},vm;(function(b){b.NORMAL="normal",b.STRICT="strict"})(vm||(vm={}));var BE={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="strict"?vm.STRICT:vm.NORMAL}},SE={name:"line-height",initialValue:"normal",prefix:!1,type:4},GB=function(b,v){return ur(b)&&b.value==="normal"?1.2*v:b.type===17?v*b.number:os(b)?br(b,v):v},FE={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,v){return v.type===20&&v.value==="none"?null:Ab.parse(b,v)}},TE={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,v){return v==="inside"?0:1}},pb={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},bm=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},PE=bm("top"),DE=bm("right"),LE=bm("bottom"),IE=bm("left"),kE={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).map(function(C){switch(C.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},$E={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){return v==="break-word"?"break-word":"normal"}},xm=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},OE=xm("top"),EE=xm("right"),ME=xm("bottom"),RE=xm("left"),UE={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,v){switch(v){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},VE={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,v){switch(v){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},NE={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:Cl.TRANSPARENT,offsetX:Hs,offsetY:Hs,blur:Hs},D=0,O=0;O<C.length;O++){var H=C[O];lh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:_.blur=H,D++):_.color=uh.parse(b,H)}return _})}},QE={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},HE={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,v){if(v.type===20&&v.value==="none")return null;if(v.type===18){var C=XE[v.name];if(typeof C>"u")throw new Error('Attempting to parse an unsupported transform function "'+v.name+'"');return C(v.values)}return null}},jE=function(b){var v=b.filter(function(C){return C.type===17}).map(function(C){return C.number});return v.length===6?v:null},WE=function(b){var v=b.filter(function(j){return j.type===17}).map(function(j){return j.number}),C=v[0],_=v[1];v[2],v[3];var D=v[4],O=v[5];v[6],v[7],v[8],v[9],v[10],v[11];var H=v[12],W=v[13];return v[14],v[15],v.length===16?[C,_,D,O,H,W]:null},XE={matrix:jE,matrix3d:WE},YB={type:16,number:50,flags:LA},zE=[YB,YB],GE={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,v){var C=v.filter(os);return C.length!==2?zE:[C[0],C[1]]}},YE={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,v){switch(v){case"hidden":return 1;case"collapse":return 2;default:return 0}}},UA;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(UA||(UA={}));for(var KE={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"break-all":return UA.BREAK_ALL;case"keep-all":return UA.KEEP_ALL;default:return UA.NORMAL}}},ZE={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,v){if(v.type===20)return{auto:!0,order:0};if(qc(v))return{auto:!1,order:v.number};throw new Error("Invalid z-index number parsed")}},KB={name:"time",parse:function(b,v){if(v.type===15)switch(v.unit.toLowerCase()){case"s":return 1e3*v.number;case"ms":return v.number}throw new Error("Unsupported time type")}},qE={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,v){return qc(v)?v.number:1}},JE={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eM={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,v){return v.filter(ur).map(function(C){switch(C.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(C){return C!==0})}},tM={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,v){var C=[],_=[];return v.forEach(function(D){switch(D.type){case 20:case 0:C.push(D.value);break;case 17:C.push(D.number.toString());break;case 4:_.push(C.join(" ")),C.length=0;break}}),C.length&&_.push(C.join(" ")),_.map(function(D){return D.indexOf(" ")===-1?D:"'"+D+"'"})}},iM={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},rM={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,v){return qc(v)?v.number:ur(v)&&v.value==="bold"?700:400}},sM={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.filter(ur).map(function(C){return C.value})}},aM={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,v){switch(v){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},ys=function(b,v){return(b&v)!==0},nM={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,v){if(v.length===0)return[];var C=v[0];return C.type===20&&C.value==="none"?[]:v}},oM={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;for(var _=[],D=v.filter(SB),O=0;O<D.length;O++){var H=D[O],W=D[O+1];if(H.type===20){var j=W&&qc(W)?W.number:1;_.push({counter:H.value,increment:j})}}return _}},lM={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return[];for(var C=[],_=v.filter(SB),D=0;D<_.length;D++){var O=_[D],H=_[D+1];if(ur(O)&&O.value!=="none"){var W=H&&qc(H)?H.number:0;C.push({counter:O.value,reset:W})}}return C}},hM={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,v){return v.filter(EA).map(function(C){return KB.parse(b,C)})}},uM={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,v){if(v.length===0)return null;var C=v[0];if(C.type===20&&C.value==="none")return null;var _=[],D=v.filter(EO);if(D.length%2!==0)return null;for(var O=0;O<D.length;O+=2){var H=D[O].value,W=D[O+1].value;_.push({open:H,close:W})}return _}},ZB=function(b,v,C){if(!b)return"";var _=b[Math.min(v,b.length-1)];return _?C?_.open:_.close:""},cM={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,v){return v.length===1&&ub(v[0],"none")?[]:Lo(v).map(function(C){for(var _={color:255,offsetX:Hs,offsetY:Hs,blur:Hs,spread:Hs,inset:!1},D=0,O=0;O<C.length;O++){var H=C[O];ub(H,"inset")?_.inset=!0:lh(H)?(D===0?_.offsetX=H:D===1?_.offsetY=H:D===2?_.blur=H:_.spread=H,D++):_.color=uh.parse(b,H)}return _})}},dM={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,v){var C=[0,1,2],_=[];return v.filter(ur).forEach(function(D){switch(D.value){case"stroke":_.push(1);break;case"fill":_.push(0);break;case"markers":_.push(2);break}}),C.forEach(function(D){_.indexOf(D)===-1&&_.push(D)}),_}},AM={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},pM={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,v){return EA(v)?v.number:0}},fM=(function(){function b(v,C){var _,D;this.animationDuration=dt(v,hM,C.animationDuration),this.backgroundClip=dt(v,UO,C.backgroundClip),this.backgroundColor=dt(v,VO,C.backgroundColor),this.backgroundImage=dt(v,KO,C.backgroundImage),this.backgroundOrigin=dt(v,ZO,C.backgroundOrigin),this.backgroundPosition=dt(v,qO,C.backgroundPosition),this.backgroundRepeat=dt(v,JO,C.backgroundRepeat),this.backgroundSize=dt(v,tE,C.backgroundSize),this.borderTopColor=dt(v,rE,C.borderTopColor),this.borderRightColor=dt(v,sE,C.borderRightColor),this.borderBottomColor=dt(v,aE,C.borderBottomColor),this.borderLeftColor=dt(v,nE,C.borderLeftColor),this.borderTopLeftRadius=dt(v,oE,C.borderTopLeftRadius),this.borderTopRightRadius=dt(v,lE,C.borderTopRightRadius),this.borderBottomRightRadius=dt(v,hE,C.borderBottomRightRadius),this.borderBottomLeftRadius=dt(v,uE,C.borderBottomLeftRadius),this.borderTopStyle=dt(v,cE,C.borderTopStyle),this.borderRightStyle=dt(v,dE,C.borderRightStyle),this.borderBottomStyle=dt(v,AE,C.borderBottomStyle),this.borderLeftStyle=dt(v,pE,C.borderLeftStyle),this.borderTopWidth=dt(v,fE,C.borderTopWidth),this.borderRightWidth=dt(v,mE,C.borderRightWidth),this.borderBottomWidth=dt(v,gE,C.borderBottomWidth),this.borderLeftWidth=dt(v,yE,C.borderLeftWidth),this.boxShadow=dt(v,cM,C.boxShadow),this.color=dt(v,vE,C.color),this.direction=dt(v,bE,C.direction),this.display=dt(v,xE,C.display),this.float=dt(v,CE,C.cssFloat),this.fontFamily=dt(v,tM,C.fontFamily),this.fontSize=dt(v,iM,C.fontSize),this.fontStyle=dt(v,aM,C.fontStyle),this.fontVariant=dt(v,sM,C.fontVariant),this.fontWeight=dt(v,rM,C.fontWeight),this.letterSpacing=dt(v,wE,C.letterSpacing),this.lineBreak=dt(v,BE,C.lineBreak),this.lineHeight=dt(v,SE,C.lineHeight),this.listStyleImage=dt(v,FE,C.listStyleImage),this.listStylePosition=dt(v,TE,C.listStylePosition),this.listStyleType=dt(v,pb,C.listStyleType),this.marginTop=dt(v,PE,C.marginTop),this.marginRight=dt(v,DE,C.marginRight),this.marginBottom=dt(v,LE,C.marginBottom),this.marginLeft=dt(v,IE,C.marginLeft),this.opacity=dt(v,qE,C.opacity);var O=dt(v,kE,C.overflow);this.overflowX=O[0],this.overflowY=O[O.length>1?1:0],this.overflowWrap=dt(v,$E,C.overflowWrap),this.paddingTop=dt(v,OE,C.paddingTop),this.paddingRight=dt(v,EE,C.paddingRight),this.paddingBottom=dt(v,ME,C.paddingBottom),this.paddingLeft=dt(v,RE,C.paddingLeft),this.paintOrder=dt(v,dM,C.paintOrder),this.position=dt(v,VE,C.position),this.textAlign=dt(v,UE,C.textAlign),this.textDecorationColor=dt(v,JE,(_=C.textDecorationColor)!==null&&_!==void 0?_:C.color),this.textDecorationLine=dt(v,eM,(D=C.textDecorationLine)!==null&&D!==void 0?D:C.textDecoration),this.textShadow=dt(v,NE,C.textShadow),this.textTransform=dt(v,QE,C.textTransform),this.transform=dt(v,HE,C.transform),this.transformOrigin=dt(v,GE,C.transformOrigin),this.visibility=dt(v,YE,C.visibility),this.webkitTextStrokeColor=dt(v,AM,C.webkitTextStrokeColor),this.webkitTextStrokeWidth=dt(v,pM,C.webkitTextStrokeWidth),this.wordBreak=dt(v,KE,C.wordBreak),this.zIndex=dt(v,ZE,C.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return ch(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return ys(this.display,4)||ys(this.display,33554432)||ys(this.display,268435456)||ys(this.display,536870912)||ys(this.display,67108864)||ys(this.display,134217728)},b})(),mM=(function(){function b(v,C){this.content=dt(v,nM,C.content),this.quotes=dt(v,uM,C.quotes)}return b})(),qB=(function(){function b(v,C){this.counterIncrement=dt(v,oM,C.counterIncrement),this.counterReset=dt(v,lM,C.counterReset)}return b})(),dt=function(b,v,C){var _=new wB,D=C!==null&&typeof C<"u"?C.toString():v.initialValue;_.write(D);var O=new BB(_.read());switch(v.type){case 2:var H=O.parseComponentValue();return v.parse(b,ur(H)?H.value:v.initialValue);case 0:return v.parse(b,O.parseComponentValue());case 1:return v.parse(b,O.parseComponentValues());case 4:return O.parseComponentValue();case 3:switch(v.format){case"angle":return cm.parse(b,O.parseComponentValue());case"color":return uh.parse(b,O.parseComponentValue());case"image":return Ab.parse(b,O.parseComponentValue());case"length":var W=O.parseComponentValue();return lh(W)?W:Hs;case"length-percentage":var j=O.parseComponentValue();return os(j)?j:Hs;case"time":return KB.parse(b,O.parseComponentValue())}break}},gM="data-html2canvas-debug",yM=function(b){var v=b.getAttribute(gM);switch(v){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},fb=function(b,v){var C=yM(b);return C===1||v===C},Io=(function(){function b(v,C){if(this.context=v,this.textNodes=[],this.elements=[],this.flags=0,fb(C,3))debugger;this.styles=new fM(v,window.getComputedStyle(C,null)),Pb(C)&&(this.styles.animationDuration.some(function(_){return _>0})&&(C.style.animationDuration="0s"),this.styles.transform!==null&&(C.style.transform="none")),this.bounds=o(this.context,C),fb(C,4)&&(this.flags|=16)}return b})(),vM="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",JB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",VA=typeof Uint8Array>"u"?[]:new Uint8Array(256),_m=0;_m<JB.length;_m++)VA[JB.charCodeAt(_m)]=_m;for(var bM=function(b){var v=b.length*.75,C=b.length,_,D=0,O,H,W,j;b[b.length-1]==="="&&(v--,b[b.length-2]==="="&&v--);var ae=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(v):new Array(v),ne=Array.isArray(ae)?ae:new Uint8Array(ae);for(_=0;_<C;_+=4)O=VA[b.charCodeAt(_)],H=VA[b.charCodeAt(_+1)],W=VA[b.charCodeAt(_+2)],j=VA[b.charCodeAt(_+3)],ne[D++]=O<<2|H>>4,ne[D++]=(H&15)<<4|W>>2,ne[D++]=(W&3)<<6|j&63;return ae},xM=function(b){for(var v=b.length,C=[],_=0;_<v;_+=2)C.push(b[_+1]<<8|b[_]);return C},_M=function(b){for(var v=b.length,C=[],_=0;_<v;_+=4)C.push(b[_+3]<<24|b[_+2]<<16|b[_+1]<<8|b[_]);return C},Bu=5,mb=11,gb=2,CM=mb-Bu,eS=65536>>Bu,wM=1<<Bu,yb=wM-1,BM=1024>>Bu,SM=eS+BM,FM=SM,TM=32,PM=FM+TM,DM=65536>>mb,LM=1<<CM,IM=LM-1,tS=function(b,v,C){return b.slice?b.slice(v,C):new Uint16Array(Array.prototype.slice.call(b,v,C))},kM=function(b,v,C){return b.slice?b.slice(v,C):new Uint32Array(Array.prototype.slice.call(b,v,C))},$M=function(b,v){var C=bM(b),_=Array.isArray(C)?_M(C):new Uint32Array(C),D=Array.isArray(C)?xM(C):new Uint16Array(C),O=24,H=tS(D,O/2,_[4]/2),W=_[5]===2?tS(D,(O+_[4])/2):kM(_,Math.ceil((O+_[4])/4));return new OM(_[0],_[1],_[2],_[3],H,W)},OM=(function(){function b(v,C,_,D,O,H){this.initialValue=v,this.errorValue=C,this.highStart=_,this.highValueIndex=D,this.index=O,this.data=H}return b.prototype.get=function(v){var C;if(v>=0){if(v<55296||v>56319&&v<=65535)return C=this.index[v>>Bu],C=(C<<gb)+(v&yb),this.data[C];if(v<=65535)return C=this.index[eS+(v-55296>>Bu)],C=(C<<gb)+(v&yb),this.data[C];if(v<this.highStart)return C=PM-DM+(v>>mb),C=this.index[C],C+=v>>Bu&IM,C=this.index[C],C=(C<<gb)+(v&yb),this.data[C];if(v<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b})(),iS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",EM=typeof Uint8Array>"u"?[]:new Uint8Array(256),Cm=0;Cm<iS.length;Cm++)EM[iS.charCodeAt(Cm)]=Cm;var MM=1,vb=2,bb=3,rS=4,sS=5,RM=7,aS=8,xb=9,_b=10,nS=11,oS=12,lS=13,hS=14,Cb=15,UM=function(b){for(var v=[],C=0,_=b.length;C<_;){var D=b.charCodeAt(C++);if(D>=55296&&D<=56319&&C<_){var O=b.charCodeAt(C++);(O&64512)===56320?v.push(((D&1023)<<10)+(O&1023)+65536):(v.push(D),C--)}else v.push(D)}return v},VM=function(){for(var b=[],v=0;v<arguments.length;v++)b[v]=arguments[v];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var C=b.length;if(!C)return"";for(var _=[],D=-1,O="";++D<C;){var H=b[D];H<=65535?_.push(H):(H-=65536,_.push((H>>10)+55296,H%1024+56320)),(D+1===C||_.length>16384)&&(O+=String.fromCharCode.apply(String,_),_.length=0)}return O},NM=$M(vM),Sn="\xD7",wb="\xF7",QM=function(b){return NM.get(b)},HM=function(b,v,C){var _=C-2,D=v[_],O=v[C-1],H=v[C];if(O===vb&&H===bb)return Sn;if(O===vb||O===bb||O===rS||H===vb||H===bb||H===rS)return wb;if(O===aS&&[aS,xb,nS,oS].indexOf(H)!==-1||(O===nS||O===xb)&&(H===xb||H===_b)||(O===oS||O===_b)&&H===_b||H===lS||H===sS||H===RM||O===MM)return Sn;if(O===lS&&H===hS){for(;D===sS;)D=v[--_];if(D===hS)return Sn}if(O===Cb&&H===Cb){for(var W=0;D===Cb;)W++,D=v[--_];if(W%2===0)return Sn}return wb},jM=function(b){var v=UM(b),C=v.length,_=0,D=0,O=v.map(QM);return{next:function(){if(_>=C)return{done:!0,value:null};for(var H=Sn;_<C&&(H=HM(v,O,++_))===Sn;);if(H!==Sn||_===C){var W=VM.apply(null,v.slice(D,_));return D=_,{value:W,done:!1}}return{done:!0,value:null}}}},WM=function(b){for(var v=jM(b),C=[],_;!(_=v.next()).done;)_.value&&C.push(_.value.slice());return C},XM=function(b){var v=123;if(b.createRange){var C=b.createRange();if(C.getBoundingClientRect){var _=b.createElement("boundtest");_.style.height=v+"px",_.style.display="block",b.body.appendChild(_),C.selectNode(_);var D=C.getBoundingClientRect(),O=Math.round(D.height);if(b.body.removeChild(_),O===v)return!0}}return!1},zM=function(b){var v=b.createElement("boundtest");v.style.width="50px",v.style.display="block",v.style.fontSize="12px",v.style.letterSpacing="0px",v.style.wordSpacing="0px",b.body.appendChild(v);var C=b.createRange();v.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var _=v.firstChild,D=h(_.data).map(function(j){return c(j)}),O=0,H={},W=D.every(function(j,ae){C.setStart(_,O),C.setEnd(_,O+j.length);var ne=C.getBoundingClientRect();O+=j.length;var Ae=ne.x>H.x||ne.y>H.y;return H=ne,ae===0?!0:Ae});return b.body.removeChild(v),W},GM=function(){return typeof new Image().crossOrigin<"u"},YM=function(){return typeof new XMLHttpRequest().responseType=="string"},KM=function(b){var v=new Image,C=b.createElement("canvas"),_=C.getContext("2d");if(!_)return!1;v.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{_.drawImage(v,0,0),C.toDataURL()}catch{return!1}return!0},uS=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},ZM=function(b){var v=b.createElement("canvas"),C=100;v.width=C,v.height=C;var _=v.getContext("2d");if(!_)return Promise.reject(!1);_.fillStyle="rgb(0, 255, 0)",_.fillRect(0,0,C,C);var D=new Image,O=v.toDataURL();D.src=O;var H=Bb(C,C,0,0,D);return _.fillStyle="red",_.fillRect(0,0,C,C),cS(H).then(function(W){_.drawImage(W,0,0);var j=_.getImageData(0,0,C,C).data;_.fillStyle="red",_.fillRect(0,0,C,C);var ae=b.createElement("div");return ae.style.backgroundImage="url("+O+")",ae.style.height=C+"px",uS(j)?cS(Bb(C,C,0,0,ae)):Promise.reject(!1)}).then(function(W){return _.drawImage(W,0,0),uS(_.getImageData(0,0,C,C).data)}).catch(function(){return!1})},Bb=function(b,v,C,_,D){var O="http://www.w3.org/2000/svg",H=document.createElementNS(O,"svg"),W=document.createElementNS(O,"foreignObject");return H.setAttributeNS(null,"width",b.toString()),H.setAttributeNS(null,"height",v.toString()),W.setAttributeNS(null,"width","100%"),W.setAttributeNS(null,"height","100%"),W.setAttributeNS(null,"x",C.toString()),W.setAttributeNS(null,"y",_.toString()),W.setAttributeNS(null,"externalResourcesRequired","true"),H.appendChild(W),W.appendChild(D),H},cS=function(b){return new Promise(function(v,C){var _=new Image;_.onload=function(){return v(_)},_.onerror=C,_.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},js={get SUPPORT_RANGE_BOUNDS(){var b=XM(document);return Object.defineProperty(js,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=js.SUPPORT_RANGE_BOUNDS&&zM(document);return Object.defineProperty(js,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=KM(document);return Object.defineProperty(js,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?ZM(document):Promise.resolve(!1);return Object.defineProperty(js,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=GM();return Object.defineProperty(js,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=YM();return Object.defineProperty(js,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(js,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(js,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},NA=(function(){function b(v,C){this.text=v,this.bounds=C}return b})(),qM=function(b,v,C,_){var D=tR(v,C),O=[],H=0;return D.forEach(function(W){if(C.textDecorationLine.length||W.trim().length>0)if(js.SUPPORT_RANGE_BOUNDS){var j=dS(_,H,W.length).getClientRects();if(j.length>1){var ae=Sb(W),ne=0;ae.forEach(function(_e){O.push(new NA(_e,n.fromDOMRectList(b,dS(_,ne+H,_e.length).getClientRects()))),ne+=_e.length})}else O.push(new NA(W,n.fromDOMRectList(b,j)))}else{var Ae=_.splitText(W.length);O.push(new NA(W,JM(b,_))),_=Ae}else js.SUPPORT_RANGE_BOUNDS||(_=_.splitText(W.length));H+=W.length}),O},JM=function(b,v){var C=v.ownerDocument;if(C){var _=C.createElement("html2canvaswrapper");_.appendChild(v.cloneNode(!0));var D=v.parentNode;if(D){D.replaceChild(_,v);var O=o(b,_);return _.firstChild&&D.replaceChild(_.firstChild,_),O}}return n.EMPTY},dS=function(b,v,C){var _=b.ownerDocument;if(!_)throw new Error("Node has no owner document");var D=_.createRange();return D.setStart(b,v),D.setEnd(b,v+C),D},Sb=function(b){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var v=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(v.segment(b)).map(function(C){return C.segment})}return WM(b)},eR=function(b,v){if(js.SUPPORT_NATIVE_TEXT_SEGMENTATION){var C=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(C.segment(b)).map(function(_){return _.segment})}return rR(b,v)},tR=function(b,v){return v.letterSpacing!==0?Sb(b):eR(b,v)},iR=[32,160,4961,65792,65793,4153,4241],rR=function(b,v){for(var C=D$(b,{lineBreak:v.lineBreak,wordBreak:v.overflowWrap==="break-word"?"break-word":v.wordBreak}),_=[],D,O=function(){if(D.value){var H=D.value.slice(),W=h(H),j="";W.forEach(function(ae){iR.indexOf(ae)===-1?j+=c(ae):(j.length&&_.push(j),_.push(c(ae)),j="")}),j.length&&_.push(j)}};!(D=C.next()).done;)O();return _},sR=(function(){function b(v,C,_){this.text=aR(C.data,_.textTransform),this.textBounds=qM(v,this.text,_,C)}return b})(),aR=function(b,v){switch(v){case 1:return b.toLowerCase();case 3:return b.replace(nR,oR);case 2:return b.toUpperCase();default:return b}},nR=/(^|\s|:|-|\(|\))([a-z])/g,oR=function(b,v,C){return b.length>0?v+C.toUpperCase():b},AS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.src=_.currentSrc||_.src,D.intrinsicWidth=_.naturalWidth,D.intrinsicHeight=_.naturalHeight,D.context.cache.addImage(D.src),D}return v})(Io),pS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.canvas=_,D.intrinsicWidth=_.width,D.intrinsicHeight=_.height,D}return v})(Io),fS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,O=new XMLSerializer,H=o(C,_);return _.setAttribute("width",H.width+"px"),_.setAttribute("height",H.height+"px"),D.svg="data:image/svg+xml,"+encodeURIComponent(O.serializeToString(_)),D.intrinsicWidth=_.width.baseVal.value,D.intrinsicHeight=_.height.baseVal.value,D.context.cache.addImage(D.svg),D}return v})(Io),mS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),Fb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.start=_.start,D.reversed=typeof _.reversed=="boolean"&&_.reversed===!0,D}return v})(Io),lR=[{type:15,flags:0,unit:"px",number:3}],hR=[{type:16,flags:0,number:50}],uR=function(b){return b.width>b.height?new n(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new n(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},cR=function(b){var v=b.type===dR?new Array(b.value.length+1).join("\u2022"):b.value;return v.length===0?b.placeholder||"":v},wm="checkbox",Bm="radio",dR="password",gS=707406591,Tb=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;switch(D.type=_.type.toLowerCase(),D.checked=_.checked,D.value=cR(_),(D.type===wm||D.type===Bm)&&(D.styles.backgroundColor=3739148031,D.styles.borderTopColor=D.styles.borderRightColor=D.styles.borderBottomColor=D.styles.borderLeftColor=2779096575,D.styles.borderTopWidth=D.styles.borderRightWidth=D.styles.borderBottomWidth=D.styles.borderLeftWidth=1,D.styles.borderTopStyle=D.styles.borderRightStyle=D.styles.borderBottomStyle=D.styles.borderLeftStyle=1,D.styles.backgroundClip=[0],D.styles.backgroundOrigin=[0],D.bounds=uR(D.bounds)),D.type){case wm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=lR;break;case Bm:D.styles.borderTopRightRadius=D.styles.borderTopLeftRadius=D.styles.borderBottomRightRadius=D.styles.borderBottomLeftRadius=hR;break}return D}return v})(Io),yS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this,O=_.options[_.selectedIndex||0];return D.value=O&&O.text||"",D}return v})(Io),vS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;return D.value=_.value,D}return v})(Io),bS=(function(b){t(v,b);function v(C,_){var D=b.call(this,C,_)||this;D.src=_.src,D.width=parseInt(_.width,10)||0,D.height=parseInt(_.height,10)||0,D.backgroundColor=D.styles.backgroundColor;try{if(_.contentWindow&&_.contentWindow.document&&_.contentWindow.document.documentElement){D.tree=_S(C,_.contentWindow.document.documentElement);var O=_.contentWindow.document.documentElement?RA(C,getComputedStyle(_.contentWindow.document.documentElement).backgroundColor):Cl.TRANSPARENT,H=_.contentWindow.document.body?RA(C,getComputedStyle(_.contentWindow.document.body).backgroundColor):Cl.TRANSPARENT;D.backgroundColor=ch(O)?ch(H)?D.styles.backgroundColor:H:O}}catch{}return D}return v})(Io),AR=["OL","UL","MENU"],Sm=function(b,v,C,_){for(var D=v.firstChild,O=void 0;D;D=O)if(O=D.nextSibling,CS(D)&&D.data.trim().length>0)C.textNodes.push(new sR(b,D,C.styles));else if(td(D))if(PS(D)&&D.assignedNodes)D.assignedNodes().forEach(function(W){return Sm(b,W,C,_)});else{var H=xS(b,D);H.styles.isVisible()&&(pR(D,H,_)?H.flags|=4:fR(H.styles)&&(H.flags|=2),AR.indexOf(D.tagName)!==-1&&(H.flags|=8),C.elements.push(H),D.slot,D.shadowRoot?Sm(b,D.shadowRoot,H,_):!Tm(D)&&!wS(D)&&!Pm(D)&&Sm(b,D,H,_))}},xS=function(b,v){return Lb(v)?new AS(b,v):BS(v)?new pS(b,v):wS(v)?new fS(b,v):mR(v)?new mS(b,v):gR(v)?new Fb(b,v):yR(v)?new Tb(b,v):Pm(v)?new yS(b,v):Tm(v)?new vS(b,v):FS(v)?new bS(b,v):new Io(b,v)},_S=function(b,v){var C=xS(b,v);return C.flags|=4,Sm(b,v,C,C),C},pR=function(b,v,C){return v.styles.isPositionedWithZIndex()||v.styles.opacity<1||v.styles.isTransformed()||Db(b)&&C.styles.isTransparent()},fR=function(b){return b.isPositioned()||b.isFloating()},CS=function(b){return b.nodeType===Node.TEXT_NODE},td=function(b){return b.nodeType===Node.ELEMENT_NODE},Pb=function(b){return td(b)&&typeof b.style<"u"&&!Fm(b)},Fm=function(b){return typeof b.className=="object"},mR=function(b){return b.tagName==="LI"},gR=function(b){return b.tagName==="OL"},yR=function(b){return b.tagName==="INPUT"},vR=function(b){return b.tagName==="HTML"},wS=function(b){return b.tagName==="svg"},Db=function(b){return b.tagName==="BODY"},BS=function(b){return b.tagName==="CANVAS"},SS=function(b){return b.tagName==="VIDEO"},Lb=function(b){return b.tagName==="IMG"},FS=function(b){return b.tagName==="IFRAME"},TS=function(b){return b.tagName==="STYLE"},bR=function(b){return b.tagName==="SCRIPT"},Tm=function(b){return b.tagName==="TEXTAREA"},Pm=function(b){return b.tagName==="SELECT"},PS=function(b){return b.tagName==="SLOT"},DS=function(b){return b.tagName.indexOf("-")>0},xR=(function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(v){var C=this.counters[v];return C&&C.length?C[C.length-1]:1},b.prototype.getCounterValues=function(v){var C=this.counters[v];return C||[]},b.prototype.pop=function(v){var C=this;v.forEach(function(_){return C.counters[_].pop()})},b.prototype.parse=function(v){var C=this,_=v.counterIncrement,D=v.counterReset,O=!0;_!==null&&_.forEach(function(W){var j=C.counters[W.counter];j&&W.increment!==0&&(O=!1,j.length||j.push(1),j[Math.max(0,j.length-1)]+=W.increment)});var H=[];return O&&D.forEach(function(W){var j=C.counters[W.counter];H.push(W.counter),j||(j=C.counters[W.counter]=[]),j.push(W.reset)}),H},b})(),LS={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},IS={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},_R={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},CR={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},id=function(b,v,C,_,D,O){return b<v||b>C?HA(b,D,O.length>0):_.integers.reduce(function(H,W,j){for(;b>=W;)b-=W,H+=_.values[j];return H},"")+O},kS=function(b,v,C,_){var D="";do C||b--,D=_(b)+D,b/=v;while(b*v>=v);return D},Kr=function(b,v,C,_,D){var O=C-v+1;return(b<0?"-":"")+(kS(Math.abs(b),O,_,function(H){return c(Math.floor(H%O)+v)})+D)},Su=function(b,v,C){C===void 0&&(C=". ");var _=v.length;return kS(Math.abs(b),_,!1,function(D){return v[Math.floor(D%_)]})+C},rd=1,Ah=2,ph=4,QA=8,wl=function(b,v,C,_,D,O){if(b<-9999||b>9999)return HA(b,4,D.length>0);var H=Math.abs(b),W=D;if(H===0)return v[0]+W;for(var j=0;H>0&&j<=4;j++){var ae=H%10;ae===0&&ys(O,rd)&&W!==""?W=v[ae]+W:ae>1||ae===1&&j===0||ae===1&&j===1&&ys(O,Ah)||ae===1&&j===1&&ys(O,ph)&&b>100||ae===1&&j>1&&ys(O,QA)?W=v[ae]+(j>0?C[j-1]:"")+W:ae===1&&j>0&&(W=C[j-1]+W),H=Math.floor(H/10)}return(b<0?_:"")+W},$S="\u5341\u767E\u5343\u842C",OS="\u62FE\u4F70\u4EDF\u842C",ES="\u30DE\u30A4\u30CA\u30B9",Ib="\uB9C8\uC774\uB108\uC2A4",HA=function(b,v,C){var _=C?". ":"",D=C?"\u3001":"",O=C?", ":"",H=C?" ":"";switch(v){case 0:return"\u2022"+H;case 1:return"\u25E6"+H;case 2:return"\u25FE"+H;case 5:var W=Kr(b,48,57,!0,_);return W.length<4?"0"+W:W;case 4:return Su(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",D);case 6:return id(b,1,3999,LS,3,_).toLowerCase();case 7:return id(b,1,3999,LS,3,_);case 8:return Kr(b,945,969,!1,_);case 9:return Kr(b,97,122,!1,_);case 10:return Kr(b,65,90,!1,_);case 11:return Kr(b,1632,1641,!0,_);case 12:case 49:return id(b,1,9999,IS,3,_);case 35:return id(b,1,9999,IS,3,_).toLowerCase();case 13:return Kr(b,2534,2543,!0,_);case 14:case 30:return Kr(b,6112,6121,!0,_);case 15:return Su(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",D);case 16:return Su(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",D);case 17:case 48:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",$S,"\u8CA0",D,Ah|ph|QA);case 47:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",OS,"\u8CA0",D,rd|Ah|ph|QA);case 42:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",$S,"\u8D1F",D,Ah|ph|QA);case 41:return wl(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",OS,"\u8D1F",D,rd|Ah|ph|QA);case 26:return wl(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",ES,D,0);case 25:return wl(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",ES,D,rd|Ah|ph);case 31:return wl(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Ib,O,rd|Ah|ph);case 33:return wl(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Ib,O,0);case 32:return wl(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Ib,O,rd|Ah|ph);case 18:return Kr(b,2406,2415,!0,_);case 20:return id(b,1,19999,CR,3,_);case 21:return Kr(b,2790,2799,!0,_);case 22:return Kr(b,2662,2671,!0,_);case 22:return id(b,1,10999,_R,3,_);case 23:return Su(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Su(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Kr(b,3302,3311,!0,_);case 28:return Su(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",D);case 29:return Su(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",D);case 34:return Kr(b,3792,3801,!0,_);case 37:return Kr(b,6160,6169,!0,_);case 38:return Kr(b,4160,4169,!0,_);case 39:return Kr(b,2918,2927,!0,_);case 40:return Kr(b,1776,1785,!0,_);case 43:return Kr(b,3046,3055,!0,_);case 44:return Kr(b,3174,3183,!0,_);case 45:return Kr(b,3664,3673,!0,_);case 46:return Kr(b,3872,3881,!0,_);default:return Kr(b,48,57,!0,_)}},MS="data-html2canvas-ignore",RS=(function(){function b(v,C,_){if(this.context=v,this.options=_,this.scrolledElements=[],this.referenceElement=C,this.counters=new xR,this.quoteDepth=0,!C.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(C.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(v,C){var _=this,D=wR(v,C);if(!D.contentWindow)return Promise.reject("Unable to find iframe window");var O=v.defaultView.pageXOffset,H=v.defaultView.pageYOffset,W=D.contentWindow,j=W.document,ae=FR(D).then(function(){return i(_,void 0,void 0,function(){var ne,Ae;return r(this,function(_e){switch(_e.label){case 0:return this.scrolledElements.forEach(LR),W&&(W.scrollTo(C.left,C.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(W.scrollY!==C.top||W.scrollX!==C.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(W.scrollX-C.left,W.scrollY-C.top,0,0))),ne=this.options.onclone,Ae=this.clonedReferenceElement,typeof Ae>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:j.fonts&&j.fonts.ready?[4,j.fonts.ready]:[3,2];case 1:_e.sent(),_e.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,SR(j)]:[3,4];case 3:_e.sent(),_e.label=4;case 4:return typeof ne=="function"?[2,Promise.resolve().then(function(){return ne(j,Ae)}).then(function(){return D})]:[2,D]}})})});return j.open(),j.write(PR(document.doctype)+"<html></html>"),DR(this.referenceElement.ownerDocument,O,H),j.replaceChild(j.adoptNode(this.documentElement),j.documentElement),j.close(),ae},b.prototype.createElementClone=function(v){if(fb(v,2))debugger;if(BS(v))return this.createCanvasClone(v);if(SS(v))return this.createVideoClone(v);if(TS(v))return this.createStyleClone(v);var C=v.cloneNode(!1);return Lb(C)&&(Lb(v)&&v.currentSrc&&v.currentSrc!==v.src&&(C.src=v.currentSrc,C.srcset=""),C.loading==="lazy"&&(C.loading="eager")),DS(C)?this.createCustomElementClone(C):C},b.prototype.createCustomElementClone=function(v){var C=document.createElement("html2canvascustomelement");return kb(v.style,C),C},b.prototype.createStyleClone=function(v){try{var C=v.sheet;if(C&&C.cssRules){var _=[].slice.call(C.cssRules,0).reduce(function(O,H){return H&&typeof H.cssText=="string"?O+H.cssText:O},""),D=v.cloneNode(!1);return D.textContent=_,D}}catch(O){if(this.context.logger.error("Unable to access cssRules property",O),O.name!=="SecurityError")throw O}return v.cloneNode(!1)},b.prototype.createCanvasClone=function(v){var C;if(this.options.inlineImages&&v.ownerDocument){var _=v.ownerDocument.createElement("img");try{return _.src=v.toDataURL(),_}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",v)}}var D=v.cloneNode(!1);try{D.width=v.width,D.height=v.height;var O=v.getContext("2d"),H=D.getContext("2d");if(H)if(!this.options.allowTaint&&O)H.putImageData(O.getImageData(0,0,v.width,v.height),0,0);else{var W=(C=v.getContext("webgl2"))!==null&&C!==void 0?C:v.getContext("webgl");if(W){var j=W.getContextAttributes();j?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",v)}H.drawImage(v,0,0)}return D}catch{this.context.logger.info("Unable to clone canvas as it is tainted",v)}return D},b.prototype.createVideoClone=function(v){var C=v.ownerDocument.createElement("canvas");C.width=v.offsetWidth,C.height=v.offsetHeight;var _=C.getContext("2d");try{return _&&(_.drawImage(v,0,0,C.width,C.height),this.options.allowTaint||_.getImageData(0,0,C.width,C.height)),C}catch{this.context.logger.info("Unable to clone video as it is tainted",v)}var D=v.ownerDocument.createElement("canvas");return D.width=v.offsetWidth,D.height=v.offsetHeight,D},b.prototype.appendChildNode=function(v,C,_){(!td(C)||!bR(C)&&!C.hasAttribute(MS)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(C)))&&(!this.options.copyStyles||!td(C)||!TS(C))&&v.appendChild(this.cloneNode(C,_))},b.prototype.cloneChildNodes=function(v,C,_){for(var D=this,O=v.shadowRoot?v.shadowRoot.firstChild:v.firstChild;O;O=O.nextSibling)if(td(O)&&PS(O)&&typeof O.assignedNodes=="function"){var H=O.assignedNodes();H.length&&H.forEach(function(W){return D.appendChildNode(C,W,_)})}else this.appendChildNode(C,O,_)},b.prototype.cloneNode=function(v,C){if(CS(v))return document.createTextNode(v.data);if(!v.ownerDocument)return v.cloneNode(!1);var _=v.ownerDocument.defaultView;if(_&&td(v)&&(Pb(v)||Fm(v))){var D=this.createElementClone(v);D.style.transitionProperty="none";var O=_.getComputedStyle(v),H=_.getComputedStyle(v,":before"),W=_.getComputedStyle(v,":after");this.referenceElement===v&&Pb(D)&&(this.clonedReferenceElement=D),Db(D)&&$R(D);var j=this.counters.parse(new qB(this.context,O)),ae=this.resolvePseudoContent(v,D,H,jA.BEFORE);DS(v)&&(C=!0),SS(v)||this.cloneChildNodes(v,D,C),ae&&D.insertBefore(ae,D.firstChild);var ne=this.resolvePseudoContent(v,D,W,jA.AFTER);return ne&&D.appendChild(ne),this.counters.pop(j),(O&&(this.options.copyStyles||Fm(v))&&!FS(v)||C)&&kb(O,D),(v.scrollTop!==0||v.scrollLeft!==0)&&this.scrolledElements.push([D,v.scrollLeft,v.scrollTop]),(Tm(v)||Pm(v))&&(Tm(D)||Pm(D))&&(D.value=v.value),D}return v.cloneNode(!1)},b.prototype.resolvePseudoContent=function(v,C,_,D){var O=this;if(_){var H=_.content,W=C.ownerDocument;if(!(!W||!H||H==="none"||H==="-moz-alt-content"||_.display==="none")){this.counters.parse(new qB(this.context,_));var j=new mM(this.context,_),ae=W.createElement("html2canvaspseudoelement");kb(_,ae),j.content.forEach(function(Ae){if(Ae.type===0)ae.appendChild(W.createTextNode(Ae.value));else if(Ae.type===22){var _e=W.createElement("img");_e.src=Ae.value,_e.style.opacity="1",ae.appendChild(_e)}else if(Ae.type===18){if(Ae.name==="attr"){var lt=Ae.values.filter(ur);lt.length&&ae.appendChild(W.createTextNode(v.getAttribute(lt[0].value)||""))}else if(Ae.name==="counter"){var Ue=Ae.values.filter(Jc),Ze=Ue[0],ii=Ue[1];if(Ze&&ur(Ze)){var bt=O.counters.getCounterValue(Ze.value),gt=ii&&ur(ii)?pb.parse(O.context,ii.value):3;ae.appendChild(W.createTextNode(HA(bt,gt,!1)))}}else if(Ae.name==="counters"){var Wi=Ae.values.filter(Jc),Ze=Wi[0],ni=Wi[1],ii=Wi[2];if(Ze&&ur(Ze)){var Mt=O.counters.getCounterValues(Ze.value),rt=ii&&ur(ii)?pb.parse(O.context,ii.value):3,Ii=ni&&ni.type===0?ni.value:"",ki=Mt.map(function(Oa){return HA(Oa,rt,!1)}).join(Ii);ae.appendChild(W.createTextNode(ki))}}}else if(Ae.type===20)switch(Ae.value){case"open-quote":ae.appendChild(W.createTextNode(ZB(j.quotes,O.quoteDepth++,!0)));break;case"close-quote":ae.appendChild(W.createTextNode(ZB(j.quotes,--O.quoteDepth,!1)));break;default:ae.appendChild(W.createTextNode(Ae.value))}}),ae.className=$b+" "+Ob;var ne=D===jA.BEFORE?" "+$b:" "+Ob;return Fm(C)?C.className.baseValue+=ne:C.className+=ne,ae}}},b.destroy=function(v){return v.parentNode?(v.parentNode.removeChild(v),!0):!1},b})(),jA;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(jA||(jA={}));var wR=function(b,v){var C=b.createElement("iframe");return C.className="html2canvas-container",C.style.visibility="hidden",C.style.position="fixed",C.style.left="-10000px",C.style.top="0px",C.style.border="0",C.width=v.width.toString(),C.height=v.height.toString(),C.scrolling="no",C.setAttribute(MS,"true"),b.body.appendChild(C),C},BR=function(b){return new Promise(function(v){if(b.complete){v();return}if(!b.src){v();return}b.onload=v,b.onerror=v})},SR=function(b){return Promise.all([].slice.call(b.images,0).map(BR))},FR=function(b){return new Promise(function(v,C){var _=b.contentWindow;if(!_)return C("No window assigned for iframe");var D=_.document;_.onload=b.onload=function(){_.onload=b.onload=null;var O=setInterval(function(){D.body.childNodes.length>0&&D.readyState==="complete"&&(clearInterval(O),v(b))},50)}})},TR=["all","d","content"],kb=function(b,v){for(var C=b.length-1;C>=0;C--){var _=b.item(C);TR.indexOf(_)===-1&&v.style.setProperty(_,b.getPropertyValue(_))}return v},PR=function(b){var v="";return b&&(v+="<!DOCTYPE ",b.name&&(v+=b.name),b.internalSubset&&(v+=b.internalSubset),b.publicId&&(v+='"'+b.publicId+'"'),b.systemId&&(v+='"'+b.systemId+'"'),v+=">"),v},DR=function(b,v,C){b&&b.defaultView&&(v!==b.defaultView.pageXOffset||C!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(v,C)},LR=function(b){var v=b[0],C=b[1],_=b[2];v.scrollLeft=C,v.scrollTop=_},IR=":before",kR=":after",$b="___html2canvas___pseudoelement_before",Ob="___html2canvas___pseudoelement_after",US=`{
|
|
3
3
|
content: "" !important;
|
|
4
4
|
display: none !important;
|
|
5
5
|
}`,$R=function(b){OR(b,"."+$b+IR+US+`
|
|
@@ -43,16 +43,16 @@ import{a as sn}from"./3VMHKSYP.js";import{b as Xx}from"./P4HSSZRL.js";import o f
|
|
|
43
43
|
</table>`,i})}getHTMLRow(t,e,i,r=!1,s=!1){let n=" <tr>";e.rowClass&&(n=' <tr class="'+e.rowClass+'">'),i||(i=t);let o=this.get("dataFieldsOrder",[]),l=s?"th":"td",h=!0;return Wl(i,(c,u)=>{let d=this.convertEmptyValue(c,t[c],e),A=r?d:this.convertToSpecialFormat(c,d,e);A=""+A,A=A.replace(/[\u00A0-\u9999<>\&]/gim,function(f){return"&#"+f.charCodeAt(0)+";"});let p=l;e.pivot&&h&&(p="th"),e.cellClass?n+=`
|
|
44
44
|
<`+p+' class="'+e.cellClass+'">'+A+"</"+p+">":n+=`
|
|
45
45
|
<`+p+">"+A+"</"+p+">",h=!1},(c,u)=>{let d=o.indexOf(c),A=o.indexOf(u);return d>A?1:d<A?-1:0}),n+=`
|
|
46
|
-
</tr>`,n}exportXLSX(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("xlsx")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getXLSX(t))})}getXLSX(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("xlsx",t),i=yield this.getXLSXLib(),r={bookType:"xlsx",bookSST:!1,type:"base64"},s=this._normalizeExcelSheetName(this.get("title",this._t("Data"))),n={SheetNames:[s],Sheets:{}},o=[],l=this.getData("html",e),h=this.getDataFields(l);if(e.pivot){let c=this.get("dataFieldsOrder",[]);Wl(h,(u,d)=>{let A=[];e.addColumnNames&&A.push(d);for(let p=l.length,f=0;f<p;f++){let m=l[f][u];A.push(this.convertToSpecialFormat(u,m,e,!0))}o.push(this.getXLSXRow(A,e,void 0,!0))},(u,d)=>{let A=c.indexOf(u),p=c.indexOf(d);return A>p?1:A<p?-1:0})}else{e.addColumnNames&&o.push(this.getXLSXRow(h,e,void 0,!0));for(let c=l.length,u=0;u<c;u++)o.push(this.getXLSXRow(l[u],e,h))}return n.Sheets[s]=i.utils.aoa_to_sheet(o),this.events.dispatch("workbookready",{type:"workbookready",format:"xlsx",options:e,workbook:n,workbookOptions:r,xlsx:i,target:this}),i.write(n,r)})}_normalizeExcelSheetName(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),t.length>30?t.substr(0,30)+"...":t}getXLSXRow(t,e,i,r=!1){let s=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Wl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e,!0);e.escapeFormulas!==!1&&(c=this.escapeFormulas(c)),s.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),s}_xlsx(){return Xe(this,void 0,void 0,function*(){return yield import("./E4535ZTP.js")})}getXLSXLib(){return this._xlsx()}exportPDF(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!0))})}exportPDFData(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!1,!0))})}getPDF(t,e=!0,i=!1){return Xe(this,void 0,void 0,function*(){let r=this._getFormatOptions("pdf",t),s=this._getFormatOptions("pdfdata",t),n=r.pageOrientation||"portrait",o,l={width:0,height:0};if(e){let g=r.imageFormat||"png",y=this._getFormatOptions(g,r),x=yield this.getCanvas(y);l.width=x.clientWidth,l.height=x.clientHeight,o=x.toDataURL(this.getContentType(g),r.quality||1),this.disposeCanvas(x)}let h=yield this.getPdfmake(),c=[30,30,30,30],u={pageSize:r.pageSize||"A4",pageOrientation:n,pageMargins:r.pageMargins||c,defaultStyle:{font:r.font?r.font.name:void 0},content:[]},d=this.get("title"),A=0;if(d&&(u.content.push({text:d,fontSize:r.fontSize||14,bold:!0,margin:[0,0,0,15]}),A+=50),r.addURL&&(u.content.push({text:this._t("Saved from")+": "+document.location.href,fontSize:r.fontSize,margin:[0,0,0,15]}),A+=50),e&&o){let g=this.getPageSizeFit(u.pageSize,u.pageMargins,A,n);l.width>g[0]||l.height>g[1]?u.content.push({image:o,alignment:r.align||"left",fit:g}):u.content.push({image:o,alignment:r.align||"left"})}(i||r.includeData)&&this.hasData()&&u.content.push({table:yield this.getPDFData(s),fontSize:r.fontSize||14});let p=null,f=null;function m(g){let y={};y.normal=g.normal.path,f[g.normal.path]=g.normal.bytes,g.bold?(y.bold=g.bold.path,f[g.bold.path]=g.bold.bytes):y.bold=g.normal.path,g.italics?(y.italics=g.italics.path,f[g.italics.path]=g.italics.bytes):y.italics=g.normal.path,g.bolditalics?(y.bolditalics=g.bolditalics.path,f[g.bolditalics.path]=g.bolditalics.bytes):y.bolditalics=g.normal.path,p[g.name]=y}return r.font&&(p={},f={},m(r.font),r.extraFonts&&J(r.extraFonts,m),h.addFonts(p),h.addVirtualFileSystem(f)),this.events.dispatch("pdfdocready",{type:"pdfdocready",format:"pdf",options:r,doc:u,target:this}),yield h.createPdf(u,{}).getBase64()})}getPDFData(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("pdfdata",t),i={body:[]},r=this.getData("html",e),s=this.getDataFields(r);if(e.pivot){let n=this.get("dataFieldsOrder",[]);Wl(s,(o,l)=>{let h=[];e.addColumnNames&&h.push(l);for(let c=r.length,u=0;u<c;u++){let d=r[u][o];h.push(this.convertToSpecialFormat(o,d,e,!0))}i.body.push(this.getPDFDataRow(h,e,void 0,!0))},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0})}else{e.addColumnNames&&(i.body.push(this.getPDFDataRow(s,e,void 0,!0)),i.headerRows=1);for(let n=r.length,o=0;o<n;o++)i.body.push(this.getPDFDataRow(r[o],e,s))}return i})}getPDFDataRow(t,e,i,r=!1){let s=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Wl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e);c=""+c,s.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),s}getPdfmake(){return XC===void 0&&(XC=CN()),XC}getPageSizeFit(t,e,i=0,r="portrait"){let s=[0,0,0,0];ie(e)?s=[e,e,e,e]:e.length==2?s=[e[0],e[1],e[0],e[1]]:e.length==4&&(s=e);let o={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r=="landscape"&&o.reverse(),o[0]-=s[0]+s[2],o[1]-=s[1]+s[3]+i,o}hasData(){let t=this.get("dataSource");return!!(Py(t)&&t.length)}getData(t,e,i=!1){let r=this._getFormatOptions(t,e),s=this.get("dataSource",[]),n=s,o=this.get("dataFields");o&&Py(s)&&(n=[],J(s,h=>{if(Nn(h)){let c={};Lt(o,(u,d)=>{o[u]!=null&&(c[i?d:u]=this.convertToSpecialFormat(u,h[u],r))}),n.push(c)}}));let l={type:"dataprocessed",format:t,options:r,data:n,target:this};return this.events.dispatch("dataprocessed",l),l.data}getDataFields(t){let e=this.get("dataFields");return e||(e={},Py(t)&&t.length&&J(t,i=>{Lt(i,(r,s)=>{e[r]==null&&(e[r]=r)})})),e}convertEmptyValue(t,e,i){return e??i.emptyAs}convertToSpecialFormat(t,e,i,r){if(typeof e=="number")if(this.isDateField(t))e=new Date(e);else{if(this.isNumericField(t)&&this.get("numberFormat"))return this._root.numberFormatter.format(e,this.get("numberFormat"));if(this.isDurationField(t))return this._root.durationFormatter.format(e,this.get("durationFormat"),this.get("durationUnit"))}return e instanceof Date&&(i.useTimestamps?e=e.getTime():i.useLocale?r||(e=e.toLocaleString()):e=this._root.dateFormatter.format(e,this.get("dateFormat"))),e}escapeFormulas(t){return typeof t=="string"&&t.length>0&&wN.indexOf(t.charAt(0))!==-1?"'"+t:t}isDateField(t){return this.get("dateFields").indexOf(t)!==-1}isNumericField(t){return this.get("numericFields").indexOf(t)!==-1}isDurationField(t){return this.get("durationFields").indexOf(t)!==-1}getContentType(t){let e="";switch(t){case"png":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;default:e="application/octet-stream"}return e}getDisposableCanvas(){let t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",this._root.dom.appendChild(t),t}disposeCanvas(t){this._root.dom.removeChild(t)}findBackgroundColor(t){let e=1,i=getComputedStyle(t,"background-color").getPropertyValue("background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||i=="transparent")&&(e=0),e==0){let r=t.parentElement;return r?this.findBackgroundColor(r):ot.fromHex(16777215)}else return ot.fromCSS(i)}streamFile(t,e,i=!1){if(this.blobDownloadSupport()){let r=document.createElement("a");r.download=e,document.body.appendChild(r);let s=t.split(";"),n=s.shift().replace(/data:/,"");if(t=decodeURIComponent(s.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(n)==-1)try{t=atob(t)}catch{return!1}else{i&&(t="\uFEFF"+t);let c=new Blob([t],{type:n}),u=window.URL.createObjectURL(c);return r.href=u,r.download=e,r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(u)},100),!0}let o=new Array(t.length);for(let c=0;c<t.length;++c){let u=t.charCodeAt(c);o[c]=u}i&&(o=[239,187,191].concat(o));let l=new Blob([new Uint8Array(o)],{type:n}),h=window.URL.createObjectURL(l);r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}else if(this.linkDownloadSupport()){let r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else window.location.href=t;return!0}downloadSupport(){return this.linkDownloadSupport()}linkDownloadSupport(){return typeof document.createElement("a").download<"u"}blobDownloadSupport(){return window.Blob!=null}initiatePrint(t,e,i){let r=this._getFormatOptions("print",e);r.printMethod=="css"?this._printViaCSS(t,r,i):this._printViaIframe(t,r,i)}_printViaCSS(t,e,i){let s=this._getFormatOptions("print",e).delay||500,n=document.documentElement.scrollTop||document.body.scrollTop,o=new pf(k_(this._root.dom),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"},this._root.nonce),l=new pf(k_(this._root.dom),"body",{padding:"0",margin:"0"},this._root.nonce),h;i&&document&&document.title&&(h=document.title,document.title=i);let c=new Image;c.src=t,c.style.maxWidth="100%",c.style.display="block",c.style.position="relative",c.style.visibility="visible",c.style.opacity="1",c.style.clipPath="none",document.body.appendChild(c),this.setTimeout(()=>{window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&s<1e3?s=1e3:s<100&&(s=100),this.setTimeout(()=>{document.body.removeChild(c),o.dispose(),l.dispose(),h&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},s||500)}_printViaIframe(t,e,i){let s=this._getFormatOptions("print",e).delay||500,n=document.createElement("iframe");n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close();let o=new Image;o.src=t,o.style.maxWidth="100%",o.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout(()=>{try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},s||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&s<1e3?s=1e3:s<100&&(s=100),this.setTimeout(()=>{document.body.removeChild(n)},s+50||100)}supportedFormats(){let t=[],e=this.hasData(),i=this.downloadSupport();return J(["png","jpg","canvas","pdf","xlsx","csv","json","html","pdfdata","print"],r=>{this._getFormatOptions(r).disabled!==!0&&(["xlsx","csv","json","html","pdfdata"].indexOf(r)==-1||e&&i)&&t.push(r)}),t}supportedExportTypes(){let t=["image","print"];return this.downloadSupport()&&this.hasData()&&t.push("data"),t}};hu.className="Exporting";hu.classNames=pi.classNames.concat([hu.className]);var xv=new Map;function Kn(a){a!==void 0&&xv.delete(a)}function Hc(a,t){let e=xv.get(a)??{};xv.set(a,{...e,...t})}function jc(a,t){return xv.get(a)?.[t]}function FN(a,t){return jc(a,t)}function TN(a,t){Hc(a,t)}function PN(a,t){return jc(a,t)}function DN(a,t){Hc(a,t)}function ve(a,t){return jc(a,t)}function ai(a,t){Hc(a,t)}function sa(a,t){return jc(a,t)}function Jn(a,t){Hc(a,t)}function Ns(a,t){return jc(a,t)}function Ds(a,t){Hc(a,t)}function LN(a,t){return jc(a,t)}function IN(a,t){Hc(a,t)}function ms(a,t){return jc(a,t)}function fu(a,t){Hc(a,t)}function Ui(a,t){t===!1&&!a.isHiding?(a.visible=!1,a.hide()):a.isShowing||(a.visible=!0,a.show())}function kN(a,t){for(let e=0;e<t.length;e+=1){let i=t[e][0],r=t[e][1],s=a.length;i>=0&&i<s&&r>=0&&r<s&&a.swap(t[e][0],t[e][1])}}function RI(a,t){let e;if(a!==void 0&&"rgb"in a&&a.rgb!==void 0){let i=a.rgb;if(i!==void 0){let{r,g:s,b:n}=i;e=[r,s,n,255]}}return e}function Nc(a){let t=a??[0,0,0,255];return new xt({a:t[3]/255,b:t[2],g:t[1],r:t[0]})}function zr(a){return a.bullets.values.find(t=>LN(t.uid,"isBulletMarker"))}function wn(a){return a!=null&&!a.isDisposed()}function Ef(a){return(a.isShowing||a.visible)&&!a.isHidden&&!a.isHiding&&!a.disabled&&!a.__disabled}function UI(a,t){return a.pixelX<0||a.pixelX>t?.plotContainer?.measuredWidth||a.pixelY<0||a.pixelY>t?.plotContainer?.measuredHeight}function $N(a){let t;return a.baseSprite instanceof Vt||a.baseSprite instanceof qi?t=a.baseSprite:(a instanceof Eh||a instanceof Kd)&&(t=a.axis.chart),t}function ON(a){return RI(a.background.fill)}var re={...pt};function EN(a){let{fill:t,rotation:e,isLinePattern:i,chartBackgroundColor:r}=a,s;return i!==!1?(s=new vc,s.width=re.patternLineProperties.width??Number.NaN,s.height=re.patternLineProperties.height??Number.NaN,s.strokeWidth=re.patternLineProperties.strokeWidth??Number.NaN,s.stroke=t,s.rotation=e??Number.NaN):(s=new bc,s.rectWidth=re.patternRectProperties.rectWidth??Number.NaN,s.rectHeight=re.patternRectProperties.rectHeight??Number.NaN,s.width=re.patternRectProperties.width??Number.NaN,s.height=re.patternRectProperties.height??Number.NaN,s.fillOpacity=re.patternRectProperties.fillOpacity??Number.NaN,s.strokeWidth=re.patternRectProperties.strokeWidth??Number.NaN,s.fill=Nc(r),s.stroke=t,s.rotation=e??Number.NaN),s}function HL(a){let t=Number.NaN;if(typeof a=="number")t=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(t=he(e))}return t}function MN(a){let{fill:t,style:e,chartBackgroundColor:i}=a,r,s,n=!0;switch(e){case vs.Horizontal:{s=0;break}case vs.Vertical:{s=90;break}case vs.ForwardDiagonal:{s=45;break}case vs.BackwardDiagonal:{s=135;break}case vs.Cross:{s=0,n=!1;break}case vs.DiagonalCross:{s=135,n=!1;break}case vs.Solid:}return s!==void 0&&(r=EN({fill:t,rotation:s,isLinePattern:n,chartBackgroundColor:i})),r}function bn(a,t){let e;t!==void 0&&(e=Nc(t));let i=e??new xt({r:0,g:0,b:0,a:0});if(a!=null){let[r,s,n,o]=a;i=new xt({r,g:s,b:n,a:o/255})}return i}function VI(a,t=0){return(a??t)%360}function RN(a,t){return t!==!0||a?.includes("Dot")===!0?"round":"square"}function NI(a,t){let e="none";switch(a??t){case"justify":case"center":e="center";break;case"left":e="left";break;case"right":e="right";break}return e}function bw(a,t){let e="middle";switch(a??t){case"right":e="left";break;case"left":e="right";break}return e}function UN(a,t){let e="none";switch(a??t){case"baseline":case"middle":e="middle";break;case"top":e="top";break;case"bottom":e="bottom";break}return e}function QI(a,t){let e="middle";switch(a??t){case"top":e="bottom";break;case"bottom":e="top";break;default:e="middle";break}return e}function VN(a,t){let e=a??hs.Solid,i=t??re.lineWidth,r={[hs.Solid]:"none",[hs.Dot]:[1,i],[hs.DashDotDot]:[4*i,i,1,i,1,i],[hs.Dash]:[4*i,3*i],[hs.DashDot]:[4*i,3*i,1,3*i],[hs.Null]:"none"};return(r[e]??r[hs.Null]).toString()}function HI(a,t){let e={stroke:bn(),strokeWidth:re.lineWidth,strokeDasharray:"",strokeLinecap:t!==!0?"round":"square",strokeOpacity:hd};return a!=null&&(e.stroke=bn(a.color),e.strokeOpacity=1,a.width!==void 0&&(e.strokeWidth=a.width),a.style!==void 0&&a.style!==hs.Null&&(e.strokeDasharray=VN(a.style,e.strokeWidth),e.strokeLinecap=RN(a.style,t))),e}function jI(a,t){let e=a,[i,r,s,n]=a?.color??t??re.color,o=[i,r,s,n];return e==null?e={type:Rt.SLS,color:o}:e.color===void 0&&(e.color=o),HI(e,!1)}function NN(a,t){let{color:e,outline:i,style:r}=a,s=bn(e);return{pattern:MN({fill:s,style:r,chartBackgroundColor:t}),fill:s,outline:jI(i,e)}}function QN(a){let{color:t,outline:e,xoffset:i,yoffset:r,style:s,size:n,angle:o}=a,l=s!==void 0?nx(s,n):"",h=VI(o);return{path:l,fill:bn(t),outline:jI(e,t),xOffset:i??0,yOffset:r??0,angle:h}}function xw(a){let{symbol:t,defaultToColorFromRamp:e,colorRampIndex:i,isChartFillSymbol:r=!1,chartBackgroundColor:s}=a,n;if(e===!0){let o=r?Qm:hd;if(t.color=t.color??gh({colorIndex:i,opacity:o}),fd(t)||np(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??gh({colorIndex:i}),t.outline={...l})}}return Px(t)?n=HI(t,!0):np(t)?(t.style??=re.lineSeries.marker.markerStyle,t.size??=re.lineSeries.marker.markerBigSize,n=QN(t)):fd(t)&&(n=NN(t,s)),n}function _v(a,t,e){let i=bw(a.horizontalAlignment,e?.horizontalCenter),r=NI(a.horizontalAlignment,e?.align),s=QI(a.verticalAlignment,e?.verticalCenter),n=UN(a.verticalAlignment,e?.valign);return{fill:bn(a.color,re.color),fontFamily:a.font?.family??"Arial, Helvetica, sans-serif",fontSize:a.font?.size??re.generalFontSize,fontWeight:a.font?.weight??"400",textDecoration:a.font?.decoration??"none",align:r,valign:n,verticalCenter:s,horizontalCenter:i,text:xa({textSymbol:a,format:"amChartsV4"}),angle:VI(a.angle,e?.rotation),xOffset:a.xoffset??e?.dx??0,yOffset:a.yoffset??e?.dy??0,backgroundFill:bn(a.backgroundColor),borderFill:bn(a.borderLineColor),borderWidth:a.borderLineSize??1,haloSize:a.haloSize??-1,haloColor:bn(a.haloColor),rtl:a.rightToLeft??t,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function WI(a,t,e){e!==void 0&&a.tooltip!==void 0&&(a.tooltip.getFillFromObject=!1,a.tooltip.background.fill=t),a.fill=e??t,a.fillOpacity=Ne(a.fill.toString()).alpha===0?0:1}function fA(a,t){a.stroke=t.stroke,a.strokeOpacity=t.stroke.alpha===0?0:1,a.strokeDasharray=t.strokeDasharray,a.strokeLinecap=t.strokeLinecap,a.strokeWidth=t.strokeWidth}function Cv(a){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(t.path=n.path,t.rotation=n.angle,t.dx=n.xOffset,t.dy=n.yOffset,WI(t,n.fill),fA(t,n.outline)),Ui(t,i),t.disabled=i===!1):t.disabled=!0,n}function Vc(a){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&fA(t,n),Ui(t,i)):Ui(t,!1),n}function Mf(a){let{element:t,fillSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n}=a,o,l;if(e!==void 0){if(e.style===vs.Cross||e.style===vs.DiagonalCross){let h=$N(t);h!==void 0&&(l=ON(h))}o=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n,chartBackgroundColor:l}),o!==void 0&&(WI(t,o.fill,o.pattern),fA(t,o.outline)),t.disabled=i===!1}else t.disabled=!0;return o}function du(a){let{element:t,seriesIndex:e,colorMatch:i,seriesSymbol:r,isChartFillSymbol:s,rendererSymbol:n,seriesConfig:o}=a,l,h;i===!0&&n&&(l=gx({rendererSymbol:n,seriesSymbol:r,colorIndex:e}));let c={element:t,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},u=l??{...r};switch(r.type){case Rt.SLS:h=Vc({...c,lineSymbol:u});break;case Rt.SFS:h=Mf({...c,fillSymbol:u,isChartFillSymbol:s});break;case Rt.SMS:h=Cv({...c,markerSymbol:u});break}return{symbolWithColorInfo:u,stylingInfo:h}}function jL(a,t){if(t!==void 0){let e=a.properties,{elementColor:i,elementOutlineColor:r,elementOutlineWidth:s,rotation:n,transformation:o}=t,{opacity:l,scale:h}=o??{};i!==void 0&&(e.fill=Nc(i),e.fillOpacity=Ne(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=Nc(r)),s!==void 0&&(e.strokeWidth=s),n!==void 0&&(e.rotation=n),h!==void 0&&(e.scale=h),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}function HN(a,t,e){let i=new Set(Array.from(t)),r=a.findIndex(s=>!i.has(JC(s)));return r!==-1?r:e}function JC(a){return`${a[0]},${a[1]},${a[2]}`}function jN(a){let{chartConfig:t,queryObject:e,popupTemplateFieldInfosEnabled:i,labelUpdateNeeded:r,utilsStrings:s}=a,{series:n}=t,o=n[0],{x:l}=o,h=!wF({chartConfig:t}),c=kt([o]),u=c===ke.PieFromFields,d=$s(e),A=xh(d).idField,p=_a(e,i);return{x:l,isNonAggregatedChart:h,objectIdField:A,isPieFromFields:u,seriesConfig:o,fieldList:p,labelUpdateNeeded:r,chartSubType:c,colorMatch:Fl(t),utilsStrings:s}}function WN(a){let{dataContext:t,seriesConfig:e,existingSlicesColors:i,isGroupOfSlices:r,sliceFromConfig:s,dataIndex:n,colorMatch:o,chartSubType:l}=a,h=r?{...pt.pieChart.sliceGrouping.fillSymbol,...e.sliceGrouping?.fillSymbol}:_r(s?.fillSymbol??e.fillSymbol),c=on({dataItem:t,seriesConfig:e,chartSubType:l,colorMatch:o}),u=n;h?.color||(u=HN(hF,i,n));let d={dataItem:{dataContext:t}},{symbolWithColorInfo:A}=du({element:d,seriesConfig:e,y:e.y,seriesSymbol:h??Gm(),seriesIndex:u,rendererSymbol:c,colorMatch:o,isChartFillSymbol:!0});return A}function WL(a,t){let{x:e,isNonAggregatedChart:i,objectIdField:r,isPieFromFields:s,seriesConfig:n,fieldList:o,labelUpdateNeeded:l,colorMatch:h,chartSubType:c,utilsStrings:u}=a,d=[],A,p,f=new Set;return t?.forEach((m,g)=>{let y=YN({dataContext:m,x:e,isNonAggregatedChart:i,dataIndex:g,objectIdField:r,isPieFromFields:s});m[pt.pieChart.technicalFieldSliceId]=y;let x=ew(n.slices,y);x?.fillSymbol?.color!==void 0&&f.add(JC(x.fillSymbol.color))}),t?.forEach((m,g)=>{let y=m[pt.pieChart.technicalFieldSliceId],x=ew(n.slices,y),w=ih(m),S=WN({dataContext:m,seriesConfig:n,existingSlicesColors:f,isGroupOfSlices:w,sliceFromConfig:x,dataIndex:g,colorMatch:h,chartSubType:c});S.color&&f.add(JC(S.color));let T=KN({dataContext:m,sliceFromConfig:x,isGroupOfSlices:w,seriesConfig:n,fieldList:o,isPieFromFields:s,labelUpdateNeeded:l,colorMatch:h,utilsStrings:u}),F={sliceId:y,label:T,fillSymbol:S};F.originalLabel=x?.originalLabel??(m?.[pt.originalCategoryValue]!==void 0?m?.[pt.originalCategoryValue]:F.label),w?(p=m[pt.pieChart.technicalFieldGroupedSlices],n.sliceGrouping!==void 0&&(A={sliceId:n.sliceGrouping.sliceId,percentageThreshold:n.sliceGrouping.percentageThreshold,label:T,originalLabel:n.sliceGrouping.originalLabel??T,fillSymbol:S})):d.push(F)}),{slices:d,groupOfSlicesSymbols:A,groupOfSlices:p}}function XI(a){let{creation:t,dataInfo:e,pieChartDataActuallyChanged:i,chartConfig:r,previousConfig:s,queryObject:n,popupTemplateFieldInfosEnabled:o,utilsStrings:l}=a,h;if(r.series[0].type===V.PieSeries){let c=Ln(e.data),u=cx({oldConfig:s,newConfig:r}),d=ux(s,r),A=eg(s,r),p=jN({chartConfig:r,queryObject:n,popupTemplateFieldInfosEnabled:o,labelUpdateNeeded:t||i||u||A||d,utilsStrings:l}),{slices:f,groupOfSlicesSymbols:m,groupOfSlices:g}=WL(p,c),{slices:y}=WL(p,g??[]);h={slices:f,groupedSlices:y,groupOfSlices:m}}return h}async function XN(a){let{creation:t,dataInfo:e,dataInfo:{data:i},pieChartDataActuallyChanged:r,chartConfig:s,previousConfig:n,pieSlicesSymbols:o,queryObject:l,options:h,utilsStrings:c}=a,{slices:u}=o??{},{chartWillRender:d}=h??{},A=ze(s.series),p=!1,f=s,m=_r(o),g,y;if(d&&(A===V.PieSeries||A===V.GaugeSeries)){p=!0,f=_r(s);let x=Ag({data:i,seriesConfig:s.series});f=await d({chartConfig:f,data:x,slices:u}),!bs(l)&&A===V.PieSeries&&i&&"dataItems"in i&&({colorMatchApplied:g,rendererFieldNames:y}=await Bx({data:i.dataItems,queryObject:l,chartConfig:f,allowColorMatch:mx({chartConfig:f,queryObject:l})}),m=XI({creation:t,dataInfo:e,chartConfig:f,previousConfig:n,queryObject:l,pieChartDataActuallyChanged:r,popupTemplateFieldInfosEnabled:h?.popupTemplateFieldInfosEnabled,utilsStrings:c}))}return{changesApplied:p,alteredConfig:f,alteredPieSlicesSymbols:m,colorMatchApplied:g,rendererFieldNames:y}}function ih(a){return a?.[an.defaultGroupOfSlicesId]===!0}function zN(a){let{dataContext:t,dataIndex:e,objectIdField:i}=a;return`${an.sliceIdPrefix}-${t[i??""]?.toString()??e}`}function GN(a){let{chartConfig:t,chartData:e,fieldList:i}=a,r=kt(t.series)===ke.PieFromFields;if(t.orderOptions?.data!==void 0||r){ug({arrayToSort:e,chartConfig:t,fieldList:i});let{slices:s}=t.series[0];s!==void 0&&s.sort((n,o)=>{let l=e.findIndex(c=>c[pt.pieChart.technicalFieldSliceId]===n.sliceId),h=e.findIndex(c=>c[pt.pieChart.technicalFieldSliceId]===o.sliceId);return l-h})}}function ew(a,t){let e;return a!==void 0&&t!==void 0&&(e=a.find(i=>i.sliceId===t)),e}function YN(a){let{dataContext:t,isNonAggregatedChart:e,x:i,dataIndex:r,objectIdField:s,isPieFromFields:n}=a,o="";return n===!0?o=t[pt.originalCategoryValue]??t[ao]:e?o=zN({dataContext:t,dataIndex:r,objectIdField:s}):(o=t[pt.originalCategoryValue],o===void 0||o===""?o=an.emptySliceId:o===null&&(o=an.nullSliceId),o=o??t[i]),o===void 0&&(o=an.undefinedSliceId),o.toString()}function KN(a){let{dataContext:t,sliceFromConfig:e,isGroupOfSlices:i,seriesConfig:r,fieldList:s,isPieFromFields:n,labelUpdateNeeded:o,colorMatch:l,utilsStrings:h}=a,{sliceGrouping:c}=r,{x:u}=r;n&&(u=ao);let d=t[u]??t[pt.originalCategoryValue],A=t[pt.originalCategoryValue]??d,p=d;return o&&(i?p=c?.label??c?.originalLabel?.toString()??h.pieChart.defaultSliceGroupingLabel:l&&t[pt.rendererSymbolField]?.label!==void 0?p=t[pt.rendererSymbolField].label:e!==void 0||s!==void 0?(e?.label&&e.label!==e?.sliceId&&(p=e?.label),p===A&&A!==void 0&&A!==null&&(p=Or(s,A))):e===void 0&&(p=A),p===pt.nullValue?p="null":p!=null&&(p=p.toString())),p}function _w(a,t){return a?.[0]?.sliceGrouping?.percentageThreshold!==t?.[0]?.sliceGrouping?.percentageThreshold}function Qf(a){let{groupOfSlicesDataContext:t,chartData:e}=a;return(t??e?.find(i=>i[an.defaultGroupOfSlicesId]===!0))?.[pt.pieChart.technicalFieldGroupedSlices]}function Cw(a){let{dataContext:t,pieSlicesSymbols:e,seriesConfig:i}=a,r=i.fillSymbol?{...i.fillSymbol}:Gm();if(ih(t))r={...pt.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let s=t[pt.pieChart.technicalFieldSliceId],n=e?.slices?.find(o=>o.sliceId===s);r=_r(n?.fillSymbol??i.fillSymbol??Gm())}return r}function ZN(a){let{data:t,seriesConfig:e,utilsStrings:i}=a,r=e[0],s=t?.reduce((d,A)=>{let p=A[Ru]??A[r.y];return Number.isFinite(p)||(p=0),p+d},0),n=r?.sliceGrouping?.percentageThreshold??0,o=[],l,h=0,c=t?.find(d=>d[an.defaultGroupOfSlicesId]===!0)?.[pt.pieChart.technicalFieldGroupedSlices]??[],u=[...t,...c].filter(d=>{let A=!0,p=d[Ru]??d[r.y];if(Number.isFinite(p)){let f=p/s*100;d[pt.pieChart.technicalFieldSlicePercent]=f,f<=n&&d[an.defaultGroupOfSlicesId]!==!0&&(h+=p,o.push(d),A=!1)}else d[an.defaultGroupOfSlicesId]!==!0&&(o.push(d),A=n===0||n===void 0);return d[an.defaultGroupOfSlicesId]===!0&&(l=d,A=!1),A});if(n>0&&o.length>0){let d=h/s*100,A=kt(e)===ke.PieFromFields,p={...l,[an.defaultGroupOfSlicesId]:!0,[A?ao:r.x]:r.sliceGrouping?.label??i?.pieChart.defaultSliceGroupingLabel,[A?Ru:r.y]:h,[pt.pieChart.technicalFieldSlicePercent]:d,[pt.pieChart.technicalFieldGroupedSlices]:o};u.push(p)}return u}function XL(a){let{creation:t,previousConfig:e,newConfig:i,dataInfo:r,dataUpdateNeeded:s,utilsStrings:n}=a,o=!1;if(r.data&&"dataItems"in r.data&&(t||e&&pg(e.series))&&i&&pg(i.series)){let l=t||e&&pg(e.series)&&_w(e.series,i.series);(s||l)&&(r.data.dataItems=ZN({data:r.data.dataItems,seriesConfig:i.series,utilsStrings:n}),ug({arrayToSort:r.data.dataItems,chartConfig:i}),o=!0)}return o}function qN(a,t){let e=a.reduce((i,r)=>{if(r[an.defaultGroupOfSlicesId]===!0){let s=r[pt.pieChart.technicalFieldGroupedSlices];s!==void 0&&s.forEach(n=>{i.push(n)})}else i.push(r);return i},[]);return ug({arrayToSort:e,chartConfig:t}),e=Ag({data:{dataItems:e},seriesConfig:t.series})?.dataItems??[],e}function zI(a,t){let e=a?.filter(i=>!ih(i));return!rn(e,t)}function JN(a){let{dataContext:t,newLabel:e,x:i}=a;e===void 0?t[pt.originalCategoryValue]!==void 0&&(t[i]=t[pt.originalCategoryValue]):t[i]!==e&&(t[pt.originalCategoryValue]===void 0&&(t[pt.originalCategoryValue]=t[i]),t[i]=e)}function eQ(a){let{data:t,newChartConfig:e,pieSlicesSymbols:i,fieldList:r}=a,s=e.series[0],n=kt(e.series)===ke.PieFromFields?ao:s.x;t.forEach(o=>{let l=ih(o),h=o[pt.pieChart.technicalFieldSliceId],c=l?s.sliceGrouping?.label:ew(i?.slices,h)?.label;JN({dataContext:o,x:n,newLabel:c})}),GN({chartConfig:e,chartData:t,fieldList:r})}var Hi={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},ji={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"};function fl(a){let{type:t,iLocale:e,formatLocale:i=Ad(document.documentElement)}=a,r;switch(t){case V.NumberAxisFormat:{r=new Rl,r.language.locale=e,r.intlLocales=i;break}case V.DateAxisFormat:{r=new un,r.language!==void 0&&(r.language.locale=e),r.intlLocales=i;break}}return r}function tw(a){let{axis:t,valueFormat:e,chartType:i}=a,r=Zm({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof Ct,n=ba(e)&&t instanceof Qe&&!(t instanceof Ct),o=r&&t instanceof Ot;return!s&&!n&&!o}function GI(a,t){let e=typeof t=="number"?`${t}`:t,i=Ns(a.uid,"numberFormatter");return i!==void 0&&(e=i(t)),zi(e)&&(e=re.htmlEmptyContent),Zr(e)}function tQ(a){a.renderer.labels.template.html=re.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>GI(a,e?.dataItem?.value??t),0)}function YI(a){let{axis:t,defaultOutput:e,dataItem:i}=a,r=e,s=Ns(t.uid,"categoryFormatter"),n=Ns(t.uid,"numberFormatter");if((n!==void 0||s!==void 0)&&i instanceof Jo){let o=ve(t.chart.uid,"config"),l=kt(o?.series),h=ve(t.chart.uid,"rendererFieldNames"),c=no({value:qA(l,o?.series?.[0]),dataContext:i.dataContext,useRendererLabel:Qu(o,h),config:o});if(typeof c=="number"&&n!==void 0)r=n(c);else if(s!==void 0){if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(l)&&typeof c=="string"){let d=ve(t.chart.uid,"fieldList");c=Or(d,c)}let u=oo(i.dataContext);u===void 0&&(u=c),r=s(c,u)}}return zi(r)&&(r=re.htmlEmptyContent),Zr(r)}function iQ(a){a.renderer.labels.template.html=re.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>YI({axis:a,defaultOutput:t,dataItem:e?.dataItem}),0)}function rQ(a){let{axis:t,defaultOutput:e,dataItem:i}=a,r=e,s=Ns(t.uid,"dateFormatter");return s!==void 0&&i instanceof Uh&&(r=s(i.value??e)),zi(r)&&(r=re.htmlEmptyContent),Zr(r)}function sQ(a){a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>rQ({axis:a,dataItem:e?.dataItem,defaultOutput:t}),0),a.renderer.labels.template.adapter.disableKey("htmlOutput")}function aQ(a){a.renderer.labels.template.adapter.add("htmlOutput",t=>{let e=t,i=Ns(a.uid,"fontStyleCallback");return i!==void 0&&(e=i(e)),Zr(e)},1)}function nQ(a){a instanceof Qe&&!(a instanceof Ct)?tQ(a):a instanceof Ot?iQ(a):a instanceof Ct&&sQ(a),aQ(a)}function oQ(a){let{axis:t,formatOptions:e,dateAxisFormatter:i,isTimeOnlyField:r,setTimeZone:s,outTimeZone:n}=a;if(Ds(t.uid,{dateFormatter:i}),i===void 0){t.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(t.renderer.labels.template.adapter.disableKey("htmlOutput"),t.renderer.labels.each(u=>{u.element instanceof kp&&u.element.removeChildren()}));let o={...$o(e)},l;if(r){let u={hour:"numeric",minute:"numeric"};l={year:u,month:u,day:u,hour:u,minute:u,second:{...u,second:"2-digit"}}}let h=["year","month","day","hour","minute","second"],c=o.timeZone??n;s&&t.timezone!==c&&(t.setPropertyValue("timezone",c),t.chart.validateData()),delete o.timeZone;for(let u=0;u<h.length;u+=1){let d=h[u],A=u===0?d:h[u-1],p=e?.formatPerDateTimeUnit?.[d]??l?.[d]??o,f=e?.formatPerDateTimeUnit?.[A];Iu(p)||(t.dateFormats.setKey(d,p),t.periodChangeDateFormats.setKey(d,f??p))}t.dateFormats.getKey("day")||t.dateFormats.setKey("day",re.dayDefaultFormat),t.periodChangeDateFormats.getKey("day")||t.periodChangeDateFormats.setKey("day",re.dayDefaultFormat),t.dateFormats.getKey("week")||t.dateFormats.setKey("week",t.dateFormats.getKey("day")??re.weekDefaultFormat),t.periodChangeDateFormats.getKey("week")||t.periodChangeDateFormats.setKey("week",t.periodChangeDateFormats.getKey("day")??re.weekDefaultFormat),t.invalidateLabels()}else t.renderer.labels.template.html=re.htmlEmptyContent,t.renderer.labels.template.adapter.enableKey("htmlOutput")}function lQ(a,t,e,i){let r=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:e});return r.numberFormat=a,s=>{let n=0;return s instanceof Date?s.toLocaleString(void 0,a):(n=typeof s!="string"?s??0:wx(s,r.intlLocales),i===!0&&a.style==="percent"&&(n/=100),r.format(n))}}function zL(a){let{axis:t,formatOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,s=$o(e),n=ve(t.chart.uid,"formatLocale");Ds(t.uid,{numberFormatter:r??lQ(s,t.chart.language.locale,n,i)})}function hQ(a){let{axis:t,formatOptions:e,categoryAxisFormatter:i}=a,r=i!==void 0?i:tg(e.characterLimit);Ds(t.uid,{categoryFormatter:r})}function uQ(a){let{axis:t,labelsTextSymbol:e,axisValueFormatter:i}=a,r=ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(Ds(t.uid,{axisLabelsBehavior:r}),i!==void 0)Ds(t.uid,{fontStyleCallback:void 0});else if(Ns(t.uid,"fontStyleCallback")===void 0){let s=n=>{let o=Ns(t.uid,"axisLabelsBehavior");return xa({textSymbol:e,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:t.renderer.labels.template.maxWidth}})};Ds(t.uid,{fontStyleCallback:s})}}function cQ(a){let{axis:t,isXAxis:e,formatOptions:i,labelsTextSymbol:r,overridePercentMultiplication:s,chartType:n,axisValueFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c,errorStrings:u}=a,d=Zm({isXAxis:e,chartType:n,valueFormat:i}),A=!1;!(t instanceof Ct)&&ba(i)?zL({axis:t,formatOptions:i,overridePercentMultiplication:s,valueAxisFormatter:o}):t instanceof Ct&&ro(i)?oQ({axis:t,formatOptions:i,dateAxisFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c}):t instanceof Ot?ud(i)||d?(hQ({axis:t,formatOptions:i,categoryAxisFormatter:o}),Ds(t.uid,{numberFormatter:void 0})):ba(i)?(zL({axis:t,formatOptions:i,overridePercentMultiplication:s,valueAxisFormatter:o}),Ds(t.uid,{categoryFormatter:void 0})):A=!0:A=!0,A&&Km("mismatchAxisAndValueFormat",u),uQ({axis:t,labelsTextSymbol:r,axisValueFormatter:o}),t.invalidateLabels()}function dQ(a){let t=a;return a>=1?t=10**(a.toFixed(0).length-1):a<1&&a>0&&(t=10**-Math.abs(Math.floor(Math.log10(a)))),t}function KI(a){let{minimumFromConfig:t,maximumFromConfig:e,isLogarithmic:i}=a,r=i===!0&&t!==null&&t!==void 0&&t<=0,s=!Number.isFinite(t)||!Number.isFinite(e);return r||s}var Wt={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},Ie={Ready:"ready",Hidden:"hidden",Shown:"shown",Hit:"hit",DoubleHit:"doublehit",Up:"up",SelectEnded:"selectended",Over:"over",Out:"out",SizeChanged:"sizechanged",VisibilityChanged:"visibilitychanged",PositionChanged:"positionchanged",Validated:"validated",DataItemsValidated:"dataitemsvalidated",Inited:"inited",ChildAdded:"childadded",DataRangeChanged:"datarangechanged",LayoutValidated:"layoutvalidated"};function ZI(a){let{actionMode:t,cursorRange:e,isRotated:i}=a,r=Hi.None;switch(e){case Ym.MultiAxes:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=Hi.SelectXY:t===Ut.Zoom&&(r=Hi.ZoomXY);break;case Ym.XAxis:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=i===!0?Hi.SelectY:Hi.SelectX:t===Ut.Zoom&&(r=i===!0?Hi.ZoomY:Hi.ZoomX);break;case Ym.YAxis:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=i===!0?Hi.SelectX:Hi.SelectY:t===Ut.Zoom&&(r=i===!0?Hi.ZoomX:Hi.ZoomY);break}return r}function AQ(a,t){let e=re.cursorCrosshair.style,i={type:Rt.SLS,style:t.style??e.style,color:t.color??e.color,width:t.width??e.width};Vc({element:a.cursor.lineX,lineSymbol:i}),Vc({element:a.cursor.lineY,lineSymbol:i})}function qI(a){if(!(a instanceof Ys)&&!(a instanceof qi)){a.cursor=new yc;let t="userAgentData"in navigator&&navigator.userAgentData&&typeof navigator.userAgentData=="object"&&"mobile"in navigator.userAgentData&&navigator.userAgentData.mobile===!0||/Mobi|Android/iu.test(navigator.userAgent);a.cursor.hideSeriesTooltipsOnSelection=!t}}function JI(a,t){if(!(a instanceof Ys)&&!(a instanceof qi)){let e=a,i=e.cursor??new yc;t?.style!==void 0&&AQ(e,t.style);let r=re.cursorCrosshair;i.lineX.disabled=r.verticalLineVisible?t?.verticalLineVisible===!1:t?.verticalLineVisible!==!0,i.lineY.disabled=r.horizontalLineVisible?t?.horizontalLineVisible===!1:t?.horizontalLineVisible!==!0,e.cursor=i}}function pQ(a){return!(a instanceof Ys)&&a.cursor===void 0&&qI(a),a.cursor}function iw(a,t){let e=a.renderer.labels.template;e.events.hasListenersByType(Ie.Hit)&&(e.cursorOverStyle=t),a.renderer.labels.each(i=>{i.cursorOverStyle=t})}function fQ(a){let{chart:t,chartType:e,showMean:i,enabled:r}=a,s=r?si.pointer:si.default;switch(e){case V.ComboLineAndBarSeries:case V.BarSeries:case V.PieSeries:t.series.each(n=>{(n instanceof Xi||n instanceof ws)&&(n.cursorOverStyle=s)});break;case V.BoxPlotSeries:t.series.each(n=>{let o=s;if(n instanceof Ti){let l=zr(n);l!==void 0&&(i&&sa(n.uid,"isBoxPlotOutliersSeries")&&(o=si.default),l.cursorOverStyle=o,l.clones.each(h=>{h.cursorOverStyle=o}))}else n.cursorOverStyle=i?si.default:s});break;case V.LineSeries:t.series.each(n=>{if(n instanceof Ti){let o=zr(n);o!==void 0&&(o.cursorOverStyle=s,o.clones.each(l=>{l.cursorOverStyle=s}))}});break}}function mQ(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=ve(t.uid,"isRotated"),s=ve(t.uid,"config"),n=oa(s),o=ze(s?.series),l=o===V.LineSeries&&ba(s?.axes?.[0]?.valueFormat),h=o===V.LineSeries&&ud(s?.axes?.[0]?.valueFormat),c=o===V.LineSeries&&ro(s?.axes?.[0]?.valueFormat),u,d=!1,A=e??ve(t.uid,"actionMode")??re.actionMode;if(ve(t.uid,"filterBySelection")===!0)u=Hi.None,d=!1;else if(i!==void 0)u=ZI({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:l||c?u=Hi.ZoomXY:u=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?u=r===!0?Hi.SelectY:Hi.SelectX:u=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:u=Hi.None,d=!0;break;case Ut.None:u=Hi.None,d=!1;break}t instanceof Vt&&t.cursor!==void 0&&u!==void 0&&(t.cursor.behavior=u),fQ({chart:t,chartType:o,enabled:d,showMean:n})}function e1(a){let t="";return a instanceof Qr?t=a.dataFields?.categoryX??a.dataFields?.dateX??a.dataFields?.valueX??"":a instanceof ws&&(t=a.dataFields?.category??""),t}function t1(a){let t="";return a instanceof Qr?t=a.dataFields?.categoryY??a.dataFields?.dateY??a.dataFields?.valueY??"":a instanceof ws&&(t=a.dataFields?.value??""),t}function i1(a){return ve(a.chart.uid,"isRotated")===!0?t1(a):e1(a)}function xu(a){return ve(a.chart.uid,"isRotated")===!0?e1(a):t1(a)}function Iv(a,t=0){let e=ve(a.chart.uid,"config");return ze(e?.series,t)}function*gQ(a){let{filterList:t,queryObject:e,queryConfig:i,errorStrings:r}=a;for(let s=0;s<t.length;s+=1){let n={...i};n.where=og([n.where,t[s]]),yield qF({queryObject:e,queryConfig:n,uniqueFeature:!0,errorStrings:r})}}async function r1(a){let{whereList:t,queryObject:e,queryFilter:i,queryConfig:r,errorStrings:s}=a,n=[];if(t.length>0){let o=gF().maxElementsPerSelectionQuery,l=[],h=Math.ceil(t.length/o);for(let u=0;u<h;u+=1){let d=u*o,A=(u+1)*o,p=t.slice(d===0?0:d-1,A),f=og(p,"OR");f=og([i,f]),l.push(f)}let c=gQ({filterList:l,queryObject:e,queryConfig:r,errorStrings:s});n=(await Promise.all(c)).flat(),n=Array.from(new Set(n))}return n}var cu={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function yQ(a,t){let e=a[pt.boxPlot.boxPlotOutlierId]===!0?cu.Outlier:cu.Box,i=typeof t=="number"?cu.Outlier:cu.Box;return`${e}-${i}`}function vQ(a){let{oneSelectedItem:t,dataContext:e,selectedOutlierKey:i}=a;return t[i]===e[i]}function bQ(a){let{elementMin:t,elementMax:e,selectedOutlierValue:i}=a,r;return typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(r=i>=t&&i<=e),r}function xQ(a){let{selectedMin:t,selectedMax:e,elementOutlierValue:i,oneSelectedItem:r,iqrField:s}=a,n;typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(n=i>=t&&i<=e);let o=s in r;return n!==!1&&o}function _Q(a){let{selectedMin:t,selectedMax:e,elementMin:i,oneSelectedItem:r,elementMax:s,iqrField:n}=a,o;typeof i=="number"&&typeof s=="number"&&typeof t=="number"&&typeof e=="number"&&(o=!(i>=e||s<=t));let l=n in r;return o!==!1&&l}function CQ(a){let{oneSelectedItem:t,dataContext:e,xAxisField:i}=a,r=e[pt.originalCategoryValue]??e[pt.boxPlot.boxPlotCategory]??e[i],s=t[pt.originalCategoryValue]??t[pt.boxPlot.boxPlotCategory]??t[i];return r===s}function wQ(a){let{chartSubType:t,yAxisField:e,splitBy:i,showOutliers:r}=a,s=t===ke.BoxPlotMultiFieldsAndCategory?e:void 0,n={y:s,splitBy:i},o=Zi({...n,key:Yt.Outlier}),l=Zi({...n,key:Yt.Max,showOutliers:r}),h=Zi({...n,key:Yt.Min,showOutliers:r}),c=Zi({...n,key:Yt.Max,showOutliers:!1}),u=Zi({...n,key:Yt.Min,showOutliers:!1}),d=Zi({...n,key:Yt.Max,showOutliers:!0}),A=Zi({...n,key:Yt.Min,showOutliers:!0}),p=Zi({splitBy:i,y:s,key:Yt.IQR});return{selectedOutlierKey:o,maxField:l,minField:h,selectedMaxFieldWoOutliers:c,selectedMinFieldWoOutliers:u,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:A,iqrField:p}}function BQ(a){let{elementDataContext:t,layerOidField:e,xAxisField:i,splitBy:r,yAxisField:s,chartSubType:n,showOutliers:o}=a,l=t,h;if(l?.[pt.boxPlot.boxPlotMeanLineMarkerId]===!0){let c=Zi({splitBy:r,key:Yt.Average});h=u=>{let d=!i||!(i in u&&i in l)||u[i]===l[i],A=c in u&&c in l;return d&&A}}else i!==void 0&&s!==void 0&&(h=c=>{let u;if(e!==void 0&&e in c&&e in l)u=c[e]===l[e];else{let{selectedOutlierKey:d,maxField:A,minField:p,selectedMaxFieldWoOutliers:f,selectedMinFieldWoOutliers:m,selectedMaxFieldWithOutliers:g,selectedMinFieldWithOutliers:y,iqrField:x}=wQ({chartSubType:n,yAxisField:s,splitBy:r,showOutliers:o}),w=l[d],S=c[d],T=l[p],F=l[A],L=c[m]??c[y],$=c[f]??c[g],I=CQ({oneSelectedItem:c,dataContext:l,xAxisField:i});if(I)switch(yQ(c,w)){case cu.OutlierToOutlier:I=vQ({oneSelectedItem:c,dataContext:l,selectedOutlierKey:d});break;case cu.OutlierToBox:I=bQ({elementMin:T,elementMax:F,selectedOutlierValue:S});break;case cu.BoxToOutlier:I=xQ({selectedMin:L,selectedMax:$,elementOutlierValue:w,oneSelectedItem:c,iqrField:x});break;case cu.BoxToBox:I=_Q({selectedMin:L,selectedMax:$,elementMin:T,oneSelectedItem:c,elementMax:F,iqrField:x});break}u=I===!0}return u});return h}function ww(a){let{layerOidField:t,sliceDataContext:e,selectionDataContext:i,xAxisField:r}=a,s=!1;if(t!==void 0&&t in e&&t in i)s=i[t]?.toString()===e[t]?.toString();else{let n=e[pt.originalCategoryValue];n===void 0&&(n=e[r]),n===void 0&&(n=e[ao]);let o=i[pt.originalCategoryValue];o===void 0&&(o=i[r]),o===void 0&&(o=i[ao]),s=n!==void 0&&o!==void 0&&n===o}return s}function fv(a){let{dataContext:t,specificField:e,xOrY:i}=a,r=t[i==="x"?pt.originalCategoryValue:pt.originalYCategoryValue];return r===void 0&&e&&(r=t[e]),r===void 0&&(r=t[i==="x"?xr.xField:xr.yField]),r}function kv(a){let{options:t,elementDataContext:e,selectionDataItems:i,layerOidField:r,xAxisField:s,yAxisField:n,chartType:o,splitBy:l,chartSubType:h}=a,c=!1,u;if(e!==void 0&&i!==void 0)switch(o){case V.HeatSeries:let d=e,A=fv({dataContext:d,specificField:s,xOrY:"x"}),p=fv({dataContext:d,specificField:n,xOrY:"y"});u=f=>{let m=fv({dataContext:f,specificField:s,xOrY:"x"}),g=fv({dataContext:f,specificField:n,xOrY:"y"});return A===m&&p===g};break;case V.RadarSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:if(s!==void 0&&n!==void 0){let f=e;u=m=>{let g,y=r;if(h===ke.BarAndLineSplitByNoAggregation){let x=vh({where:l,keepSurroundingQuotes:!1,escape:!1});y=`${r}_${x}`}if(r!==void 0&&r in m&&r in f)g=m[r]===f[r];else if(y!==void 0&&y in m&&y in f)g=m[y]===f[y];else if(pt.dateBinningRange in f&&typeof m[s]=="number"){let x=m[s],w=m[pt.dateBinningRange],S=Array.isArray(w)&&Number.isFinite(w[0])&&Number.isFinite(w[1]),[T,F]=S?w:[0,0],[L,$]=f[pt.dateBinningRange],I=f[pt.lastTemporalBin]===!0?x<=$:x<$;g=(S?T<$&&L<F:x>=L&&I)&&n in m&&Number.isFinite(m[n])}else{let x=S=>{let T=S[pt.originalCategoryValue];return T===void 0&&(T=S[s]),T=T===null?pt.nullValue:T,T},w=x(f);g=x(m)===w&&n in m}return g}}break;case V.BoxPlotSeries:u=BQ(a);break;case V.ScatterSeries:if(s!==void 0&&n!==void 0){let f=e;if(!CF({dataContext:f,chartLimits:t?.chartLimits}))u=m=>{let g;return r!==void 0&&r in f&&r in m?g=m[r]===f[r]:g=m[s]===f[s]&&m[n]===f[n],g};else{let{dataContextXMinField:m,dataContextXMaxField:g,dataContextYMinField:y,dataContextYMaxField:x}=pt.scatterplotAggregationFields,{[m]:w,[g]:S}=f,T=s!==n?f[y]:w,F=s!==n?f[x]:S,L=I=>{let U=I[s]??Number.NaN,P=w??Number.NaN,Q=S??Number.NaN;return w===S?U===P:(U??Number.NaN)>=P&&(U??Number.NaN)<Q},$=I=>{let U=I[n]??Number.NaN,P=T??Number.NaN,Q=F??Number.NaN;return T===F?U===P:U>=P&&U<Q};u=I=>L(I)&&$(I)}}break;case V.HistogramSeries:u=f=>{let m=!1,{minValue:g,maxValue:y}=e,{isLastBin:x}=e;if(s!==void 0&&s in f){let w=f[s];m=typeof w=="number"&&w>=g&&(x&&w<=y||!x&&w<y)}else if("minValue"in f&&"maxValue"in f){let{minValue:w,maxValue:S}=f;m=!(g>=S||y<=w)}return m};break;case V.PieSeries:s!==void 0&&(u=f=>{let m=e,g=ih(m),y=[m];return g&&y.push(...Qf({groupOfSlicesDataContext:m})??[]),y.some(x=>ww({sliceDataContext:x,selectionDataContext:f,layerOidField:r,xAxisField:s}))});break}return u!==void 0&&(c=i.some(u)),c}function th(a){let{isFeatureCollectionLayer:t,dataContext:e,yAxisField:i,yList:r,xAxisField:s,splitBy:n,chartType:o,chartSubType:l,showOutliers:h}=a,c={...e};if(e!==void 0){if(o===V.RadarSeries||o===V.BarSeries||o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.PieSeries){o!==V.PieSeries&&(t||l!==ke.BarAndLineNoAggregation&&l!==ke.BarAndLineSplitByNoAggregation)&&r.forEach(d=>{d!==i&&delete c[d]});let u=no({value:e[s],dataContext:e,keepNullValues:!0});c[s]=u,!zi(n)&&!_F(n)&&(c[Dn(n)]=vh({where:n,escape:!1}))}else if(o===V.BoxPlotSeries){c={[s]:e[s]},[Ou.uniqueIdsName,pt.boxPlot.boxPlotMeanLineMarkerId,pt.boxPlot.boxPlotOutlierId,pt.originalCategoryValue,pt.originalYCategoryValue].forEach(d=>{e[d]&&(c[d]=e[d])});let u=l===ke.BoxPlotMultiFieldsAndCategory?i:void 0;Object.values(Yt).forEach(d=>{let A=Zi({key:d,y:u,splitBy:n,showOutliers:h});e[A]!==void 0&&(c[A]=e[A])})}}return c}function s1(a){let{data:t,colorMatch:e,chartSubType:i,rendererType:r}=a;return t!==void 0&&e&&r!==void 0&&(i===ke.BoxPlotMultiFields&&(r===Nm.UniqueValue||r===Nm.PieChart)||i===ke.BoxPlotMonoFieldAndCategory&&r===Nm.UniqueValue)&&t.some(s=>Object.keys(s).some(n=>n.includes(pt.rendererSymbolField)))}function SQ(a){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(a)}function a1(a,t=512){if(!SQ(a))throw new Error("Cannot convert a string that is not a data uri to a blob");let e=a.split(",")[0].split(":")[1].split(";")[0],i=atob(a.split(",")[1]),r=[];for(let s=0;s<i.length;s+=t){let n=i.slice(s,s+t),o=new Array(n.length);for(let h=0;h<n.length;h++)o[h]=n.charCodeAt(h);let l=new Uint8Array(o);r.push(l)}return new Blob(r,{type:e})}function Rf(a){let{value:t,valueFormat:e,iLocale:i,formatLocale:r}=a,s=t?.toString(),n=fl({type:e.type,iLocale:i,formatLocale:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?s=n.format(t,$o(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(s=n.format(t,$o(e))),s}function xn(a){let{chart:t,config:e}=a,i=e;return e===void 0&&t!==void 0&&(i=ve(t.uid,"config")),us(i)}function FQ(a){a instanceof Vl&&a.series.each(t=>{Kn(t.uid),t instanceof Ti&&Kn(zr(t)?.uid),t.bullets.each(e=>{Kn(e.uid)}),t instanceof Xi&&t.columns.template.children.each(e=>{Kn(e.uid)})}),a instanceof Vt&&[a.xAxes.getIndex(0),a.xAxes.getIndex(1),a.yAxes.getIndex(0),a.yAxes.getIndex(1)].forEach(t=>{t!==void 0&&(Kn(t.uid??""),t.axisRanges.each(e=>{Kn(e.label?.uid)}))}),a instanceof Ys&&a.radarContainer.children.each(t=>{Kn(t.uid)}),a instanceof qi&&a.series.getIndex(0)?.slices.each(t=>{Kn(t.uid)}),"cursor"in a&&a.cursor instanceof sA&&Kn(a.cursor?.uid),"legend"in a&&a.legend!==void 0&&(Kn(a.legend.uid),Kn(a.legend.valueLabels?.template?.uid)),Kn(a.uid)}function mv(a){return typeof a=="number"?a:a.value}async function TQ(a){let{chart:t,exportOptions:e}=a,{format:i,quality:r=1,...s}=e,n=r<0||r>1?1:r,o=await t.exporting.getImage(i,{quality:n,...s}),l=a1(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function $v(a,t){t!==void 0&&(t.marginBottom!==void 0&&(a.marginBottom=t.marginBottom),t.marginTop!==void 0&&(a.marginTop=t.marginTop),t.marginRight!==void 0&&(a.marginRight=t.marginRight),t.marginLeft!==void 0&&(a.marginLeft=t.marginLeft),t.verticalCenter!==void 0&&(a.verticalCenter=QI(t.verticalCenter)),t.horizontalCenter!==void 0&&(a.horizontalCenter=bw(t.horizontalCenter)),t.strokeWidth!==void 0&&(a.strokeWidth=t.strokeWidth),t.wrap!==void 0&&(a.wrap=t.wrap),t.truncate!==void 0&&(a.truncate=t.truncate),t.maxWidth!==void 0&&(a.maxWidth=t.maxWidth),t.applyOnClones!==void 0&&(a.applyOnClones=t.applyOnClones,a.background.applyOnClones=t.applyOnClones))}function ml(a,t){let e=t?.createChild(Mi)??new Mi;return $v(e,a),e}function PQ(a){let t=a.push(new zd);t.dx=1,t.dy=1,t.opacity=1}function DQ(a,t,e){if(e.alpha>0&&t>=0){a.length===0&&PQ(a);let i=a.getIndex(0);i.blur=t,i.color=e}else a.clear()}function LQ(a,t){let e=ms(a.uid,"isGuide"),i=t.visible===!1;return!i&&(e===!0||!(a instanceof Ko))&&t.content.text===""&&(i=!0),i}function GL(a){let{label:t,offset:e,offsetProperty:i}=a,r=99;if(t.adapter.remove(i,r),typeof e=="string"&&!Number.isFinite(Number(e))){let s=ip(e);s!==void 0&&(s/=100,t.adapter.add(i,()=>(t.parent?.[i==="dx"?"measuredWidth":"measuredHeight"]??0)*s,r))}else t[i]=e}function _n(a){let{label:t,labelConfig:e,defaults:i,skipSettingText:r}=a;if(e!==void 0){let s=_v(e.content,t.rtl,i);t.fill=s.fill,t.fontFamily=s.fontFamily,t.fontWeight=s.fontWeight,t.fontSize=s.fontSize,t.textDecoration=s.textDecoration,t.align=s.align,t.valign=s.valign,t.verticalCenter=s.verticalCenter,t.horizontalCenter=s.horizontalCenter,t.background.fill=s.backgroundFill,t.background.stroke=s.borderFill,t.background.strokeWidth=s.borderWidth,t.rotation=s.angle,GL({label:t,offset:s.xOffset,offsetProperty:"dx"}),GL({label:t,offset:s.yOffset,offsetProperty:"dy"}),t.rtl=s.rtl,t.wrap=s.wrap,t instanceof Ko||(t.maxWidth=s.maxWidth),r||(t.text=s.text),DQ(t.filters,s.haloSize,s.haloColor);let n=LQ(t,e);t.disabled=n,Ui(t,e.visible!==!1&&!n)}else t.disabled=!0}function n1(a,t){t!==void 0&&(a===V.BarSeries||a===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=i.dataItem,{chart:s}=r?.component??{};return s instanceof Vt&&(i.visible=!UI(i,s)),e??0})}function o1(a,t){t!==void 0&&(a===V.BarSeries&&t.adapter.add("dx",(e,i)=>{let r=e??0,s=i.dataItem,{chart:n}=s?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)===!0&&(s.valueX??s.valueY)<0&&(r-=i.measuredWidth+re.dataLabelNegative.paddingRight),r}),(a===V.BarSeries||a===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=e??0,s=i.dataItem,{chart:n}=s?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)!==!0&&(s.valueX??s.valueY)<0&&(r+=i.measuredHeight+re.dataLabelNegative.paddingTop),r}))}function rw(a){a.bulletsContainer.invalidateLabels(),a instanceof Xi&&a.columns?.template.invalidateLabels()}function IQ(a){let{dataValue:t,series:e,seriesType:i,stackedType:r,axisMin:s}=a,n=t===void 0;return t!==void 0&&(s!==void 0&&t<s?n=!0:e instanceof Xi&&(i===V.BarSeries||i===V.ComboLineAndBarSeries)&&(n=t===0&&r!==void 0&&r!==$i.Side)),n}function sw(a,t){let e,i=r=>ms(r.uid,"isDataLabel")??!1;return t==="bullets"?e=a.bullets.values.find(i):a instanceof Xi&&(e=a.columns.template.children.values.find(i)),e}function aw(a,t){a.adapter.add("htmlOutput",(e,i)=>{let r=e,{dataItem:s}=i;if(Ef(a)&&(t instanceof Xi&&s instanceof Bs||t instanceof Ti&&s instanceof Wa)){let n=sa(t.uid,t instanceof Xi?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=ve(t.chart.uid,"isRotated"),l=ve(t.chart.uid,"config"),h=ks(l),c=o===!0?s.valueX:s.valueY,u=o===!0?s.values?.valueX?.totalPercent:s.values?.valueY?.totalPercent,d=o===!0?(s.component?.xAxis).min:(s.component?.yAxis).min;r=IQ({dataValue:c,series:t,seriesType:t instanceof Xi?V.BarSeries:V.LineSeries,stackedType:h,axisMin:d})?"":n(c,u)}}return Zr(r)},0)}function l1(a){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i}=a;return(r,s)=>{let n=i===$i.Stacked100&&s!==void 0?s:r;return t.numberFormat.style==="percent"&&(n/=100),xa({textSymbol:{...e,text:t.format(n)},format:"html"})}}function h1(a){a.tabindex=-1}function u1(a){let{series:t,seriesType:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:s,yAxisValueFormat:n,stackedType:o,isRotated:l,defaultDataLabelFormatter:h,customDataLabelFormatter:c}=a;if(i!==void 0){let u=c,d=s?.content??{type:Rt.TS};if(c===void 0&&h!==void 0&&n?.type===V.NumberAxisFormat){let p=ve(t.chart.uid,"formatLocale"),f=fl({type:n.type,iLocale:t.chart.language.locale,formatLocale:p});f.numberFormat=n.intlOptions,u=h({numberFormatter:f,dataLabelsConfigContent:d,stackedType:o})}let A;switch(e){case V.BarSeries:A="barSeriesDataLabelFormatter";break;case V.LineSeries:A="lineSeriesDataLabelFormatter";break}A!==void 0&&Jn(t.uid,{[A]:u}),s!==void 0&&(s.content.text=l===!0?"{valueX}":"{valueY}",s.visible=s.visible!==!1),_n({label:i,labelConfig:s,defaults:r??re.dataLabel}),rw(t)}}function Ov(a,t){let e=t;e===void 0&&(e=ve(a.uid,"config"));let i=ve(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function c1(a,t){let e;return a instanceof Ct?e=t===!0?"dateY":"dateX":a instanceof Ot?e=t===!0?"categoryY":"categoryX":e=t===!0?"valueY":"valueX",e}function _A(a,t){a.name=t}function Bw(a){let{chart:t,lineSeries:e,applyPropertiesToClones:i}=a,r=e.bullets.push(new Ee);return IN(r.uid,{isBulletMarker:!0}),i!==!1&&(r.applyOnClones=!0),e.bulletsContainer.parent=t.seriesContainer,r}function Sw(a){let{series:t,seriesConfig:e,rotationChanged:i,stackedType:r,isRotated:s}=a;switch(r){case $i.Stacked:{t.stacked=!0,t instanceof Ti&&(t.stackToNegative=e.stackNegativeValuesToBaseline??re.lineSeries.stackNegativeValuesToBaseline),i===s?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0,t.updateStacking();break}case $i.Stacked100:{t.stacked=!0,s?t.dataFields.valueXShow="totalPercent":t.dataFields.valueYShow="totalPercent",t.updateStacking();break}case $i.Side:default:{t.stacked=!1,i===s?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0;break}}}function kQ(a){return()=>{let{chart:t,marker:e}=a;e.clones.each(i=>{Ui(i,!UI(i,t))})}}function $Q(a){let{chart:t,series:e,seriesType:i,marker:r,numberOfChartSeries:s,ignoreSmoothRenderingLimit:n}=a,o=kQ({marker:r,chart:t}),l=s??1,h=t.data.length*l+l;n!==!0&&h>re.elementLimitForSmoothRendering&&(o=Is(o,re.debounceTime)),t.xAxes.getIndex(0)?.events.on(Ie.Validated,o),t.yAxes.getIndex(0)?.events.on(Ie.Validated,o),i===V.LineSeries&&(t.xAxes.getIndex(0)?.events.on(Ie.Validated,()=>{rw(e)}),t.yAxes.getIndex(0)?.events.on(Ie.Validated,()=>{rw(e)}))}function d1(a,t){a.series.each(e=>{let i=sa(e.uid,t);i!==void 0&&!i.isDisposed()&&i.dispose()})}function OQ(a){let t;return a!==void 0&&a.series.length>0&&(t=a.series.values.map(e=>e.visible?e.id:"").filter(e=>e!=="")),t}function zC(a){let{dataItem:t,y:e,splitBy:i,showOutliers:r}=a,s=Zi({key:Yt.Min,y:e,splitBy:i,showOutliers:r}),n=Zi({key:Yt.Max,y:e,splitBy:i,showOutliers:r}),o=Zi({key:Yt.FirstQuartile,y:e,splitBy:i,showOutliers:r}),l=Zi({key:Yt.ThirdQuartile,y:e,splitBy:i,showOutliers:r});return Number.isFinite(t[s])&&Number.isFinite(t[n])&&Number.isFinite(t[o])&&Number.isFinite(t[l])}function EQ(a,t){let e=0;if(a!==void 0&&t!==void 0){let i=Mo(t.series),r=kt(t.series),s=Eo(t);a.data.forEach(n=>{switch(r){case ke.BoxPlotMonoField:case ke.BoxPlotMultiFields:case ke.BoxPlotMonoFieldAndCategory:zC({dataItem:n,showOutliers:s})&&(e+=1);break;case ke.BoxPlotMultiFieldsAndCategory:i.forEach(o=>{zC({dataItem:n,y:o,showOutliers:s})&&(e+=1)});break;case ke.BoxPlotMonoFieldAndSplitBy:case ke.BoxPlotMultiFieldsAndSplitBy:case ke.BoxPlotMonoFieldAndCategoryAndSplitBy:t.series.forEach(o=>{zC({dataItem:n,splitBy:o.query?.where,showOutliers:s})&&(e+=1)});break}})}return e}function YL(){return a=>{let t=ve(a.chart.uid,"config"),e=!1;if(t!==void 0&&a instanceof Qr){let i=EQ(a.chart,t),r=0,s=0,n=0,o=0,l=0;a.chart.series.values.forEach(u=>{if(u instanceof wr)r+=u.columns.length;else if(u instanceof Ti&&!(u instanceof Aa)){let d=zr(u);if(d!==void 0&&!d.disabled){let A=d.clones.values.filter(p=>!(p.dataItem instanceof Go))?.length??0;if(sa(u.uid,"isBoxPlotMeanLineSeries")===!0){o+=A;let p=u.data.filter(f=>Number.isFinite(f[u.dataFields.valueX??u.dataFields.valueY??""])).length;l+=p}else{let p=u.data.filter(f=>Number.isFinite(f[u.dataFields.valueX??u.dataFields.valueY??""])).length;n+=p,s+=A}}}});let h=n===0||s>=n,c=l===0||o>=l;e=r>=i&&h&&c&&a.chart.appeared&&a.isReady()&&a.chart.isReady()}return e}}function MQ(a,t){let e;switch(a){case V.BarSeries:e=(i,r)=>{let s=!1;if(i instanceof Xi){let n=xn({chart:i.chart}),o=0;if(r.type===V.BarSeries){let l=(n?i.dataFields.valueX:i.dataFields.valueY)??r.y;o=i.chart?.data?.filter(h=>Number.isFinite(h[l])).length}s=i.chart.isReady()&&i.columns.length===o}return s};break;case V.LineSeries:t===!0?e=YL():e=(i,r)=>{let s=!1;if(i instanceof Ti){let n=xn({chart:i.chart}),o=zr(i),l=0;if(r.type===V.LineSeries){let{y:h}=r,c=(n?i.dataFields.valueX:i.dataFields.valueY)??[h].flat()[0];l=i.chart?.data?.filter(u=>Number.isFinite(u[c])).length}s=i.chart.appeared&&i.chart.isReady()&&o!==void 0&&o.clones.values.length>=l}return s};break;case V.PieSeries:e=i=>i instanceof ws&&i.slices.length>0;break;case V.BoxPlotSeries:e=YL();break}return e}function A1(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,{type:r}=e,s=ze([i]),n=sa(t.uid,"isBoxPlotMeanLineSeries"),o=r==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",l=u=>{let{type:d}=u;d==="selection"?m2(u.callbackProps):u.styleCallback!==void 0&&(Ui(t,i.visible),u.styleCallback())};t.chart.events.once(Ie.Ready,()=>l(e)),t.events.once(Ie.Ready,()=>l(e)),sa(t.uid,o)?.dispose();let h=MQ(s,n),c=(s===V.PieSeries?t.chart:t).events.on(Ie.Validated,()=>{h!==void 0&&h(t,i)&&(c!==void 0&&c.dispose(),l(e))});t.dispatchImmediately(Ie.Validated),Jn(t.uid,{[o]:c})}function Ev(a){let{series:t,styleCallback:e,seriesConfig:i}=a;A1({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function RQ(a){let{series:t,callbackProps:e,seriesConfig:i}=a;A1({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function Wc(a){let{defaultChartItemRole:t}=re.aria;a instanceof wr||a instanceof Xi?(a.columns.template.properties.role=t,a.columns.template.focusable=!0,a.columns.template.hoverOnFocus=!0,a.itemReaderText=sp()):a instanceof Aa?a.segments.template.properties.role=t:a instanceof Ti?a.bullets.values.forEach(e=>{e.focusable=!0,e.properties.role=t,e.readerTitle=sp(),e.hoverOnFocus=!0}):a instanceof ws&&(a.slices.template.properties.role=t,a.slices.template.hoverOnFocus=!0,a.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function UQ(a){let t=ve(a.uid,"config");a.series.each(e=>{let i=t?.series?.find(r=>r.id===e.id);i!==void 0&&i.visible!==!1&&!e.visible&&Ui(e)})}function Uf(a,t){let e=ze(t?.series);return t?.series.find(i=>{let r=!1;return e!==V.BoxPlotSeries||a instanceof wr?r=a.id===i.id:a instanceof Aa?r=a.id.replace(`_${ji.Top}`,"")===i.id||a.id.replace(`_${ji.Median}`,"")===i.id||a.id.replace(`_${ji.Bottom}`,"")===i.id:a instanceof Ti&&(r=a.id.replace(`_${ji.Outliers}`,"")===i.id),r})}var ia={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function VQ(a,t){let e=!1;if(t!==void 0&&Ef(a)){let i=Pt.spriteRectToSvg(a.bbox,a),r=t.x,s=t.y,n=t.x+t.width,o=t.y+t.height,l=i.x,h=i.y,c=i.x+i.width,u=i.y+i.height;e=!(l>n||c<r||h>o||u<s)}return e}function Xc(a){let{element:t,customSelectionTheme:e,useNativeState:i}=a,r=i===!0?ia.Active:ia.CustomActive,s=t.states.getKey(r)??t.states.create(r),n=t.states.getKey(ia.CustomInactive)??t.states.create(ia.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:l}=e??re.selectionTheme??{};jL(s,o),jL(n,l)}function Zn(a){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,useNativeState:s,backToDefaultState:n}=a;if(t!==void 0){let o=t.isActive;i!==!0?r===!0?o=t.isActive?!1:t.isActive!==e:o=e:o=t.isActive!==e,o!==t.isActive&&(t.isActive=o);let l=s===!0?ia.Active:ia.CustomActive,h=n===!0?ia.Default:ia.CustomInactive;t.setState(t.isActive?l:h,0),t.isActive&&(t.toFront(),t.dataItem?.component instanceof go&&t.dataItem.component.toFront())}return t?.isActive??!1}function Mv(a,t){let e=!1;if(t instanceof Vt||t instanceof qi){let i=ve(t.uid,"actionMode");i!==void 0&&(e=i===Ut.MultiSelection||i===Ut.MultiSelectionWithCtrlKey&&(a?.event?.ctrlKey||a?.event?.metaKey))}return e}function p1(a){let t=a instanceof Vt&&a.zoomOutButton.isHover,e=a.legend.isHover,i=!1,r=!1,s=!1,n=!1;if(a instanceof Vt){i=a.xAxes.values.some(l=>l.renderer.labels.template.events.has(Ie.Hit)&&l.renderer.isHover),r=a.yAxes.values.some(l=>l.renderer.labels.template.events.has(Ie.Hit)&&l.renderer.isHover),s=i||r;let o=ve(a.uid,"config");oa(o)&&(n=a.series.values.find(l=>l instanceof wr)?.isHover??!1)}return!t&&!e&&!s&&!n}function Fw(a,t){return a.values.filter(e=>{let i=!1,r=!e.isActive;if(!(e.dataItem instanceof Go)){e.isActive=!e.isActive;let s=ve(t.uid,"filterBySelection")!==!0&&r;Zn({element:e,selected:s}),i=r}return i})}function KL(a,t){let e=[],{columns:i,chart:r}=a,s=ve(r.uid,"config");if(s&&i!==void 0&&a.visible){let n=s?.series[0].x,o=a?.dataFields?.customValue??"",l=Iv(a,t),h=Uf(a,s),c=l===V.BoxPlotSeries?h?.y:xu(a),u={element:{},yAxisField:c,xAxisField:n,splitBy:o,seriesIndex:t,chartConfig:s};e=Fw(i,r).map(d=>({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return e}function ZL(a,t){let e=[];if(a.visible){let i=zr(a)?.clones;if(i!==void 0){let{chart:r}=a,s=ve(r.uid,"config");if(s){let n=s.series[0].x??"",o=xu(a),l=a?.dataFields?.customValue??"",h={element:{},xAxisField:n,yAxisField:o,splitBy:l,seriesIndex:t,chartConfig:s};e=Fw(i,r).map(c=>({...h,element:c,elementDataContext:c.dataItem?.dataContext,elementIndex:c.dataItem?.index}))}}}return e}function NQ(a){let t=[];if(a.visible){let{chart:e}=a,i=ve(e.uid,"config");if(i){let r=i1(a),s=xu(a),n={element:{},xAxisField:r,yAxisField:s,seriesIndex:0,chartConfig:i},o;t=Fw(a.slices,e).map(l=>{let h=l.dataItem?.dataContext??{};return ih(h)&&(o=Qf({groupOfSlicesDataContext:h})),{...n,element:l,elementIndex:l.dataItem?.index,elementDataContext:h}}),o!==void 0&&o.forEach((l,h)=>{t.push({...n,elementIndex:h,elementDataContext:l})})}}return t}function QQ(a){let{chart:t,selectionSource:e,chartConfig:i}=a,r=!1,s=[];if(Dl(i)){if(r=oa(i),s=t.series.values.filter(n=>!(n instanceof Aa)),e===Tr.SelectionByClick){let n=new Set,o=s.find(l=>l instanceof wr&&l.isHover);o===void 0?s.forEach(l=>{l instanceof Ti&&(l.id.includes(ji.Outliers)&&l.tooltip?.visible===!0||sa(l.uid,"isBoxPlotMeanLineSeries"))&&n.add(l)}):n.add(o),s=Array.from(n)}}else s=t.series.values;return s=s.filter(n=>n.visible&&(!r||!(n instanceof wr||sa(n.uid,"isBoxPlotOutliersSeries")))),s}async function f1(a){let{chart:t,cursorSelectionRectangle:e,multiSelect:i,selectionSource:r,hitElement:s,queryObject:n,errorStrings:o}=a,l=ve(t.uid,"config"),h=l?.series[0]?.x??"",c=[];ai(t.uid,{pendingSelectionQueries:!0});let u=[],d=!0;QQ({chart:t,selectionSource:r,chartConfig:l}).forEach((A,p)=>{let f=Uf(A,l);if(l&&A.visible&&A instanceof Qr){let m=Iv(A,p)===V.BoxPlotSeries?f?.y:xu(A),g=A.dataFields?.customValue??"",y={element:{},yAxisField:m,xAxisField:h,splitBy:g,seriesIndex:p,chartConfig:l},x;A instanceof Xi||A instanceof wr?x=A.columns?.values:A instanceof Aa?x=A.segments.values:A instanceof Ti&&(x=zr(A)?.clones?.values,y.uniqueFeature=!0),x!==void 0&&(u=[...u,...x],x.forEach((w,S)=>{if(!(w.dataItem instanceof Go)){let T=w.isActive,F=w===s||VQ(w,e);F&&(d=!1);let L=!1;T?F?L=r!==Tr.SelectionByClick:L=i===!0:L=F,L&&c.push({...y,element:w,elementDataContext:w.dataItem?.dataContext,elementIndex:S}),Zn({element:w,selected:L})}}))}}),d&&(c=[]),await Wf({chart:t,listSelectedElements:c,selectionSource:r,queryObject:n,errorStrings:o})}function HQ(a){let{chart:t,queryObject:e,errorStrings:i}=a,r=async s=>{let n=s.target.cursor;if(n.xRange!==void 0){n.selection.isMeasured=!0,n.validate(),n.selection.validate();let o=Pt.spriteRectToSvg(n.selection.bbox,n.selection);if(n.selection.hide(),o.width>0||o.height>0){let l=Mv(s,t);await f1({chart:t,cursorSelectionRectangle:o,multiSelect:l,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}n.selection.hide()};wn(t)&&t.events.on(Ie.Up,async s=>{let n=s.target.cursor,o=FN(t.uid,"selectEndedCallbackDisposer");if(o!==void 0&&o.dispose(),n.xRange!==void 0&&s.event instanceof TouchEvent)await r(s);else{let l=n.events.once(Ie.SelectEnded,async()=>{await r(s)});TN(t.uid,{selectEndedCallbackDisposer:l})}})}async function wv(a){let{hitEvent:t,chart:e,queryObject:i,errorStrings:r}=a,{target:s}=t,n=ve(e.uid,"actionMode");if(e!==void 0&&p1(e)&&n!==Ut.None&&n!==Ut.Zoom&&(s instanceof Vt||t.point===void 0)){let o=t.svgPoint?{x:t.svgPoint.x,y:t.svgPoint.y,width:0,height:0}:void 0,l=Mv(t,e);await f1({chart:e,cursorSelectionRectangle:o,multiSelect:l,selectionSource:Tr.SelectionByClick,hitElement:s,queryObject:i,errorStrings:r})}}function jQ(a){let{chart:t,queryObject:e,errorStrings:i}=a;wn(t)&&(t.zoomOutButton.hoverable=!0,t.events.on(Ie.Hit,async r=>await wv({hitEvent:r,chart:t,queryObject:e,errorStrings:i})),t.events.on(Ie.DoubleHit,async r=>await wv({hitEvent:r,chart:t,queryObject:e,errorStrings:i})))}function Hf(a){let{chart:t,element:e,queryObject:i,errorStrings:r}=a;e.events.on(Ie.Hit,async s=>await wv({hitEvent:s,chart:t,queryObject:i,errorStrings:r})),e.events.on(Ie.DoubleHit,async s=>await wv({hitEvent:s,chart:t,queryObject:i,errorStrings:r}))}async function WQ(a){let{chart:t,queryObject:e,errorStrings:i}=a,{series:r}=t;if(r.length>0){ai(t.uid,{pendingSelectionQueries:!0});let s=ve(t.uid,"config"),n=r.values.map((o,l)=>{let h=[];if(o.visible){let c=ze(s?.series,l);c===V.BarSeries?h=KL(o,l):c===V.LineSeries?h=ZL(o,l):c===V.PieSeries?h=NQ(o):c===V.BoxPlotSeries&&(o instanceof wr?h=KL(o,l):o instanceof Ti&&!(o instanceof Aa)&&(h=ZL(o,l)))}return h}).flat();await Wf({chart:t,listSelectedElements:n,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}),t instanceof qi&&t.feedLegend()}}function GC(a){if(wn(a))if(a.events.disableType(Ie.Hit),a.events.disableType(Ie.DoubleHit),a instanceof qi){let t=a.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!1,t.slices.template.togglable=!1,t.slices.template.events.disableType(Ie.Hit),t.slices.template.events.disableType(Ie.DoubleHit),t.labels.template.clickable=!1,t.labels.template.togglable=!1,t.labels.template.events.disableType(Ie.Hit),t.labels.template.events.disableType(Ie.DoubleHit))}else a instanceof Vt&&(a.xAxes.each(t=>Bv(t,!0)),a.yAxes.each(t=>Bv(t,!0)),a.events.disableType(Ie.Up))}function XQ(a){if(wn(a))if(a.events.enableType(Ie.Hit),a.events.enableType(Ie.DoubleHit),a instanceof qi){let t=a.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!0,t.slices.template.togglable=!0,t.slices.template.events.enableType(Ie.Hit),t.slices.template.events.enableType(Ie.DoubleHit),t.labels.template.clickable=!0,t.labels.template.togglable=!0,t.labels.template.events.enableType(Ie.Hit),t.labels.template.events.enableType(Ie.DoubleHit))}else a instanceof Vt&&(a.xAxes.each(t=>Bv(t,!1)),a.yAxes.each(t=>Bv(t,!1)),a.events.enableType(Ie.Up))}function gA(a){let{element:t,stylingInfo:e,stateKey:i="default"}=a;if(t!==void 0&&e!==void 0){let r=t.states.getKey(i)?.properties??t.defaultState.properties;if(r.fill=e.pattern??e.fill,r.fillOpacity=Ne(r.fill.toString()).alpha===0?0:1,e.outline!==void 0){let{outline:s}=e;r.stroke=s.stroke,r.strokeOpacity=s.stroke.alpha===0?0:1,r.strokeDasharray=s.strokeDasharray,r.strokeLinecap=s.strokeLinecap,r.strokeWidth=s.strokeWidth}}}function yA(a,t){return t!=null&&t!==""?t:a}function m1(a,t){let e;switch(a){case Pn.Average:{e=t.statistics.mean;break}case Pn.ContinuousPercentile:{e=t.statistics.median;break}case Pn.Sum:{e=t.statistics.sum;break}case Pn.Minimum:{e=t.statistics.minimum;break}case Pn.Maximum:{e=t.statistics.maximum;break}case Pn.Variance:{e=t.statistics.variance;break}case Pn.DiscretePercentile:{e=t.statistics.discretePercentile;break}case Pn.NoAggregation:{e=t.statistics.noAggregation;break}case Pn.Count:default:{e=t.statistics.count;break}}return e}function Tw(a){let{config:t,fieldName:e="",utilsStrings:i}=a,r=t.series[0].query?.outStatistics?.[0].statisticType??Hb.statisticType,s=m1(r,i);return Uc(i.statistics.aggregation,{statistics:s,fieldName:e})}function g1(a){let{config:t,fieldList:e,objectIdField:i,seriesIndex:r,isStacked100:s,utilsStrings:n}=a,o="",l=t.series[r].name,h=t.series[r],c=[h.y].flat()[0],u=t.axes,d=kt(t.series),A=i??Ou.outStatistics.onStatisticField,p=h.query?.outStatistics?.[0].onStatisticField??A,f=Or(e,p),m=h.query?.outStatistics?.[0].statisticType??Hb.statisticType,g=m1(m,n);return d===ke.BarAndLineNoAggregation?o=l??Or(e,c):d===ke.BarAndLineSplitByNoAggregation?o=Or(e,c):(o=m===Pn.Count&&p===A?n.statistics.count:Uc(n.statistics.aggregation,{statistics:g,fieldName:f??l}),d===ke.BarAndLineMonoField&&!s&&(o=yA(o,u[1].title?.content?.text))),o}function y1(a,t){let{dataTooltipStyle:e,dataTooltipStyleReversed:i}=re;if(t===!0){let r=a.background.fill;if(r!==void 0){a.background.stroke=r,a.background.strokeWidth=i?.outline?.width??Number.NaN,a.background.fill=bn(i?.color);let s=a.background.fill.rgb;if(s!==void 0){let n=a.label.fill;a.label.fill=Ig(s)?n?.darkColor:n?.lightColor}}}else a.getStrokeFromObject=!0,a.getFillFromObject=!0,a.background.strokeWidth=e?.outline?.width??Number.NaN,a.background.stroke=bn(e?.outline?.color)}function Rv(a,t){if(a.tooltip){let e=t.dataTooltipFontSize??re.tooltipFontSize,i=sa(a.uid,"tooltipFontSize")!==e;a.tooltip.label.fontSize=e,i&&!a.tooltip.visible&&(a.tooltip.label.html=""),a.tooltip.label.invalidate(),Jn(a.uid,{tooltipFontSize:e})}}function zQ(a){let t=a.tooltip??new fo;t.pointerOrientation="vertical",a instanceof wr||a instanceof Aa?t.label.maxWidth=re.boxPlot.boxPlotTooltipLabelWidth:t.label.maxWidth=re.tooltipWidth,t.label.wrap=!0;let e=ve(a.chart?.uid,"config"),i=e?Uf(a,e):void 0;i!==void 0&&Rv(a,i),t.events.on(Ie.Shown,r=>{let s=ve(a.chart.uid,"config");if(s!==void 0){let n=Uf(a,s),{dataTooltipReverseColor:o}=n??{};y1(r.target,o)}})}function GQ(a){a instanceof Ys||a.series.each(t=>{zQ(t)})}function v1(a,t){a.tooltipHTML=re.htmlEmptyContent,a.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:s}=t;if(s!==void 0){let n=ve(s.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)r="";else{let l=sa(t.uid,"barAndLineTooltipFormatter");if(l!==void 0&&t.isReady()){let{dataItem:h}=i;if(h instanceof Bs||h instanceof Wa){let c=n?.series.find(u=>u.id===t.id);if(c!==void 0){let u=xn({config:n}),d=u?h.valueX:h.valueY,A=(u?h.values.valueX.totalPercent:h.values.valueY.totalPercent)/100,p=h.dataContext??{};if(p!==void 0){let f=ve(s.uid,"rendererFieldNames"),m=no({value:qA(kt([c]),c),dataContext:p,useRendererLabel:Qu(n,f),config:n}),g=oo(p);g===void 0&&(g=m);let y=p[re.dateBinningRange];r=l({seriesName:t.name,xValue:m,originalXValue:g,dateBinningRange:y,statValue:d,percentValue:A})}}}}}}return Zr(r)}),a.tooltipPosition=t instanceof Ti?re.markerTooltipPosition:re.columnTooltipPosition,t.cursorTooltipEnabled=!1}function YQ(a){let{isStacked100:t,series:e,statValue:i,percentValue:r,yAxisValueFormat:s,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=a,l=n;l===void 0&&(ba(s)&&s?(l=s,t&&(l.intlOptions.style="decimal")):l=Wm());let h=ve(e.chart.uid,"formatLocale"),c=i!==void 0?Rf({value:i,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:h}):"",u="";if(t&&r!==void 0){let d=o;d===void 0&&(d=Xm(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),u=Rf({value:r,valueFormat:d,iLocale:e.chart.language.locale,formatLocale:h})}return{formattedStatValue:c,formattedPercentValue:u}}function KQ(a){let{series:t,dateRange:e,xAxisValueFormat:i}=a,r;if(e!==void 0&&e.length>0){let s=t.chart?.uid,n=ve(s,"timeIntervalInfo"),o=ve(s,"config"),l=ve(s,"options"),h=ve(s,"queryObject"),c=o&&bh(o.series[0])?o.series[0].temporalBinning?.outTimeZone:void 0,u={};switch(n?.unit){case er.Second:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case er.Minute:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Hour:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Day:case er.Week:case er.Month:case er.Year:u={month:"numeric",day:"numeric",year:"numeric"};break}ep({chartConfig:o,queryObject:h,options:l})&&(u.timeZone=c??i.intlOptions.timeZone);let d=new Date(e[0]),A=new Date(e[1]);if(!Number.isNaN(d.valueOf())){let p=ve(t.chart.uid,"formatLocale"),f=fl({type:V.DateAxisFormat,iLocale:t.chart.language.locale,formatLocale:p}),m=f.format(d,u);if(r=m,!Number.isNaN(A.valueOf())){let g=f.format(A,u);g!==m&&(r=`${r} - ${g}`)}}}return r?.toString()??""}function b1(a){let{seriesConfig:t,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:r,dataTooltipDateFormat:s,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:h,queryObject:c}=a,u,d=ve(n.chart.uid,"formatLocale");return Jm({seriesConfig:t,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:c})&&l!==void 0&&e?.type===V.DateAxisFormat?u=KQ({series:n,dateRange:l,xAxisValueFormat:e}):ro(e)?h&&typeof o=="number"?u=new Date(o).toLocaleTimeString(d):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(u=Rf({value:o,valueFormat:s??e,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&ba(e)?u=Rf({value:o,valueFormat:r??e,iLocale:n.chart.language.locale,formatLocale:d}):u=o,u?.toString()??""}function ZQ(a){let{series:t,fieldList:e,queryObject:i,setTimeBinningInfoWhenNotProvided:r,seriesIndex:s,seriesConfig:n,utilsStrings:o}=a,{dataTooltipValueFormat:l,dataTooltipPercentFormat:h,dataTooltipDateFormat:c}=n,u=()=>"",{chart:d}=t;if(d!==void 0){let A=ve(d.uid,"config");if(A!==void 0){let{dataTooltipVisible:p}=n,f=t instanceof Ti?n.markerVisible:void 0;if(p===!1||f===!1)u=()=>"";else{let m=A.axes,g=m[0].valueFormat,y=m[1].valueFormat,x=kt(A.series),w=e?.find(U=>U.name===n.x)?.type===GA.TimeOnly,S=ks(A)===$i.Stacked100,T=xh($s(i)).idField,F=Or(e,n.x),L=yA(F,m[0].title?.content.text),$=g1({config:A,fieldList:e,objectIdField:T,seriesIndex:s,utilsStrings:o,isStacked100:S}),I=Ra(d.rtl);u=U=>{let{statValue:P,percentValue:Q,xValue:G,dateBinningRange:Y}=U,ee=b1({seriesConfig:n,xAxisValueFormat:g,dataTooltipValueFormat:l,dataTooltipDateFormat:c,setTimeBinningInfoWhenNotProvided:r,series:t,xValue:G,dateBinningRange:Y,isTimeOnlyField:w,queryObject:i}),{formattedStatValue:te,formattedPercentValue:le}=YQ({isStacked100:S,yAxisValueFormat:y,dataTooltipValueFormat:l,dataTooltipPercentFormat:h,series:t,statValue:P,percentValue:Q}),z=[`<b>${L}${I} </b>${ee}`];switch(x){case ke.BarAndLineFromFields:{z.pop();let K=Tw({config:A,fieldName:Or(e,ee??""),utilsStrings:o});z.push(`<b>${K}${I} </b>${te}`);break}case ke.BarAndLineMonoField:case ke.BarAndLineNoAggregation:case ke.BarAndLineMultiFields:z.push(`<b>${$}${I} </b>${te}`);break;case ke.BarAndLineSplitByNoAggregation:case ke.BarAndLineSplitBy:{let K=Dn(n.query?.where,!1),we=tx({value:Or(e,K),escape:!0});z.push(`<b>${we}${I} </b>${t.name}<br /><b>${$}${I} </b>${te}`)}break}return S&&z.push(`<b>${o.statistics.percent}${I} </b>${le}`),z.join("<br />")}}}}return u}function x1(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{barAndLineTooltipFormatter:i??ZQ(a)}),Rv(t,e)}function Pw(a){let{target:t,defaultTooltipHTML:e,candleStickSeries:i,meanLineSeries:r,outliersSeries:s,tooltipCallback:n}=a,o=e,l=i??r;if(l!==void 0){let{chart:h}=l;if(h!==void 0){let c=ve(h.uid,"config"),{dataTooltipVisible:u}=c?.series[0]??{};if(u===!1)o="";else{let d=sa(l.uid,"boxPlotTooltipFormatter");d!==void 0&&l.isReady()&&c&&(o=n({target:t,defaultTooltipHTML:e,config:c,candleStickSeries:i,meanLineSeries:r,outliersSeries:s,boxPlotTooltipFormatter:d}))}}}return Zr(o)}function qQ(a){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,outliersSeries:s,boxPlotTooltipFormatter:n}=a,o=e;if(r!==void 0&&s!==void 0){let l=r.dataItems.values.find(c=>(c.categories.categoryX??c.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY)),h=i.series.find(c=>c.id===r.id);if(h!==void 0){let c=l?.dataContext??{};if(c!==void 0){let u=no({value:c[h.x],dataContext:c,useRendererLabel:Fl(i),specificField:pt.xAxisField}),d=oo(c);d===void 0&&(d=u),o=n({seriesName:s.name,xValue:u,originalXValue:d,dataContext:c})}}}return o}function JQ(a){let{target:t,defaultTooltipHTML:e,config:i,meanLineSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=r.dataItems.values.find(l=>(l.categories.categoryX??l.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY));if(o instanceof Wa){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=no({value:h[l.x],dataContext:h,useRendererLabel:Fl(i),specificField:pt.xAxisField}),u=oo(h);u===void 0&&(u=c),n=s({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function eH(a){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=t.dataItem;if(o instanceof gc){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=no({value:h[l.x],dataContext:h,useRendererLabel:Fl(i),specificField:pt.xAxisField}),u=oo(h);u===void 0&&(u=c),n=s({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function tH(a){a.cursorTooltipEnabled=!1,a.tooltipPosition=re.columnTooltipPosition,a.columns.template.tooltipHTML=re.htmlEmptyContent,a.columns.template.adapter.add("tooltipHTML",(t,e)=>Pw({target:e,defaultTooltipHTML:t??"",candleStickSeries:a,tooltipCallback:eH}))}function iH(a,t){let e=zr(a);e!==void 0&&(e.tooltipPosition=re.markerTooltipPosition,e.tooltipHTML=re.htmlEmptyContent,a.cursorTooltipEnabled=!1,e.adapter.add("tooltipHTML",(i,r)=>Pw({target:r,defaultTooltipHTML:i??"",candleStickSeries:t,outliersSeries:a,tooltipCallback:qQ})))}function rH(a){let t=zr(a);t!==void 0&&(a.cursorTooltipEnabled=!1,t.tooltipPosition=re.markerTooltipPosition,t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>Pw({target:i,defaultTooltipHTML:e??"",meanLineSeries:a,tooltipCallback:JQ})))}function uu(a){let{label:t,value:e,strongColon:i,useTable:r}=a,s=`<b>${t}${i}</b> ${e}`;return r!==!1?`<tr><td>${s}</td></tr>`:s}function sH(a){let{dataContext:t,series:e,dataTooltipValueFormat:i,y:r,splitBy:s,utilsStrings:n,useTable:o}=a,l=i??Wm(),h=Object.values(Yt),c=Ra(e.rtl),u=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return h.forEach(d=>{let A=Zi({key:d,y:r,splitBy:s}),p=t[A];if(p!=null&&typeof p=="number"){let f=ve(e.chart.uid,"formatLocale"),m=Rf({value:p,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:f}),g="";switch(d){case Yt.Min:g=n.statistics.minimum;break;case Yt.FirstQuartile:g=n.statistics.firstQuartile;break;case Yt.Median:g=n.statistics.median;break;case Yt.ThirdQuartile:g=n.statistics.thirdQuartile;break;case Yt.Max:g=n.statistics.maximum;break;case Yt.IQR:g=n.statistics.iqr;break;case Yt.Average:g=n.statistics.mean;break;case Yt.StandardDeviation:}Iu(g)||u.push(uu({label:g,value:m,strongColon:c,useTable:o}))}}),u}function aH(a){let{series:t,fieldList:e,seriesConfig:i,utilsStrings:r,queryObject:s}=a,{dataTooltipValueFormat:n}=i,o=()=>"",{chart:l}=t;if(l!==void 0){let h=ve(l.uid,"config");if(h!==void 0){let c=h.axes,u=c?.[0].valueFormat,{showMean:d}=h,A=kt(h.series),p=Dn(i.query?.where),f=Or(e,p),m=vh({where:i.query?.where,escape:!1}),g=Or(e,i.x),y;i.x!==jm&&(y=yA(g,c?.[0].title?.content.text));let x=Ra(l.rtl);o=w=>{let{dataContext:S,xValue:T}=w,F=b1({seriesConfig:i,xAxisValueFormat:u,series:t,xValue:T,queryObject:s}),L=[],$=F!==void 0&&!Iu(F)?Or(e,F):"",I=d===!0?[h.series[0].y].flat()[0]:[i.y].flat()[0],U=Or(e,I);switch(A){case ke.BoxPlotMonoField:case ke.BoxPlotMultiFields:case ke.BoxPlotMonoFieldAndSplitBy:case ke.BoxPlotMultiFieldsAndSplitBy:{if(F!==void 0&&!Iu(F)){let ee=A===ke.BoxPlotMonoField?i.name??$:$;L.push(uu({label:r.field,strongColon:x,value:ee}))}zi(f)||L.push(uu({label:f,strongColon:x,value:i.name??m?.toString()}));break}case ke.BoxPlotMonoFieldAndCategory:case ke.BoxPlotMultiFieldsAndCategory:{L.push(uu({label:r.field,strongColon:x,value:i.name??U})),F!==void 0&&!Iu(F)&&L.push(uu({label:y,strongColon:x,value:$}));break}case ke.BoxPlotMonoFieldAndCategoryAndSplitBy:L.push(uu({label:r.field,strongColon:x,value:U})),F!==void 0&&!Iu(F)&&L.push(uu({label:y,strongColon:x,value:$})),zi(f)||L.push(uu({label:f,strongColon:x,value:i.name??m?.toString()}));break}let P=[ke.BoxPlotMultiFieldsAndCategory],Q=S[re.boxPlot.boxPlotMeanLineMarkerId]!==void 0,G=L.length>0&&!Q,Y=sH({dataContext:S,series:t,dataTooltipValueFormat:n,splitBy:i.query?.where,y:P.includes(A)?[i.y].flat()[0]:void 0,utilsStrings:r,useTable:G});return G?`${L.join("<br>")}<table>${Y.join("")}</table>`:`${L.join("<br>")}${Y.join("<br>")}`}}}return o}function nH(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{boxPlotTooltipFormatter:i??aH(a)}),Rv(t,e)}function oH(a){let t=ml(re.dataLabelInitialize);return fu(t.uid,{isDataLabel:!0}),a.bullets.push(t),h1(t),n1(V.LineSeries,t),o1(V.LineSeries,t),aw(t,a),t.html="{valueX}",t}function lH(a){let{series:t}=a,e=sw(t,"bullets");u1({...a,dataLabel:e,defaultDataLabelFormatter:l1})}var B={Rotated:0,NonRotated:1,RTL:2,LTR:3,Stacked:4,Stacked100:5,SideBySide:6,LegendTop:7,LegendBottom:8,LegendLeft:9,LegendRight:10,DateAxis:11,ValueAxis:12,CategoryAxis:13,OrderByFieldsASC:14,OrderByFieldsDESC:15},_1=new Set([`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`]);function hH(a,t){t!==void 0&&(t.layout!==void 0&&(a.layout=t.layout),t.width!==void 0&&(a.width=HL(t.width)),t.height!==void 0&&(a.height=HL(t.height)),t.paddingTop!==void 0&&(a.paddingTop=t.paddingTop),t.paddingBottom!==void 0&&(a.paddingBottom=t.paddingBottom))}function uH(a){let t=!1,e=a.legend?.visible,i=a.legend?.title?.content.text,r=a.legend?.title?.visible;return t=e!==!1&&r!==!1&&i!==void 0&&i.length>0,t}function C1(a,t){let e=new Pe;return hH(e,a),e.parent=t,e}function w1(a,t){a.disabled=t}function cH(a,t){a.toBack()}function dH(a){if(a instanceof Ys){let{paddingTop:t,paddingRight:e,paddingBottom:i,paddingLeft:r}=re.gauge;a.padding(t,e,i,r)}else{let{paddingMinSize:t,marginMinSize:e,chartPaddingMinSize:i,chartContainer:r}=re;a.padding(i,i,i,i),a.chartAndLegendContainer.margin(e,e,e,e),a.chartAndLegendContainer.padding(t,t,t,t),a.chartContainer.margin(e,e,e,e),a.chartContainer.padding(r.paddingTop,t,t,t)}}function AH(a,t){let e=(i,r)=>{let{chartContainer:s,chartAndLegendContainer:n}=re,o=ve(i.uid,"config");if(o!==void 0){let l=uH(o),h=o.legend?.position;if(l)switch(h){case st.Top:i.chartAndLegendContainer.paddingTop=r.bbox.height??0,i.chartContainer.paddingBottom=s.paddingBottom??0;break;case st.Bottom:i.chartContainer.paddingBottom=r.bbox.height??0,i.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=s.paddingBottom??0;break}else i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=s.paddingBottom??0}};t.events.on(Ie.PositionChanged,()=>{e(a,t)})}function Dw(a){let{iLocale:t,pieChart:e,valueIntlOptions:i,percentageIntlOptions:r,displayNumericValue:s,displayPercentage:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}=a,u=ve(e.uid,"formatLocale"),d=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u}),A=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u});d.numberFormat={...i},A.numberFormat={...r,style:"percent"};let p=Ra(e.rtl," ");return(f,m,g)=>{let y="";if(m!==void 0&&g!==void 0){let x=`${o??""}${d.format(m)}${l??""}`,w=`${h??""}${A.format(Math.abs(g/100))}${c??""}`;Number.isFinite(m)?s===!0&&n===!0?y=`${w}${p}(${x})`:s===!0?y=x:n===!0&&(y=w):y=""}return y}}function B1(a){let t=!1;if(a.position===st.Right||a.position===st.Left)t=!0;else{let e=a.labels.getIndex(0)?.parent?.x;e!==void 0&&(t=!a.labels.values.some(i=>i.parent?.x!==e))}return t}function pH(a){let t=!1,e=a.labels.getIndex(0)?.parent?.y;return e!==void 0&&(t=!a.labels.values.some(i=>i.parent?.y!==e)),t}function fH(a){a.events.on(Ie.LayoutValidated,()=>{let t=B1(a),e=pH(a),i=t||!e?"right":"center";a.valueLabels.template.horizontalCenter=bw(i),a.valueLabels.template.align=NI(i)})}function mH(a){fu(a.valueLabels.template.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapter.add("htmlOutput",(t,e)=>{let i=t,r=PN(a.uid,"pieChartLegendValueLabelsFormatter");if(r!==void 0&&(i=r(e.dataItem?.values?.value?.value??0,e.dataItem?.values?.value?.percent??0)),zi(i)&&(i=re.htmlEmptyContent),a.baseSprite instanceof Vl){let s=ve(a.baseSprite.uid,"config");s?.legend?.body!==void 0&&(i=xa({textSymbol:{...s.legend.body,text:i},format:"html"}))}return Zr(i)}),a.valueLabels.template.html=re.htmlEmptyContent,fH(a)}function gH(a){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r}=a,{visible:s,body:n,displayNumericValue:o,displayPercentage:l,displayCategory:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=h??re.pieChart.displayCategoryOnLegend,g=o??re.pieChart.displayNumericValueOnLegend,y=l??re.pieChart.displayPercentageOnLegend,x=r;if(r===void 0){let T=Dw({iLocale:t.language.locale,pieChart:t.baseSprite,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:g,displayPercentage:y,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});x=(F,L)=>T("",F,L)}DN(t.uid,{pieChartLegendValueLabelsFormatter:x});let w=B1(t),S={type:V.Text,visible:s,content:{...n,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:w?"right":"center"}};_n({label:t.valueLabels.template,labelConfig:S,defaults:re.legendProperties.valueLabels}),t.labels.template.disabled=m===!1,t.valueLabels.template.disabled=g===!1&&y===!1}}function yH(a){let{dataContext:t}=a.target.dataItem??{};if(t instanceof Fa){let{component:e}=t;e instanceof ws&&e.showTooltip()}}function vH(a){let t=()=>{let e=a.children.values.find(i=>i.className==="Container");if(e?.children.length===3){let i=e.children.values.findIndex(r=>r.className==="Container");if(i!==-1){let r=i!==0?0:2,s=e.children.getIndex(r)?.clonedFrom;s!==void 0&&ms(s.uid,"isLegendValueLabel")!==!0&&a.children.each(n=>{n.className==="Container"&&n.children.swap(1,r)})}}};a.events.on(Ie.Validated,t),t()}function qL(a,t){let{legendLabelReducedOpacity:e}=re.legendProperties;a!==void 0&&(a.fillOpacity=t===!1?e:1)}function kf(a){let{labels:t,seriesId:e,sliceCategory:i}=a;t.each(r=>{i!==void 0?i===r.dataItem.category&&qL(r,r.dataItem.slice.visible??!0):e===r.dataItem?.component?.id&&qL(r,r.dataItem?.component?.visible??!0)})}function Lw(a){a instanceof ws?(a.slices.template.events.on(Ie.Shown,t=>{let e=t.target.dataItem.category;kf({labels:a.chart?.legend?.labels,sliceCategory:e}),kf({labels:a.chart?.legend?.valueLabels,sliceCategory:e})}),a.slices.template.events.on(Ie.Hidden,t=>{let e=t.target.dataItem.category;kf({labels:a.chart?.legend?.labels,sliceCategory:e}),kf({labels:a.chart?.legend?.valueLabels,sliceCategory:e})})):a.events.on(Ie.VisibilityChanged,t=>{let e=t.target.id;kf({labels:a.chart?.legend?.labels,seriesId:e})})}function S1(a){let{title:t,visible:e}=a;return t!==void 0&&e!==!1&&t?.visible!==!1}function bH(a,t){let{legendProperties:e}=re;if(a.position===st.Bottom)a.marginTop=e.marginTop??0,a.marginBottom=0,a.dy=0;else if(a.position===st.Top)a.marginBottom=e.marginBottom??0,a.marginTop=0,a.dy=0;else if(a.marginTop=0,a.marginBottom=0,!(a.baseSprite instanceof qi)){let i=S1(t),r=t.title?.content?.font?.size??re.generalFontSize;a.dy=-(i?r:15)}}function xH(a){let t=a.baseSprite,e;if(t!==void 0){let i=ve(t?.uid,"config");e=t?.rtl&&(i?.legend?.position===st.Top||i?.legend?.position===st.Bottom)}return e??!1}function _H(a){let t=a.baseSprite,e="";if(t instanceof Vt){let i=ve(t.uid,"config"),r=us(i),s=r?B.Rotated:B.NonRotated,n=ks(i),o=B.SideBySide;n===$i.Stacked?o=B.Stacked:n===$i.Stacked100&&(o=B.Stacked100);let l=t.rtl?B.RTL:B.LTR,h;switch(i?.legend?.position){case st.Left:h=B.LegendLeft;break;case st.Top:h=B.LegendTop;break;case st.Bottom:h=B.LegendBottom;break;case st.Right:default:h=B.LegendRight;break}let c=r?t.yAxes.getIndex(0):t.xAxes.getIndex(0),u;c instanceof Ct?u=B.DateAxis:c instanceof Qe?u=B.ValueAxis:u=B.CategoryAxis;let d=i?.orderOptions?.data&&"orderBy"in i.orderOptions.data&&i.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;e=`${s}-${l}-${o}-${h}-${u}-${d}`}return e}function CH(a){let t=_H(a);return _1.has(t)}function F1(a,t){let{legend:e,legendTitle:i}=a??{};switch(t){case V.PieSeries:e.reverseOrder=xH(e);break;case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:e.reverseOrder=CH(e);break}let r=e.reverseOrder===!0?e.children.length-1:0;e.children.moveValue(i,r)}function wH(a){if(a.visible){let t=ve(a.chart.uid,"config")?.series.find(e=>e.id===a.id);if(t!==void 0&&ze([t])===V.LineSeries){let{markerVisible:e}=t;e!==!1&&a.bulletsContainer.show()}}}function BH(a,t){let e=a.target.dataItem,i=a.target.isActive;if(e?.dataContext!==void 0){let{dataContext:r}=e,s={visible:i};if(r instanceof Fa)ve(t.uid,"isNonAggregatedChart")===!0?s.sliceData=r.dataContext:s.sliceId=r.category;else if(r instanceof wr){let o=r.id,l=jf(t,o);if(l!==void 0){let d=ve(t.uid,"config"),A=kw(d?.showOutliers,i),p=zr(l);p!==void 0&&(p.disabled=!A),Ui(l,A)}let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t,o);h!==void 0&&Ui(h,i),c!==void 0&&Ui(c,i),u!==void 0&&Ui(u,i),s.seriesId=r.id}else s.seriesId=r.id;let n=r instanceof Fa?r.component:r;(n instanceof Qr||n instanceof ws)&&n.events.once(Ie.Validated,()=>{n instanceof Qr&&(R1(n),n.events.dispatchImmediately(Ie.Validated,{type:Ie.Validated,target:n}));let o=n instanceof ws,l=ve(t.uid,"currentSelectionDataItems"),h=l!==void 0&&l.length>0,c=ve(t.uid,"actionMode")??re.actionMode,u;n instanceof Xi?u=n.columns:o?u=n.slices:n instanceof Ti&&(wH(n),u=zr(n)?.clones),u?.each(d=>{d.dataItem instanceof Go||(Zn({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!h}),o&&c===Ut.None&&(d.clickable=!1))})}),ox(s,t.htmlContainer)}}function SH(a){let{legendProperties:t,legendProperties:e}=re;a.adapter.add("paddingRight",()=>a.scrollbar.visible?e.legendPaddingRightWithScrollbarVisible:t.paddingRight),a.adapter.add("paddingLeft",()=>t.paddingLeft),a.adapter.add("paddingTop",()=>t.paddingTop),a.adapter.add("paddingBottom",()=>t.paddingBottom)}function FH(a){a.scrollable=!0}function TH(a){let t=ml(void 0,a);return t.adapter.add("paddingTop",e=>{let i=e,r=t.bbox.height;return r>0&&(i=-r),i}),t.adapter.add("x",e=>{let i=e,{marginLeft:r,marginRight:s}=re.legendProperties.legendTitle;switch(ve(a.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case"left":i=t.measuredWidth+(r??0);break;case"right":i=a.measuredWidth-t.measuredWidth-(s??0);break;default:i=a.measuredWidth/2;break}return i}),t.adapter.add("disabled",e=>(e===!1&&t.validate(),e)),t}function PH(a){let{legendConfig:t,legendTitle:e}=a,{title:i,position:r}=t,{legendTitle:s}=re.legendProperties,n=S1(t);if(i!==void 0){let o={...i,visible:n};_n({label:e,labelConfig:o,defaults:s}),e.marginLeft=s.marginLeft??0}r===st.Top||r===st.Bottom?(e.maxWidth=Number.NaN,e.isMeasured=!1):(e.maxWidth=s.maxWidth??Number.NaN,e.marginTop=n?e.bbox?.height??i?.content?.font?.size??re.generalFontSize:0,e.isMeasured=!0)}function DH(a){let t=re.legendProperties;a.labels.template=ml(t.legendLabels),a.valueLabels.template=ml(t.legendLabels),a.markers.template.width=t.legendMarkersSize,a.markers.template.height=t.legendMarkersSize,a.labels.template.adapter.add("wrap",()=>!0),a.labels.template.adapter.add("maxWidth",e=>{let i=e,r;if(a.baseSprite instanceof qi&&(r=ve(a.baseSprite.uid,"config")?.legend?.labelMaxWidth),a.position===st.Right||a.position===st.Left)i=r??re.legendProperties.legendLabels.maxWidth;else if(r!==void 0)i=r;else{let s=0;a.valueLabels.template.disabled||a.valueLabels.each(n=>{s=Math.max(s,n.measuredWidth)}),i=a.measuredWidth-s-45}return i}),a.labels.template.adapter.add("textOutput",(e,i)=>{let r=i.dataItem?.label?.currentText,s,n=ve(a.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(ze(o)===V.PieSeries){let l=kt(o)===ke.PieFromFields?ao:o[0].x,h=i.dataItem?.dataContext?.[l];typeof h=="string"?s=h:h&&typeof h!="object"&&(s=h.toString())}else i.dataItem?.component instanceof go&&(s=i.dataItem.component.name)}return(s!==void 0&&!zi(s)?ig(s):s)??r}),a.valueLabels.template.adapter.add("maxWidth",e=>{let i=e,r;return a.baseSprite instanceof qi&&(r=ve(a.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),a.position===st.Right||a.position===st.Left?i=r??re.legendProperties.valueLabels.maxWidth:i=r??Number.NaN,i})}function LH(a,t){a.itemContainers.template.events.on(Ie.Hit,e=>BH(e,t)),t instanceof qi&&a.itemContainers.template.events.on(Ie.Over,e=>yH(e))}function IH(a){a.itemContainers.template.reverseOrder=a.rtl}function gv(a,t){a.adapter.keys().includes(t)||a.adapter.add(t,e=>{let i=e,r=a.dataItem?.dataContext;if(r!==void 0){let s=r instanceof Fa?r.component?.chart:r.chart;if(s!==void 0){let n=ve(s.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:l}=re.legendProperties;i=n?.legend?.roundMarkers===!0?l:o}}return i})}function JL(a){a.markers.each(t=>{let e=t.children.getIndex(0);e instanceof Nr&&(gv(e,"cornerRadiusBottomLeft"),gv(e,"cornerRadiusBottomRight"),gv(e,"cornerRadiusTopLeft"),gv(e,"cornerRadiusTopRight"),e.validate())})}function kH(a){a.markers.template.events.on(Ie.Inited,()=>{JL(a)}),a.events.once(Ie.Validated,()=>{JL(a)})}function $H(a){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i}=a,{visible:r,body:s}=i??{},n=ze(e),o={type:V.Text,visible:r,content:{...s,type:Rt.TS,text:" "}};_n({label:t.labels.template,labelConfig:o,defaults:re.legendProperties.legendLabels}),t.labels.template.valign="middle",t.valueLabels.template.valign="middle",n===V.PieSeries&&gH(a),t.valueLabels.template.width=Number.NaN}function OH(a,t){t.chartContainer.events.on(Ie.SizeChanged,Is(()=>{let e=ve(t.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(e)||(a.position===st.Top||a.position===st.Bottom?e=re.legendProperties.maxHeight:e=t instanceof qi?t.chartContainer.measuredHeight:t.seriesContainer.measuredHeight),a.maxHeight=e,a.invalidateLayout()}),re.debounceTime)}function EH(a,t){let{position:e}=t;e===st.Top||e===st.Bottom?a.contentAlign="center":a.contentAlign="none"}function MH(a,t){let{legend:e}=a;e.events.on(Ie.DataItemsValidated,()=>{e.dataItems.length>0&&F1(a,t)})}function RH(a,t){t===st.Right||t===st.Left?a.width=Number.NaN:a.maxWidth=Number.MAX_SAFE_INTEGER}function T1(a,t){let e=si.pointer;t===!0?(a.itemContainers.template.clickable=!1,a.itemContainers.template.focusable=!1,e=si.default):(a.itemContainers.template.clickable=!0,a.itemContainers.template.focusable=!0),a.itemContainers.values.forEach(i=>{i.cursorOverStyle=e})}function UH(a,t){let e=new oc;a.legend=e,FH(e);let i=TH(e);return DH(e),mH(e),LH(e,a),IH(e),SH(e),MH({legend:e,legendTitle:i},ze(t)),OH(e,a),AH(a,i),vH(e),a.legend.events.on(Ie.ChildAdded,()=>{let r=ve(a.uid,"options");T1(e,r?.togglingLegendItemsDisabled)}),{legend:e,legendTitle:i}}function Iw(a){let{legendElements:t,seriesConfig:e,webChartLegend:i}=a,{legend:r,legendTitle:s}=t,n=r.baseSprite,o=(n===void 0?!0:ix(e))&&i?.visible!==!1;if(n&&i&&o){let{position:l=re.legendProperties.position}=i;Ui(r,!0),PH({legendConfig:i,legendTitle:s}),kH(r),$H(a),EH(r,i),F1(t,ze(e)),r.position=l,RH(r,l),bH(r,i),T1(r,ve(n.uid,"options")?.togglingLegendItemsDisabled)}else r.position=st.Right,r.width=0,Ui(r,!1)}function VH(a){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],queryObject:s,selectionTheme:n,ignoreSmoothRenderingLimit:o,errorStrings:l}=a,h=e.series.length,{rotated:c}=e,u=e.series[i],{y:d,name:A,id:p,assignToSecondValueAxis:f}=u,m=new Ti;m.id=p,_A(m,A);let g,y;c!==!0?(g=r[0],y=f===!0&&r[2]?r[2]:r[1]):(g=f===!0&&r[2]?r[2]:r[0],y=r[1]),g!==void 0&&(m.xAxis=g),y!==void 0&&(m.yAxis=y);let x=xn({chart:t}),w=kt(e.series),S=w===ke.BarAndLineSplitByNoAggregation?`${d.toString()}_${vh({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];x?m.dataFields.valueX=S:m.dataFields.valueY=S;let T=x?r[1]:r[0];if(T!==void 0){let $=c1(T,x);m.dataFields[$]=re.xAxisField}m.dataFields.customValue=u?.query?.where;let F=$s(s);P1({series:m,seriesConfig:u,seriesIndex:i,chartSubType:w,colorMatch:e.colorMatch===!0,rendererType:rg(e.chartRenderer,F?.renderer)}),D1(u,m);let L=Bw({chart:t,lineSeries:m,applyPropertiesToClones:!1});return v1(L,m),oH(m),Xc({element:L,customSelectionTheme:n}),Hf({chart:t,element:L,queryObject:s,errorStrings:l}),$Q({chart:t,numberOfChartSeries:h,series:m,seriesType:V.LineSeries,marker:L,ignoreSmoothRenderingLimit:o}),Lw(m),Wc(m),m}function NH(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n,rendererType:o}=a,l=zr(t),h=!1,c;if(l!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:u}=r;u===void 0&&(u=Kb(),u.color=n),s?u.color=n:u.color??=n;let d=new Set,A;Cv({element:l,markerSymbol:u}),l.clones.each(p=>{if(p.dataItem instanceof Go)Cv({element:p,markerSymbol:u}),p.states.getKey(ia.CustomActive)?.reset(),p.states.getKey(ia.CustomInactive)?.reset();else{let f=p.dataItem?.dataContext,m=on({seriesConfig:r,dataItem:f,chartSubType:i,colorMatch:s,rendererType:o}),g=du({seriesConfig:r,seriesIndex:e,seriesSymbol:u,element:p,colorMatch:s,rendererSymbol:m});c=g.symbolWithColorInfo,A=g.stylingInfo,gA({element:p,stylingInfo:A}),d.add(JSON.stringify(A))}}),h=d.size>1,h||gA({element:l,stylingInfo:A})}return h?void 0:c}function QH(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;return t.dataItems?.values.every(o=>{let l=!0,h=o.dataContext;return n=on({seriesConfig:e,dataItem:h,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0&&(l=!1),l}),n}function P1(a){let{series:t,seriesIndex:e,seriesConfig:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t,l=QH({series:o,seriesConfig:i,chartSubType:r,colorMatch:s,rendererType:n}),h=du({seriesConfig:i,seriesIndex:e,seriesSymbol:i.lineSymbol??Zb(e),element:o,colorMatch:s,rendererSymbol:l});return Ui(o,i.visible),h.symbolWithColorInfo}function D1(a,t){a.showArea===!0?a.areaColor!==void 0?(t.fill=bn(a.areaColor),t.fillOpacity=t.fill.alpha===0?0:1):(t.fill=Ne(t.stroke.hex,1),t.fillOpacity=re.lineSeries.areaOpacity):t.fillOpacity=0}function L1(a){let{series:t,seriesIndexMapper:e,seriesSymbolMapForEvent:i,seriesIndex:r,colorMatch:s,rendererType:n}=a,o=a.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=kt(l?.series);Ui(t,o.visible);let u=P1({series:t,seriesConfig:o,seriesIndex:r,chartSubType:c,colorMatch:s,rendererType:n}),d=NH({series:t,seriesIndex:r,seriesConfig:o,chartSubType:c,colorMatch:s,lineColor:u.color,rendererType:n});i.set(e.get(o.id)??r,{lineSymbol:u,markerSymbol:d}),D1(o,t),i.size===h&&(nn({data:i,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)}),t.chart.feedLegend())}function HH(a){let{seriesConfig:t,lineSeries:e,isRotated:i}=a;t.lineSmoothed===!0?e.smoothing=i?jb.MonotoneY:jb.MonotoneX:e.smoothing=re.lineSeries.lineSmoothedKind}function jH(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.connect=e!==!1&&r!==Wb.Null}function WH(a){let{seriesConfig:t,series:e,axes:i,rotationChanged:r,seriesIndex:s,fieldList:n,stackedType:o,queryObject:l,options:h,utilsStrings:c}=a,{visible:u,name:d}=t,A=i[1].valueFormat,p=ve(e.chart.uid,"config"),f=xn({config:p}),m=kt(p?.series);e.id=t.id,Ui(e,u);let g=d,y=e.dataFields?.customValue??"";(m===ke.BarAndLineSplitBy||m===ke.BarAndLineSplitByNoAggregation)&&(g=ag({queryObject:l,fieldName:Dn(y),fieldValue:g})??g),_A(e,g),Sw({series:e,seriesConfig:t,rotationChanged:r,stackedType:o,isRotated:f}),jH(e,t),Ev({styleCallback:()=>L1(a),series:e,seriesConfig:t}),HH({seriesConfig:t,lineSeries:e,isRotated:f}),x1({series:e,seriesConfig:t,fieldList:n,queryObject:l,seriesIndex:s,setTimeBinningInfoWhenNotProvided:h?.setTimeBinningInfoWhenNotProvided,utilsStrings:c,tooltipFormatter:h?.tooltipFormatter}),lH({series:e,seriesType:V.LineSeries,stackedType:o,dataLabelsConfig:t.dataLabels,yAxisValueFormat:A,customDataLabelFormatter:h?.dataLabelFormatter})}function Uv(a,t){let e=a.series.values.find(s=>s.id===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.id===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.id===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function jf(a,t){return a.series.values.find(e=>e.id===`${t}_${ji.Outliers}`)}function kw(a,t){return(a??re.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function XH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=oa(i),h=i.series[r],[c,u]=e,d=new wr;return d.hoverable=!0,l||(Xc({element:d.columns.template,customSelectionTheme:s}),Hf({chart:t,element:d.columns.template,queryObject:n,errorStrings:o})),d.id=h.id,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),_A(d,h.name),Wc(d),d}function YC(a){let{axisList:t=[],chartConfig:e,seriesIndex:i,type:r,selectionTheme:s}=a,n=e.series[i],[o,l]=t,h=new Aa;return h.hoverable=!0,h.id=`${n.id}_${r}`,o!==void 0&&(h.xAxis=o),l!==void 0&&(h.yAxis=l),h.noRisers=!0,h.simplifiedProcessing=!0,Xc({element:h.segments.template,customSelectionTheme:s}),h.hiddenInLegend=!0,Wc(h),h}function zH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=i.series[r],h=oa(i),[c,u]=e,d=new Ti;Jn(d.uid,{isBoxPlotOutliersSeries:!0}),d.id=`${l.id}_${ji.Outliers}`,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let A=Bw({chart:t,lineSeries:d});return h||(Xc({element:A,customSelectionTheme:s}),Hf({chart:t,element:A,queryObject:n,errorStrings:o})),Wc(d),d}function CA(a){let{chartConfig:t,seriesConfig:e,meanLineSeries:i,candleStickSeries:r,topStepLineSeries:s,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:l,creation:h=!1,rotationChanged:c,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:d}=a,{x:A,y:p}=e,f=h||c===!0||d===!0,m=f||u===!0,g=f,y=f;if(t!==void 0){let{showOutliers:x,standardizeValues:w,showMean:S}=t,T=xn({config:t});if(i instanceof Ti&&y){let P=kt(t.series),Q=e?.query?.where,G=Zi({y:P===ke.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:P,splitBy:Q,showOutliers:x,standardizeValues:pd(P)?w:!1,key:Yt.Average});T?(i.dataFields.valueX=G,i.dataFields.categoryY=A):(i.dataFields.valueY=G,i.dataFields.categoryX=A),i.dataFields.customValue=Q}let F=hg(t),L=kt(F.series),$=S===!0?void 0:e?.query?.where,I={y:L===ke.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:L,splitBy:$,showOutliers:x,standardizeValues:pd(L)?w:!1};if(m){if(r instanceof wr){let P=Zi({...I,key:Yt.Min}),Q=Zi({...I,key:Yt.FirstQuartile}),G=Zi({...I,key:Yt.Max}),Y=Zi({...I,key:Yt.ThirdQuartile});T?(r.dataFields.lowValueX=P,r.dataFields.openValueX=Q,r.dataFields.highValueX=G,r.dataFields.valueX=Y,r.dataFields.categoryY=A):(r.dataFields.lowValueY=P,r.dataFields.openValueY=Q,r.dataFields.highValueY=G,r.dataFields.valueY=Y,r.dataFields.categoryX=A),r.dataFields.customValue=$}if(s instanceof Aa&&n instanceof Aa&&o instanceof Aa){let P=Zi({key:Yt.Max,...I}),Q=Zi({key:Yt.Median,...I}),G=Zi({key:Yt.Min,...I});T?(s.dataFields.valueX=P,n.dataFields.valueX=Q,o.dataFields.valueX=G,s.dataFields.categoryY=A,n.dataFields.categoryY=A,o.dataFields.categoryY=A):(s.dataFields.valueY=P,n.dataFields.valueY=Q,o.dataFields.valueY=G,s.dataFields.categoryX=A,n.dataFields.categoryX=A,o.dataFields.categoryX=A),s.dataFields.customValue=$,o.dataFields.customValue=$,n.dataFields.customValue=$}}if(l instanceof Ti&&g){let P=Zi({...I,key:Yt.Outlier});T?(l.dataFields.valueX=P,l.dataFields.categoryY=A):(l.dataFields.valueY=P,l.dataFields.categoryX=A),l.dataFields.customValue=$,l.invalidateRawData()}let U=i?.chart??r?.chart;U!==void 0&&(m||y)&&U.invalidateRawData()}}function GH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=i.series[r],[h,c]=e,u=new Ti;Jn(u.uid,{isBoxPlotMeanLineSeries:!0}),u.id=l.id,h!==void 0&&(u.xAxis=h),c!==void 0&&(u.yAxis=c),u.simplifiedProcessing=!0;let d=Bw({chart:t,lineSeries:u});return Xc({element:d,customSelectionTheme:s}),Hf({chart:t,element:d,queryObject:n,errorStrings:o}),Wc(u),rH(u),CA({chartConfig:i,seriesConfig:l,meanLineSeries:u,creation:!0}),u}function YH(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries){let n=XH(a),o=YC({...a,type:ji.Top}),l=YC({...a,type:ji.Median}),h=YC({...a,type:ji.Bottom}),c=zH(a);tH(n),iH(c,n),CA({chartConfig:t,seriesConfig:i,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:l,bottomStepLineSeries:h,outliersSeries:c,creation:!0}),s.push(n,o,l,h,c)}else if(r===V.LineSeries){let n=GH(a);s.push(n)}return s}function KH(a){let{candleStickSeries:t,seriesConfig:e,stylingInfo:i,chartSubType:r,colorMatch:s,rendererType:n}=a;if(i!==void 0){let o={...i},l=s1({data:t.chart.data,colorMatch:s,chartSubType:r,rendererType:n});i?.outline!==void 0&&l&&(o.outline.stroke=Nc(re.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t.chart,t.id);if(h!==void 0&&c!==void 0&&u!==void 0&&o.outline!==void 0){o.outline.strokeWidth=re.boxPlot.boxPlotLineWidth,fA(h,o.outline),fA(c,o.outline),fA(u,o.outline);let d=e.visible!==!1;Ui(h,d),Ui(c,d),Ui(u,d)}}}function ZH(a){let{candleStickSeries:t,seriesConfig:e,showOutliers:i,seriesSymbol:r}=a;if(r!==void 0){let s=jf(t.chart,t.id);if(s!==void 0){let n=zr(s);if(n!==void 0){let o=kw(i,e.visible),l={type:Rt.SMS,style:YA.Circle,color:r.color,size:re.boxPlot.boxPlotOutliersSize};n.clones.each(h=>{let c=t.dataItems.values.find(u=>(u.categories.categoryX??u.categories.categoryY)===(h.dataItem?.categories.categoryX??h.dataItem?.categories.categoryY))?.column?.fill;Cv({element:h,markerSymbol:{...l,color:RI(c)??l.color},visible:o})})}}}}function qH(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,showMean:o,rendererType:l}=a,h,c,u,d=new Set,A=!1,p=e.fillSymbol??zm(i);if(t.columns.length===0?(u=du({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:new Ee,colorMatch:n,isChartFillSymbol:!0}),h=u.symbolWithColorInfo,c=u.stylingInfo):t.columns.each(f=>{u=du({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:f,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:on({dataItem:f.dataItem?.dataContext,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:l})}),h=u.symbolWithColorInfo,c=u.stylingInfo,d.add(JSON.stringify(h))}),A=d.size>1,r>1){let f=t.legendDataItem?.marker.children.getIndex(0);f!==void 0?gA({element:f,stylingInfo:c}):t.chart.legend.events.once(Ie.Validated,()=>{gA({element:t.legendDataItem?.marker.children.getIndex(0),stylingInfo:c}),t.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:A,seriesSymbol:h,stylingInfo:c}}function JH(a){let{series:t,showOutliers:e,colorMatch:i,seriesIndex:r,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:l,queryObject:h}=a,c=ve(t.chart.uid,"config"),u=oa(c),d=c?.series.length??0,A=kt(c?.series),p=!1,f;if(t instanceof wr&&o.type===V.BoxPlotSeries){let m=qH({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:d,chartSubType:A,colorMatch:i,showMean:u,rendererType:l}),{stylingInfo:g}=m;({multipleSymbolsForOneSeries:p,seriesSymbol:f}=m),n.set(s.get(o.id)??r,p?void 0:{fillSymbol:f??o.fillSymbol}),KH({candleStickSeries:t,seriesConfig:o,colorMatch:i,stylingInfo:g,chartSubType:A,rendererType:l}),ZH({candleStickSeries:t,seriesConfig:o,showOutliers:e,seriesSymbol:f})}else t instanceof Ti&&o.type===V.LineSeries&&L1({series:t,seriesConfig:o,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesIndex:r,colorMatch:i,rendererType:l});n.size===d&&nn({data:n,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)})}function e2(a){let{numberOfSeries:t,chart:e,showMean:i}=a,r=xn({chart:e}),s=r?e.yAxes.getIndex(0)?.renderer:e.xAxes.getIndex(0)?.renderer;if(s!==void 0){let{cellStartLocation:n,cellEndLocation:o}=s,l=n/(i===!0?1:t),h=e.series.values.filter(c=>c instanceof wr);h.forEach((c,u)=>{let d=n+u/h.length*(o-n)+l,A=n+(u+1)/h.length*(o-n)-l,{topStepLineSeries:p,medianStepLineSeries:f,bottomStepLineSeries:m}=Uv(e,c.id);p!==void 0&&(p.startLocation=d,p.endLocation=A),f!==void 0&&(f.startLocation=d,f.endLocation=A),m!==void 0&&(m.startLocation=d,m.endLocation=A);let g=jf(e,c.id);if(g!==void 0){let y=(d+A)/2;r?g.dataItems.template.locations.categoryY=y:g.dataItems.template.locations.categoryX=y}})}}function t2(a){let{outliersSeries:t,chartData:e,dataWasUpdated:i,rotationChanged:r,seriesReordered:s,seriesWereReinitialized:n}=a;(r||i||s||n)&&(t.data=e?.outliers??[])}function i2(a){let{meanLineSeries:t,chartData:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesReordered:n,seriesWereReinitialized:o}=a;(i||s||r||n||o)&&(t.data=e?.meanLines??[],t.invalidateData())}function r2(a){let{chart:t,chartConfig:e,seriesConfig:i,chartData:r,candleStickSeriesId:s,showOutliers:n,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,seriesWereReinitialized:d}=a,A=jf(t,s);if(A!==void 0){let p=zr(A);if(p!==void 0){let f=kw(n,i.visible);p.disabled=!f,t2({outliersSeries:A,chartData:r,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,seriesWereReinitialized:d})}CA({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,rotationChanged:l,outliersSeries:A})}}function s2(a){let{meanLineSeries:t,seriesConfig:e,chartData:i,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o,chartConfig:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c}=a;_A(t,e?.name),CA({chartConfig:l,seriesConfig:e,meanLineSeries:t,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,rotationChanged:o}),i2({meanLineSeries:t,chartData:i,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o})}function a2(a){let{series:t,chartConfig:e,seriesConfig:i,rotationChanged:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n}=a;_A(t,i?.name),t.hiddenInLegend=oa(e),CA({chartConfig:e,seriesConfig:i,candleStickSeries:t,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:r})}function n2(a){let{chart:t,chartConfig:e,seriesConfig:i,candleStickSeriesId:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o}=a,l=i.visible!==!1,{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t,r);h!==void 0&&Ui(h,l),c!==void 0&&Ui(c,l),u!==void 0&&Ui(u,l),CA({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u})}function o2(a){let{chart:t,series:e,chartData:i,utilsStrings:r,dataWasUpdated:s,sortChanged:n,seriesReordered:o,fieldList:l,outliersVisibilityChanged:h,showMean:c,seriesConfig:u,showOutliers:d,standardizeValuesVisibilityChanged:A,rotationChanged:p,seriesWereReinitialized:f,options:m,queryObject:g}=a,{tooltipFormatter:y}=m??{};e2({numberOfSeries:a.numberOfSeries,chart:t,showMean:c});let x=ve(t.uid,"config");if(x!==void 0){if(e instanceof wr&&u.type===V.BoxPlotSeries){let{id:w}=e;a2({series:e,chartConfig:x,seriesConfig:u,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A}),n2({chart:t,chartConfig:x,seriesConfig:u,candleStickSeriesId:w,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,rotationChanged:p}),r2({chart:t,chartConfig:x,seriesConfig:u,chartData:i,showOutliers:d,candleStickSeriesId:w,dataWasUpdated:s,rotationChanged:p,seriesReordered:o,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,seriesWereReinitialized:f})}else e instanceof Ti&&u.type===V.LineSeries&&s2({chartConfig:x,chartData:i,meanLineSeries:e,seriesConfig:u,dataWasUpdated:s,seriesReordered:o,sortChanged:n,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A});Ev({styleCallback:()=>JH(a),series:e,seriesConfig:u}),nH({series:e,seriesConfig:u,fieldList:l,tooltipFormatter:y,utilsStrings:r,queryObject:g})}}function l2(a){let t=a.series.getIndex(0);if(t!==void 0){let e=!1;t.slices.each(i=>{i.isActive&&(e=!0),Zn({element:i,selected:!1,backToDefaultState:!0})}),e&&a.feedLegend()}}function h2(a,t=!0){let e;a.series.each((i,r)=>{if(!t||i.visible){e=Iv(i,r);let s=[];if(e===V.BarSeries)s=i.columns?.values;else if(e===V.LineSeries)s=zr(i)?.clones?.values;else if(e===V.BoxPlotSeries){if(i instanceof wr)s.push(...i.columns.values);else if(i instanceof Aa)s.push(...i.segments.values);else if(i instanceof Ti){let n=zr(i)?.clones?.values;n!==void 0&&s.push(...n)}}s!==void 0&&s.forEach(n=>{Zn({element:n,selected:!1,backToDefaultState:!0})})}})}function wA(a){let{chart:t,selectionSource:e,clearOnlyVisibleSeries:i,disposeStyleAndSelection:r}=a,s=ve(t.uid,"currentSelectionDataItems");r!==!1&&d1(t,"updateSelectionCallbackDisposer"),ai(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),wn(t)&&(t instanceof Vt?h2(t,i??!0):t instanceof qi&&l2(t)),s&&Vu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.htmlContainer})}function u2(a){vx(),lx(a.htmlContainer),wA({chart:a})}function c2(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>e!==V.BoxPlotSeries||!i&&r instanceof wr||i&&sa(r.uid,"isBoxPlotMeanLineSeries")).every(r=>sa(r.uid,"isSelectionApplied")===!0)}function d2(a){a.series.each(t=>Jn(t.uid,{isSelectionApplied:void 0}))}function I1(a,t){let e=ve(a.uid,"actionMode");if((e===Ut.MonoSelection||e===Ut.None)&&t.length>1)wA({chart:a});else{let i=a instanceof qi;t.forEach(r=>{Zn({element:r,useNativeState:i,selected:!0})})}}function A2(a){let{chart:t,chartConfig:e,series:i,options:r,elementsToApplySelectionTo:s,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,queryObject:c}=a,u=ze(e.series),d=kt(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series),y=i instanceof Qr?i.dataFields?.customValue??"":"";return s.forEach(x=>{if(!(x instanceof Go)){let w=x.dataItem?.dataContext;if(w!==void 0&&(u===V.BoxPlotSeries&&w[re.boxPlot.boxPlotOutlierId]!==!0||d===ke.BarAndLineMultiFields)&&(w=th({dataContext:w,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)})),kv({elementDataContext:w,options:r,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,chartType:u,splitBy:y,chartSubType:d,showOutliers:A}))if(p.push(x),x.dataItem!==void 0&&f.push(x.dataItem.index),x?.dataItem instanceof Wa&&w!==void 0)m.push(w);else{let S=new Set;u===V.PieSeries&&ih(w)?(Qf({groupOfSlicesDataContext:w})??[]).forEach(T=>{n.forEach(F=>{ww({layerOidField:o,sliceDataContext:T,selectionDataContext:F,xAxisField:l})&&S.add(T)})}):S.add(w),Array.from(S)?.forEach(T=>{let F=th({dataContext:T,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)});F!==void 0&&m.push(F)})}else Zn({element:x,useNativeState:t instanceof qi,selected:!1})}}),I1(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function p2(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=ve(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=kt(n?.series);return t.series.each((c,u)=>{if(n&&c.visible){let d=n.series[0].x,A=xu(c),p=c instanceof Qr?c.dataFields?.customValue??"":"",f=Iv(c,u),m=e.get(u);if(m!==void 0){let g;if(c instanceof Xi?g=c.columns:c instanceof ws?g=c.slices:g=zr(c)?.clones,g!==void 0){let{indexesToSelect:y}=m;g.each((x,w)=>{if(x&&(y===void 0||y.includes(w))){let S;f===V.BoxPlotSeries&&x.dataItem instanceof Wa?S=x.dataItem.dataContext:x.dataItem instanceof Go||(S=th({dataContext:x.dataItem?.dataContext,yList:l,yAxisField:A,xAxisField:d,splitBy:p,chartType:f,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)})),S!==void 0&&r.push(S),s.push(x)}else Zn({element:x,useNativeState:t instanceof qi,selected:!1})})}}}}),I1(t,s),r}function f2(a){let{series:t,chartType:e,showMean:i}=a,r;switch(e){case V.ComboLineAndBarSeries:if(t instanceof Xi)r=t.columns.values;else if(t instanceof Ti){let s=zr(t);s!==void 0&&(r=s.clones.values)}break;case V.BarSeries:t instanceof Xi&&(r=t.columns.values);break;case V.LineSeries:if(t instanceof Ti){let s=zr(t);s!==void 0&&(r=s.clones.values)}break;case V.PieSeries:r=t.slices.values;break;case V.BoxPlotSeries:if(t.chart instanceof Vt){if(t instanceof wr&&i!==!0){r=[...t.columns.values];let s=jf(t.chart,t.id);if(s!==void 0&&s.visible){let n=zr(s);n!==void 0&&r.push(...n.clones.values)}}else if(i===!0&&t instanceof Ti&&sa(t.uid,"isBoxPlotMeanLineSeries")){let s=zr(t);s!==void 0&&(r=s.clones.values)}}break}return r}function m2(a){let{series:t,seriesIndex:e,queryObject:i,options:r,dataWasUpdated:s,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:l,yAxisField:h,rotationChanged:c}=a,{filterBySelection:u,selectionData:d,returnSelectionIndexes:A,returnSelectionOIDs:p}=r??{},{selectionIndexes:f}=d??{},{chart:m}=t,g=ve(m.uid,"config"),y=bs(i),x=Eo(g),w=oa(g),S=ze(g?.series);if(u!==!0&&g!==void 0){let T=f2({series:t,chartType:S,showMean:w}),F=kt(g?.series),L=$s(i),$=xh(L).idField,I=ve(m.uid,"currentSelectionDataItems"),U=!1,P=!1,Q,G=!1;if(T?.[0]!==void 0){if(r?.viewExtentUpdated!==!0){Q=r?.selectionData?.selectionItems??I;let Y=ve(m.uid,"currentSelectionIndexes");G=Sx({itemsA:Q,itemsB:I,isPieFromFields:F===ke.PieFromFields,x:g.series[0].x});let ee=f?.keys.length!==Y?.keys.length||!rn(f,Y);U=n===!0||s===!0||o===!0||c===!0||Q!==void 0&&G;let te=!0;if(f!==void 0&&f.size>0){let{indexesToSelect:le}=f.get(e??0)??{};te=le!==void 0&&le[0]===void 0}P=s===!0||o===!0||c===!0||!te&&ee}if(U&&Q!==void 0&&Q.length>0){let{selectedIndexes:Y,newSelectionDataItems:ee}=A2({chart:m,chartConfig:g,options:r,series:t,elementsToApplySelectionTo:T,selectionDataItems:Q,layerOidField:$,xAxisField:l,yAxisField:h}),te=ve(m.uid,"computedSelectionDataItems")??[];if(te.push(...ee),g.series.length>1&&F!==ke.BarAndLineNoAggregation&&F!==ke.BarAndLineSplitByNoAggregation&&(te=ap({data:te,x:g.series[0].x,splitByField:Dn(g.series[0].query?.where)})),ai(m.uid,{computedSelectionDataItems:te}),A===!0){let le=Array.from(new Set(Y)),z=ve(m.uid,"computedSelectionIndexes");z===void 0&&(z=new Map),le.length===T.length?z.set(e??0,{}):z.set(e??0,{indexesToSelect:le}),ai(m.uid,{computedSelectionIndexes:z})}}else if(f!==void 0&&P)Q=p2({chart:m,selectionIndexes:f,queryObject:i});else{let Y=Q===void 0||Q.length===0,ee=t instanceof Qr?t.dataFields?.customValue??"":"",te=le=>{let z=le.dataItem?.dataContext;return z!==void 0&&S===V.BoxPlotSeries&&z[re.boxPlot.boxPlotOutlierId]!==!0&&(z=th({dataContext:z,yAxisField:h,yList:Mo(g.series),xAxisField:l,splitBy:ee,chartType:S,chartSubType:F,showOutliers:x,isFeatureCollectionLayer:Oo(i)})),kv({elementDataContext:z,options:r,selectionDataItems:Q??I??[],layerOidField:$,xAxisField:l,yAxisField:h,chartType:S,splitBy:ee,chartSubType:F,showOutliers:x})};T.forEach(le=>{let z=le.isActive||te(le);Zn({element:le,selected:z,useNativeState:m instanceof qi,backToDefaultState:Y})})}}if(Jn(t.uid,{isSelectionApplied:!0}),c2({chart:m,chartType:S,showMean:w})&&(d2(m),G||P)){let Y=ve(m.uid,"computedSelectionDataItems")??Q;Y=Array.from(new Set(Y?.map(te=>JSON.stringify(te)))).map(te=>JSON.parse(te)),Q!==void 0&&ai(m.uid,{currentSelectionDataItems:Y}),d?.selectionOIDs!==void 0&&ai(m.uid,{currentSelectionOIDs:d.selectionOIDs});let ee;if(A===!0&&(ee=ve(m.uid,"computedSelectionIndexes")??f,ee!==void 0&&ai(m.uid,{currentSelectionIndexes:ee})),Y===void 0||Y.length===0)wA({chart:m,selectionSource:Tr.ProgrammaticSelection});else{let te={selectionItems:Y,selectionSource:Tr.ProgrammaticSelection};A===!0&&(te.selectionIndexes=ee),p!==!1&&(te.selectionOIDs=d?.selectionOIDs??ve(m.uid,"currentSelectionOIDs")),y&&(te.selectionPixelTarget=sg({chartConfig:g,layer:i,selectionDataItems:Y})),Vu({data:te,htmlContainer:m.htmlContainer})}ai(m.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}function g2(a){let{chart:t,chartConfig:e}=a;for(let i=0;i<t.series.length;i+=1){let r=t.series.getIndex(i);if(r){let s=Uf(r,e);if(s){let n=ze([s]);if(n===V.BoxPlotSeries&&(r=t.series.values.find(o=>o.id===s.id)),r!==void 0){let o=s.x,l=n===V.BoxPlotSeries?s.y.toString():xu(r);RQ({callbackProps:{...a,series:r,seriesIndex:i,xAxisField:o,yAxisField:l},series:r,seriesConfig:s})}}}}}async function Wf(a){let{chart:t,listSelectedElements:e,selectionSource:i,queryObject:r,errorStrings:s}=a,n=ve(t.uid,"options"),o=ve(t.uid,"config"),l=bs(r);if(o)if(e.length===0)wA({chart:t,selectionSource:i,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{d1(t,"updateSelectionCallbackDisposer");let h=Eo(o),c=[],u=[],d=[],A=new Map,{xAxisField:p}=e[0]??{},f=ze(o?.series),m=kt(o?.series),g=Mo(o?.series??[]),y=_a(r).find(w=>w.name===p)?.type;if(e.forEach(w=>{let{elementDataContext:S,yAxisField:T,splitBy:F}=w,L=th({dataContext:S,yAxisField:T,yList:g,xAxisField:p,splitBy:F,chartType:f,chartSubType:m,showOutliers:h,isFeatureCollectionLayer:Oo(r)});L!==void 0&&u.push(L);let{seriesIndex:$,elementIndex:I}=w;if(I!==void 0){let U=A.get($)?.indexesToSelect??[];U.push(I),A.set($,{indexesToSelect:Array.from(new Set(U))})}if(!l&&S!==void 0){let U=S[Ou.uniqueIdsName]!==void 0?[S[Ou.uniqueIdsName]].flat():[];if(U.length>0)d.push(...U);else if(n?.returnSelectionOIDs!==!1){let P=Fx({dataContext:S,options:n,xAxisField:p,yAxisField:T??"",splitBy:F,xAxisFieldType:y,chartConfig:o,queryObject:r});c.push(P)}}}),!l&&n?.returnSelectionOIDs!==!1&&c.length>0){let w={...ve(t.uid,"queryConfig")};delete w.groupByFieldsForStatistics,delete w.orderByFields,delete w.outStatistics;let S=await r1({whereList:c,queryObject:r,queryConfig:w,errorStrings:s});if(c.length===e.length)d=S;else for(let T=0;T<S.length;T+=1)d.push(S[T])}o.series.length>1&&m!==ke.BarAndLineNoAggregation&&m!==ke.BarAndLineSplitByNoAggregation&&(u=ap({data:u,x:o.series[0].x,splitByField:Dn(o.series[0].query?.where)})),ai(t.uid,{currentSelectionDataItems:u,currentSelectionOIDs:d,currentSelectionIndexes:A});let x={selectionItems:u,selectionSource:i};n?.returnSelectionIndexes===!0&&(x.selectionIndexes=A),n?.returnSelectionOIDs!==!1&&(x.selectionOIDs=d),l&&(x.selectionPixelTarget=sg({chartConfig:o,layer:r,selectionDataItems:u})),Vu({data:x,htmlContainer:t.htmlContainer})}catch(h){ai(t.uid,{pendingSelectionQueries:!1});let{httpStatus:c}=h instanceof Tl?h.details.details:h.details??{};if(c===429)u2(t);else throw h}ai(t.uid,{pendingSelectionQueries:!1})}function y2(a){let{axis:t}=a,e=t.chart;return{axis:t,chart:e}}async function v2(a,t,e){let i=a.target,{axis:r,chart:s}=y2(i),n=[],{seriesDataItems:o}=a.target.dataItem;Object.keys(o).forEach(d=>{if(Object.hasOwn(o,d)){let A=o[d];for(let p of A)if(p instanceof Bs)n.push(p.column);else{let f=p.sprites.find(m=>!(m instanceof Mi));f!==void 0&&n.push(f)}}});let l=Mv(a,s),h=r instanceof Ct||r instanceof Ot,c=[],u=ve(s.uid,"config");if(u){let d=u.series[0].x??"";s.series.each((A,p)=>{let f;if(A instanceof Xi?f=A.columns:f=zr(A)?.clones,A.visible){let m=xu(A),g=A.dataFields?.customValue??"";f?.each((y,x)=>{let w=n.includes(y);Zn({element:y,selected:w,multiSelect:l,isDateOrCategoryAxis:h})&&c.push({element:y,elementDataContext:y.dataItem?.dataContext,yAxisField:m,xAxisField:d,splitBy:g,seriesIndex:p,elementIndex:x,chartConfig:u})})}}),await Wf({chart:s,listSelectedElements:c,selectionSource:Tr.SelectionByClick,queryObject:t,errorStrings:e})}}function b2(a){let{axis:t,queryObject:e,errorStrings:i}=a;if(wn(t.renderer.labels.template)){t.renderer.labels.template.events.on(Ie.Hit,async s=>{t.renderer.labels.template.events.isEnabled(Ie.Hit)&&await v2(s,e,i)});let r=ve(t.chart.uid,"filterBySelection")===!0?si.default:si.pointer;iw(t,r)}}function Bv(a,t){if(wn(a?.renderer?.labels?.template)&&(a instanceof Ot||a instanceof Ct))if(t)a.renderer.labels.template.events.disableType(Ie.Hit),iw(a,si.default);else{a.renderer.labels.template.events.enableType(Ie.Hit);let e=ve(a.chart.uid,"filterBySelection")===!0?si.default:si.pointer;iw(a,e)}}var gr={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function mu(a){let{chart:t,label:e,labelType:i}=a,r=Number.NaN;switch(i){case Wt.GuideLabel:!(t instanceof Ys)&&t instanceof Vt&&(e.rotation===90||e.rotation===270?r=t.seriesContainer.measuredHeight:r=t.seriesContainer.measuredWidth);break;case Wt.XAxisTitle:t instanceof Vt&&(r=t.seriesContainer.measuredWidth);break;case Wt.YAxisTitle:t instanceof Vt&&(r=t.seriesContainer.measuredHeight);break;case Wt.ChartTitle:case Wt.ChartSubTitle:case Wt.ChartFooter:r=t.measuredWidth-20;break}r>0&&(e.maxWidth=r,t.invalidateLabels(),t instanceof Vt&&(t.xAxes.getIndex(0)?.invalidateLabels(),t.xAxes.getIndex(1)?.invalidateLabels(),t.yAxes.getIndex(0)?.invalidateLabels(),t.yAxes.getIndex(1)?.invalidateLabels()))}function Vf(a){let{chart:t,labelType:e}=a;mu(a);let i=e===Wt.YAxisTitle?1:0,r=Is(()=>mu(a),re.debounceTime);t.events.on(Ie.Validated,r,i),(e===Wt.YAxisTitle||e===Wt.XAxisTitle)&&t instanceof Vt&&t.seriesContainer.events.on(Ie.SizeChanged,r,i)}function Sv(a,t){a.events.on(Ie.Validated,Is(()=>{t.visible=a.measuredWidth!==0},re.debounceTime))}function x2(a,t){a.chart instanceof Ys||(t.adapter.add("dx",e=>{let i=e;return(t.rotation===90||t.rotation===270)&&(i=t.bbox.height,t.dataItem.value!==t.dataItem.endValue&&(i/=2)),i}),t.padding(0,10,0,10))}function _2(a,t){let e=a.renderer instanceof Hl?new Vn:new Ko;return e.disabled=!0,e.axis=a,$v(e),fu(e.uid,{isGuide:t}),Vf({chart:a.chart,label:e,labelType:Wt.GuideLabel}),x2(a,e),e}function C2(a){let{label:t,labelConfig:e,guideType:i}=a,r=t.axis.renderer instanceof ar,s;t instanceof Vn||(r?i===Rt.SFS?s=re.verticalSurfaceGuideLabels:s=re.verticalLineGuideLabels:i===Rt.SFS?s=re.horizontalSurfaceGuideLabels:s=re.horizontalLineGuideLabels);let n={...e};n.content.rightToLeft=t.axis.rtl,_n({label:t,labelConfig:n,defaults:s}),t.axis.invalidateLabels()}function w2(a,t,e){let i=e.chart;a.axisFill.tooltip=new fo,a.axisFill.interactionsEnabled=!0,a.axisFill.tooltipPosition=re.guideTooltipPosition,a.axisFill.tooltip.label.wrap=!0,a.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(re.tooltipWidth,i.seriesContainer.maxWidth)),a.axisFill.tooltip.boundingContainer=i.chartAndLegendContainer,a.axisFill.adapter.add("tooltipHTML",(r,s)=>{let n=r,{dataItem:o,axis:l}=s;if(!(l.renderer instanceof Hl)){let h=Ns(l.uid,"guideTooltipFormatter");if(h!==void 0){let c="",u;o instanceof vo?(c=o.value,u=o.endValue):o instanceof Jo?(c=o.category,u=o.endCategory):o instanceof Uh&&(c=o.date,u=o.endDate),n=h({guideName:o.id??"",start:c,end:u,guideIndex:t})}}return n}),a.axisFill.tooltip.events.on(Ie.Shown,r=>{let s=ve(a.axisFill.axis.chart.uid,"config");if(s!==void 0){let n=ve(a.axisFill.axis.chart.uid,"isRotated"),o=Xf(a.axisFill.axis.renderer,n)?0:1,l=s.axes?.[o]?.guides,{tooltipReverseColor:h}=l?.[t]??{};y1(r.target,h)}})}function B2(a,t){return e=>{let{guideName:i,start:r,end:s,guideIndex:n}=e,{chart:o}=a,l="";if(o!==void 0){let h=ve(o.uid,"config"),c=ve(o.uid,"isRotated"),u=Xf(a.renderer,c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=s;if(a instanceof Ct){let y=new un,x;if(o!==void 0){let w=ve(a.chart.uid,"formatLocale");y=fl({type:V.DateAxisFormat,iLocale:o.language.locale,formatLocale:w}),x=h?.axes?.[0]?.valueFormat?.intlOptions}A=y.format(r,x),s!==void 0&&(p=y.format(s,x))}else if(a instanceof Qe&&!(r instanceof Date)&&!(s instanceof Date)){let{start:y,end:x}=$w(a,d?.[n]);Number.isFinite(y)&&(A=y),Number.isFinite(x)&&(p=x);let w=Ns(a.uid,"numberFormatter")??(S=>new Rl().format(S));A=w(A),p!==void 0&&(p=w(p))}else a instanceof Ot&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Uc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=Ra(o.rtl);l=`${i}${g} ${l}`}return l}}function S2(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;Ds(t.uid,{guideTooltipFormatter:e??B2(t,i)})}function F2(a){let t=$u.Value;return a instanceof Ct?t=$u.Date:a instanceof Ot&&(t=$u.Category),t}function eI(a){let{inputValue:t,axisType:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(e){case $u.Date:s=t instanceof Date?t:new Date(t);break;case $u.Category:s=t.toString();break;case $u.Value:if(typeof t!="number"){let n=t.toString().trim(),o=ip(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function $w(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=F2(a),n=a instanceof Qe?a.min:void 0,o=a instanceof Qe?a.max:void 0,l=eI({inputValue:e,axisType:s,axisMin:n,axisMax:o}),h=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?eI({inputValue:i,axisType:s,axisMin:n,axisMax:o}):l;r={isValidGuide:l!=null&&h!=null,start:l,end:h}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function T2(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ms(o.label?.uid,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function en(a,t){return a.axisRanges?.values?.filter(e=>{let i=ms(e.label?.uid,"isGuide")??!1,r=ms(e.label?.uid,"isGaugeAxisLabel")??!1,s=!1;switch(t){case gr.Ticks:s=i===!1;break;case gr.Guides:s=i===!0;break;case gr.GaugeTicksWithLabels:s=r===!0&&e.value!==void 0;break;case gr.GaugeFirstAndLastGuides:s=i===!0&&(e.id===re.gaugeFirstLabelId||e.id===re.gaugeLastLabelId);break}return s})??[]}function P2(a,t){let e=a.axisRanges.length;{let r=a.axisRanges.values.findIndex(s=>s.id===re.gaugeFirstLabelId);r!==-1&&(e=r)}let i;return a instanceof Ot?i=new Jo:a instanceof Ct?i=new Uh:i=new vo,a.axisRanges.insertIndex(e,i),i.label=_2(a,t),i.axisFill.fillOpacity=1,i.axisFill.disabled=!0,i.grid.strokeOpacity=1,i}function D2(a,t){let e=P2(a,!0);w2(e,t,a),e.tick!==void 0&&(e.tick.disabled=!0),e.label!==void 0&&(e.label.inside=!0),e.grid!==void 0&&(e.grid.disabled=!0)}function L2(a,t){let{start:e,end:i}=t,r=ve(a.uid,"config"),s=lg(r),n=e!==null?e:void 0;n=a.data.find(l=>l[re.originalCategoryValue]===e)?.[s]??n;let o=i!==null?i:void 0;if(o!==void 0)for(let l=a.data.length-1;l>=0;l-=1){let h=a.data[l];if(h[re.originalCategoryValue]===i){o=h[s];break}}return{modifiedStart:n,modifiedEnd:o}}function I2(a,t){let{start:e,end:i}=t;if(e!==void 0){let{chart:r}=a?.component??{},s;if(a instanceof Jo&&r instanceof Vt&&ve(r.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=L2(r,t);s={isValidGuide:!0,start:n??e,end:o??i}}else s=$w(a.axisFill.axis,t);s.isValidGuide&&(a instanceof Jo?(a.category=`${s.start?.toString()}`,a.endCategory=`${s.end?.toString()}`):a instanceof Uh?(a.date=s.start,a.endDate=s.end):(a.value=s.start,a.endValue=s.end))}}function k2(a,t){a.axisFill.above=t??re.guideAbove,a.grid.above=t??re.guideAbove}function $2(a,t){let{axisFill:e,label:i}=a;if(t!==void 0){if(a.id=t.name,a.visible=t.visible!==void 0?t.visible:a.visible,I2(a,t),t.style.type===Rt.SLS?Mf({element:e,fillSymbol:{type:Rt.SFS,color:t.style?.color,outline:t.style},visible:t.visible}):t.style.type===Rt.SFS&&Mf({element:e,fillSymbol:t.style,visible:t.visible}),k2(a,t.above),t.label!==void 0){let s={type:V.Text,visible:t.visible,content:t.label};C2({label:i,labelConfig:s,guideType:t.style.type})}let r=a.component?.chart;r!==void 0&&mu({chart:r,label:i,labelType:Wt.GuideLabel})}else e.disabled=!0,i.disabled=!0}function O2(a,t){let e=en(a,gr.Guides).length,i=t?.length??e;for(let r=e;r<i;r+=1)D2(a,r)}function E2(a){let{axis:t,guides:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){for(let s=0;s<e.length;s+=1){let n=en(t,gr.Guides)[s];n!==void 0&&$2(n,e[s])}S2({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function M2(a,t){let e=en(a,gr.Guides).length,i=t?.length??0,r=e-i;T2({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function R2(a){let{axis:t,guides:e}=a;O2(t,e),E2(a),M2(t,e)}function U2(a){let{axis:t,labels:e,restoreLabelsVisibility:i=!0}=a;(e??t.renderer.labels.values).forEach(r=>{r.x instanceof et?r.x.value:r.x,i&&Ui(r,!0)})}function k1(a){let t=a.renderer.labels.values.filter(e=>ms(e.uid,"isGuide")!==!0&&e.measuredWidth>0).length;return a.pixelWidth/t}function V2(a){let{target:t}=a;if((ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior??tr.Rotate)===tr.Wrap){let e=Number.MAX_SAFE_INTEGER;t.renderer.labels.each(r=>{ms(r.uid,"isGuide")!==!0&&r.measuredWidth>0&&(e=Math.min(e,r.bbox.width))});let i=t instanceof Ct?t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapModeForDateAxis:t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapMode;t.renderer.minGridDistance=Math.max(e+1,i)}}function N2(a){let{axis:t,labelsConfig:e,horizontalAxisLabelsBehavior:i,isSecondValueAxis:r,tickSpacing:s}=a,n=t.renderer.minGridDistance;if(typeof s=="number"&&Number.isFinite(s))n=s;else if(t.renderer instanceof Hl)n=re.gauge.gaugeMinGridDistance;else if(t instanceof Qe)n=t.renderer instanceof ar?re.xAxisMinGridDistance:re.yAxisMinGridDistance;else if(t.renderer instanceof ar)if(r===!0)n=re.secondRotatedValueAxisMinGridDistance;else if(i===void 0||i===tr.Rotate){let o=e.content.font?.size??re.generalFontSize,l=t instanceof Ot?re.categoryAxisLabelPadding:re.axisLabelPadding;n=o*l}else if(i===tr.Wrap){let o=Is(V2,re.debounceTime);Ds(t.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),t.events.on(Ie.SizeChanged,o),t.dispatchImmediately(Ie.SizeChanged)}else i===tr.Stagger?n=re.staggerMinGridDistance:n=t instanceof Ot?re.xCategoryAxisMinGridDistance:re.xAxisMinGridDistance;else n=t instanceof Ot?re.yCategoryAxisMinGridDistance:re.yAxisMinGridDistance;t.renderer.minGridDistance=n}function Q2(a){let t=a.renderer.labels.template;wn(t)&&(t.adapter.add("rotation",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.angle??e:e),t.adapter.add("verticalCenter",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.verticalCenter??e:e),t.adapter.add("horizontalCenter",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.horizontalCenter??e:e),t.adapter.add("dy",(e,i)=>{let r=re.axisLabel.dy??e??0;return i.dataItem?.tick?.length>re.axisTickLength?r=e??0:r=Number(ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.yOffset??r:r),r}))}function H2(a){let{target:t}=a;if(t.chart!==void 0){let e=ve(t.chart.uid,"config")?.axes?.[0].labels;if((e?.visible??!0)&&e!==void 0&&t.renderer.labels.length>1){let i=0;t.renderer.labels.each(n=>{if(ms(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>i&&(i=o)}});let r=Ns(t.uid,"labelsSymbol")?.angle??0,s=k1(t)>=i+5;if(!s&&r===0||s&&r===re.rotatedAxisLabel.rotation){let n=s?_v(e.content,t.rtl,re.axisLabel):_v({type:Rt.TS},t.rtl,re.rotatedAxisLabel);Ds(t.uid,{labelsSymbol:n}),t.renderer.invalidateLabels()}}}}function j2(a,t=1){let{target:e}=a,i=k1(e);Number.isFinite(i)&&(e.renderer.labels.template.maxWidth=Math.min(i*t,e.renderer.minGridDistance))}function W2(a){let{target:t}=a;if(ve(t.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let e=0;t.dataItems.each(i=>{let{label:r,itemIndex:s}=i;ms(r.uid,"isGuide")!==!0&&r.currentText!==void 0&&r.measuredWidth>0&&s%2===0&&r.bbox.height>e&&(e=r.bbox.height)}),t.dataItems.each(i=>{let{tick:r,label:s,itemIndex:n}=i;if(ms(s.uid,"isGuide")!==!0&&s.currentText!==void 0&&s.measuredWidth>0){let o=n%2===1;r.length=o?e+5:re.axisTickLength,r.dataItem.label.dy=re.axisLabel.dy+(o?e:0)}}),e!==void 0&&(t.renderer.labels.template.paddingBottom=e+5),t.validate()}}function X2(a){let{chart:t}=a;a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let e=Ns(a.uid,"debouncedAxisLabelRotationCallback");if(e!==void 0&&(a.events.off(Ie.Validated,e),Ds(a.uid,{debouncedAxisLabelRotationCallback:void 0})),t!==void 0){let i=ve(t.uid,"config")?.axes?.[0].labels;if(i!==void 0){let r=_v(i.content,t.rtl,re.axisLabel),s=a.renderer.labels.template;s.rotation=r.angle,s.verticalCenter=r.verticalCenter,s.horizontalCenter=r.horizontalCenter,Number.isFinite(r.yOffset)&&(s.dy=r.yOffset)}Ds(a.uid,{labelsSymbol:void 0})}}function $1(a){a.renderer.labels.template.wrap=!1,a.renderer.labels.template.textAlign="start"}function z2(a){$1(a),a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let t=Ns(a.uid,"debouncedAxisLabelWrapCallback");t!==void 0&&(a.events.off(Ie.DataRangeChanged,t),Ds(a.uid,{debouncedAxisLabelWrapCallback:void 0}))}function G2(a){$1(a);let t=Ns(a.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");t!==void 0&&(a.events.off(Ie.SizeChanged,t),Ds(a.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function Y2(a){let t=Ns(a.uid,"debouncedAxisLabelStaggerCallback");t!==void 0&&(a.events.off(Ie.DataRangeChanged,t),Ds(a.uid,{debouncedAxisLabelStaggerCallback:void 0})),a.renderer.ticks.each(e=>{e.length=re.axisTickLength,e.dataItem?.label&&(e.dataItem.label.dy=re.axisLabel.dy??0)})}function K2(a){X2(a),z2(a),Y2(a)}function tI(a){Q2(a),a.renderer.labels.template.paddingLeft=0,a.renderer.labels.template.paddingRight=0,a.renderer.labels.template.maxWidth=Number.NaN;let t=Is(H2,re.debounceTime,{leading:!0});Ds(a.uid,{debouncedAxisLabelRotationCallback:t}),a.events.on(Ie.Validated,t),a.dispatchImmediately(Ie.Validated)}function iI(a,t=1){a.renderer.labels.template.wrap=!0,a.renderer.labels.template.paddingLeft=.5,a.renderer.labels.template.paddingRight=.5,a.renderer.labels.template.textAlign="middle";let e=Is(i=>j2(i,t),re.debounceTime);Ds(a.uid,{debouncedAxisLabelWrapCallback:e}),a.events.on(Ie.DataRangeChanged,e)}function Z2(a){a.renderer.labels.template.maxWidth=re.yAxisLabelMaxWidth,a.renderer.labels.template.wrap=!0,a.renderer.labels.template.textAlign="end"}function q2(a){let t=Is(W2,re.debounceTime);Ds(a.uid,{debouncedAxisLabelStaggerCallback:t}),a.events.on(Ie.DataRangeChanged,t)}function J2(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,labelsConfig:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a;if(t.renderer instanceof ar&&s?.[0]!==!1){if(K2(t),n!==!0)switch(e){case tr.Hide:break;case tr.Stagger:q2(t),iI(t,1.5);break;case tr.Wrap:iI(t);break;case tr.Rotate:tI(t);break;default:r.content.angle!==null&&r.content.angle===void 0&&tI(t);break}}else t.renderer instanceof Cr&&(i!==tr.Hide?Z2(t):G2(t))}function ej(a){let{axis:t,axisConfig:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a,o=t.renderer.labels.template;o.axis=t;let{labels:l}=e,h=t.renderer instanceof ar&&o.rotation===re.rotatedAxisLabel.rotation,c=l,u;h?(c.content.angle=void 0,c.content.horizontalAlignment=void 0,c.content.verticalAlignment=void 0,c.content.yoffset=void 0,u=re.rotatedAxisLabel):t.renderer instanceof ar&&(i===tr.Stagger||i===tr.Wrap)&&(u={wrap:!0,dy:re.axisLabel.dy}),t.renderer instanceof Cr&&r!==tr.Hide&&(u={wrap:!0}),_n({label:o,labelConfig:c,defaults:u}),t.renderer.labels.template.paddingTop=t.renderer instanceof ar?0:re.axisLabel.dy,o.align="none",o.valign="none",J2({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelsConfig:l,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}),o.axis.invalidateLabels()}function Ow(a){return(a??ex())===$i.Side}function O1(a,t){let e,i,r=sw(a,"bullets"),s=sw(a,"columns"),n=Ow(t);return n&&r!==void 0?(e=r,i=s):n||(e=s,i=r),{labelToRender:e,labelToHide:i}}function tj(a,t=!0){a.hideOversized=t}function ij(a,t){let e,i,r=ml(re.dataLabelInitialize);fu(r.uid,{isDataLabel:!0}),a.bullets.push(r);let s=ml(re.dataLabelInitialize,a.columns.template);return fu(s.uid,{isDataLabel:!0}),aw(s,a),aw(r,a),a.events.on(Ie.Validated,Is(()=>{Ef(s)&&s.clones.each(n=>{Ef(n)&&n.validate()})},re.debounceTime)),s.html="{valueX}",r.html="{valueX}",h1(r),Ow(t)?(e=r,i=s):(e=s,i=r),n1(V.BarSeries,r),o1(V.BarSeries,e),{newLabelToRender:e,newLabelToHide:i}}function rj(a){let{series:t,stackedType:e,isRotated:i,hideOversizedStackedLabels:r,hideOversizedSideBySideLabels:s}=a,{labelToRender:n,labelToHide:o}=O1(t,e);if(n===void 0){let{newLabelToRender:c,newLabelToHide:u}=ij(t,e);n=c,o=u}let l=re.dataLabel,h=!0;Ow(e)?(l=i===!0?re.dataLabelRotated:re.dataLabel,h=s===!0):(l=i===!0?re.dataLabelStackedRotated:re.dataLabelStackedNonRotated,h=r!==!1),tj(n,h),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",u1({...a,dataLabel:n,labelDefaults:l,defaultDataLabelFormatter:l1})}function sj(a){let t=a.tooltip;t!==void 0&&!(a instanceof Ct)&&(t.label.adapter.add("html",(e,i)=>{let r=e??"";return a instanceof Qe?r=GI(a,i.properties?.text??e??""):a instanceof Ot&&(r=YI({axis:a,defaultOutput:e??"",dataItem:t.dataItem})),Zr(r)}),t.label.html=re.htmlEmptyContent)}function aj(a){let t=a.title,e=98;if(a.renderer instanceof Cr)t.adapter.add("y",i=>{let r=t.parent?.measuredHeight??0;return r>0?r/2:i},e);else if(a.renderer instanceof ar)if(a.renderer.opposite){let i=a.title;i.adapter.add("rotation",()=>0,e),i.adapter.add("y",()=>{let r=i.measuredHeight;return r>0?r/2:0},e)}else t.adapter.add("x",i=>{let r=t.parent?.measuredWidth??0;return r>0?r/2:i},e)}function nw(a){let{axis:t,start:e,end:i}=a;t.zoom({start:e??0,end:i??1})}function rI(a){a!==void 0&&(a.start=0,a.end=1)}function Vv(a){a!==void 0&&(a.xAxes!==void 0&&a.xAxes.each(t=>nw({axis:t})),a.yAxes!==void 0&&a.yAxes.each(t=>nw({axis:t})),rI(a.scrollbarX),rI(a.scrollbarY),Ui(a.zoomOutButton,!1))}function Xf(a,t){return a instanceof ar&&t!==!0||a instanceof Cr&&t===!0}function nj(a){wn(a.labels.template)&&(a.labels.template.events.on(Ie.Over,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??1)*e}),a.labels.template.events.on(Ie.Out,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??.5)/e}))}function oj(a){let{axis:t,valueFormat:e,axisRenderer:i,queryObject:r,errorStrings:s}=a;i.grid.template.applyOnClones=!0,i.ticks.template.applyOnClones=!0,i.labels.template.applyOnClones=!0,i.hoverable=!0,i.line.strokeOpacity=1,i.grid.template.strokeOpacity=1,i.ticks.template.strokeOpacity=1,$v(i.labels.template,re.axisLabel),i.ticks.template.disabled=!1,i.labels.template.disabled=!0,sj(t),ud(e)&&(nj(i),b2({axis:t,queryObject:r,errorStrings:s})),Sv(t.chart,t.title),Vf({chart:t.chart,label:t.title,labelType:t.renderer instanceof ar?Wt.XAxisTitle:Wt.YAxisTitle}),aj(t),t.renderer instanceof ar&&(t.events.on(Ie.SizeChanged,Is(()=>{mu({chart:t.chart,label:t.title,labelType:Wt.XAxisTitle})},re.debounceTime)),t.events.on(Ie.Validated,Is(()=>{U2({axis:t,restoreLabelsVisibility:!0})},re.debounceTime)))}function lj(a){let t=a.target,e=ve(t.chart.uid,"isRotated"),i=[];if(t instanceof Qe){if(t.renderer instanceof Hl)i.push({isXAxis:!0,minimum:t.min,maximum:t.max});else if(t.renderer instanceof(e!==!0?Cr:ar)){t.maxZoomFactor=1;let r=a.target,s=r.chart,n=e!==!0?s.xAxes.getIndex(0):s.yAxes.getIndex(0),o=s.yAxes.getIndex(1)??s.xAxes.getIndex(1);i=[{isXAxis:!1,minimum:r.min,maximum:r.max},{isXAxis:!0,minimum:n instanceof Qe?n.min:void 0,maximum:n instanceof Qe?n.max:void 0}],o instanceof Qe&&i.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}i.length>0&&i.every(r=>!Number.isNaN(r.minimum)&&!Number.isNaN(r.maximum))&&hx(i,t.chart.htmlContainer)}}function hj(a){a.events.on(Ie.Validated,Is(lj,re.debounceTime))}function uj(a){let{axis:t,isNonAggregatedChart:e}=a,i,r,s,n=t.dataItems.values,o=t.axisRanges.values;if(t instanceof Ot)for(let l=0;l<o.length;l+=1){i=!1,r=!1,s=!1;let h=o[l],{category:c,endCategory:u,axisFill:d,grid:A,label:p}=h;if(h instanceof Jo&&h.visible)for(let f=0;f<n.length;f+=1){let m;e===!0?m=no({value:n[f].category,dataContext:n[f].dataContext}):m=n[f].category.toString(),c===m&&(r=!0),u===m&&(s=!0)}r&&s&&(i=!0),Ui(d,i),Ui(A,i),Ui(p,i)}}function sI(a){let{axis:t,axisMinimum:e,axisMaximum:i}=a,r;if(t instanceof Qe&&i!==void 0&&e!==void 0){let s=t.axisRanges.values,n=ve(t.chart.uid,"config"),o=ve(t.chart.uid,"isRotated"),l=Xf(t.renderer,o)?0:1,h=n?.axes?.[l]?.guides;for(let c=0;c<s.length;c+=1){let u=s[c],{value:d,endValue:A,axisFill:p,grid:f,label:m}=u;if(ms(m?.uid,"isGuide")===!0){if(r=u.visible,r&&u instanceof vo){let{start:g,end:y}=$w(t,h?.[c]),x=Math.min(d,A,g??d,y??A),w=Math.max(d,A,g??d,y??A);x<e&&w<e||x>i&&w>i?r=!1:(u.value=x<e?e:x,u.endValue=w>i?i:w)}Ui(p,r),Ui(f,r),Ui(m,r)}}}}function cj(a){a instanceof Qe?(a.adapter.add("min",t=>(sI({axis:a,axisMinimum:t,axisMaximum:a.max}),t)),a.adapter.add("max",t=>(sI({axis:a,axisMinimum:a.min,axisMaximum:t}),t))):a instanceof Ot&&a.events.on(Ie.Validated,()=>{let t=ve(a.chart.uid,"isNonAggregatedChart");uj({axis:a,isNonAggregatedChart:t})})}function Of(a){let{axes:t,isSecondValueAxis:e=!1,isXAxis:i,valueFormat:r,chartType:s,queryObject:n,errorStrings:o}=a,l;if(Zm({isXAxis:i,chartType:s,valueFormat:r})&&!e)l=t.push(new Ot);else if(ro(r))l=t.push(new Ct);else if(ba(r)){l=t.push(new Qe);let h=ve(l.chart.uid,"formatLocale");l.numberFormatter=fl({type:V.NumberAxisFormat,iLocale:l.chart.language.locale,formatLocale:h}),l.numberFormatter.numberFormat="#",e?(l.renderer.opposite=!0,l.renderer.grid.template.disabled=!0):hj(l)}l!==void 0&&(nQ(l),oj({axis:l,valueFormat:r,axisRenderer:l.renderer,queryObject:n,errorStrings:o}),cj(l))}function E1(a){let{chart:t,axesConfig:e,isRotated:i,chartType:r,queryObject:s,errorStrings:n}=a;ai(t.uid,{isRotated:i===!0});let o=i===!0?e?.[1]:e?.[0],l=i===!0?e?.[0]:e?.[1],h=o?.valueFormat,c=l?.valueFormat;h!==void 0&&c!==void 0&&(t.xAxes.clear(),t.yAxes.clear(),Of({chartType:r,isXAxis:i!==!0,axes:t.xAxes,valueFormat:h,queryObject:s,errorStrings:n}),Of({chartType:r,isXAxis:i===!0,axes:t.yAxes,valueFormat:c,queryObject:s,errorStrings:n}),e?.[2]!==void 0&&Of({chartType:r,isXAxis:i===!0,axes:i===!0?t.xAxes:t.yAxes,valueFormat:e[2].valueFormat,isSecondValueAxis:!0,queryObject:s,errorStrings:n}))}function dj(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=ve(t.chart.uid,"config"),s=e===!0&&dg({chartConfig:r,chartData:t.chart.data,axisConfigIndex:i});(t instanceof Ct||t instanceof Qe)&&(t.logarithmic=s,t.treatZeroAs=s?re.treatZeroValueAs:0)}function Aj(a,t){let{minimum:e,maximum:i,isLogarithmic:r}=t??{},{buffer:s}=t??{};return s??=re.buffer,a instanceof Qe&&!(a instanceof Ct)&&!s&&(r!==!0||i!=null||e!=null)}function pj(a,t){let e=!1;return a instanceof Qe&&!(a instanceof Ct)&&(e=Aj(a,t),a.strictMinMax=e),e}function fj(a){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=a,s=e?.minimum,n=e?.maximum,o=e?.isLogarithmic??!1,l=s,h=n,{chart:c}=t,u=ve(c.uid,"isRotated"),d=ve(c.uid,"config"),A=0;if(c instanceof Vt&&d!==void 0){let p=ks(d),f=Xf(t.renderer,u),m=OQ(c),g=cg({chartConfig:d,isSecondValueAxis:r,seriesIds:m}),y=Tx({chartConfig:d,chartData:c.data,filteredSeriesIds:g});if(p===$i.Stacked100)l=Number.NaN,h=Number.NaN;else{let{minX:x,maxX:w,minY:S,maxY:T}=y,[F,L]=f?[x??Number.NaN,w??Number.NaN]:[S,T];A=F,i===V.BarSeries||i===V.ComboLineAndBarSeries||i===V.LineSeries&&p===$i.Stacked&&!f?(l=Math.min(F,0),h=Math.max(L,0)):(l=F,h=L)}l=s??l,h=n??h}return o&&l!==void 0&&l!==null&&l<=0&&(l=dQ(A)),{min:l,max:h}}function M1(a){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=a,{minimum:s,maximum:n,isLogarithmic:o}=e??{};if(t instanceof Qe||t instanceof Ct)if(pj(t,e)){let l=s,h=n;if(KI({minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o})){let c=fj({axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r});l=c.min,h=c.max}l=l??Number.NaN,h=h??Number.NaN,Number.isNaN(l)||Number.isNaN(h)||l<h?(t.min=l,t.max=h):(t.min=Number.NaN,t.max=Number.NaN),i===V.GaugeSeries&&t.validate()}else t.min=Number.NaN,t.max=Number.NaN}function mj(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i}=a;if(t instanceof Ct){let{size:r,unit:s}=e??{};if(s||({size:r,unit:s}=i??{}),r&&s!==void 0){let n;switch(s){case er.Second:n="second";break;case er.Minute:n="minute";break;case er.Hour:n="hour";break;case er.Day:n="day";break;case er.Week:n="week";break;case er.Month:n="month";break;case er.Year:n="year";break}n!==void 0&&(t.baseInterval={timeUnit:n,count:r})}}}function gj(a,t){a instanceof Qe&&(a.renderer.baseGrid.disabled=t!==!0)}function yj(a,t){a.cursorTooltipEnabled=t===!0}function vj(a,t){let e=a.renderer instanceof ar;a.events.once(Ie.Validated,()=>{let i=a.renderer instanceof Cr?re.yAxisTitleLabel:re.xAxisTitleLabel;e&&(i={...i,dy:i.dy??0}),_n({label:a.title,labelConfig:t,defaults:i}),mu({chart:a.chart,label:a.title,labelType:a.renderer instanceof ar?Wt.XAxisTitle:Wt.YAxisTitle})})}function bj(a,t){let e=!0;return t===V.BoxPlotSeries&&(e=a instanceof wr),e}function R1(a){let t=Is(()=>{let{chart:e}=a,i=ve(e.uid,"config");if(e!==void 0&&i!==void 0){let r=ze(i?.series);if(bj(a,r)){let s=ve(e.uid,"isRotated"),n=ks(i);n===$i.Stacked100&&!a.visible&&Ui(a,!1);let o=e.xAxes.getIndex(0),l=e.yAxes.getIndex(0),h=e.yAxes.getIndex(1),c=s===!0?1:0,u=i.axes?.[c],d=s===!0?0:1,A=i.axes?.[d],p=i.axes?.[2];[{axis:o,axisConfig:u,updateLabels:!1},{axis:l,axisConfig:A,updateLabels:!0},{axis:h,axisConfig:p,updateLabels:!0,isSecondValueAxis:!0}].forEach(f=>{let{axis:m,axisConfig:g,updateLabels:y,isSecondValueAxis:x}=f;m!==void 0&&(M1({axis:m,chartType:r,axisConfig:g,isSecondValueAxis:x}),y!==void 0&&m.events.once(Ie.Validated,()=>{let{labelToRender:w}=O1(a,n);w&&(w.html=s===!0?"{valueX}":"{valueY}")}))})}}},re.debounceTime);a.events.once(Ie.Validated,t)}function xj(a,t){if(a instanceof Qe){let{integerOnlyValues:e,valueFormat:i}=t,r=Dx(i)?i.intlOptions.maximumFractionDigits:void 0;a.maxPrecision=e===!0||r===0?0:Number.NaN}}function vv(a){let{axis:t,axisConfig:e,axisConfigIndex:i,timeIntervalInfo:r,chartType:s,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,guideTooltipFormatter:h,stackedType:c,axisValueFormatter:u,isSecondValueAxis:d,isRotated:A,isTimeOnlyField:p,setTimeZone:f,outTimeZone:m,utilsStrings:g,errorStrings:y}=a,{visible:x,isLogarithmic:w,title:S,grid:T,lineSymbol:F,labels:L,guides:$,valueFormat:I,displayZeroLine:U,displayCursorTooltip:P,tickSpacing:Q,dateBaseInterval:G}=e;mj({axis:t,timeIntervalInfo:r,dateBaseInterval:G}),Vc({element:t.renderer.grid.template,lineSymbol:T,visible:x}),Vc({element:t.renderer.line,lineSymbol:{color:[...re.color],...F??KA()},visible:x}),Vc({element:t.renderer.ticks.template,lineSymbol:F,visible:x}),ej({axis:t,axisConfig:e,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,isSecondValueAxis:d}),xj(t,e),N2({axis:t,labelsConfig:L,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:Q}),cQ({axis:t,isXAxis:Xf(t.renderer,A),chartType:s,labelsTextSymbol:e.labels.content,formatOptions:I,overridePercentMultiplication:c===$i.Stacked100,axisValueFormatter:u,isTimeOnlyField:p,setTimeZone:f,outTimeZone:m,errorStrings:y}),M1({axis:t,axisConfig:e,chartType:s,isSecondValueAxis:d}),dj({axis:t,isLogarithmic:w,axisConfigIndex:i}),vj(t,S),yj(t,P),d!==!0&&(R2({axis:t,guides:$,guideTooltipFormatter:h,utilsStrings:g}),gj(t,U))}function _j(a){let{chart:t,rotationChanged:e,isRotated:i,dualAxisChanged:r,timeIntervalInfoWasReset:s,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:l,yAxisLabelFormatter:h,secondaryYAxisLabelFormatter:c,options:u,utilsStrings:d,errorStrings:A,queryObject:p}=a,{axisLabelsBehaviorChanged:f}=a,m=ve(t.uid,"config"),g=m.axes,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x}=m,w=ze(m.series),S=ks(m),T=ve(t.uid,"fieldList")?.some(de=>de.name===m.series[0].x&&de.type===GA.TimeOnly)??!1,F=ep({chartConfig:m,queryObject:p,options:u}),L=bh(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,$=i===!0?1:0,I=i===!0?0:1,U=g?.[$],P=g?.[I],Q=t.xAxes.getIndex(0);U1({chart:t,dualAxisChanged:r,rotationChanged:e,timeIntervalInfoWasReset:s,axisLabelsBehaviorChanged:f})&&(E1({chart:t,axesConfig:g,isRotated:i,chartType:w,queryObject:p,errorStrings:A}),f=[!0,!0]),Q=t.xAxes.getIndex(0);let G=t.yAxes.getIndex(0),Y=t.xAxes.getIndex(1)??t.yAxes.getIndex(1),ee=Q?.start,te=Q?.end,le=G?.start,z=G?.end,K=Y?.start,we=Y?.end,se={timeIntervalInfo:n,chartType:w,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:f,guideTooltipFormatter:o,stackedType:S,isRotated:i,setTimeZone:F,outTimeZone:L,utilsStrings:d,errorStrings:A};Q!==void 0&&U!==void 0&&vv({...se,axis:Q,axisConfig:U,axisConfigIndex:$,axisValueFormatter:$===0?l:h,isTimeOnlyField:T}),G!==void 0&&P!==void 0&&vv({...se,axis:G,axisConfig:P,axisConfigIndex:I,axisValueFormatter:I===1?h:l,isTimeOnlyField:T}),Y!==void 0&&g?.[2]!==void 0&&vv({...se,axis:Y,axisConfig:g[2],axisConfigIndex:2,axisValueFormatter:c,isSecondValueAxis:!0,isTimeOnlyField:T}),e===!0&&[{axis:Q,start:ee,end:te},{axis:G,start:le,end:z},{axis:Y,start:K,end:we}].forEach(de=>{let{axis:$e,start:Ye,end:He}=de;$e!==void 0&&$e.events.once(Ie.Validated,()=>{nw({axis:$e,start:Ye,end:He})})}),Q!==void 0&&Q.ghostLabel.setPropertyValue("disabled",!0),G!==void 0&&G.ghostLabel.setPropertyValue("disabled",!0),Y!==void 0&&Y.ghostLabel.setPropertyValue("disabled",!0)}function U1(a){let{chart:t,dualAxisChanged:e,rotationChanged:i,timeIntervalInfoWasReset:r,axisLabelsBehaviorChanged:s}=a,n=ve(t.uid,"config"),{rotated:o,series:l}=n,h=n.axes,c=ze(l),u=o===!0?1:0,d=o===!0?0:1,A=h?.[u]?.valueFormat,p=h?.[d]?.valueFormat,f=t.xAxes.getIndex(0),m=t.yAxes.getIndex(0),g=f===void 0||i||A!==void 0&&tw({axis:f,valueFormat:A,chartType:c}),y=m===void 0||i||p!==void 0&&tw({axis:m,valueFormat:p,chartType:c});return e===!0||i===!0||r===!0||s?.[0]||s?.[1]||g||y}function Cj(a){E1(a)}function wj(a){let{chart:t,chartConfig:e,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,options:A,utilsStrings:p,errorStrings:f,queryObject:m}=a,g=ks(e);_j({chart:t,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,options:A,utilsStrings:p,errorStrings:f,queryObject:m});let y=s===!0?t.yAxes.getIndex(0):t.xAxes.getIndex(0);if(y!==void 0){y instanceof Ot&&(y.dataFields.category=lg(e));let S=y.renderer,T=S.grid.template;T.location=0,S.cellStartLocation=.1,S.cellEndLocation=.9;let F=e.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending,L=s===!0;F&&y instanceof Ct&&(L=!L),S.inversed=L}let x=s===!0?t.xAxes.getIndex(0):t.yAxes.getIndex(0),w=s===!0?t.xAxes.getIndex(1):t.yAxes.getIndex(1);g===$i.Stacked100?(x instanceof Qe&&(x.calculateTotals=!0),w instanceof Qe&&(w.calculateTotals=!0)):(x instanceof Qe&&(x.calculateTotals=!1),w instanceof Qe&&(w.calculateTotals=!1))}function Nf(a){let{value:t,axisMin:e,axisMax:i}=a,r=Number.NaN,s=i-e;return s!==0&&(r=(t-e)/s),r}function ow(a){return a!=null&&a!==0}function V1(a){let{minimum:t,maximum:e,labelsIncrement:i,minimumValueConversion:r,maximumValueConversion:s}=a,n=t??pt.gauge.axisMinimum,o=e??pt.gauge.axisMaximum;n=px(n,r),o=px(o,s);let l=ow(i),h=ow(i)?i:Math.abs(o-n)/pt.gauge.numberOfLabelIntervals,c=l?Math.round(Math.abs(o-n)/h):pt.gauge.numberOfLabelIntervals;if(l)if(c>pt.gauge.maximumNumberOfLabelIntervals)h=Math.abs(o-n),c=1;else{let u=n+c*h;u<o?(c+=1,o=n+c*h):u>o&&(o=u)}return{min:n,max:o,labelsIncrement:h,numberOfIntervals:c}}function N1(a){let{axisConfig:t,axisMin:e,axisMax:i}=a;typeof e=="number"&&typeof i=="number"&&i-e!==0&&t.guides?.forEach(r=>{let{start:s,end:n}=r;typeof s=="number"&&(r.start=Nf({value:s,axisMin:e,axisMax:i})),typeof n=="number"&&(r.end=Nf({value:n,axisMin:e,axisMax:i}))})}function Bj(a){let{featureIndex:t,chartData:e,chartConfig:i}=a,{minimumFromField:r,maximumFromField:s}=i?.axes?.[0]??{},n,o;if(t>=0&&t<e.length){let l=e[t];typeof r=="string"&&!zi(r)&&Number.isFinite(l[r])&&(n=l[r]),typeof s=="string"&&!zi(s)&&Number.isFinite(l[s])&&(o=l[s])}return{minimumFromData:n,maximumFromData:o}}function Sj(a){let{featureIndex:t,chartData:e,x:i}=a,r=Number.NaN;if(t>=0&&t<e.length){let s=e[t];i!==void 0&&!zi(i)&&Number.isFinite(s[i])&&(r=s[i])}return r}function Ew(a){let{featureIndex:t=0,chartData:e,queryConfig:i,chartConfig:r,gaugeMinMaxFromData:s}=a,{axes:n,series:o}=r,l=Hu(r),{minimum:h,maximum:c}=n?.[0]??{},{x:u}=o?.[0]??{},d=pt.gauge,A,p;l?{minimumFromData:A,maximumFromData:p}=Bj({featureIndex:t,chartData:e,chartConfig:r}):i!==void 0&&({minimumFromData:A,maximumFromData:p}=s);let f=A??h??d.axisMinimum,m=p??c??d.axisMaximum,g=Sj({chartData:e,featureIndex:t,x:u});return{minimum:f,maximum:m,dataValue:g}}function Fj(a){let{oldConfig:t,axisMax:e,min:i,max:r,labelsIncrement:s,numberOfIntervals:n,valueFormat:o,minimumFromField:l}=a,h=Mu(o),c=!0;if(t!==void 0){let{minimum:u,minimumFromField:d,labelsIncrement:A,valueFormat:p}=t.axes[0],f=p?.intlOptions?.style!==o?.intlOptions?.style,m=ow(A)?A!==s:n!==pt.gauge.numberOfLabelIntervals;c=f||i!==u||l!==d||!h&&r!==e||m}return c}var Ps={InnerLabel:0,InnerLabelSecondary:1,AxisLabels:2,FirstAndLastLabels:3};function Au(a,t){let e;switch(t){case Ps.InnerLabel:e="gaugeAutoResizeInnerLabelFirstDisposer";break;case Ps.InnerLabelSecondary:e="gaugeAutoResizeInnerLabelSecondDisposer";break;case Ps.AxisLabels:e="gaugeAutoResizeAxisLabelsDisposer";break;case Ps.FirstAndLastLabels:e="gaugeAutoResizeFirstAndLastLabelsDisposer";break}if(e!==void 0){let i=ve(a.uid,e);i!==void 0&&(i.dispose(),i=void 0,ai(a.uid,{[e]:void 0}))}}function Tj(a){let{chart:t,labelList:e,scaleToAdjust:i,fontSize:r,type:s,axisConfig:n}=a,o=Number.NaN,l=Number.NaN,h=i;if(s===Ps.InnerLabel){let u=e[0],d=n?.innerLabel?.content?.verticalAlignment??"middle",A=u.dy??0,p=Math.round(t.chartContainer.measuredHeight-t.radarContainer.pixelY-A),f=u.bbox.height*i,m=0;switch(d){case"bottom":m=f;break;case"top":m=-f;break;case"middle":case"baseline":m=f*.5;break}m>p&&(h=i*(p/m)),o=re.gauge.innerLabelAutoMinFontSize,l=re.gauge.innerLabelAutoMaxFontSize}else o=re.gauge.axisLabelAutoMinFontSize,l=re.gauge.axisLabelAutoMaxFontSize;let c=r*h;return c<o?h*=o/c:c>l&&(h*=l/c),h}function Mw(a){let{chart:t,type:e,labelList:i,currentScale:r,currentFontSize:s,axisConfig:n}=a,o=Number.NaN,l=Number.NaN;if(e===Ps.InnerLabel){let h=typeof t.innerRadius=="number"?t.innerRadius:t.innerRadius.value;l=(t.xAxes.getIndex(0)?.measuredWidth!==0?t.xAxes.getIndex(0)?.measuredWidth??1:1)*h}else l=t.xAxes.getIndex(0)?.measuredHeight??1;if(l>1){let h=e===Ps.InnerLabel?i[0]?.measuredWidth??0:i.find(c=>c.measuredWidth>0&&c.measuredHeight>0)?.measuredHeight??0;if(h>0){let c=h/l;if(c>0){let{axisLabelToInnerChartRatio:u,innerLabelToInnerChartRatio:d}=re.gauge,A=e===Ps.InnerLabel?d:u;o=r*(A/c),o=Tj({chart:t,labelList:i,axisConfig:n,scaleToAdjust:o,fontSize:s,type:e}),o=Number(o.toFixed(2))}}}return Number.isFinite(o)||(o=r),o}function Pj(a){return a?.labels.content.font?.size===void 0||a?.innerLabel?.visible!==!1&&a?.innerLabel?.content?.font?.size===void 0}function Nv(a){return a.some(t=>op(t)&&t.value!==void 0)}function Dj(a){let{chart:t,axisConfig:e,axis:i}=a;if(e.labels.content.font?.size===void 0&&e.onlyShowFirstAndLastLabels!==!0){Au(t,Ps.AxisLabels),Au(t,Ps.FirstAndLastLabels);let r=()=>{i.events.once(Ie.Validated,()=>{let n=en(i,gr.GaugeTicksWithLabels);if(Nv(n)){let o=n.map(d=>d.label),l=o[0].scale,h=o[0].fontSize,c=Mw({chart:t,type:Ps.AxisLabels,labelList:o,currentScale:l,currentFontSize:h,axisConfig:e}),u=c/l;Number.isFinite(c)&&c>0&&(u<=.98||u>1.02)&&o.forEach(d=>{d.scale=c})}}),i.validate()};t.events.once(Ie.Validated,r);let s=t.events.on(Ie.SizeChanged,r);ai(t.uid,{gaugeAutoResizeAxisLabelsDisposer:s}),r()}else{Au(t,Ps.AxisLabels);let r=en(i,gr.GaugeTicksWithLabels);r.length>0&&r.map(s=>s.label).forEach(s=>{s.scale=1})}}function Lj(a,t){let e=ve(a.uid,"config")?.axes?.[0];if(e?.innerLabel?.visible!==!1&&e?.innerLabel?.content?.font?.size===void 0){let i=a.xAxes.getIndex(0)?.measuredWidth;if(i!==void 0&&i>0){let r=Mw({chart:a,type:Ps.InnerLabel,labelList:[t],currentScale:t.scale,currentFontSize:t.fontSize,axisConfig:e});Number.isFinite(r)&&Math.abs(t.scale-r)>.25&&(t.scale=r,t.validate())}}else t.scale=1}function Ij(a,t){Au(a,Ps.InnerLabel),Au(a,Ps.InnerLabelSecondary);let e=a.xAxes.getIndex(0),i=()=>{e?.events.once(Ie.Validated,()=>{Lj(a,t)})},r=a.events.on(Ie.Validated,i),s=a.events.on(Ie.SizeChanged,i);ai(a.uid,{gaugeAutoResizeInnerLabelFirstDisposer:s,gaugeAutoResizeInnerLabelSecondDisposer:r}),i()}function lw(a){return a?.labels.content.font?.size===void 0&&a?.onlyShowFirstAndLastLabels===!0}function kj(a){let t=a.chart,e=ve(t.uid,"config")?.axes?.[0],i=en(a,gr.GaugeFirstAndLastGuides);if(Nv(i)){let r=i.map(l=>l.label),s=r[0].scale,n=r[0].fontSize,o=Mw({chart:t,type:Ps.FirstAndLastLabels,labelList:r,currentScale:s,currentFontSize:n,axisConfig:e});Number.isFinite(o)&&o>0&&r.forEach(l=>{fu(l.uid,{originalWidth:l.measuredWidth/l.scale,originalHeight:l.measuredHeight/l.scale}),l.scale=o,l.validate()})}}function $j(a){let{chart:t,axisConfig:e,axis:i}=a;if(lw(e)){Au(t,Ps.AxisLabels),Au(t,Ps.FirstAndLastLabels);let r=()=>{i.events.once(Ie.Validated,()=>{kj(i)})},s=t.events.on(Ie.SizeChanged,r);ai(t.uid,{gaugeAutoResizeFirstAndLastLabelsDisposer:s}),r()}else Au(t,Ps.FirstAndLastLabels),en(i,gr.GaugeFirstAndLastGuides).map(r=>r.label).forEach(r=>{r.scale=1})}function hw(a,t){let e=a.xAxes.getIndex(0);if(e!==void 0){let i=t??ve(a.uid,"config"),{onlyShowFirstAndLastLabels:r}=i?.axes?.[0]??{};if(!e.renderer.labels.template.visible||r===!0)a.radius=new et(re.gauge.radius);else{let s=en(e,gr.GaugeTicksWithLabels),{furthestLabelX:n,furthestLabelY:o}=s.reduce(({furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u},{label:d})=>{if(d?.visible&&d.bbox.width>0&&d.bbox.height>0){let A=d.pixelX,p=d.bbox.width*d.scale,f=0;A<0?f=Math.abs(A):f=A+p,f>c&&(c=f,l=d);let m=d.pixelY,g=d.bbox.height*d.scale,y=0;m<0?y=Math.abs(m):y=m+g,y>u&&(u=y,h=d)}return{furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u}},{furthestLabelX:void 0,furthestPixelX:0,furthestLabelY:void 0,furthestPixelY:0});if(n!==void 0&&o!==void 0){let l=(n.bbox.width+5)*n.scale,h=(o.bbox.height+5)*o.scale,c=typeof e.renderer.labels.template.radius=="number"?e.renderer.labels.template.radius:e.renderer.labels.template.radius.value,u=(l+c)*2+a.radarContainer.measuredWidth+mv(a.paddingLeft)+mv(a.paddingRight),d=80,A=170,p=a.htmlContainer?.clientHeight??0,f=Math.max(0,Math.min(1,(p-d)/(A-d))),m=a.radarContainer.measuredHeight+(h+c*f)*2+mv(a.paddingTop)+mv(a.paddingBottom),g=a.measuredWidth,y=a.measuredHeight,x=g/u,w=y/m,S=(typeof a.radius=="number"?a.radius:a.radius.value)*100,T=Number((S*x).toFixed(2)),F=Number((S*w).toFixed(2)),L=T/S,$=F/S,I=a.radarContainer.measuredWidth*L,U=a.radarContainer.measuredWidth*$,[P,Q]=I<U?[T,L]:[F,$];Number.isFinite(P)&&P>=10&&P<=re.gauge.radius&&(Q<.98||Q>1.02)&&(a.radius=new et(P))}}}}function Oj(a){let t=a.xAxes.getIndex(0);t!==void 0&&(t.events.on(Ie.SizeChanged,()=>hw(a)),t.events.on(Ie.Validated,Is(()=>hw(a),re.debounceTime)))}function Q1(a){let t=a.hands.push(new qd),e=re.gaugeNeedle,{startWidth:i,endWidth:r,innerRadius:s}=e;t.pin.disabled=!0,t.startWidth=i??Number.NaN,t.endWidth=r??Number.NaN,t.innerRadius=he(s??Number.NaN);let n=a.xAxes.getIndex(0);return n!==void 0&&(t.axis=n),t}function Ej(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,ai(i.uid,{gaugeData:o}))}else{let l=ve(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Mu(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function Mj(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=ve(a.uid,"config"),s=i.min??r?.axes?.[0].minimum??re.gauge.axisMinimum,n=i.max??r?.axes?.[0].maximum??re.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e}function Rj(a){let{chart:t,needle:e,gaugeValue:i}=a,r=t.hands.getIndex(0)??Q1(t);if(r!==void 0){Mf({element:r,fillSymbol:e?.symbol});let{startWidth:s,endWidth:n,innerRadius:o}=re.gaugeNeedle;r.value=Mj(t,i),r.pin.disabled=e?.displayPin!==!0,r.visible=e?.visible??!0,r.startWidth=e?.startWidth??s,r.endWidth=e?.endWidth??n,r.innerRadius=he(e?.innerRadius??o)}}function Uj(a){let t=ml(void 0,a.radarContainer);t.isMeasured=!1,fu(t.uid,{isGaugeAxisInnerLabel:!0}),Ij(a,t)}function Vj(a){let{chart:t,innerLabelConfig:e,valueFormat:i,gaugeValue:r,gaugeInnerLabelFormatter:s}=a,n=t.radarContainer.children.values.find(o=>ms(o.uid,"isGaugeAxisInnerLabel")===!0);if(n!==void 0){_n({label:n,labelConfig:e,defaults:re.gaugeInnerLabel});let o=ve(t.uid,"formatLocale");n.html=Zj({valueFormat:i,iLocale:t.language.locale,formatLocale:o,gaugeValue:r,innerLabelConfigContent:e?.content,gaugeInnerLabelFormatter:s}),t.radarContainer.invalidateLabels()}}function Nj(a){let t=a.axisRanges.create();return t.axisFill.fillOpacity=1,t.axisFill.disabled=!0,t.grid.strokeOpacity=1,t.grid.disabled=!1,t.tick.length=re.gaugeTicksLength,t}function Qj(a){let t=new Vn;return t.disabled=!0,t.axis=a,$v(t),t.padding(10,10,10,10),fu(t.uid,{isGaugeAxisLabel:!0}),t}function Hj(a){let{axis:t,min:e,max:i,labelsIncrement:r,numberOfIntervals:s,valueFormat:n}=a,o=Mu(n),l=1,h=en(t,gr.Ticks);h.length>0&&(l=h[0].label?.scale,h.forEach(d=>{if(op(d)){let A=t.axisRanges.values.indexOf(d);A>=0&&t.axisRanges.removeIndex(A)}}));let c=re.gauge.numberOfTicksBetweenTwoLabels+1,u=s*c+1;for(let d=0;d<u;d+=1){let A=d===u-1,p=Nj(t),f=A?i:e+d/c*r;p.value=o?Nf({value:f,axisMin:e,axisMax:i}):f,d%c===0&&(p.label=Qj(t),p.label.text=String(f),p.grid.disabled=!0,Number.isFinite(l)&&(p.label.scale=l))}}function jj(a){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,axisLabelConfigContent:s,axisValueFormatter:n}=a;if(!i){let o=en(e,gr.GaugeTicksWithLabels);if(Nv(o)){let l=ve(t.uid,"formatLocale");o.forEach(h=>{_n({label:h.label,labelConfig:s}),op(h)&&(h.label.html=H1({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:s?.content,itemLabelValue:h.value,axisValueFormatter:n}))})}}}function Wj(a,t){let e=t?.ticks?.visible??!0,i=en(a,gr.Ticks);for(let r=0;r<i.length;r+=1){let s=i[r];Ui(s.tick,e)}}function Xj(a,t){if(a instanceof Qe&&a.chart instanceof Ys){let e=en(a,gr.GaugeTicksWithLabels);if(Nv(e)){let{onlyShowFirstAndLastLabels:i,labels:r}=t,s=(r?.visible??!0)&&i!==!0;e.forEach(n=>{Ui(n.label,s)})}}}function zj(a){let{labels:t,guides:e,onlyShowFirstAndLastLabels:i}=a,r=e??[];if(i===!0){let s={type:V.Guide,start:Number.NaN,style:{type:"esriSLS"},name:""};r.push({...s,start:a.minimum??Number.NaN,name:re.gaugeFirstLabelId,label:{...t.content,text:`${a.minimum}`}},{...s,start:a.maximum??Number.NaN,name:re.gaugeLastLabelId,label:{...t.content,text:`${a.maximum}`}})}a.guides=r}function Gj(a){en(a,gr.GaugeFirstAndLastGuides).forEach(t=>{t.label.adapter.keys().includes("dx")||t.label.adapter.add("dx",e=>{let i=e;if(t.label.measuredWidth>0){let r=ve(a.chart.uid,"config")?.axes?.[0],s=ms(t.label.uid,"originalWidth"),n=lw(r)&&s!==void 0&&s===t.label.measuredWidth&&t.label.scale!==1;i=Math.round((n?s*t.label.scale:t.label.measuredWidth)/2),t.id===re.gaugeLastLabelId&&(i*=-1)}return i}),t.label.adapter.keys().includes("dy")||t.label.adapter.add("dy",e=>{let i=e;if(t.label.measuredHeight>0){let r=ve(a.chart.uid,"config")?.axes?.[0],s=ms(t.label.uid,"originalHeight"),n=lw(r)&&s!==void 0&&s===t.label.measuredHeight&&t.label.scale!==1;i=Math.round((n?s*t.label.scale:t.label.measuredHeight)/2)}return i})})}function Yj(a){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,gaugeLabelConfigContent:s,axisValueFormatter:n}=a;if(i){let o=en(e,gr.GaugeFirstAndLastGuides),l=ve(t.uid,"formatLocale");o.forEach(h=>{h?.label!==void 0&&op(h)&&(h.label.html=H1({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:s?.content,itemLabelValue:h.value,axisValueFormatter:n}))}),Gj(e)}}function Kj(a){let{chart:t,valueFormat:e,queryObject:i,errorStrings:r}=a;t.xAxes.clear(),Of({isXAxis:!0,axes:t.xAxes,valueFormat:e,queryObject:i,errorStrings:r});let s=t.xAxes.getIndex(0);s instanceof Qe&&(s.renderer.labels.template.disabled=!0,s.renderer.ticks.template.disabled=!0,Q1(t),Uj(t),Oj(t),s.maxZoomFactor=1)}function Zj(a){let{valueFormat:t,iLocale:e,formatLocale:i,innerLabelConfigContent:r,gaugeValue:s,gaugeInnerLabelFormatter:n}=a,o="";if(Number.isFinite(s))if(n!==void 0)o=n(s);else{let l=$o(t),h=fl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${s}`),o=xa({textSymbol:{type:Rt.TS,...r,text:o},format:"html"}),o=Zr(o)}return o}function H1(a){let{valueFormat:t,iLocale:e,formatLocale:i,gaugeLabelConfigContent:r,itemLabelValue:s,axisValueFormatter:n}=a,o="";if(Number.isFinite(s))if(n!==void 0)o=n(s);else{let l=$o(t),h=fl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${s}`),o=xa({textSymbol:{type:Rt.TS,...r,text:o},format:"html"}),o=Zr(o)}return o}function qj(a){let{gaugeBands:t}=a,e={base:pF(),target:fF()};return t.type===V.FixedProgressBands&&(e.target=t.bands?.target??e.target,e.base=t.bands?.base??e.base),e}function Jj(a){let{axis:t,axisConfig:e,gaugeValue:i}=a,r=e.progressBands;if(r?.type===V.FixedProgressBands&&r.visible!==!1){let s=e.minimum??t.min,n=e.maximum??t.max;if(i!=null&&s!==void 0&&s!==null&&n!==void 0&&n!==null){let o=Math.min(Math.max(i,s),n),l=qj({gaugeBands:r});e.guides=[{type:V.Guide,start:s,end:o,style:l.target,name:"progressTargetBand"},{type:V.Guide,start:o,end:n,style:l.base,name:"progressBaseBand"}]}}}function eW(a){let{chart:t,chartConfig:e,data:i,queryObject:r,axisValueFormatter:s,gaugeInnerLabelFormatter:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a,{axes:c,series:u}=e,d=Hu(e),A=ze(e.series),{featureIndex:p,x:f}=u[0],m=c?.[0],g=t.xAxes.getIndex(0),y={...m};if(g!==void 0&&y!==void 0){let{valueFormat:x,needle:w,innerLabel:S,onlyShowFirstAndLastLabels:T}=y;tw({axis:g,valueFormat:x,chartType:A})&&Of({isXAxis:!0,axes:t.xAxes,valueFormat:x,queryObject:r,errorStrings:l});let F=Ew({featureIndex:p,chartData:t.data,chartConfig:e,gaugeMinMaxFromData:h,queryConfig:ve(t.uid,"queryConfig")});y.minimum=F.minimum,y.maximum=F.maximum;let{min:L,max:$,labelsIncrement:I,numberOfIntervals:U}=V1(y);Fj({oldConfig:ve(g.chart.uid,"config"),axisMax:g.max,min:L,max:$,labelsIncrement:I,numberOfIntervals:U,valueFormat:x})&&Hj({axis:g,min:L,max:$,labelsIncrement:I,numberOfIntervals:U,valueFormat:x});let P={...y};Mu(x)?(P.minimum=0,P.maximum=1,N1({axisConfig:P,axisMin:y.minimum,axisMax:y.maximum})):(P.minimum=L,P.maximum=$);let Q=d?F?.dataValue:Ej({x:f,data:i,chart:t,minimum:y.minimum,maximum:y.maximum,valueFormat:x});Jj({axis:g,axisConfig:P,gaugeValue:Q??Number.NaN}),zj(P),vv({axis:g,axisConfig:P,axisConfigIndex:0,chartType:V.GaugeSeries,axisValueFormatter:s,isTimeOnlyField:!1,setTimeZone:!1,utilsStrings:o,errorStrings:l}),g.renderer.labels.template.disabled||(g.renderer.labels.template.disabled=!0),g.renderer.ticks.template.disabled||(g.renderer.ticks.template.disabled=!0),Dj({chart:g.chart,axis:g,axisConfig:y}),$j({chart:t,axis:g,axisConfig:y}),Wj(g,y),jj({chart:t,axis:g,onlyShowFirstAndLastLabels:T??!1,valueFormat:x,axisLabelConfigContent:y.labels,axisValueFormatter:s}),Yj({chart:t,axis:g,onlyShowFirstAndLastLabels:T??!1,valueFormat:x,gaugeLabelConfigContent:y.labels,axisValueFormatter:s}),Rj({chart:t,needle:w,gaugeValue:Q}),Vj({chart:t,innerLabelConfig:S,valueFormat:x,gaugeValue:Q,gaugeInnerLabelFormatter:n}),Xj(g,y),hw(t,e),t.validateData()}}function tW(a){a.background.fill=bn(re.backgroundColor)}function Qv(a,t){a.background.fill=bn(t??re.backgroundColor)}function iW(a){let t=C1(re.headerContainer,a),e=ml(re.title,t),i=ml(re.subtitle,t);return a instanceof dn&&(Sv(a,e),Sv(a,i),Vf({chart:a,label:e,labelType:Wt.ChartTitle}),Vf({chart:a,label:i,labelType:Wt.ChartSubTitle})),cH(t),{headerContainer:t,title:e,subtitle:i}}function Hv(a,t){let{title:e,subtitle:i,headerContainer:r}=a;_n({label:e,labelConfig:t?.title,defaults:re.titleLabel}),_n({label:i,labelConfig:t?.subtitle,defaults:re.titleLabel}),w1(r,e.disabled&&i.disabled),mu({chart:e.parent,label:e,labelType:Wt.ChartTitle}),mu({chart:i.parent,label:i,labelType:Wt.ChartSubTitle})}function rW(a){let t=C1(re.footerContainer,a),e=ml(re.footer,t);return a instanceof dn&&(Sv(a,e),Vf({chart:a,label:e,labelType:Wt.ChartFooter})),{footerContainer:t,footer:e}}function jv(a,t){let{footer:e,footerContainer:i}=a;_n({label:e,labelConfig:t,defaults:re.footer}),w1(i,e.disabled||t?.content.text===""),mu({chart:e.parent,label:e,labelType:Wt.ChartFooter})}function Rw(a){return a.values.every(t=>t.isReady())}function sW(a){a.events.on(Ie.Ready,()=>{let{chart:t}=a;t&&Rw(a.chart.series)&&(UQ(t),Uu(a.chart.htmlContainer))})}function j1(a){if(a instanceof Vt){let t=new mo,e=new mo;t.disabled=!0,e.disabled=!0,t.marginTop=-10,e.marginRight=0,a.scrollbarX=t,a.scrollbarY=e}}function aW(a,t){let e=t?0:-1;a.thumb.tabindex=e,a.startGrip.tabindex=e,a.endGrip.tabindex=e}function nW(a,t){if(t!==void 0){let e=Nc(t);[a.background,a.startGrip.background,a.endGrip.background,a.thumb.background,a.background.states.getKey("default")?.properties,a.startGrip.background.states.getKey("default")?.properties,a.endGrip.background.states.getKey("default")?.properties,a.thumb.background.states.getKey("default")?.properties,a.startGrip.background.states.getKey("hover")?.properties,a.endGrip.background.states.getKey("hover")?.properties,a.thumb.background.states.getKey("hover")?.properties,a.startGrip.background.states.getKey("down")?.properties,a.endGrip.background.states.getKey("down")?.properties,a.thumb.background.states.getKey("down")?.properties].forEach(i=>{i!==void 0&&(i.fill=e)})}}function oW(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.orientation==="horizontal"?(a.height=t,a.minHeight=t):(a.width=t,a.minWidth=t))}function lW(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.scale=e,a.endGrip.scale=e}}function hW(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.orientation==="horizontal"?a.marginBottom=t:a.marginLeft=t,a.parent?.invalidateLayout())}function W1(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(t instanceof Vt){let r=ve(t.uid,"isRotated");(t.scrollbarX===void 0||t.scrollbarY===void 0)&&j1(t);let{scrollbarX:s,scrollbarY:n}=t;[s,n].forEach(o=>{let l=o.orientation==="horizontal"&&r!==!0||o.orientation==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(o.disabled=h,aW(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;hW(o,A),nW(o,u),lW(o,d),oW(o,c)}})}}function uW(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&(e.strokeOpacity=0)})}function cW(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.dataFields.valueY??t.dataFields.valueX??e.y,h=new Set,c,u=e.fillSymbol,d={seriesConfig:e,seriesIndex:i,seriesSymbol:u,colorMatch:n,isChartFillSymbol:!0},A={},p={},f=Jb(i);return t.columns.length===0?A=du({seriesConfig:e,seriesIndex:i,seriesSymbol:u??f,element:new Ee,colorMatch:n,isChartFillSymbol:!0}):(t.columns.each(m=>{let g=m.dataItem?.dataContext;if(Number.isFinite(g?.[l])){let y=on({dataItem:g,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o}),x=g[re.xAxisField]===re.nullValue,w=(x&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:u)??f;A=du({...d,seriesSymbol:w,element:m,rendererSymbol:y}),gA({element:m,stylingInfo:A.stylingInfo}),x||(h.add(JSON.stringify(A.symbolWithColorInfo)),p=A)}}),r>1&&A.symbolWithColorInfo&&du({...d,seriesSymbol:A.symbolWithColorInfo,element:t.columns.template})),h.size<=1&&(c=p.symbolWithColorInfo??u),uW(t,l),c}function dW(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n}=a,o=a.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=kt(l?.series),u=cW({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:h,chartSubType:c,colorMatch:s,rendererType:n});e.set(i.get(o.id)??r,u),e.size===h&&nn({data:e,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)})}function X1(a){let{seriesConfig:t,series:e,seriesIndexMapper:i,rotationChanged:r,colorMatch:s,stackedType:n,rendererType:o,seriesIndex:l,seriesSymbolMapForEvent:h,queryObject:c}=a,{name:u}=t,d=ve(e.chart.uid,"config"),A=xn({config:d}),p=kt(d?.series);Ui(e,t.visible);let f=u,m=e.dataFields?.customValue??"";(p===ke.BarAndLineSplitBy||p===ke.BarAndLineSplitByNoAggregation)&&(f=ag({queryObject:c,fieldName:Dn(m),fieldValue:f})??f),_A(e,f),Sw({series:e,seriesConfig:t,rotationChanged:r,stackedType:n,isRotated:A}),dW({series:e,seriesConfig:t,seriesIndex:l,seriesIndexMapper:i,colorMatch:s,rendererType:o,seriesSymbolMapForEvent:h}),Jn(e.uid,{barSeriesLastUpdate:{numberOfColumnsUpdated:e.columns.length,updateProps:a}})}function AW(a){a.events.on(Ie.Validated,()=>{let t=sa(a.uid,"barSeriesLastUpdate");if(t!==void 0){let{numberOfColumnsUpdated:e,updateProps:i}=t;a.columns.length>e&&X1(i)}})}function pW(a){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],selectionTheme:s,queryObject:n,errorStrings:o}=a,{rotated:l}=e,h=e.series[i],{y:c,assignToSecondValueAxis:u}=h,d=new Xi;d.id=h.id;let A,p;l!==!0?(A=r[0],p=u===!0&&r[2]?r[2]:r[1]):(A=u===!0&&r[2]?r[2]:r[0],p=r[1]),A!==void 0&&(d.xAxis=A),p!==void 0&&(d.yAxis=p);let f=t instanceof Vt?xn({chart:t}):!1,m=kt(e.series)!==ke.BarAndLineSplitByNoAggregation?c:`${c}_${vh({where:h.query?.where,keepSurroundingQuotes:!1,escape:!1})}`;f?d.dataFields.valueX=m:d.dataFields.valueY=m;let g=f?r[1]:r[0];if(g!==void 0){let y=c1(g,f);d.dataFields[y]=re.xAxisField,d.baseAxis=g}return Sw({series:d,seriesConfig:h,rotationChanged:!1,stackedType:e.stackedType,isRotated:f}),d.dataFields.customValue=h?.query?.where,v1(d.columns.template,d),d.columns.template.width=he(100),Xc({element:d.columns.template,customSelectionTheme:s}),Hf({chart:t,element:d.columns.template,queryObject:n,errorStrings:o}),Lw(d),AW(d),Wc(d),d}function fW(a){let{seriesConfig:t,series:e,seriesIndex:i,axes:r,utilsStrings:s,fieldList:n,queryObject:o,stackedType:l,options:h}=a;e.id=t.id;let c=xn({chart:e.chart});rj({series:e,seriesType:V.BarSeries,isRotated:c,stackedType:l,hideOversizedSideBySideLabels:t.hideOversizedSideBySideLabels,hideOversizedStackedLabels:t.hideOversizedStackedLabels,dataLabelsConfig:t.dataLabels,yAxisValueFormat:r[1].valueFormat,customDataLabelFormatter:h?.dataLabelFormatter}),Ev({styleCallback:()=>X1(a),series:e,seriesConfig:t}),x1({series:e,seriesConfig:t,fieldList:n,queryObject:o,utilsStrings:s,seriesIndex:i,tooltipFormatter:h?.tooltipFormatter})}function mW(a){a.labels.template.adapter.add("html",(t,e)=>{let i=sa(a.uid,"pieChartDataLabelFormatter"),r=t??"",{dataItem:s}=e;if(s instanceof Fa){let{slice:n}=s;if(n!==void 0&&!Ef(n))r="";else if(i!==void 0){let{value:o,percent:l}=s.values?.value??{};if(o!==void 0&&o!==0){let h=`${s.properties?.category??t}`;r=i(h,o,l)}}}return zi(r)&&(r=re.htmlEmptyContent),Zr(r)})}function gW(a){let t=a.labels.template;t.maxWidth=re.pieChart.dataLabels.maxWidth??Number.NaN,t.wrap=re.pieChart.dataLabels.wrap??!0,t.events.on(Ie.Over,e=>{let{dataItem:i}=e.target??{};i instanceof Fa&&i.slice.showTooltip()}),mW(a)}function yW(a,t){let{numericValueFormat:e,percentValueFormat:i,displayCategoryOnDataLabel:r,displayNumericValueOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,d=Dw({iLocale:a.chart.language.locale,pieChart:a.chart,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:s??re.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??re.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),A=tg(u),p=Ra(a.rtl," ");return(f,m,g)=>{let y=d(f,m,g),x=r??re.pieChart.displayCategoryOnDataLabel?A(f):"",w=zi(x)?"":`${x}${p}`;return w=`${w}${y}`,t.dataLabels?.content!==void 0&&(w=xa({textSymbol:{...t.dataLabels.content,text:w},format:"html",defaults:{...re.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??re.pieChart.dataLabels.wrap}})),w}}function vW(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??re.pieChart.dataLabelsOffset,n=e.dataLabelsInside??re.pieChart.dataLabelsInside;Jn(t.uid,{pieChartDataLabelFormatter:i??yW(t,e)}),_n({label:t.labels.template,labelConfig:r,defaults:{...re.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??re.pieChart.alignDataLabels},skipSettingText:!0}),t.alignLabels=!n&&(e.alignDataLabels??re.pieChart.alignDataLabels);let o=t.labels.template.radius;t.chart.invalidateData(),(n&&o!==he(-40)||!n&&o===he(-40)||s!==void 0&&Number.isFinite(s)&&o!==s)&&(t.labels.template.radius=n?he(-40):s,t.invalidate())}function bW(a,t){let e=(p,f,m)=>re.htmlEmptyContent,{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:s,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,f,m)=>{let g=re.htmlEmptyContent,y=Dw({iLocale:a.chart.language.locale,pieChart:a.chart,valueIntlOptions:(s??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??re.pieChart.displayNumericValueOnTooltip,displayPercentage:h??re.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",f,m),x=!zi(p)&&(o??re.pieChart.displayCategoryOnTooltip);if(x&&(g=`<b>${p}</b>`),!zi(y)){let w=ig(y);g=x?`${g}<br />${w}`:w}return g},e}function xW(a){if(a.tooltip!==void 0){let t=a.fill;t instanceof vc?t=t.stroke:t instanceof bc&&(t=t.backgroundFill),a.tooltip.background.fill=t}}function _W(a){let t=a.slices.template;t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:s}=a;if(s!==void 0&&i.tooltip!==void 0){let n=ve(s.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)i.tooltip.disabled=!0;else{let l=sa(a.uid,"pieChartTooltipFormatter");if(l!==void 0){let{dataItem:h}=i;if(h instanceof Fa){let c=h.properties.category??"",u=h.dataContext,d=oo(u);d===void 0&&(d=c);let A=h.values?.value?.value,p=h.values?.value?.percent;typeof A=="number"&&A!==0&&n?.series?.[0]?.dataTooltipVisible!==!1?(i.tooltip.disabled=!1,xW(i),r=l(`${c}`,A,p,d)):i.tooltip.disabled=!0}}}}return Zr(r)})}function CW(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{pieChartTooltipFormatter:i??bW(t,e)}),Rv(t,e)}function wW(a){a.ticks.template.adapter.add("disabled",(t,e)=>e.dataItem?.values?.value?.value===0||!Number.isFinite(e.dataItem?.values?.value?.value)||t===!0)}function BW(a){let{chartData:t,pieSeries:e,pieSlicesSymbols:i,seriesConfig:r}=a;if(e.slices.length===0){let s=[];t?.forEach(n=>{let o=Cw({dataContext:n,pieSlicesSymbols:i,seriesConfig:r});s.push(Nc(o.color))}),s.length>0&&(e.colors.list=s)}}function SW(a){let{seriesConfig:t,selectionTheme:e}=a,{x:i,y:r,id:s,visible:n}=t,o=new ws;o.id=s,o.dataFields.value=r,o.dataFields.category=i;let l=re.pieChart;o.startAngle=l.min,o.endAngle=360+o.startAngle,wW(o),_W(o),gW(o);let h=e!==void 0&&e.selectedElementsTheme?.transformation?.opacity===void 0?{...e,selectedElementsTheme:{...e?.selectedElementsTheme,transformation:{...e?.selectedElementsTheme?.transformation,opacity:1}}}:e;return Xc({element:o.slices.template,useNativeState:!0,customSelectionTheme:h}),o.slices.template.states.removeKey("hover"),Wc(o),o.hidden=n===!1,Lw(o),o}function FW(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i,selectionTheme:r}=a;t.defaultState.reset(),t.slices.each((s,n)=>{let o=s.dataItem?.dataContext,l=Cw({dataContext:o,pieSlicesSymbols:e,seriesConfig:i}),h=Mf({element:s,fillSymbol:l,defaultToColorFromRamp:!0,colorRampIndex:n,isChartFillSymbol:!0});r!==void 0&&r.selectedElementsTheme===void 0&&gA({element:s,stylingInfo:h,stateKey:ia.Active})})}function TW(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.disabled=i,a.ticks.template.strokeOpacity=re.pieChart.ticksOpacity;let r=e?.lineSymbol??KA({color:Hm});i&&(r.width=0),Vc({element:a.ticks.template,lineSymbol:r,visible:!i})}function PW(a){let{chart:t,seriesConfig:e,series:i,pieSlicesSymbols:r,options:s}=a,{tooltipFormatter:n,dataLabelFormatter:o}=s??{},{x:l,y:h,id:c,innerRadius:u,startAngle:d,endAngle:A}=e;i.id=c;let p=kt([e]),f=re.pieChart;i.dataFields.value=p!==ke.PieFromFields?h:Ru,i.dataFields.category=p!==ke.PieFromFields?l:ao;let m=t.radius instanceof et?t.radius.value:t.radius;t.innerRadius=he((u??f.innerRadius)*m),i.startAngle=d??f.min,i.endAngle=A??360+i.startAngle,vW({pieSeries:i,seriesConfig:e,dataLabelFormatter:o}),BW({chartData:t.data,pieSeries:i,pieSlicesSymbols:r,seriesConfig:e}),Ev({styleCallback:()=>FW(a),series:i,seriesConfig:e}),TW(i,e),CW({series:i,seriesConfig:e,tooltipFormatter:n})}async function aI(a){let{chart:t,hitSlice:e,multiSelect:i=!1,queryObject:r,errorStrings:s}=a,n=[],o=ve(t.uid,"config"),l=t.series.getIndex(0);if(o&&l!==void 0){let h=i1(l),c=xu(l),u={element:{},xAxisField:h,yAxisField:c,seriesIndex:0,chartConfig:o};l.slices.each((d,A)=>{d.isActive&&(d===e||i||d.dataItem instanceof Fa&&d.dataItem.label.isHover)?ih(d.dataItem?.dataContext)?(Qf({groupOfSlicesDataContext:d.dataItem?.dataContext})??[]).forEach(p=>{n.push({...u,element:void 0,elementDataContext:p,elementIndex:A})}):n.push({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:A}):Zn({element:d,selected:!1,useNativeState:!0})}),n.forEach(d=>{Zn({element:d.element,selected:!0,useNativeState:!0})}),await Wf({chart:t,listSelectedElements:n,selectionSource:Tr.SelectionByClick,queryObject:r,errorStrings:s})}t.feedLegend()}function DW(a,t,e){let i=async n=>{let{target:o}=n;if(p1(a)&&a.series.getIndex(0)?.slices.template.togglable){let l=Mv(n,a);if(o instanceof Sa)await aI({chart:a,multiSelect:l,hitSlice:o,queryObject:t,errorStrings:e});else if(o instanceof Mi){let h=o.dataItem;if(h instanceof Fa){let{slice:c}=h;c.isActive=!c.isActive,await aI({chart:a,multiSelect:l,hitSlice:c,queryObject:t,errorStrings:e})}}else o===a.background&&await Wf({chart:a,listSelectedElements:[],selectionSource:Tr.SelectionByClick,queryObject:t,errorStrings:e})}},r=a.series.getIndex(0)?.slices.template;r!==void 0&&(r.events.on(Ie.Hit,i),r.events.on(Ie.DoubleHit,i));let s=a.series.getIndex(0)?.labels.template;s!==void 0&&s.events.on(Ie.Hit,i),a.background.events.on(Ie.Hit,i),a.background.events.on(Ie.DoubleHit,i)}function nI(a){let t;return typeof a=="number"&&Number.isFinite(a)&&a>0&&(t=a),t}function LW(a){let{chartContainer:t}=a,e=nI(t.measuredWidth),i=nI(t.measuredHeight),r;return e!==void 0&&i!==void 0&&(r={width:e,minSide:Math.min(e,i)}),r}function oI(a){return a?.offsetParent!==null}function IW(a,t){a!==void 0&&t!==void 0&&window.IntersectionObserver!==void 0&&new IntersectionObserver(e=>{e[0].intersectionRatio>0&&(ve(a.uid,"chartWasCreatedWhileHidden")===!0?(a instanceof qi&&a.events.once(Ie.Validated,()=>{a.isDisposed()||Fv(a),a.reinit()}),a.reinit(),a instanceof Vt&&Vv(a),ai(a.uid,{chartWasCreatedWhileHidden:!1})):ve(a.uid,"chartWasUpdatedWhileHidden")===!0&&(a instanceof qi&&a.events.once(Ie.Validated,()=>{a.isDisposed()||Fv(a),a.reinit()}),a.reinit(),ai(a.uid,{chartWasUpdatedWhileHidden:!1})))},{root:null}).observe(t)}function Fv(a){let t=ve(a.uid,"config");if(t!==void 0){let e=he(ve(a.uid,"pieChartRadius")??re.pieChart.chartOptimizedRadius),i=e,{series:r}=t,{innerRadius:s,optimizeDataLabelsOverlapping:n,alignDataLabels:o,dataLabelsOffset:l=re.pieChart.dataLabelsOffset,dataLabels:h,dataLabelsInside:c}=r[0];if(h?.visible===!0&&o===!0&&n===!0&&c!==!0){let d=re.pieChart.chartOptimizedRadius/100,A=500,p=150,f=.6,m=.5,g=1,y=a.chartContainer.measuredWidth-l*2,x=Math.max(y-p,0)/(A-p),w=x<1?Math.max(x**g*f,.4):Math.min(x**m*f,d);i=he(w*100)}else i=he(re.pieChart.chartRadius);e.value.toFixed(1)!==i.value.toFixed(1)&&(ai(a.uid,{pieChartRadius:i.percent}),a.radius=i,a.innerRadius=he((s??re.pieChart.innerRadius)*i.value));let u=a.series?.values?.[0];u instanceof ws&&(u.labels.template.maxWidth=kW(t?.series[0],a))}}function z1(a){wn(a)&&a.events.on(Ie.SizeChanged,Is(()=>Fv(a),re.debounceTime))}function kW(a,t){let e=re.pieChart.dataLabels.maxWidth??100,i=e;if(a!=null){let{alignDataLabels:r,dataLabelsOffset:s=re.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:n,dataLabels:o,dataLabelsInside:l}=a;if(o?.visible===!0&&r===!0&&l!==!0&&n===!0){let h=e,c=LW(t),u=typeof t.radius=="number"?t.radius/100:t.radius.value;if(c!==void 0&&Number.isFinite(u)){let{width:d,minSide:A}=c,p=u*A,f=5,m=Math.floor((d-p)/2)-f-s;if(Number.isFinite(m)){h=Math.min(m,e-f);let g=30;h<g&&(h=g),Number.isFinite(h)||(h=e)}}i=h}}return i}function G1(a){if(wn(a)){let t=typeof a.radius=="number"?a.radius:a.radius.percent;ai(a.uid,{pieChartRadius:t}),Fv(a),a.validate()}}function Y1(a){if(a instanceof qi)z1(a),G1(a);else if(!(a instanceof Ys)){let t=()=>{let i=ve(a.uid,"config"),{chartPaddingMinSize:r,chartPaddingRightWhenLegendNotOnRight:s,chartContainerPaddingTopWhenRotated:n,chartContainer:o}=re,l=i?.series,h=ze(l),c=xn({config:i}),u=l?.[0]?.dataLabels?.visible??!0,d=re.chartDefaultPaddingRight;if(c&&u&&(h===V.LineSeries||h===V.ComboLineAndBarSeries||h===V.BarSeries&&(i?.stackedType??ex())===$i.Side)){let p=0,f=m=>ms(m.uid,"isDataLabel")??!1;a.series.each(m=>{let g=m.bullets.values.find(f);g!==void 0&&g.clones.each(y=>{let x=y.measuredWidth;switch(y.horizontalCenter){case"middle":x/=2;break;case"right":x*=-1;break}let w=y.pixelX+x;w>p&&(p=w,d=x)})})}d>=0&&(a.chartContainer.paddingRight=d),a.chartContainer.paddingTop=c?n:o.paddingTop;let A=i?.legend?.visible!==!1&&i?.legend?.position===st.Right;a.paddingRight=A?r:s},e=0;a.series.each(i=>{i.events.once(Ie.Validated,()=>{e+=1,e===a.series.length&&t()})})}}function $W(a,t){a.adapter.add("criticalError",e=>(e.message=t.errors.simpleError,e))}it.classNamePrefix="arcgis-charts-";function Uw(a){let{chart:t,localeInfo:e,chartLocale:i}=a;it.defaultLocale=i,t.language.locale=i,ai(t.uid,{formatLocale:e.formatLocale}),t.rtl=e.rtl}function Wv(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(wn(t)){let r=e??ve(t.uid,"actionMode")??re.actionMode;ai(t.uid,{actionMode:r});let s=ve(t.uid,"filterBySelection");switch(r){case Ut.MonoSelection:case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:s!==!0?XQ(t):GC(t);break;case Ut.Zoom:GC(t);break;case Ut.None:wA({chart:t,selectionSource:Tr.ClearSelection,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1}),GC(t);break}mQ({chart:t,actionMode:r,cursorRange:i})}}function OW(a,t){t&&(a.tapToActivate=!0,a.tapTimeout=3e3,a.responsive.enabled=!0)}function EW(a){let{chart:t,axesConfig:e,chartType:i,isRotated:r,errorStrings:s,queryObject:n}=a;switch(Pl({chartType:i,axesConfig:e,errorStrings:s}),i){case V.GaugeSeries:{io(n),t instanceof Ys&&e?.[0]?.valueFormat!==void 0&&Kj({chart:t,valueFormat:e[0].valueFormat,queryObject:n,errorStrings:s});break}case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{Cj({chart:t,chartType:i,isRotated:r,axesConfig:e,queryObject:n,errorStrings:s});break}}}function Vw(a){let{chart:t,chartConfig:e,chartConfig:{axes:i},rotationChanged:r,axisLabelsBehaviorChanged:s,chartType:n,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,data:c,queryObject:u,guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:f,gaugeInnerLabelFormatter:m,options:g,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:w}=a;switch(Pl({chartType:n,axesConfig:i,errorStrings:x}),n){case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{t instanceof Vt&&wj({chart:t,chartConfig:e,rotationChanged:r,axisLabelsBehaviorChanged:s,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,timeIntervalInfo:c?.timeIntervalInfo??ve(t.uid,"timeIntervalInfo"),guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:f,options:g,utilsStrings:y,errorStrings:x,queryObject:u});break}case V.GaugeSeries:{t instanceof Ys&&(io(u),eW({chart:t,chartConfig:e,data:(c??t.data).dataItems,queryObject:u,axisValueFormatter:A,gaugeInnerLabelFormatter:m,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:w}));break}}}function K1(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,errorStrings:s,queryObject:n}=a,{selectionTheme:o,ignoreSmoothRenderingLimit:l}=i??{};t.series.clear();let h,c,u=[],d=t instanceof Vt?[t.xAxes.getIndex(0),t.yAxes.getIndex(0),t.xAxes.getIndex(1)??t.yAxes.getIndex(1)]:void 0,A={selectionTheme:o,utilsStrings:r},p={...A,axisList:d};if(t instanceof Vt)for(let m=0;m<e.series.length;m+=1){let g=e.series[m];if(c=ze([g]),Dl(e))h=YH({...p,chart:t,axisList:d,chartConfig:e,seriesIndex:m,queryObject:n,errorStrings:s}),u.push(...h.flat());else switch(c){case V.BarSeries:{h=pW({...p,chart:t,chartConfig:e,seriesIndex:m,queryObject:n,errorStrings:s}),u.push(h);break}case V.LineSeries:{io(n),h=VH({...p,chart:t,chartConfig:e,seriesIndex:m,ignoreSmoothRenderingLimit:l,queryObject:n,errorStrings:s}),u.push(h);break}}}else t instanceof qi&&e.series[0].type===V.PieSeries&&(h=SW({...A,seriesConfig:e.series[0]}),u.push(h));u.forEach(m=>{sW(m)});let f=GF({chartConfig:e,queryObject:n,chartData:t.data});f.length>0&&(t.colors.list=f.map(m=>{let[g,y,x,w]=m;return new xt({r:g,g:y,b:x,a:w})})),u.length>0&&t.series.pushAll(u),GQ(t)}function Nw(a){let{chart:t,chartConfig:e,chartConfig:{series:i,axes:r,chartRenderer:s},seriesIndexMapper:n,rotationChanged:o,seriesReordered:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,chartData:u,queryObject:d,options:A,dataWasUpdated:p,sortChanged:f,groupOfSlicesWasUpdated:m,pieSlicesSymbols:g,seriesWereReinitialized:y,utilsStrings:x,errorStrings:w}=a,S=t.series.values,T=new Map,F=e.series.length,L=Fl(e),$=ks(e),I=_a(d,A?.popupTemplateFieldInfosEnabled),U=$s(d),P=rg(s,bs(U)?void 0:U?.renderer);for(let[Q,G]of i.entries()){let Y=ze([G]),ee=S[Q],te={numberOfSeries:F,series:ee,seriesConfig:G,seriesIndex:Q,colorMatch:L,queryObject:d,rendererType:P,options:A,dataWasUpdated:p,fieldList:I,sortChanged:f,utilsStrings:x},le={...te,axes:r,seriesIndexMapper:n},z=ee;if(t instanceof Vt&&Dl(e))z=S.find(K=>K.id===G.id),ee!==void 0&&(z instanceof wr||z instanceof Ti)&&o2({...te,chart:t,series:z,seriesIndexMapper:n,seriesSymbolMapForEvent:T,chartData:u,showOutliers:e.showOutliers,showMean:e.showMean,outliersVisibilityChanged:h,seriesReordered:l,standardizeValuesVisibilityChanged:c,rotationChanged:o,seriesWereReinitialized:y,options:A});else switch(Y){case V.BarSeries:fW({...le,stackedType:$,seriesSymbolMapForEvent:T,rotationChanged:o});break;case V.LineSeries:WH({...le,stackedType:$,seriesSymbolMapForEvent:T,rotationChanged:o});break;case V.PieSeries:PW({...te,chart:t,pieSlicesSymbols:g,selectionTheme:A?.selectionTheme});break}}g2({chart:t,options:A,dataWasUpdated:p,chartData:u,chartConfig:e,queryObject:d,sortChanged:f,groupOfSlicesWasUpdated:m,errorStrings:w})}function Qw(a){let{chartConfig:t}=a,{chart:e,options:i,globalOptions:r,colorMatchApplied:s,pieSlicesSymbols:n,queryObject:o,utilsStrings:l,errorStrings:h,dataInfo:c}=a,{togglingLegendItemsDisabled:u,cursorRange:d,actionMode:A,pieChartLegendValueLabelFormatter:p,guideTooltipFormatter:f,xAxisLabelFormatter:m,yAxisLabelFormatter:g,secondaryYAxisLabelFormatter:y,gaugeInnerLabelFormatter:x,popupTemplateFieldInfosEnabled:w}=i??{},{data:S,count:T,queryConfig:F,gaugeMinMaxFromData:L={}}=c??{},$,I,U,P=ze(t.series),Q=_a(o,w);ai(e.uid,{fieldList:Q,options:i,elementCount:T,queryConfig:F,timeIntervalInfo:S?.timeIntervalInfo,serverLimitReached:S?.serverLimitReached});let G=new Map;t.series.forEach(($e,Ye)=>{G.set($e.id,Ye)});let Y=Ln(S);Y!==void 0&&(e.data=Y);let ee=kt(t.series);e instanceof qi&&nn({data:n,htmlContainer:e.htmlContainer,chartId:e.id,colorMatchApplied:s===!0});let{title:te,subtitle:le,footer:z,series:K,background:we}=t;$=iW(e),Hv($,{title:te,subtitle:le}),I=rW(e),jv(I,z),U=UH(e,K),dH(e);let se=xn({config:t});ai(e.uid,{config:t,isRotated:se,isNonAggregatedChart:!rp(ee)}),t.axes!==void 0&&(EW({chart:e,axesConfig:t.axes,chartType:P,isRotated:se,errorStrings:h,queryObject:o}),Vw({chart:e,chartConfig:t,chartType:P,isRotated:se,data:S,queryObject:o,guideTooltipFormatter:f,xAxisLabelFormatter:m,yAxisLabelFormatter:g,secondaryYAxisLabelFormatter:y,gaugeInnerLabelFormatter:x,options:i,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:L})),K1({chart:e,chartConfig:t,utilsStrings:l,options:i,queryObject:o,errorStrings:h}),Nw({chart:e,chartConfig:t,seriesIndexMapper:G,rotationChanged:!1,queryObject:o,chartData:S,groupOfSlicesWasUpdated:!0,pieSlicesSymbols:n,dataWasUpdated:!0,seriesWereReinitialized:!0,options:i,utilsStrings:l,errorStrings:h}),Iw({legendElements:U,seriesConfig:K,webChartLegend:t.legend,pieChartLegendValueLabelFormatter:p}),j1(e),tW(e),Qv(e,we),W1({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),qI(e),JI(e,t?.cursorCrosshair),Wv({chart:e,actionMode:A,cursorRange:d});let de=Ad(e.htmlContainer??document.documentElement);return e.dateFormatter.intlLocales=de,OW(e,r?.enableResponsiveFeatures),(e instanceof Ys||Rw(e.series))&&Uu(e.htmlContainer),Y1(e),$!==void 0&&I!==void 0&&U!==void 0?{headerElements:$,footerElements:I,legendElements:U}:void 0}function Z1(a){a.series.each(t=>{t.events.on(Ie.Ready,()=>{Rw(a.series)&&Vv(a)})})}function MW(a){let{chartContainer:t,chartConfig:e,queryObject:i,colorMatchApplied:r,dataInfo:s,t9nStrings:n,options:o,globalOptions:l}=a,{errorStrings:h,utilsStrings:c,amChartsStrings:u}=n,d=nf(t,Vt);d.id=e?.id??d.uid,ai(d.uid,{queryObject:i});let{t9nLocale:A}=Lu(d.htmlContainer??document.documentElement),p=Ad(d.htmlContainer??document.documentElement),f=Um(d.htmlContainer??document.documentElement)==="rtl";Uw({chart:d,localeInfo:{locale:A,formatLocale:p,rtl:f},chartLocale:u}),d.events.on(Ie.Inited,()=>d.zoomOutButton.deepInvalidate());let m=ze(e?.series);d instanceof Vt&&m!==V.BoxPlotSeries&&(d.maskBullets=!1);let g=Qw({chartConfig:e,chart:d,queryObject:i,colorMatchApplied:r,options:o,globalOptions:l,utilsStrings:c,errorStrings:h,dataInfo:s});return ai(d.uid,{config:_r(e)}),Z1(d),HQ({chart:d,queryObject:i,errorStrings:h}),jQ({chart:d,queryObject:i,errorStrings:h}),{chart:d,chartElements:g}}function RW(a){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,colorMatchApplied:s,pieSlicesSymbols:n,t9nStrings:{errorStrings:o,utilsStrings:l,amChartsStrings:h},options:c,globalOptions:u}=a,d=nf(t,qi);d.id=e?.id??d.uid;let A=Cx(d.htmlContainer);Uw({chart:d,localeInfo:A,chartLocale:h}),d.radius=he(re.pieChart.chartRadius);let p=Qw({chartConfig:e,chart:d,queryObject:i,colorMatchApplied:s,pieSlicesSymbols:n,dataInfo:r,options:c,globalOptions:u,utilsStrings:l,errorStrings:o});return ai(d.uid,{config:_r(e),filterBySelection:c?.filterBySelection}),DW(d,i,o),{chart:d,chartElements:p}}function UW(a){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,t9nStrings:{errorStrings:s,utilsStrings:n,amChartsStrings:o},options:l,globalOptions:h}=a,c=nf(t,Ys);c.id=e?.id??c.uid;let u=Cx(c.htmlContainer);Uw({chart:c,localeInfo:u,chartLocale:o}),c.maskBullets=!1;let d=re.gauge,A=Number.isFinite(e?.innerRadius)?e?.innerRadius:d.innerRadius,p=Number.isFinite(e?.startAngle)?e?.startAngle:d.startAngle,f=Number.isFinite(e?.endAngle)?e?.endAngle:d.endAngle;c.radius=he(d.radius),typeof A=="number"&&(c.innerRadius=he(A)),typeof p=="number"&&(c.startAngle=p),typeof f=="number"&&(c.endAngle=f);let m=Qw({chartConfig:e,chart:c,queryObject:i,dataInfo:r,options:l,globalOptions:h,utilsStrings:n,errorStrings:s});return ai(c.uid,{config:_r(e)}),Z1(c),t?.ownerDocument.addEventListener("visibilitychange",()=>{let g=t.ownerDocument.hidden;c&&!g&&Pj(e?.axes?.[0])&&(c.svgContainer?.measure(),c.invalidateData())}),{chart:c,chartElements:m}}function VW(a){let{newConfig:t}=a,{chart:e,chartElements:i,dataWasUpdated:r,dataUpdateDetails:s,dataInfo:n,options:o,configWithAllSeries:l,hasSeriesFilteredOut:h,queryObject:c,utilsStrings:u,errorStrings:d}=a,{guideTooltipFormatter:A}=o??{},{gaugeMinMaxFromData:p={}}=n,f=ve(e.uid,"config"),m=f?.series,g=t.series,y=ze(g),x=xn({config:t});ai(e.uid,{config:_r(t),isRotated:x}),ai(e.uid,{filterBySelection:o?.filterBySelection}),Wv({chart:e,actionMode:o?.actionMode,cursorRange:o?.cursorRange});let{xOrYChanged:w,layerChanged:S}=s?.common??{},{numberOfSeriesChanged:T}=s?.common??{},F=dx(f,t),L=Ax(f,t),$=OF(f,t),I=EF(f,t),U=JSON.stringify(ZA(m))!==JSON.stringify(ZA(g)),P=!1,Q=!1;Dl(t)&&Dl(f)&&(P=RF(f,t),Q=UF(f,t));let G=tp({oldConfig:h?l:f,newConfig:t,dataWasUpdated:r}),Y=sx({oldConfig:f,newConfig:t,rotationChanged:L}),ee=U1({chart:e,dualAxisChanged:$,rotationChanged:L,timeIntervalInfoWasReset:F,axisLabelsBehaviorChanged:Y}),te=!1,le=Ln(n?.data),z=kt(g);if(ai(e.uid,{isNonAggregatedChart:!rp(z)}),r){let{count:Ye,data:He,queryConfig:qe}=n??{};ai(e.uid,{elementCount:Ye,queryConfig:qe,timeIntervalInfo:He?.timeIntervalInfo,serverLimitReached:He?.serverLimitReached})}else if(y===V.BarSeries||y===V.LineSeries||y===V.RadarSeries||y===V.ComboLineAndBarSeries||y===V.BoxPlotSeries){let Ye=_x(m,g);if(Ye.length>0&&(kN(e.series,Ye),e.feedLegend(),te=!0),bh(g[0])){let{binTemporalData:He}=g[0],{unit:qe,size:Tt}=g[0].temporalBinning??{};He===!1&&qe!==void 0&&Tt!==void 0&&ai(e.uid,{timeIntervalInfo:{unit:qe,size:Tt}})}}let K=G&&!r,we=new Map;(l??t).series.forEach((Ye,He)=>{we.set(Ye.id,He)}),T=T||h,le&&(r||G)&&(e.data=le),t.axes!==void 0&&Vw({chart:e,chartConfig:t,rotationChanged:L,timeIntervalInfoWasReset:F,axisLabelsBehaviorChanged:Y,chartType:y,isRotated:x,dualAxisChanged:$,guideTooltipFormatter:A,xAxisLabelFormatter:o?.xAxisLabelFormatter,yAxisLabelFormatter:o?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:o?.secondaryYAxisLabelFormatter,queryObject:c,options:o,utilsStrings:u,errorStrings:d,gaugeMinMaxFromData:p});let se=y===V.BoxPlotSeries&&($F(g,m)||kF(g,m)),de=!1;(e.series===void 0||e.series.length===0||w||S||T||U||(y===V.BarSeries||y===V.LineSeries||y===V.RadarSeries||y===V.ComboLineAndBarSeries)&&e.series.length!==t.series.length||ee||I||se||s?.boxPlot?.showMeanChanged)&&(de=!0,!r&&(L||se||ee)&&e.invalidateData(),K1({chart:e,chartConfig:t,utilsStrings:u,queryObject:c,options:o,errorStrings:d})),Nw({chart:e,chartConfig:t,seriesIndexMapper:we,rotationChanged:L,seriesReordered:te,outliersVisibilityChanged:P,standardizeValuesVisibilityChanged:Q,queryObject:c,chartData:n.data,options:o,dataWasUpdated:r,sortChanged:G,seriesWereReinitialized:de,utilsStrings:u,errorStrings:d}),K&&(e.validateData(),y===V.BoxPlotSeries&&e.series.each(Ye=>{Ye instanceof Ti&&!(Ye instanceof Aa)&&Ye.id.includes(ji.Outliers)&&Ye.validateData()})),Hv(i.headerElements,{title:t.title,subtitle:t.subtitle}),jv(i.footerElements,t.footer),Iw({legendElements:i.legendElements,seriesConfig:t.series,webChartLegend:t.legend,togglingLegendItemsDisabled:o?.togglingLegendItemsDisabled}),Qv(e,t.background),W1({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),JI(e,t?.cursorCrosshair);let $e=pQ(e);($e.behavior===Hi.SelectX||$e.behavior===Hi.SelectXY||$e.behavior===Hi.SelectY||$e.behavior===Hi.None)&&e.scrollbarX.start===0&&e.scrollbarX.end===1&&e.scrollbarY.start===0&&e.scrollbarY.end===1&&Vv(e),Y1(e),R1(e.series.values[0])}function NW(a){let{chart:t,chartElements:e,dataWasUpdated:i,newConfig:r,pieSlicesSymbols:s,queryObject:n,options:o,dataInfo:l,utilsStrings:h,errorStrings:c}=a,u=ve(t.uid,"config"),d=u?.series,A=r?.series,p=tp({oldConfig:u,newConfig:r,dataWasUpdated:i}),f=_w(d,A),{count:m,data:g,queryConfig:y}=l??{},x=Ln(g);ai(t.uid,{filterBySelection:o?.filterBySelection,config:_r(r)});let w=x!==void 0&&(t.data.length!==x.length||zI(t.data,x));w&&(ai(t.uid,{elementCount:m,queryConfig:y}),t.data=x,Uu(t.htmlContainer)),(p||f)&&t.validateData(),nn({data:s,htmlContainer:t.htmlContainer,chartId:t.id,colorMatchApplied:Ov(t,r)}),Nw({chart:t,queryObject:n,chartConfig:r,seriesIndexMapper:new Map,options:o,dataWasUpdated:w,sortChanged:p,chartData:g,groupOfSlicesWasUpdated:f,pieSlicesSymbols:s,seriesWereReinitialized:!1,utilsStrings:h,errorStrings:c}),Hv(e.headerElements,{title:r.title,subtitle:r.subtitle}),jv(e.footerElements,r.footer),Iw({legendElements:e.legendElements,seriesConfig:r.series,webChartLegend:r.legend,togglingLegendItemsDisabled:o?.togglingLegendItemsDisabled,pieChartLegendValueLabelFormatter:o?.pieChartLegendValueLabelFormatter}),Qv(t,r.background),Wv({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange}),z1(t),G1(t)}function QW(a){let{chart:t,chartElements:e,newConfig:i,queryObject:r,dataInfo:s,dataWasUpdated:n,options:o,utilsStrings:l,errorStrings:h}=a,{gaugeMinMaxFromData:c={}}=s??{},{xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A}=o??{},p=i.series,f=ze(p),m;if(n){let{count:S,data:T,queryConfig:F}=s??{};m=T,m?.dataItems!==void 0&&(t.data=m.dataItems),Uu(t.htmlContainer),ai(t.uid,{elementCount:S,queryConfig:F})}i.axes!==void 0&&Vw({chart:t,chartConfig:i,chartType:f,data:m,queryObject:r,xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A,options:o,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c});let g=re.gauge,y=Number.isFinite(i?.innerRadius)?i.innerRadius:g.innerRadius,x=Number.isFinite(i?.startAngle)?i.startAngle:g.startAngle,w=Number.isFinite(i?.endAngle)?i.endAngle:g.endAngle;t.innerRadius=he(y),t.startAngle=x,t.endAngle=w,Hv(e.headerElements,{title:i.title,subtitle:i.subtitle}),jv(e.footerElements,i.footer),Qv(t,i.background),ai(t.uid,{config:_r(i)})}function HW(a){let{chartContainer:t,chartConfig:e,colorMatchApplied:i,pieSlicesSymbols:r,queryObject:s,dataInfo:n,t9nStrings:o,options:l,globalOptions:h}=a;it.commercialLicense=!(h?.showLicenseWatermark??h?.hideLicenseWatermark===!1),it.queue=h?.queueChartCreation!==!1,it.autoDispose=h?.autoDisposeChart===!0,h?.animationEnabled?F_(Fy):T_(Fy);let c;switch(ze(e?.series)){case V.PieSeries:io(s),c=RW({chartContainer:t,chartConfig:e,queryObject:s,dataInfo:n,colorMatchApplied:i,pieSlicesSymbols:r,options:l,globalOptions:h,t9nStrings:o});break;case V.GaugeSeries:io(s),c=UW({chartContainer:t,chartConfig:e,queryObject:s,dataInfo:n,options:l,globalOptions:h,t9nStrings:o});break;default:c=MW({chartContainer:t,chartConfig:e,dataInfo:n,colorMatchApplied:i,queryObject:s,options:l,globalOptions:h,t9nStrings:o});break}return c}function jW(a){let{chartContainer:t,chartConfig:e,t9nStrings:i,queryObject:r,options:s,colorMatchApplied:n,rendererFieldNames:o,pieSlicesSymbols:l,globalOptions:h,dataInfo:c,uniqueInternalID:u}=a,{errorStrings:d}=i,A=!oI(t),p=HW({chartContainer:t,chartConfig:e,dataInfo:c,colorMatchApplied:n,pieSlicesSymbols:l,queryObject:r,t9nStrings:i,options:s,globalOptions:h}),{chart:f,chartElements:m}=p;ai(f.uid,{chartWasCreatedWhileHidden:A,queryObject:r,filterBySelection:s?.filterBySelection,options:s,colorMatchApplied:n,rendererFieldNames:o}),$W(f,d),IW(f,t);function g(){u&&YF.delete(u),f.isDisposed()||(FQ(f),m!==void 0&&(p.chartElements=void 0),f.dispose())}function y(T){let{chartConfig:F,dataWasUpdated:L,dataUpdateDetails:$,queryObject:I,options:U,t9nStrings:{utilsStrings:P},configWithAllSeries:Q,hasSeriesFilteredOut:G,pieSlicesSymbols:Y,dataInfo:ee}=T,te=ve(f.uid,"config"),le=F?.series,z=le!==void 0?ze(le):void 0;if(f.isDisposed()||m===void 0||!yx(te,F))throw new Tl(cd.ChartDisposed);switch(z){case V.BoxPlotSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:f instanceof Vt&&VW({chart:f,chartElements:m,queryObject:I,dataWasUpdated:L,dataUpdateDetails:$,dataInfo:ee,newConfig:F,configWithAllSeries:Q,hasSeriesFilteredOut:G,options:U,utilsStrings:P,errorStrings:d});break;case V.PieSeries:io(I),NW({chart:f,chartElements:m,queryObject:I,dataWasUpdated:L,dataInfo:ee,newConfig:F,pieSlicesSymbols:Y,options:U,utilsStrings:P,errorStrings:d});break;case V.GaugeSeries:io(I),QW({chart:f,chartElements:m,newConfig:F,queryObject:I,dataWasUpdated:L,dataInfo:ee,options:U,utilsStrings:P,errorStrings:d});break}}function x(T){let{chartConfig:F,options:L,dataWasUpdated:$,dataUpdateDetails:I,configWithAllSeries:U,hasSeriesFilteredOut:P,pieSlicesSymbols:Q,colorMatchApplied:G,rendererFieldNames:Y,globalOptions:ee,t9nStrings:te,queryObject:le,dataInfo:z}=T,K=!oI(t),we=_a(le,L?.popupTemplateFieldInfosEnabled);ai(f.uid,{chartWasUpdatedWhileHidden:K,options:L,fieldList:we,queryObject:le,colorMatchApplied:G,rendererFieldNames:Y}),y({chartConfig:F,options:L,dataWasUpdated:$,dataUpdateDetails:I,pieSlicesSymbols:Q,t9nStrings:te,configWithAllSeries:U,hasSeriesFilteredOut:P,queryObject:le,dataInfo:z})}async function w(T,F){if(wn(f)&&(f instanceof Vt||f instanceof qi)){let L=ve(f.uid,"actionMode");L!==Ut.MonoSelection&&L!==Ut.None&&await WQ({chart:f,queryObject:T,errorStrings:F})}}function S(){Vv(f)}return{update:x,dispose:g,resetZoom:S,clearSelection:()=>wA({chart:f}),switchSelection:async T=>await w(T,i.errorStrings),exportImage:async T=>await TQ({chart:f,exportOptions:T}),setActionMode:(T,F)=>Wv({chart:f,actionMode:T,cursorRange:F})}}var WW="AM5C241025748",Ji={SelectEnded:"selectended",DataValidated:"datavalidated",BoundsChanged:"boundschanged",PointerUp:"pointerup",FrameEnded:"frameended",Click:"click"},uw=new Map;function XW(a,t){return Gc(a,t)}function zW(a,t){zc(a,t)}function zc(a,t){let e=uw.get(a)??{};uw.set(a,{...e,...t})}function Gc(a,t){return uw.get(a)?.[t]}function fe(a,t){return Gc(a,t)}function Xr(a,t){zc(a,t)}function bi(a,t){return Gc(a,t)}function Gr(a,t){zc(a,t)}function gu(a,t){return Gc(a,t)}function BA(a,t){zc(a,t)}function yl(a,t){return Gc(a,t)}function GW(a,t){zc(a,t)}function ka(a,t){return Gc(a,t)}function Hw(a,t){zc(a,t)}function YW(a,t){return Gc(a,t)}function KW(a,t){zc(a,t)}function ZW(a){let{chartSeries:t,oldSeries:e,newSeries:i}=a,r=_x(e,i);for(let s=0;s<r.length;s+=1){let n=r[s][0],o=r[s][1],l=t.length;n>=0&&n<l&&o>=0&&o<l&&t.swap(r[s][0],r[s][1])}}function qW(a){return a.get("renderer")instanceof ya?xr.yField:xr.xField}function JW(a){let t="";return a instanceof ga?t=a.get("categoryXField")??a.get("valueXField")??"":a instanceof Ur&&(t=a.get("categoryField")??""),t}function e4(a){let t="";return a instanceof ga?t=a.get("categoryYField")??a.get("valueYField")??"":a instanceof Ur&&(t=a.get("categoryField")??""),t}function zf(a){let t="",{chart:e}=a;return e!==void 0&&(t=fe(e.uid,"isRotated")===!0?JW(a):e4(a)),t}function jw(a){return a!=null&&!a.isDisposed()}function t4(a){let t;if(a!=null){let e=a;if(e instanceof Wr)t=e.chart;else{let i=e.dataItem?.component;i instanceof Wr&&(t=i.chart)}}return t}function q1(a){let t;if(a){let e=a.get("background")?.get("fill");if(e){let{r:i,g:r,b:s}=e;t=[Math.round(i),Math.round(r),Math.round(s),255]}}return t}function J1(a){let t=qs(a),{r:e,g:i,b:r}=t;return{r:e,g:i,b:r}}function i4(a,t){t&&a.setThemes([NL.new(a)])}function r4(a,t){t===!0&&a.setThemes([VL.new(a)])}function Xt(a){let t=qs("#000000"),e=hd;if(a!=null){let[i,r,s,n]=a;e=n/255,t=qs(`rgba(${i}, ${r}, ${s}, ${e})`)}return{color:t,opacity:e}}function Li(a,t){t===!1&&(!("isHiding"in a)||!a.isHiding())?(a.set("visible",!1),"hide"in a&&a.hide()):t!==!1&&(!("isShowing"in a)||!a.isShowing())&&(a.set("visible",!0),"show"in a&&a.show())}function Di(a){let{childId:t,parent:e,useChildId:i}=a,r=i?t:Qs(t,e.uid);return e.children.values.find(s=>s.get("id")===r)}function Qs(a,t){return`${a}${t}`}function yu(a,t=100){return setTimeout(()=>a(),t)}function ek(a){let{series:t,chartConfig:e,whenReadyCallback:i}=a,r=ze(e.series);if(t){let s=t.root.events.on(Ji.FrameEnded,()=>{let n=!1,o=!1;switch(!0){case t instanceof Ri:n=t.columns.length===t.dataItems.length;break;case(!(t instanceof Bo)&&t instanceof ei):let l=bi(t.uid,"bulletTemplate");if(l)if(r===V.ScatterSeries)n=l.entities.length===t.data.length&&t.dataItems[t.dataItems.length-1]?.bullets?.[0]?.get("sprite")!==void 0;else{o=!0;let h=zf(t)??"",c=e?.series[0]?.x??"";n=t.dataItems.filter(u=>{let d=u.dataContext;return h in d&&c in d&&d[c]!==void 0}).every(u=>!Number.isFinite(u.dataContext[h])||u?.bullets?.[0]?.get("sprite"))}break;default:n=!0;break}n&&(s.dispose(),i(),o&&t.markDirtySize())})}}function tk(a){let{chart:t,chartConfig:e,delayCallback:i}=a,{root:r}=t;if(ze(e.series)===V.GaugeSeries||!i)Uu(r.dom);else if(t instanceof fs&&i){let s=()=>{r.events.once(Ji.FrameEnded,()=>{Uu(r.dom)})};ek({series:t.series.getIndex(0),chartConfig:e,whenReadyCallback:s})}}function lI(a){let t=Number.NaN;if(typeof a=="number")t=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(t=Bt(e))}return t}function s4(a,t){return t!==!0||a?.includes("Dot")===!0?"round":"square"}function a4(a,t){let e=a??hs.Solid,i=t??q.lineWidth,r={[hs.Solid]:[],[hs.Dot]:[1,i],[hs.DashDotDot]:[4*i,i,1,i,1,i],[hs.Dash]:[4*i,3*i],[hs.DashDot]:[4*i,3*i,1,3*i],[hs.Null]:[]};return r[e]??r[hs.Null]}function n4(a){let{root:t,fill:e,rotation:i,isLinePattern:r,chartBackgroundFill:s}=a,n;if(r!==!1){let{tileSize:o,diagonalTileSize:l}=q.patternLineProperties,h=i===45||i===135,c=h?l:o;n=Jl.new(t,{width:c,height:c,strokeWidth:q.patternLineProperties.strokeWidth??1,gap:6,color:e,...h?{angle:i}:{rotation:i??Number.NaN},...s!==void 0&&{fill:s,fillOpacity:1}})}else{let o=s!==void 0?1:q.patternRectProperties.fillOpacity??Number.NaN;n=iu.new(t,{width:q.patternRectProperties.width??Number.NaN,height:q.patternRectProperties.height??Number.NaN,strokeWidth:q.patternRectProperties.strokeWidth??Number.NaN,fillOpacity:o,color:s??e,fill:e,gap:1,maxWidth:q.patternRectProperties.rectWidth??Number.NaN,maxHeight:q.patternRectProperties.rectHeight??Number.NaN,rotation:i??Number.NaN})}return n}function o4(a){let{fill:t,root:e,style:i,chartBackgroundFill:r}=a,s,n,o=!0;switch(i){case vs.Horizontal:{n=0;break}case vs.Vertical:{n=90;break}case vs.ForwardDiagonal:{n=135;break}case vs.BackwardDiagonal:{n=45;break}case vs.Cross:{n=0,o=!1;break}case vs.DiagonalCross:{n=135,o=!1;break}case vs.Solid:}return n!==void 0&&e!==void 0&&(s=n4({root:e,fill:t,rotation:n,isLinePattern:o,chartBackgroundFill:r})),s}function ik(a,t=0){return(a??t)%360}function rk(a,t){let e={stroke:Xt().color,strokeWidth:q.lineWidth,strokeDasharray:[],linecap:t!==!0?"round":"square",strokeOpacity:hd};if(a!=null){let i=Xt(a.color);e.stroke=i.color,e.strokeOpacity=i.opacity,a.width!==void 0&&(e.strokeWidth=a.width,e.strokeOpacity=a.width===0?0:i.opacity),a.style!==void 0&&a.style!==hs.Null&&(e.strokeDasharray=a4(a.style,e.strokeWidth),e.linecap=s4(a.style,t))}return e}function sk(a,t){let e=a,[i,r,s,n]=a?.color??t??q.color,o=[i,r,s,n];return e==null?e={type:Rt.SLS,color:o}:e.color===void 0&&(e.color=o),rk(e,!1)}function l4(a,t,e){let{color:i,outline:r,style:s}=a,n=Xt(i),o=ax(s),l;return e!==void 0?l=Xt(e).color:o&&(l=Xt(q.backgroundColor).color),{pattern:o4({root:t,fill:n.color,style:s,chartBackgroundFill:l}),fill:n.color,outline:sk(r,i),fillOpacity:n.opacity}}function h4(a){let{color:t,style:e,size:i,outline:r,xoffset:s,yoffset:n,angle:o}=a,l=ik(o),h=Xt(t),c=r,u=e!==YA.Cross&&e!==YA.X&&i!==void 0&&i<q.lineSeries.marker.markerSizeThresholdForTooltipDisplay&&(r?.width===void 0||r.width===0),d=i;return u&&(c={type:Rt.SLS,style:r?.style??hs.Solid,color:[0,0,0,0],width:q.lineSeries.marker.markerSizeThresholdForTooltipDisplay-i},d=i+1),{path:e!==void 0?nx(e,d):"",fill:h.color,outline:sk(c,t),xOffset:s??0,yOffset:n??0,angle:l,fillOpacity:h.opacity}}function u4(a){let t;switch(a){case"line-through":case"underline":t=a;break}return t}function c4(a){return a===!0?"wrap":"none"}function ak(a,t){let e=je;switch(a??t){case"right":e=ge;break;case"left":e=Hr;break}return e}function nk(a,t){let e=je;switch(a??t){case"top":e=Hr;break;case"bottom":e=ge;break}return e}function d4(a){let{angle:t,mappedHAlignment:e,mappedVAlignment:i,isGuideLabel:r}=a,s=e,n=i,o=e,l=i;return(Math.abs(t)===270||Math.abs(t)===90)&&(r||(o=void 0,n=void 0),l===Hr?s=ge:l===ge?s=Hr:l===je&&(s=je)),{align:s,valign:n,horizontalCenter:o,verticalCenter:l}}function Ww(a){let{root:t,symbol:e,defaultToColorFromRamp:i,colorRampIndex:r,isChartFillSymbol:s=!1,chartBackgroundColor:n}=a,o;if(i===!0){let l=s?Qm:hd;if(e.color=e.color??gh({colorIndex:r,opacity:l}),fd(e)||np(e)){let{outline:h}=e;h!==void 0&&(h.color=h?.color??gh({colorIndex:r}),e.outline={...h})}}return Px(e)?o=rk(e,!0):np(e)?(e.style??=q.lineSeries.marker.markerStyle,e.size??=q.lineSeries.marker.markerBigSize,o=h4(e)):fd(e)&&(o=l4(e,t,n)),o}function A4(a){let{root:t,input:e,isGuideLabel:i,defaults:r}=a,s=ik(e.angle,r?.rotation),n=ak(e.horizontalAlignment,r?.horizontalCenter),o=nk(e.verticalAlignment,r?.verticalCenter),{align:l,valign:h,horizontalCenter:c,verticalCenter:u}=d4({angle:s,mappedHAlignment:n,mappedVAlignment:o,isGuideLabel:i}),d=e.rightToLeft??(t?.dom?Um(t.dom)==="rtl":!1);return{fill:Xt(e.color).color,fontFamily:e.font?.family??"Arial, Helvetica, sans-serif",fontSize:e.font?.size??q.generalFontSize,fontWeight:e.font?.weight??"400",textDecoration:u4(e.font?.decoration),align:l,valign:h,verticalCenter:u,horizontalCenter:c,text:xa({textSymbol:e,format:"amChartsV5"}),angle:s,xOffset:e.xoffset??r?.dx??0,yOffset:e.yoffset??r?.dy??0,backgroundFill:Xt(e.backgroundColor).color,borderFill:Xt(e.borderLineColor).color,borderWidth:e.borderLineSize??1,haloColor:Xt(e.haloColor).color,rtl:d?"rtl":"ltr",wrap:c4(r?.wrap),maxWidth:r?.maxWidth??Number.NaN}}function ok(a,t){t!==void 0&&(t.marginBottom!==void 0&&a.set("marginBottom",t.marginBottom),t.marginTop!==void 0&&a.set("marginTop",t.marginTop),t.marginRight!==void 0&&a.set("marginRight",t.marginRight),t.marginLeft!==void 0&&a.set("marginLeft",t.marginLeft),t.verticalCenter!==void 0&&a.set("y",nk(t.verticalCenter)),t.horizontalCenter!==void 0&&a.set("x",ak(t.horizontalCenter)),t.strokeWidth!==void 0&&a.get("background")?.set("strokeWidth",t.strokeWidth),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingLeft!==void 0&&a.set("paddingLeft",t.paddingLeft),t.paddingRight!==void 0&&a.set("paddingRight",t.paddingRight),t.maxWidth!==void 0&&a.set("maxWidth",t.maxWidth))}function vA(a){let{root:t,parent:e,defaults:i,index:r,id:s}=a,n=Kt.new(t,{text:"",textAlign:"center",background:or.new(t,{}),paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0});return s!==void 0&&n.set("id",s),ok(n,i),e!==void 0&&e.children.insertIndex(r??e.children.length,n),n}function hI(a){let{label:t,offset:e,offsetProperty:i}=a;t.adapters.remove(i),(t instanceof Kt?[t]:t.entities).forEach(r=>{if(typeof e=="string"&&!Number.isFinite(Number(e))){let s=ip(e);typeof s=="number"&&(s/=100,r.adapters.add(i,()=>(i==="dx"?r.width():r.height())*(s??0)))}else{let s=Number(e);Number.isFinite(s)&&r.set(i,s)}})}function Cn(a){let{label:t,labelConfig:e,defaults:i,skipSettingText:r,skipSettingXAndY:s}=a,n=t instanceof Kt?t.root:t.entities[0]?.root,o=e?.visible??!0;if(t!==void 0&&!t.isDisposed()&&e!==void 0){let l=t instanceof Kt&&ka(t.uid,"isGuide"),h=A4({root:n,input:e.content,isGuideLabel:l,defaults:i});t.setAll({fill:h.fill,fontFamily:h.fontFamily,fontWeight:h.fontWeight,fontSize:h.fontSize,textDecoration:h.textDecoration,rotation:h.angle,direction:h.rtl,oversizedBehavior:h.wrap,maxWidth:h.maxWidth}),r||t.setAll({text:h.text}),s||(hI({label:t,offset:h.xOffset,offsetProperty:"dx"}),hI({label:t,offset:h.yOffset,offsetProperty:"dy"}),t.setAll({centerX:h.align,centerY:h.valign,x:h.horizontalCenter,y:h.verticalCenter})),t.get("background")?.setAll({strokeWidth:h.borderWidth,strokeOpacity:1}),t.set("visible",o),t instanceof Kt?Li(t,o):t.entities.forEach(c=>{Li(c,o)})}}function gl(a){let{chart:t,label:e,labelType:i}=a,{legendTitle:r}=q.legendProperties,s=fe(t.uid,"config"),n=r.maxWidth??Number.NaN;switch(i){case Wt.GuideLabel:if(t instanceof vi){let o=e.get("rotation");o===90||o===270?n=t.seriesContainer.height():n=t.seriesContainer.width()}break;case Wt.XAxisTitle:t instanceof vi&&(n=t.seriesContainer.width());break;case Wt.YAxisTitle:t instanceof vi&&(n=t.seriesContainer.height());break;case Wt.ChartTitle:case Wt.ChartSubTitle:case Wt.ChartFooter:n=t.chartContainer.width()-20;break;case Wt.LegendTitle:s?.legend?.position!==void 0&&(s?.legend?.position===st.Top||s?.legend?.position===st.Bottom)&&(n=t.chartContainer.width()-20);break}if(n>0)if(i===Wt.YAxisTitle){let o=Number(e.get("fontSize"))||q.generalFontSize,l=o*2.4,h=Math.max(1,Math.floor(n/Math.max(o*.5,1)));e.adapters.remove("text"),e.adapters.add("text",c=>jF({input:c??"",charsPerLine:h})),e.setAll({maxHeight:Math.min(n,l),maxWidth:n,breakWords:!1,oversizedBehavior:"none"})}else e.setAll({maxWidth:n,oversizedBehavior:"wrap"})}function Qc(a){let{chart:t}=a;gl(a),t.events.onDebounced(Ji.BoundsChanged,()=>gl(a),q.debounceTime)}function Tv(a,t){let e=t.get("axisFill"),i=t.get("label");if(e!==void 0&&i!==void 0){let r=ka(i.uid,"guideLabelConfig"),s=a.get("renderer")instanceof as,n=Math.round(e.width()),o=Math.round(e.height()),l=Math.round(i.height()),h=Math.round(i.width()),{horizontalAlignment:c,verticalAlignment:u}=r??{},d=0,A=0;if(s){let p=n!==0;switch(c){case"left":p?d=-h/2:d=-h;break;case"right":p?d=h/2:d=h;break;case"center":case"justify":break;default:p||(d=h/2);break}switch(u){case"bottom":p?A=-l:A=-l/2;break;case"middle":A=-o/2;break;default:A=-o+l/2;break}}else{let p=o!==0;switch(c){case"center":d=n/2;break;case"left":d=h/2;break;default:d=n-h/2;break}switch(u){case"bottom":p?A=o/2:A=l;break;case"top":p?A=-o/2+l/2:A=-l;break;default:p||(A=-l/2);break}}i.setAll({dx:d,dy:A})}}function p4(a){let{axis:t,guide:e,label:i}=a,{chart:r}=t;if(r){let s=t.get("renderer")instanceof as?r.yAxes.getIndex(0):r.xAxes.getIndex(0);s&&(s.events.onDebounced(Ji.BoundsChanged,()=>Tv(t,e),q.debounceTime),t.events.onDebounced(Ji.BoundsChanged,()=>Tv(t,e),q.debounceTime))}i.setAll({paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})}function f4(a){let{guide:t,axis:e,guideLabelConfig:i}=a,r=t.get("label");if(r!==void 0){ok(r),Hw(r.uid,{isGuide:!0,guideLabelConfig:i});let{chart:s}=e;s!==void 0&&Qc({chart:s,label:r,labelType:Wt.GuideLabel}),p4({axis:e,guide:t,label:r})}}function m4(a){let{axis:t,guide:e,guideConfig:i,guideType:r}=a,s=e?.get("label");if(s!==void 0)if(i.label!==void 0){let n=t.get("renderer")instanceof as,o;t instanceof Vs||(n?r===Rt.SFS?o=q.verticalSurfaceGuideLabels:o=q.verticalLineGuideLabels:r===Rt.SFS?o=q.horizontalSurfaceGuideLabels:o=q.horizontalLineGuideLabels),Hw(s.uid,{guideLabelConfig:i.label});let l={type:V.Text,visible:i.visible,content:{...i.label,verticalAlignment:"middle",horizontalAlignment:"center",rightToLeft:s.get("direction")==="rtl"}};Cn({label:s,labelConfig:l,defaults:o}),s.events.once(Ji.BoundsChanged,()=>{Tv(t,e)}),Tv(t,e)}else Li(s,!1)}function g4(a){let t=a.dataItem?.component;t instanceof ei?(t.uid!==void 0?bi(t.uid,"bulletTemplate"):void 0)?.adapters?.remove?.("fill"):t instanceof Ri?t.columns?.template?.adapters?.remove?.("fill"):t instanceof Ur&&t.slices?.template?.adapters?.remove?.("fill")}function lk(a){let{element:t,fill:e,fillOpacity:i,pattern:r,chartBackgroundFill:s}=a,n=t.get("tooltip"),o=!0,l=t;if(r!==void 0){n!==void 0&&(o=!1,n.get("background")?.set("fill",e)),l.set("fillPattern",r);let h=s??e;l.set("fill",h),l.set("fillOpacity",1),g4(l)}else l.set("fill",e),l.remove("fillPattern"),l.set("fillOpacity",i);n!==void 0&&n.set("getFillFromSprite",o)}function Pv(a,t){a.setAll({stroke:t.stroke,strokeDasharray:t.strokeDasharray,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth,lineCap:t.linecap})}function hk(a){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return t!==void 0&&e!==void 0&&(n=Ww({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(t.setAll({svgPath:n.path,rotation:n.angle,dx:n.xOffset,dy:n.yOffset}),lk({element:t,fill:n.fill,fillOpacity:n.fillOpacity}),Pv(t,n.outline)),Li(t,i)),n}function vu(a){let{root:t,element:e,fillSymbol:i,visible:r,defaultToColorFromRamp:s,colorRampIndex:n,isChartFillSymbol:o,keepCurrentVisibility:l,chartBackgroundColor:h}=a,c=ax(i?.style),u=t4(e),d=h??(c?q1(u)??[...q.backgroundColor]:void 0),A;if(e!==void 0&&!e.isDisposed()){if(i!==void 0&&(A=Ww({root:t,symbol:i,defaultToColorFromRamp:s,colorRampIndex:n,isChartFillSymbol:o,chartBackgroundColor:d}),A!==void 0)){let p=d!==void 0?Xt(d).color:void 0;lk({element:e,fill:A.fill,fillOpacity:A.fillOpacity,pattern:A.pattern,chartBackgroundFill:p}),Pv(e,A.outline)}l||Li(e,r)}return A}function Fo(a){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return t!==void 0&&!t.isDisposed()&&(e!==void 0&&(n=Ww({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(Pv(t,n),t instanceof ei&&Pv(t.strokes.template,n))),Li(t,i)),n}function Ja(a){let{root:t,element:e,seriesIndex:i,seriesSymbol:r,isChartFillSymbol:s,colorMatch:n,rendererSymbol:o,keepCurrentVisibility:l}=a,h,c;n&&o!==void 0&&(h=gx({rendererSymbol:o,seriesSymbol:r,colorIndex:i}));let u={root:t,element:e,defaultToColorFromRamp:!0,colorRampIndex:i},d=h??{...r};switch(r.type){case Rt.SLS:c=Fo({...u,lineSymbol:d});break;case Rt.SFS:c=vu({...u,fillSymbol:d,isChartFillSymbol:s,keepCurrentVisibility:l});break;case Rt.SMS:c=hk({...u,markerSymbol:d});break}return{symbolWithColorInfo:d,stylingInfo:c}}function uI(a,t){if(t!==void 0){let{elementColor:e,elementOutlineColor:i,elementOutlineWidth:r,rotation:s,transformation:n}=t,{opacity:o,scale:l}=n??{};e!==void 0&&a.setAll({fill:Xt(e).color,fillOpacity:1}),i!==void 0&&a.setAll({stroke:Xt(i).color,strokeOpacity:1}),r!==void 0&&a.setAll({strokeWidth:r}),s!==void 0&&a.setAll({rotation:s}),l!==void 0&&a.setAll({scale:l}),o!==void 0&&a.setAll({fillOpacity:o,strokeOpacity:o})}}function qn(a){let{root:t,type:e,intlOptions:i,formatLocale:r}=a,s;switch(e){case V.NumberAxisFormat:{s=Zh.new(t,{}),s.set("intlLocales",r),s.set("numberFormat",i);break}case V.DateAxisFormat:{s=Tc.new(t,{}),s.set("intlLocales",r);break}}return s}function y4(a,t,e){let i=t-a,r=[];if(i!==0){if(e===1)r=[a];else if(e>1){let s=i/(e-1);r=[...ZF(a,t,s),t]}}return r}function v4({x:a,mean:t,stddev:e,scalingFactor:i}){let r=-1/(2*e**2);return(i??1)*Math.exp(r*(a-t)**2)}function b4(a){let t=0;if(a.length>0)for(let e=0;e<a.length;e+=1)a[e].count>t&&(t=a[e].count);return t}function uk(a){let t=!1,e;if(a.target.dataItem?.component instanceof Wr?{chart:e}=a.target.dataItem.component:(a.target instanceof Yn||a.target instanceof Al)&&({chart:e}=a.target),e instanceof vi||e instanceof Us){let i=fe(e.uid,"actionMode");if(i!==void 0){let{originalEvent:r}=a;t=i===Ut.MultiSelection||i===Ut.MultiSelectionWithCtrlKey&&("ctrlKey"in r&&r.ctrlKey||"metaKey"in r&&r.metaKey)}}return t}function ra(a){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,backToDefaultState:s}=a,n=!1;if(t!==void 0){let o=yl(t.uid,"selected")??!1;n=o,i!==!0?r===!0?n=o?!1:o!==e:n=e:n=o!==e;let l=s===!0?ia.Default:ia.CustomInactive;t.states.apply(ia.Default),t.states.apply(n?ia.CustomActive:l),n!==o&&(GW(t.uid,{selected:n}),n&&(t.toFront(),t.dataItem?.component instanceof Wr&&t.dataItem.component.toFront()))}return n}function x4(a,t){let e=fe(t.chart?.uid??Number.NaN,"actionMode"),i=uk(a);return e===Ut.MonoSelection||e===Ut.MultiSelectionWithCtrlKey&&!i}function ns(a,t){let{selectedElementsTheme:e,nonSelectedElementsTheme:i}=t??q.selectionTheme??{},r=a.states.create(ia.CustomActive,{}),s=a.states.create(ia.CustomInactive,{});uI(r,e),uI(s,i)}function bA(a){let{value:t,valueFormat:e,formatLocale:i,root:r}=a,s=t?.toString(),n=qn({type:e.type,intlOptions:e.intlOptions,formatLocale:i,root:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?s=n.format(t,$o(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(s=n.format(t,$o(e))),s}async function _4(a){let{root:t,exportOptions:e}=a,{format:i,quality:r=1,...s}=e,n=r<0||r>1?1:r,o=await hu.new(t,{}).exportImage(i,{quality:n,...s}),l=a1(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function mA(a,t){if(a!==void 0&&t!==void 0&&(a.states.lookup("default")?.setAll({fill:t.fill,fillOpacity:t.fillOpacity}),t.outline!==void 0)){let{outline:e}=t;a.states.lookup("default")?.setAll({stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeDasharray:e.strokeDasharray,lineCap:e.linecap,strokeWidth:e.strokeWidth})}}function ck(a){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i,externalDataLabelFormatter:r}=a;return(s,n)=>{let o=i===$i.Stacked100&&n!==void 0?n:s;return t.get("numberFormat").style==="percent"&&(o/=100),xa({textSymbol:{...e,text:t.format(o)},format:r===void 0?"amChartsV5":"html"})}}function C4(a,t){let e=a.dataItem,i;switch(t){case V.LineSeries:case V.ScatterSeries:i=e.get("point");break;case V.HistogramSeries:case V.BarSeries:case V.HeatSeries:i=e.get("graphics");break}let r=i??a,s=i?.x??r?.get("x")??0,n=i?.y??r?.get("y")??0;return{x:s,y:n}}function dk(a){let{label:t,chart:e,seriesType:i}=a,r=n=>{if(e instanceof vi){let o=C4(n,i),l=e.plotContainer,h=l.x(),c=l.y(),u=o.x<h||o.x>h+l.width()||o.y<c||o.y>c+l.height();n.setAll({visible:!u,forceHidden:u})}},s=Is((n,o)=>{o&&r(o)},q.debounceTime);t.on("x",s),t.on("y",s)}function w4(a){let{series:t,label:e,isHeatChart:i}=a;e.adapters.add("y",(r,s)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=s.dataItem;if(h!==void 0&&l!==void 0&&l!==null){let c=h?.get("valueY"),u=s.localBounds().bottom;if(o!==!0){let d=q.dataLabelNegative?.paddingTop??0;if(t.get("stacked")||i)if(c<0)l+=u-d;else{let A=i?q.heatChartLabelPadding.paddingTop:0;l+=u/2+A}}else{let d=q.rotatedChartPadding?.paddingTop??0;l+=u/2+d}}return l}),e.adapters.add("x",(r,s)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=s.dataItem;if(h!==void 0&&l!==void 0&&l!==null&&o===!0){let c=h?.get("valueX"),u=s.width()/2,d=q.rotatedChartPadding?.paddingRight??0,A=u+d;t.get("stacked")||(c<0?l-=A:l+=A)}return l})}function B4(a){let{series:t,externalDataLabelFormatter:e}=a;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config"),r=i?.series?.find(h=>h.id===t.get("id"))?.dataLabels??a.dataLabelsConfig,s=us(i),n=t.get("stacked"),o=fa.new(t.root,{locationY:!n&&!s?1:void 0,locationX:!n&&s?1:void 0,sprite:Kt.new(t.root,{text:s?"{valueX}":"{valueY}",populateText:!0,centerY:ge,centerX:Hr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(r?.content.color).color,fontSize:r?.content.font?.size})}),l=o.get("sprite");if(l){let h=l;F4({dataLabel:h,series:t,externalDataLabelFormatter:e}),pk({...a,dataLabelsConfig:r,dataLabel:h,dataLabelFormatter:ck})}return o})}function Xw(a,t=1){a.bullets.removeIndex(t)}function Ak(a){let{textBackgroundColor:t,chartBackgroundColor:e,fillOpacity:i}=a,r;return JA({r:t.r,g:t.g,b:t.b,a:i})?r=JA({r:e.r,g:e.g,b:e.b,a:i})?Xt(cF).color:e:r=JA({r:e.r,g:e.g,b:e.b,a:i})?e:Xt(uF).color,r}function S4(a){let{dataLabel:t,labelConfigColor:e,seriesColor:i,backgroundColor:r,autoInverseDataLabelTextColor:s,isHeatChart:n}=a,o=r??Xt(q.backgroundColor).color;s===!0&&i&&t.adapters.add("fill",(l,h,c)=>{let u=e??h.text.get("fill"),d=(h.dataItem?.component).get("stacked"),A=u;if(u&&(d||n)){let p=h.dataItem.get("graphics"),f=p?.get("fillOpacity");A=Ak({textBackgroundColor:p?.get("fill")??i,chartBackgroundColor:o,fillOpacity:f})}return A})}function F4(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=n.dataItem,h=bi(e.uid,e instanceof Ri?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(h!==void 0&&e.chart&&l){let c=fe(e.chart.uid,"config"),u=us(c),d=u?l.get("valueX"):l.get("valueY"),A=u?l.get("valueXTotalPercent"):l.get("valueYTotalPercent");o=h(ks(c)===$i.Stacked100?A:d)}return r==="html"?Zr(o):o})}function Xv(a){let{series:t,seriesConfig:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:s,isRotated:n,seriesType:o,defaultDataLabelFormatter:l,externalDataLabelFormatter:h}=a;if(i!==void 0){let{chart:c}=t,u=h,d=s?.content??{type:Rt.TS},A=c?fe(c.uid,"config"):void 0;if(c&&h===void 0&&l!==void 0&&A?.axes?.[1]?.valueFormat?.type===V.NumberAxisFormat){let y=fe(c.uid,"formatLocale"),x=o===V.HeatSeries?{type:V.NumberAxisFormat,intlOptions:{}}:A?.axes?.[1]?.valueFormat,w=ks(A),S=w===$i.Stacked100?{...Xm().intlOptions,...x.intlOptions,style:"percent"}:{...x.intlOptions},T=qn({root:c.root,type:x.type,formatLocale:y,intlOptions:S});u=l({numberFormatter:T,dataLabelsConfigContent:d,stackedType:w,externalDataLabelFormatter:h})}let p;switch(o){case V.BarSeries:p="barSeriesDataLabelFormatter";break;case V.LineSeries:p="lineSeriesDataLabelFormatter";break;case V.HistogramSeries:p="histogramDataLabelFormatter";break;case V.ScatterSeries:p="scatterplotDataLabelFormatter";break;case V.HeatSeries:p="heatChartDataLabelFormatter";break}p!==void 0&&Gr(t.uid,{[p]:u}),s!==void 0&&(o===V.HeatSeries?s.content.text="{value}":s.content.text=n===!0?"{valueX}":"{valueY}",s.visible=s.visible!==!1),Cn({label:i,labelConfig:s,defaults:r??q.dataLabel,skipSettingText:!0});let f=t.get("stacked"),m=f&&o===V.BarSeries&&e?.hideOversizedStackedLabels!==!1,g=!f&&o===V.BarSeries&&e?.hideOversizedSideBySideLabels===!0;g||m?i.setAll({oversizedBehavior:"hide",maxWidth:void 0,maxHeight:g?100:void 0}):i.setAll({oversizedBehavior:"none"})}}function T4(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[1];if(s){s.set("locationY",t.get("stacked")?void 0:1);let n=s.get("sprite");n&&Xv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:ck,externalDataLabelFormatter:i})}})}function pk(a){let{series:t,dataLabelsConfig:e,autoInverseDataLabelTextColor:i,externalDataLabelFormatter:r,labelDefaults:s,seriesType:n,dataLabel:o,isHeatChart:l,dataLabelFormatter:h}=a;o&&(t.chart&&e&&e?.visible!==!1&&dk({label:o,chart:t.chart,seriesType:n}),w4({series:t,label:o,isHeatChart:l}),Xv({...a,dataLabel:o,labelDefaults:s,defaultDataLabelFormatter:h,externalDataLabelFormatter:r}),S4({dataLabel:o,labelConfigColor:Xt(e?.content.color).color,seriesColor:t.get("fill"),backgroundColor:t.chart?.get("background")?.get("fill"),autoInverseDataLabelTextColor:i,isHeatChart:l}))}function fk(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1,r=t.bullets.hasIndex(1);i?(r||B4(a),T4(a)):r&&Xw(t)}function P4(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=n.dataItem,h=bi(e.uid,"heatChartDataLabelFormatter"),c=fe(e.chart?.uid??NaN,"config");if(h!==void 0&&l){let u=l.get("value"),d=l.get("categoryX"),A=l.get("categoryY");u===null?o=c?.series[0].emptyCells?.text??q.heatChart.emptyCells?.text??"":u!==void 0&&(o=h(u,d,A))}return r==="html"?Zr(o):o})}function D4(a){let{numberFormatter:t,dataLabelsConfigContent:e}=a;return i=>xa({textSymbol:{...e,text:t.format(i)},format:"amChartsV5"})}function L4(a){let{series:t,externalDataLabelFormatter:e}=a;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,r=fa.new(t.root,{sprite:Kt.new(t.root,{text:"{value}",populateText:!0,centerY:ge,centerX:Hr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(i?.content.color).color,fontSize:i?.content.font?.size,oversizedBehavior:"hide"})}),s=r.get("sprite");if(s){let n=s;P4({dataLabel:n,series:t,externalDataLabelFormatter:e}),pk({...a,dataLabelsConfig:i,dataLabel:n,isHeatChart:!0,dataLabelFormatter:D4}),n.set("oversizedBehavior","hide"),n.set("maxWidth",void 0),n.set("maxHeight",void 0)}return r})}function I4(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1;t.bullets.hasIndex(0)&&Xw(t,0),i&&L4(a)}var Ts={nameField:"name",fillField:"fill",strokeField:"stroke",fillOpacityField:"fillOpacity",strokeOpacityField:"strokeOpacity"};function mk(a,t){let e=Gf(a);a.columns.template.set("tooltip",e);let i=t!==void 0?"tooltipHTML":"tooltipText";a.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),a.columns.template.adapters.remove(i),a.columns.template.adapters.add(i,(r,s)=>Yf({element:s,series:a,isHTML:t!==void 0}))}function gk(a){let{axesConfig:t,currentSeries:e,tooltipValueFormat:i}=a,{root:r,chart:s}=e;if(s){let n=t?.[1]?.valueFormat,o=t?.[0].valueFormat,l=fe(s.uid,"formatLocale");if(n?.type===V.NumberAxisFormat){let h=qn({root:r,type:n.type,formatLocale:l,intlOptions:n.intlOptions});Gr(e.uid,{tooltipValueYNumberFormatCallback:c=>h.format(c,i?.intlOptions??n.intlOptions)})}if(o?.type===V.NumberAxisFormat){let h=qn({root:r,type:o.type,formatLocale:l,intlOptions:o.intlOptions});Gr(e.uid,{tooltipValueXNumberFormatCallback:c=>h.format(c,i?.intlOptions??o.intlOptions)})}}}function k4(a){let{axes:t,seriesConfig:e,series:i,fieldList:r,utilsStrings:s}=a,{dataTooltipVisible:n}=e,o,l=fe(i.chart?.uid??0,"rtl")??!1,h=Ra(l);return n===!1?o=(c,u,d)=>"":o=(c,u,d)=>{let A=Or(r,e.x),p=yA(A,t?.[0].title?.content?.text),f=yA(s?.statistics.count??"",t?.[1]?.title?.content?.text??""),m=bi(i.uid,"tooltipValueXNumberFormatCallback"),g=bi(i.uid,"tooltipValueYNumberFormatCallback"),y=m?m(u):u,x=m?m(d):d,w=g?g(c):c;return`[bold]${p}${h} [/]${y} - ${x}
|
|
46
|
+
</tr>`,n}exportXLSX(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("xlsx")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getXLSX(t))})}getXLSX(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("xlsx",t),i=yield this.getXLSXLib(),r={bookType:"xlsx",bookSST:!1,type:"base64"},s=this._normalizeExcelSheetName(this.get("title",this._t("Data"))),n={SheetNames:[s],Sheets:{}},o=[],l=this.getData("html",e),h=this.getDataFields(l);if(e.pivot){let c=this.get("dataFieldsOrder",[]);Wl(h,(u,d)=>{let A=[];e.addColumnNames&&A.push(d);for(let p=l.length,f=0;f<p;f++){let m=l[f][u];A.push(this.convertToSpecialFormat(u,m,e,!0))}o.push(this.getXLSXRow(A,e,void 0,!0))},(u,d)=>{let A=c.indexOf(u),p=c.indexOf(d);return A>p?1:A<p?-1:0})}else{e.addColumnNames&&o.push(this.getXLSXRow(h,e,void 0,!0));for(let c=l.length,u=0;u<c;u++)o.push(this.getXLSXRow(l[u],e,h))}return n.Sheets[s]=i.utils.aoa_to_sheet(o),this.events.dispatch("workbookready",{type:"workbookready",format:"xlsx",options:e,workbook:n,workbookOptions:r,xlsx:i,target:this}),i.write(n,r)})}_normalizeExcelSheetName(t){return t=t.replace(/([:\\\/?*\[\]]+)/g," "),t.length>30?t.substr(0,30)+"...":t}getXLSXRow(t,e,i,r=!1){let s=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Wl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e,!0);e.escapeFormulas!==!1&&(c=this.escapeFormulas(c)),s.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),s}_xlsx(){return Xe(this,void 0,void 0,function*(){return yield import("./E4535ZTP.js")})}getXLSXLib(){return this._xlsx()}exportPDF(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!0))})}exportPDFData(t){return Xe(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(t,!1,!0))})}getPDF(t,e=!0,i=!1){return Xe(this,void 0,void 0,function*(){let r=this._getFormatOptions("pdf",t),s=this._getFormatOptions("pdfdata",t),n=r.pageOrientation||"portrait",o,l={width:0,height:0};if(e){let g=r.imageFormat||"png",y=this._getFormatOptions(g,r),x=yield this.getCanvas(y);l.width=x.clientWidth,l.height=x.clientHeight,o=x.toDataURL(this.getContentType(g),r.quality||1),this.disposeCanvas(x)}let h=yield this.getPdfmake(),c=[30,30,30,30],u={pageSize:r.pageSize||"A4",pageOrientation:n,pageMargins:r.pageMargins||c,defaultStyle:{font:r.font?r.font.name:void 0},content:[]},d=this.get("title"),A=0;if(d&&(u.content.push({text:d,fontSize:r.fontSize||14,bold:!0,margin:[0,0,0,15]}),A+=50),r.addURL&&(u.content.push({text:this._t("Saved from")+": "+document.location.href,fontSize:r.fontSize,margin:[0,0,0,15]}),A+=50),e&&o){let g=this.getPageSizeFit(u.pageSize,u.pageMargins,A,n);l.width>g[0]||l.height>g[1]?u.content.push({image:o,alignment:r.align||"left",fit:g}):u.content.push({image:o,alignment:r.align||"left"})}(i||r.includeData)&&this.hasData()&&u.content.push({table:yield this.getPDFData(s),fontSize:r.fontSize||14});let p=null,f=null;function m(g){let y={};y.normal=g.normal.path,f[g.normal.path]=g.normal.bytes,g.bold?(y.bold=g.bold.path,f[g.bold.path]=g.bold.bytes):y.bold=g.normal.path,g.italics?(y.italics=g.italics.path,f[g.italics.path]=g.italics.bytes):y.italics=g.normal.path,g.bolditalics?(y.bolditalics=g.bolditalics.path,f[g.bolditalics.path]=g.bolditalics.bytes):y.bolditalics=g.normal.path,p[g.name]=y}return r.font&&(p={},f={},m(r.font),r.extraFonts&&J(r.extraFonts,m),h.addFonts(p),h.addVirtualFileSystem(f)),this.events.dispatch("pdfdocready",{type:"pdfdocready",format:"pdf",options:r,doc:u,target:this}),yield h.createPdf(u,{}).getBase64()})}getPDFData(t){return Xe(this,void 0,void 0,function*(){let e=this._getFormatOptions("pdfdata",t),i={body:[]},r=this.getData("html",e),s=this.getDataFields(r);if(e.pivot){let n=this.get("dataFieldsOrder",[]);Wl(s,(o,l)=>{let h=[];e.addColumnNames&&h.push(l);for(let c=r.length,u=0;u<c;u++){let d=r[u][o];h.push(this.convertToSpecialFormat(o,d,e,!0))}i.body.push(this.getPDFDataRow(h,e,void 0,!0))},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0})}else{e.addColumnNames&&(i.body.push(this.getPDFDataRow(s,e,void 0,!0)),i.headerRows=1);for(let n=r.length,o=0;o<n;o++)i.body.push(this.getPDFDataRow(r[o],e,s))}return i})}getPDFDataRow(t,e,i,r=!1){let s=[];i||(i=t);let n=this.get("dataFieldsOrder",[]);return Wl(i,(o,l)=>{let h=this.convertEmptyValue(o,t[o],e),c=r?h:this.convertToSpecialFormat(o,h,e);c=""+c,s.push(c)},(o,l)=>{let h=n.indexOf(o),c=n.indexOf(l);return h>c?1:h<c?-1:0}),s}getPdfmake(){return XC===void 0&&(XC=CN()),XC}getPageSizeFit(t,e,i=0,r="portrait"){let s=[0,0,0,0];ie(e)?s=[e,e,e,e]:e.length==2?s=[e[0],e[1],e[0],e[1]]:e.length==4&&(s=e);let o={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]}[t];return r=="landscape"&&o.reverse(),o[0]-=s[0]+s[2],o[1]-=s[1]+s[3]+i,o}hasData(){let t=this.get("dataSource");return!!(Py(t)&&t.length)}getData(t,e,i=!1){let r=this._getFormatOptions(t,e),s=this.get("dataSource",[]),n=s,o=this.get("dataFields");o&&Py(s)&&(n=[],J(s,h=>{if(Nn(h)){let c={};Lt(o,(u,d)=>{o[u]!=null&&(c[i?d:u]=this.convertToSpecialFormat(u,h[u],r))}),n.push(c)}}));let l={type:"dataprocessed",format:t,options:r,data:n,target:this};return this.events.dispatch("dataprocessed",l),l.data}getDataFields(t){let e=this.get("dataFields");return e||(e={},Py(t)&&t.length&&J(t,i=>{Lt(i,(r,s)=>{e[r]==null&&(e[r]=r)})})),e}convertEmptyValue(t,e,i){return e??i.emptyAs}convertToSpecialFormat(t,e,i,r){if(typeof e=="number")if(this.isDateField(t))e=new Date(e);else{if(this.isNumericField(t)&&this.get("numberFormat"))return this._root.numberFormatter.format(e,this.get("numberFormat"));if(this.isDurationField(t))return this._root.durationFormatter.format(e,this.get("durationFormat"),this.get("durationUnit"))}return e instanceof Date&&(i.useTimestamps?e=e.getTime():i.useLocale?r||(e=e.toLocaleString()):e=this._root.dateFormatter.format(e,this.get("dateFormat"))),e}escapeFormulas(t){return typeof t=="string"&&t.length>0&&wN.indexOf(t.charAt(0))!==-1?"'"+t:t}isDateField(t){return this.get("dateFields").indexOf(t)!==-1}isNumericField(t){return this.get("numericFields").indexOf(t)!==-1}isDurationField(t){return this.get("durationFields").indexOf(t)!==-1}getContentType(t){let e="";switch(t){case"png":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;default:e="application/octet-stream"}return e}getDisposableCanvas(){let t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",this._root.dom.appendChild(t),t}disposeCanvas(t){this._root.dom.removeChild(t)}findBackgroundColor(t){let e=1,i=getComputedStyle(t,"background-color").getPropertyValue("background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||i=="transparent")&&(e=0),e==0){let r=t.parentElement;return r?this.findBackgroundColor(r):ot.fromHex(16777215)}else return ot.fromCSS(i)}streamFile(t,e,i=!1){if(this.blobDownloadSupport()){let r=document.createElement("a");r.download=e,document.body.appendChild(r);let s=t.split(";"),n=s.shift().replace(/data:/,"");if(t=decodeURIComponent(s.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(n)==-1)try{t=atob(t)}catch{return!1}else{i&&(t="\uFEFF"+t);let c=new Blob([t],{type:n}),u=window.URL.createObjectURL(c);return r.href=u,r.download=e,r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(u)},100),!0}let o=new Array(t.length);for(let c=0;c<t.length;++c){let u=t.charCodeAt(c);o[c]=u}i&&(o=[239,187,191].concat(o));let l=new Blob([new Uint8Array(o)],{type:n}),h=window.URL.createObjectURL(l);r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),setTimeout(()=>{window.URL.revokeObjectURL(h)},100)}else if(this.linkDownloadSupport()){let r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else window.location.href=t;return!0}downloadSupport(){return this.linkDownloadSupport()}linkDownloadSupport(){return typeof document.createElement("a").download<"u"}blobDownloadSupport(){return window.Blob!=null}initiatePrint(t,e,i){let r=this._getFormatOptions("print",e);r.printMethod=="css"?this._printViaCSS(t,r,i):this._printViaIframe(t,r,i)}_printViaCSS(t,e,i){let s=this._getFormatOptions("print",e).delay||500,n=document.documentElement.scrollTop||document.body.scrollTop,o=new pf(k_(this._root.dom),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"},this._root.nonce),l=new pf(k_(this._root.dom),"body",{padding:"0",margin:"0"},this._root.nonce),h;i&&document&&document.title&&(h=document.title,document.title=i);let c=new Image;c.src=t,c.style.maxWidth="100%",c.style.display="block",c.style.position="relative",c.style.visibility="visible",c.style.opacity="1",c.style.clipPath="none",document.body.appendChild(c),this.setTimeout(()=>{window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&s<1e3?s=1e3:s<100&&(s=100),this.setTimeout(()=>{document.body.removeChild(c),o.dispose(),l.dispose(),h&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},s||500)}_printViaIframe(t,e,i){let s=this._getFormatOptions("print",e).delay||500,n=document.createElement("iframe");n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close();let o=new Image;o.src=t,o.style.maxWidth="100%",o.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout(()=>{try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},s||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&s<1e3?s=1e3:s<100&&(s=100),this.setTimeout(()=>{document.body.removeChild(n)},s+50||100)}supportedFormats(){let t=[],e=this.hasData(),i=this.downloadSupport();return J(["png","jpg","canvas","pdf","xlsx","csv","json","html","pdfdata","print"],r=>{this._getFormatOptions(r).disabled!==!0&&(["xlsx","csv","json","html","pdfdata"].indexOf(r)==-1||e&&i)&&t.push(r)}),t}supportedExportTypes(){let t=["image","print"];return this.downloadSupport()&&this.hasData()&&t.push("data"),t}};hu.className="Exporting";hu.classNames=pi.classNames.concat([hu.className]);var xv=new Map;function Kn(a){a!==void 0&&xv.delete(a)}function Hc(a,t){let e=xv.get(a)??{};xv.set(a,{...e,...t})}function jc(a,t){return xv.get(a)?.[t]}function FN(a,t){return jc(a,t)}function TN(a,t){Hc(a,t)}function PN(a,t){return jc(a,t)}function DN(a,t){Hc(a,t)}function ve(a,t){return jc(a,t)}function ai(a,t){Hc(a,t)}function sa(a,t){return jc(a,t)}function Jn(a,t){Hc(a,t)}function Ns(a,t){return jc(a,t)}function Ds(a,t){Hc(a,t)}function LN(a,t){return jc(a,t)}function IN(a,t){Hc(a,t)}function ms(a,t){return jc(a,t)}function fu(a,t){Hc(a,t)}function Ui(a,t){t===!1&&!a.isHiding?(a.visible=!1,a.hide()):a.isShowing||(a.visible=!0,a.show())}function kN(a,t){for(let e=0;e<t.length;e+=1){let i=t[e][0],r=t[e][1],s=a.length;i>=0&&i<s&&r>=0&&r<s&&a.swap(t[e][0],t[e][1])}}function RI(a,t){let e;if(a!==void 0&&"rgb"in a&&a.rgb!==void 0){let i=a.rgb;if(i!==void 0){let{r,g:s,b:n}=i;e=[r,s,n,255]}}return e}function Nc(a){let t=a??[0,0,0,255];return new xt({a:t[3]/255,b:t[2],g:t[1],r:t[0]})}function zr(a){return a.bullets.values.find(t=>LN(t.uid,"isBulletMarker"))}function wn(a){return a!=null&&!a.isDisposed()}function Ef(a){return(a.isShowing||a.visible)&&!a.isHidden&&!a.isHiding&&!a.disabled&&!a.__disabled}function UI(a,t){return a.pixelX<0||a.pixelX>t?.plotContainer?.measuredWidth||a.pixelY<0||a.pixelY>t?.plotContainer?.measuredHeight}function $N(a){let t;return a.baseSprite instanceof Vt||a.baseSprite instanceof qi?t=a.baseSprite:(a instanceof Eh||a instanceof Kd)&&(t=a.axis.chart),t}function ON(a){return RI(a.background.fill)}var re={...pt};function EN(a){let{fill:t,rotation:e,isLinePattern:i,chartBackgroundColor:r}=a,s;return i!==!1?(s=new vc,s.width=re.patternLineProperties.width??Number.NaN,s.height=re.patternLineProperties.height??Number.NaN,s.strokeWidth=re.patternLineProperties.strokeWidth??Number.NaN,s.stroke=t,s.rotation=e??Number.NaN):(s=new bc,s.rectWidth=re.patternRectProperties.rectWidth??Number.NaN,s.rectHeight=re.patternRectProperties.rectHeight??Number.NaN,s.width=re.patternRectProperties.width??Number.NaN,s.height=re.patternRectProperties.height??Number.NaN,s.fillOpacity=re.patternRectProperties.fillOpacity??Number.NaN,s.strokeWidth=re.patternRectProperties.strokeWidth??Number.NaN,s.fill=Nc(r),s.stroke=t,s.rotation=e??Number.NaN),s}function HL(a){let t=Number.NaN;if(typeof a=="number")t=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(t=he(e))}return t}function MN(a){let{fill:t,style:e,chartBackgroundColor:i}=a,r,s,n=!0;switch(e){case vs.Horizontal:{s=0;break}case vs.Vertical:{s=90;break}case vs.ForwardDiagonal:{s=45;break}case vs.BackwardDiagonal:{s=135;break}case vs.Cross:{s=0,n=!1;break}case vs.DiagonalCross:{s=135,n=!1;break}case vs.Solid:}return s!==void 0&&(r=EN({fill:t,rotation:s,isLinePattern:n,chartBackgroundColor:i})),r}function bn(a,t){let e;t!==void 0&&(e=Nc(t));let i=e??new xt({r:0,g:0,b:0,a:0});if(a!=null){let[r,s,n,o]=a;i=new xt({r,g:s,b:n,a:o/255})}return i}function VI(a,t=0){return(a??t)%360}function RN(a,t){return t!==!0||a?.includes("Dot")===!0?"round":"square"}function NI(a,t){let e="none";switch(a??t){case"justify":case"center":e="center";break;case"left":e="left";break;case"right":e="right";break}return e}function bw(a,t){let e="middle";switch(a??t){case"right":e="left";break;case"left":e="right";break}return e}function UN(a,t){let e="none";switch(a??t){case"baseline":case"middle":e="middle";break;case"top":e="top";break;case"bottom":e="bottom";break}return e}function QI(a,t){let e="middle";switch(a??t){case"top":e="bottom";break;case"bottom":e="top";break;default:e="middle";break}return e}function VN(a,t){let e=a??hs.Solid,i=t??re.lineWidth,r={[hs.Solid]:"none",[hs.Dot]:[1,i],[hs.DashDotDot]:[4*i,i,1,i,1,i],[hs.Dash]:[4*i,3*i],[hs.DashDot]:[4*i,3*i,1,3*i],[hs.Null]:"none"};return(r[e]??r[hs.Null]).toString()}function HI(a,t){let e={stroke:bn(),strokeWidth:re.lineWidth,strokeDasharray:"",strokeLinecap:t!==!0?"round":"square",strokeOpacity:hd};return a!=null&&(e.stroke=bn(a.color),e.strokeOpacity=1,a.width!==void 0&&(e.strokeWidth=a.width),a.style!==void 0&&a.style!==hs.Null&&(e.strokeDasharray=VN(a.style,e.strokeWidth),e.strokeLinecap=RN(a.style,t))),e}function jI(a,t){let e=a,[i,r,s,n]=a?.color??t??re.color,o=[i,r,s,n];return e==null?e={type:Rt.SLS,color:o}:e.color===void 0&&(e.color=o),HI(e,!1)}function NN(a,t){let{color:e,outline:i,style:r}=a,s=bn(e);return{pattern:MN({fill:s,style:r,chartBackgroundColor:t}),fill:s,outline:jI(i,e)}}function QN(a){let{color:t,outline:e,xoffset:i,yoffset:r,style:s,size:n,angle:o}=a,l=s!==void 0?nx(s,n):"",h=VI(o);return{path:l,fill:bn(t),outline:jI(e,t),xOffset:i??0,yOffset:r??0,angle:h}}function xw(a){let{symbol:t,defaultToColorFromRamp:e,colorRampIndex:i,isChartFillSymbol:r=!1,chartBackgroundColor:s}=a,n;if(e===!0){let o=r?Qm:hd;if(t.color=t.color??gh({colorIndex:i,opacity:o}),fd(t)||np(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??gh({colorIndex:i}),t.outline={...l})}}return Px(t)?n=HI(t,!0):np(t)?(t.style??=re.lineSeries.marker.markerStyle,t.size??=re.lineSeries.marker.markerBigSize,n=QN(t)):fd(t)&&(n=NN(t,s)),n}function _v(a,t,e){let i=bw(a.horizontalAlignment,e?.horizontalCenter),r=NI(a.horizontalAlignment,e?.align),s=QI(a.verticalAlignment,e?.verticalCenter),n=UN(a.verticalAlignment,e?.valign);return{fill:bn(a.color,re.color),fontFamily:a.font?.family??"Arial, Helvetica, sans-serif",fontSize:a.font?.size??re.generalFontSize,fontWeight:a.font?.weight??"400",textDecoration:a.font?.decoration??"none",align:r,valign:n,verticalCenter:s,horizontalCenter:i,text:xa({textSymbol:a,format:"amChartsV4"}),angle:VI(a.angle,e?.rotation),xOffset:a.xoffset??e?.dx??0,yOffset:a.yoffset??e?.dy??0,backgroundFill:bn(a.backgroundColor),borderFill:bn(a.borderLineColor),borderWidth:a.borderLineSize??1,haloSize:a.haloSize??-1,haloColor:bn(a.haloColor),rtl:a.rightToLeft??t,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function WI(a,t,e){e!==void 0&&a.tooltip!==void 0&&(a.tooltip.getFillFromObject=!1,a.tooltip.background.fill=t),a.fill=e??t,a.fillOpacity=Ne(a.fill.toString()).alpha===0?0:1}function fA(a,t){a.stroke=t.stroke,a.strokeOpacity=t.stroke.alpha===0?0:1,a.strokeDasharray=t.strokeDasharray,a.strokeLinecap=t.strokeLinecap,a.strokeWidth=t.strokeWidth}function Cv(a){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(t.path=n.path,t.rotation=n.angle,t.dx=n.xOffset,t.dy=n.yOffset,WI(t,n.fill),fA(t,n.outline)),Ui(t,i),t.disabled=i===!1):t.disabled=!0,n}function Vc(a){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&fA(t,n),Ui(t,i)):Ui(t,!1),n}function Mf(a){let{element:t,fillSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n}=a,o,l;if(e!==void 0){if(e.style===vs.Cross||e.style===vs.DiagonalCross){let h=$N(t);h!==void 0&&(l=ON(h))}o=xw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n,chartBackgroundColor:l}),o!==void 0&&(WI(t,o.fill,o.pattern),fA(t,o.outline)),t.disabled=i===!1}else t.disabled=!0;return o}function du(a){let{element:t,seriesIndex:e,colorMatch:i,seriesSymbol:r,isChartFillSymbol:s,rendererSymbol:n,seriesConfig:o}=a,l,h;i===!0&&n&&(l=gx({rendererSymbol:n,seriesSymbol:r,colorIndex:e}));let c={element:t,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},u=l??{...r};switch(r.type){case Rt.SLS:h=Vc({...c,lineSymbol:u});break;case Rt.SFS:h=Mf({...c,fillSymbol:u,isChartFillSymbol:s});break;case Rt.SMS:h=Cv({...c,markerSymbol:u});break}return{symbolWithColorInfo:u,stylingInfo:h}}function jL(a,t){if(t!==void 0){let e=a.properties,{elementColor:i,elementOutlineColor:r,elementOutlineWidth:s,rotation:n,transformation:o}=t,{opacity:l,scale:h}=o??{};i!==void 0&&(e.fill=Nc(i),e.fillOpacity=Ne(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=Nc(r)),s!==void 0&&(e.strokeWidth=s),n!==void 0&&(e.rotation=n),h!==void 0&&(e.scale=h),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}function HN(a,t,e){let i=new Set(Array.from(t)),r=a.findIndex(s=>!i.has(JC(s)));return r!==-1?r:e}function JC(a){return`${a[0]},${a[1]},${a[2]}`}function jN(a){let{chartConfig:t,queryObject:e,popupTemplateFieldInfosEnabled:i,labelUpdateNeeded:r,utilsStrings:s}=a,{series:n}=t,o=n[0],{x:l}=o,h=!wF({chartConfig:t}),c=kt([o]),u=c===ke.PieFromFields,d=$s(e),A=xh(d).idField,p=_a(e,i);return{x:l,isNonAggregatedChart:h,objectIdField:A,isPieFromFields:u,seriesConfig:o,fieldList:p,labelUpdateNeeded:r,chartSubType:c,colorMatch:Fl(t),utilsStrings:s}}function WN(a){let{dataContext:t,seriesConfig:e,existingSlicesColors:i,isGroupOfSlices:r,sliceFromConfig:s,dataIndex:n,colorMatch:o,chartSubType:l}=a,h=r?{...pt.pieChart.sliceGrouping.fillSymbol,...e.sliceGrouping?.fillSymbol}:_r(s?.fillSymbol??e.fillSymbol),c=on({dataItem:t,seriesConfig:e,chartSubType:l,colorMatch:o}),u=n;h?.color||(u=HN(hF,i,n));let d={dataItem:{dataContext:t}},{symbolWithColorInfo:A}=du({element:d,seriesConfig:e,y:e.y,seriesSymbol:h??Gm(),seriesIndex:u,rendererSymbol:c,colorMatch:o,isChartFillSymbol:!0});return A}function WL(a,t){let{x:e,isNonAggregatedChart:i,objectIdField:r,isPieFromFields:s,seriesConfig:n,fieldList:o,labelUpdateNeeded:l,colorMatch:h,chartSubType:c,utilsStrings:u}=a,d=[],A,p,f=new Set;return t?.forEach((m,g)=>{let y=YN({dataContext:m,x:e,isNonAggregatedChart:i,dataIndex:g,objectIdField:r,isPieFromFields:s});m[pt.pieChart.technicalFieldSliceId]=y;let x=ew(n.slices,y);x?.fillSymbol?.color!==void 0&&f.add(JC(x.fillSymbol.color))}),t?.forEach((m,g)=>{let y=m[pt.pieChart.technicalFieldSliceId],x=ew(n.slices,y),w=ih(m),S=WN({dataContext:m,seriesConfig:n,existingSlicesColors:f,isGroupOfSlices:w,sliceFromConfig:x,dataIndex:g,colorMatch:h,chartSubType:c});S.color&&f.add(JC(S.color));let T=KN({dataContext:m,sliceFromConfig:x,isGroupOfSlices:w,seriesConfig:n,fieldList:o,isPieFromFields:s,labelUpdateNeeded:l,colorMatch:h,utilsStrings:u}),F={sliceId:y,label:T,fillSymbol:S};F.originalLabel=x?.originalLabel??(m?.[pt.originalCategoryValue]!==void 0?m?.[pt.originalCategoryValue]:F.label),w?(p=m[pt.pieChart.technicalFieldGroupedSlices],n.sliceGrouping!==void 0&&(A={sliceId:n.sliceGrouping.sliceId,percentageThreshold:n.sliceGrouping.percentageThreshold,label:T,originalLabel:n.sliceGrouping.originalLabel??T,fillSymbol:S})):d.push(F)}),{slices:d,groupOfSlicesSymbols:A,groupOfSlices:p}}function XI(a){let{creation:t,dataInfo:e,pieChartDataActuallyChanged:i,chartConfig:r,previousConfig:s,queryObject:n,popupTemplateFieldInfosEnabled:o,utilsStrings:l}=a,h;if(r.series[0].type===V.PieSeries){let c=Ln(e.data),u=cx({oldConfig:s,newConfig:r}),d=ux(s,r),A=eg(s,r),p=jN({chartConfig:r,queryObject:n,popupTemplateFieldInfosEnabled:o,labelUpdateNeeded:t||i||u||A||d,utilsStrings:l}),{slices:f,groupOfSlicesSymbols:m,groupOfSlices:g}=WL(p,c),{slices:y}=WL(p,g??[]);h={slices:f,groupedSlices:y,groupOfSlices:m}}return h}async function XN(a){let{creation:t,dataInfo:e,dataInfo:{data:i},pieChartDataActuallyChanged:r,chartConfig:s,previousConfig:n,pieSlicesSymbols:o,queryObject:l,options:h,utilsStrings:c}=a,{slices:u}=o??{},{chartWillRender:d}=h??{},A=ze(s.series),p=!1,f=s,m=_r(o),g,y;if(d&&(A===V.PieSeries||A===V.GaugeSeries)){p=!0,f=_r(s);let x=Ag({data:i,seriesConfig:s.series});f=await d({chartConfig:f,data:x,slices:u}),!bs(l)&&A===V.PieSeries&&i&&"dataItems"in i&&({colorMatchApplied:g,rendererFieldNames:y}=await Bx({data:i.dataItems,queryObject:l,chartConfig:f,allowColorMatch:mx({chartConfig:f,queryObject:l})}),m=XI({creation:t,dataInfo:e,chartConfig:f,previousConfig:n,queryObject:l,pieChartDataActuallyChanged:r,popupTemplateFieldInfosEnabled:h?.popupTemplateFieldInfosEnabled,utilsStrings:c}))}return{changesApplied:p,alteredConfig:f,alteredPieSlicesSymbols:m,colorMatchApplied:g,rendererFieldNames:y}}function ih(a){return a?.[an.defaultGroupOfSlicesId]===!0}function zN(a){let{dataContext:t,dataIndex:e,objectIdField:i}=a;return`${an.sliceIdPrefix}-${t[i??""]?.toString()??e}`}function GN(a){let{chartConfig:t,chartData:e,fieldList:i}=a,r=kt(t.series)===ke.PieFromFields;if(t.orderOptions?.data!==void 0||r){ug({arrayToSort:e,chartConfig:t,fieldList:i});let{slices:s}=t.series[0];s!==void 0&&s.sort((n,o)=>{let l=e.findIndex(c=>c[pt.pieChart.technicalFieldSliceId]===n.sliceId),h=e.findIndex(c=>c[pt.pieChart.technicalFieldSliceId]===o.sliceId);return l-h})}}function ew(a,t){let e;return a!==void 0&&t!==void 0&&(e=a.find(i=>i.sliceId===t)),e}function YN(a){let{dataContext:t,isNonAggregatedChart:e,x:i,dataIndex:r,objectIdField:s,isPieFromFields:n}=a,o="";return n===!0?o=t[pt.originalCategoryValue]??t[ao]:e?o=zN({dataContext:t,dataIndex:r,objectIdField:s}):(o=t[pt.originalCategoryValue],o===void 0||o===""?o=an.emptySliceId:o===null&&(o=an.nullSliceId),o=o??t[i]),o===void 0&&(o=an.undefinedSliceId),o.toString()}function KN(a){let{dataContext:t,sliceFromConfig:e,isGroupOfSlices:i,seriesConfig:r,fieldList:s,isPieFromFields:n,labelUpdateNeeded:o,colorMatch:l,utilsStrings:h}=a,{sliceGrouping:c}=r,{x:u}=r;n&&(u=ao);let d=t[u]??t[pt.originalCategoryValue],A=t[pt.originalCategoryValue]??d,p=d;return o&&(i?p=c?.label??c?.originalLabel?.toString()??h.pieChart.defaultSliceGroupingLabel:l&&t[pt.rendererSymbolField]?.label!==void 0?p=t[pt.rendererSymbolField].label:e!==void 0||s!==void 0?(e?.label&&e.label!==e?.sliceId&&(p=e?.label),p===A&&A!==void 0&&A!==null&&(p=Or(s,A))):e===void 0&&(p=A),p===pt.nullValue?p="null":p!=null&&(p=p.toString())),p}function _w(a,t){return a?.[0]?.sliceGrouping?.percentageThreshold!==t?.[0]?.sliceGrouping?.percentageThreshold}function Qf(a){let{groupOfSlicesDataContext:t,chartData:e}=a;return(t??e?.find(i=>i[an.defaultGroupOfSlicesId]===!0))?.[pt.pieChart.technicalFieldGroupedSlices]}function Cw(a){let{dataContext:t,pieSlicesSymbols:e,seriesConfig:i}=a,r=i.fillSymbol?{...i.fillSymbol}:Gm();if(ih(t))r={...pt.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let s=t[pt.pieChart.technicalFieldSliceId],n=e?.slices?.find(o=>o.sliceId===s);r=_r(n?.fillSymbol??i.fillSymbol??Gm())}return r}function ZN(a){let{data:t,seriesConfig:e,utilsStrings:i}=a,r=e[0],s=t?.reduce((d,A)=>{let p=A[Ru]??A[r.y];return Number.isFinite(p)||(p=0),p+d},0),n=r?.sliceGrouping?.percentageThreshold??0,o=[],l,h=0,c=t?.find(d=>d[an.defaultGroupOfSlicesId]===!0)?.[pt.pieChart.technicalFieldGroupedSlices]??[],u=[...t,...c].filter(d=>{let A=!0,p=d[Ru]??d[r.y];if(Number.isFinite(p)){let f=p/s*100;d[pt.pieChart.technicalFieldSlicePercent]=f,f<=n&&d[an.defaultGroupOfSlicesId]!==!0&&(h+=p,o.push(d),A=!1)}else d[an.defaultGroupOfSlicesId]!==!0&&(o.push(d),A=n===0||n===void 0);return d[an.defaultGroupOfSlicesId]===!0&&(l=d,A=!1),A});if(n>0&&o.length>0){let d=h/s*100,A=kt(e)===ke.PieFromFields,p={...l,[an.defaultGroupOfSlicesId]:!0,[A?ao:r.x]:r.sliceGrouping?.label??i?.pieChart.defaultSliceGroupingLabel,[A?Ru:r.y]:h,[pt.pieChart.technicalFieldSlicePercent]:d,[pt.pieChart.technicalFieldGroupedSlices]:o};u.push(p)}return u}function XL(a){let{creation:t,previousConfig:e,newConfig:i,dataInfo:r,dataUpdateNeeded:s,utilsStrings:n}=a,o=!1;if(r.data&&"dataItems"in r.data&&(t||e&&pg(e.series))&&i&&pg(i.series)){let l=t||e&&pg(e.series)&&_w(e.series,i.series);(s||l)&&(r.data.dataItems=ZN({data:r.data.dataItems,seriesConfig:i.series,utilsStrings:n}),ug({arrayToSort:r.data.dataItems,chartConfig:i}),o=!0)}return o}function qN(a,t){let e=a.reduce((i,r)=>{if(r[an.defaultGroupOfSlicesId]===!0){let s=r[pt.pieChart.technicalFieldGroupedSlices];s!==void 0&&s.forEach(n=>{i.push(n)})}else i.push(r);return i},[]);return ug({arrayToSort:e,chartConfig:t}),e=Ag({data:{dataItems:e},seriesConfig:t.series})?.dataItems??[],e}function zI(a,t){let e=a?.filter(i=>!ih(i));return!rn(e,t)}function JN(a){let{dataContext:t,newLabel:e,x:i}=a;e===void 0?t[pt.originalCategoryValue]!==void 0&&(t[i]=t[pt.originalCategoryValue]):t[i]!==e&&(t[pt.originalCategoryValue]===void 0&&(t[pt.originalCategoryValue]=t[i]),t[i]=e)}function eQ(a){let{data:t,newChartConfig:e,pieSlicesSymbols:i,fieldList:r}=a,s=e.series[0],n=kt(e.series)===ke.PieFromFields?ao:s.x;t.forEach(o=>{let l=ih(o),h=o[pt.pieChart.technicalFieldSliceId],c=l?s.sliceGrouping?.label:ew(i?.slices,h)?.label;JN({dataContext:o,x:n,newLabel:c})}),GN({chartConfig:e,chartData:t,fieldList:r})}var Hi={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},ji={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"};function fl(a){let{type:t,iLocale:e,formatLocale:i=Ad(document.documentElement)}=a,r;switch(t){case V.NumberAxisFormat:{r=new Rl,r.language.locale=e,r.intlLocales=i;break}case V.DateAxisFormat:{r=new un,r.language!==void 0&&(r.language.locale=e),r.intlLocales=i;break}}return r}function tw(a){let{axis:t,valueFormat:e,chartType:i}=a,r=Zm({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof Ct,n=ba(e)&&t instanceof Qe&&!(t instanceof Ct),o=r&&t instanceof Ot;return!s&&!n&&!o}function GI(a,t){let e=typeof t=="number"?`${t}`:t,i=Ns(a.uid,"numberFormatter");return i!==void 0&&(e=i(t)),zi(e)&&(e=re.htmlEmptyContent),Zr(e)}function tQ(a){a.renderer.labels.template.html=re.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>GI(a,e?.dataItem?.value??t),0)}function YI(a){let{axis:t,defaultOutput:e,dataItem:i}=a,r=e,s=Ns(t.uid,"categoryFormatter"),n=Ns(t.uid,"numberFormatter");if((n!==void 0||s!==void 0)&&i instanceof Jo&&i.dataContext){let o=ve(t.chart.uid,"config"),l=kt(o?.series),h=ve(t.chart.uid,"rendererFieldNames"),c=no({value:qA(l,o?.series?.[0]),dataContext:i.dataContext,useRendererLabel:Qu(o,h),config:o});if(typeof c=="number"&&n!==void 0)r=n(c);else if(s!==void 0){if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(l)&&typeof c=="string"){let d=ve(t.chart.uid,"fieldList");c=Or(d,c)}let u=oo(i.dataContext);u===void 0&&(u=c),r=s(c,u)}}return zi(r)&&(r=re.htmlEmptyContent),Zr(r)}function iQ(a){a.renderer.labels.template.html=re.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>YI({axis:a,defaultOutput:t,dataItem:e?.dataItem}),0)}function rQ(a){let{axis:t,defaultOutput:e,dataItem:i}=a,r=e,s=Ns(t.uid,"dateFormatter");return s!==void 0&&i instanceof Uh&&(r=s(i.value??e)),zi(r)&&(r=re.htmlEmptyContent),Zr(r)}function sQ(a){a.renderer.labels.template.adapter.add("htmlOutput",(t,e)=>rQ({axis:a,dataItem:e?.dataItem,defaultOutput:t}),0),a.renderer.labels.template.adapter.disableKey("htmlOutput")}function aQ(a){a.renderer.labels.template.adapter.add("htmlOutput",t=>{let e=t,i=Ns(a.uid,"fontStyleCallback");return i!==void 0&&(e=i(e)),Zr(e)},1)}function nQ(a){a instanceof Qe&&!(a instanceof Ct)?tQ(a):a instanceof Ot?iQ(a):a instanceof Ct&&sQ(a),aQ(a)}function oQ(a){let{axis:t,formatOptions:e,dateAxisFormatter:i,isTimeOnlyField:r,setTimeZone:s,outTimeZone:n}=a;if(Ds(t.uid,{dateFormatter:i}),i===void 0){t.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(t.renderer.labels.template.adapter.disableKey("htmlOutput"),t.renderer.labels.each(u=>{u.element instanceof kp&&u.element.removeChildren()}));let o={...$o(e)},l;if(r){let u={hour:"numeric",minute:"numeric"};l={year:u,month:u,day:u,hour:u,minute:u,second:{...u,second:"2-digit"}}}let h=["year","month","day","hour","minute","second"],c=o.timeZone??n;s&&t.timezone!==c&&(t.setPropertyValue("timezone",c),t.chart.validateData()),delete o.timeZone;for(let u=0;u<h.length;u+=1){let d=h[u],A=u===0?d:h[u-1],p=e?.formatPerDateTimeUnit?.[d]??l?.[d]??o,f=e?.formatPerDateTimeUnit?.[A];Iu(p)||(t.dateFormats.setKey(d,p),t.periodChangeDateFormats.setKey(d,f??p))}t.dateFormats.getKey("day")||t.dateFormats.setKey("day",re.dayDefaultFormat),t.periodChangeDateFormats.getKey("day")||t.periodChangeDateFormats.setKey("day",re.dayDefaultFormat),t.dateFormats.getKey("week")||t.dateFormats.setKey("week",t.dateFormats.getKey("day")??re.weekDefaultFormat),t.periodChangeDateFormats.getKey("week")||t.periodChangeDateFormats.setKey("week",t.periodChangeDateFormats.getKey("day")??re.weekDefaultFormat),t.invalidateLabels()}else t.renderer.labels.template.html=re.htmlEmptyContent,t.renderer.labels.template.adapter.enableKey("htmlOutput")}function lQ(a,t,e,i){let r=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:e});return r.numberFormat=a,s=>{let n=0;return s instanceof Date?s.toLocaleString(void 0,a):(n=typeof s!="string"?s??0:wx(s,r.intlLocales),i===!0&&a.style==="percent"&&(n/=100),r.format(n))}}function zL(a){let{axis:t,formatOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,s=$o(e),n=ve(t.chart.uid,"formatLocale");Ds(t.uid,{numberFormatter:r??lQ(s,t.chart.language.locale,n,i)})}function hQ(a){let{axis:t,formatOptions:e,categoryAxisFormatter:i}=a,r=i!==void 0?i:tg(e.characterLimit);Ds(t.uid,{categoryFormatter:r})}function uQ(a){let{axis:t,labelsTextSymbol:e,axisValueFormatter:i}=a,r=ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(Ds(t.uid,{axisLabelsBehavior:r}),i!==void 0)Ds(t.uid,{fontStyleCallback:void 0});else if(Ns(t.uid,"fontStyleCallback")===void 0){let s=n=>{let o=Ns(t.uid,"axisLabelsBehavior");return xa({textSymbol:e,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:t.renderer.labels.template.maxWidth}})};Ds(t.uid,{fontStyleCallback:s})}}function cQ(a){let{axis:t,isXAxis:e,formatOptions:i,labelsTextSymbol:r,overridePercentMultiplication:s,chartType:n,axisValueFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c,errorStrings:u}=a,d=Zm({isXAxis:e,chartType:n,valueFormat:i}),A=!1;!(t instanceof Ct)&&ba(i)?zL({axis:t,formatOptions:i,overridePercentMultiplication:s,valueAxisFormatter:o}):t instanceof Ct&&ro(i)?oQ({axis:t,formatOptions:i,dateAxisFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c}):t instanceof Ot?ud(i)||d?(hQ({axis:t,formatOptions:i,categoryAxisFormatter:o}),Ds(t.uid,{numberFormatter:void 0})):ba(i)?(zL({axis:t,formatOptions:i,overridePercentMultiplication:s,valueAxisFormatter:o}),Ds(t.uid,{categoryFormatter:void 0})):A=!0:A=!0,A&&Km("mismatchAxisAndValueFormat",u),uQ({axis:t,labelsTextSymbol:r,axisValueFormatter:o}),t.invalidateLabels()}function dQ(a){let t=a;return a>=1?t=10**(a.toFixed(0).length-1):a<1&&a>0&&(t=10**-Math.abs(Math.floor(Math.log10(a)))),t}function KI(a){let{minimumFromConfig:t,maximumFromConfig:e,isLogarithmic:i}=a,r=i===!0&&t!==null&&t!==void 0&&t<=0,s=!Number.isFinite(t)||!Number.isFinite(e);return r||s}var Wt={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},Ie={Ready:"ready",Hidden:"hidden",Shown:"shown",Hit:"hit",DoubleHit:"doublehit",Up:"up",SelectEnded:"selectended",Over:"over",Out:"out",SizeChanged:"sizechanged",VisibilityChanged:"visibilitychanged",PositionChanged:"positionchanged",Validated:"validated",DataItemsValidated:"dataitemsvalidated",Inited:"inited",ChildAdded:"childadded",DataRangeChanged:"datarangechanged",LayoutValidated:"layoutvalidated"};function ZI(a){let{actionMode:t,cursorRange:e,isRotated:i}=a,r=Hi.None;switch(e){case Ym.MultiAxes:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=Hi.SelectXY:t===Ut.Zoom&&(r=Hi.ZoomXY);break;case Ym.XAxis:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=i===!0?Hi.SelectY:Hi.SelectX:t===Ut.Zoom&&(r=i===!0?Hi.ZoomY:Hi.ZoomX);break;case Ym.YAxis:t===Ut.MultiSelectionWithCtrlKey||t===Ut.MultiSelection?r=i===!0?Hi.SelectX:Hi.SelectY:t===Ut.Zoom&&(r=i===!0?Hi.ZoomX:Hi.ZoomY);break}return r}function AQ(a,t){let e=re.cursorCrosshair.style,i={type:Rt.SLS,style:t.style??e.style,color:t.color??e.color,width:t.width??e.width};Vc({element:a.cursor.lineX,lineSymbol:i}),Vc({element:a.cursor.lineY,lineSymbol:i})}function qI(a){if(!(a instanceof Ys)&&!(a instanceof qi)){a.cursor=new yc;let t="userAgentData"in navigator&&navigator.userAgentData&&typeof navigator.userAgentData=="object"&&"mobile"in navigator.userAgentData&&navigator.userAgentData.mobile===!0||/Mobi|Android/iu.test(navigator.userAgent);a.cursor.hideSeriesTooltipsOnSelection=!t}}function JI(a,t){if(!(a instanceof Ys)&&!(a instanceof qi)){let e=a,i=e.cursor??new yc;t?.style!==void 0&&AQ(e,t.style);let r=re.cursorCrosshair;i.lineX.disabled=r.verticalLineVisible?t?.verticalLineVisible===!1:t?.verticalLineVisible!==!0,i.lineY.disabled=r.horizontalLineVisible?t?.horizontalLineVisible===!1:t?.horizontalLineVisible!==!0,e.cursor=i}}function pQ(a){return!(a instanceof Ys)&&a.cursor===void 0&&qI(a),a.cursor}function iw(a,t){let e=a.renderer.labels.template;e.events.hasListenersByType(Ie.Hit)&&(e.cursorOverStyle=t),a.renderer.labels.each(i=>{i.cursorOverStyle=t})}function fQ(a){let{chart:t,chartType:e,showMean:i,enabled:r}=a,s=r?si.pointer:si.default;switch(e){case V.ComboLineAndBarSeries:case V.BarSeries:case V.PieSeries:t.series.each(n=>{(n instanceof Xi||n instanceof ws)&&(n.cursorOverStyle=s)});break;case V.BoxPlotSeries:t.series.each(n=>{let o=s;if(n instanceof Ti){let l=zr(n);l!==void 0&&(i&&sa(n.uid,"isBoxPlotOutliersSeries")&&(o=si.default),l.cursorOverStyle=o,l.clones.each(h=>{h.cursorOverStyle=o}))}else n.cursorOverStyle=i?si.default:s});break;case V.LineSeries:t.series.each(n=>{if(n instanceof Ti){let o=zr(n);o!==void 0&&(o.cursorOverStyle=s,o.clones.each(l=>{l.cursorOverStyle=s}))}});break}}function mQ(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=ve(t.uid,"isRotated"),s=ve(t.uid,"config"),n=oa(s),o=ze(s?.series),l=o===V.LineSeries&&ba(s?.axes?.[0]?.valueFormat),h=o===V.LineSeries&&ud(s?.axes?.[0]?.valueFormat),c=o===V.LineSeries&&ro(s?.axes?.[0]?.valueFormat),u,d=!1,A=e??ve(t.uid,"actionMode")??re.actionMode;if(ve(t.uid,"filterBySelection")===!0)u=Hi.None,d=!1;else if(i!==void 0)u=ZI({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:l||c?u=Hi.ZoomXY:u=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?u=r===!0?Hi.SelectY:Hi.SelectX:u=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:u=Hi.None,d=!0;break;case Ut.None:u=Hi.None,d=!1;break}t instanceof Vt&&t.cursor!==void 0&&u!==void 0&&(t.cursor.behavior=u),fQ({chart:t,chartType:o,enabled:d,showMean:n})}function e1(a){let t="";return a instanceof Qr?t=a.dataFields?.categoryX??a.dataFields?.dateX??a.dataFields?.valueX??"":a instanceof ws&&(t=a.dataFields?.category??""),t}function t1(a){let t="";return a instanceof Qr?t=a.dataFields?.categoryY??a.dataFields?.dateY??a.dataFields?.valueY??"":a instanceof ws&&(t=a.dataFields?.value??""),t}function i1(a){return ve(a.chart.uid,"isRotated")===!0?t1(a):e1(a)}function xu(a){return ve(a.chart.uid,"isRotated")===!0?e1(a):t1(a)}function Iv(a,t=0){let e=ve(a.chart.uid,"config");return ze(e?.series,t)}function*gQ(a){let{filterList:t,queryObject:e,queryConfig:i,errorStrings:r}=a;for(let s=0;s<t.length;s+=1){let n={...i};n.where=og([n.where,t[s]]),yield qF({queryObject:e,queryConfig:n,uniqueFeature:!0,errorStrings:r})}}async function r1(a){let{whereList:t,queryObject:e,queryFilter:i,queryConfig:r,errorStrings:s}=a,n=[];if(t.length>0){let o=gF().maxElementsPerSelectionQuery,l=[],h=Math.ceil(t.length/o);for(let u=0;u<h;u+=1){let d=u*o,A=(u+1)*o,p=t.slice(d===0?0:d-1,A),f=og(p,"OR");f=og([i,f]),l.push(f)}let c=gQ({filterList:l,queryObject:e,queryConfig:r,errorStrings:s});n=(await Promise.all(c)).flat(),n=Array.from(new Set(n))}return n}var cu={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function yQ(a,t){let e=a[pt.boxPlot.boxPlotOutlierId]===!0?cu.Outlier:cu.Box,i=typeof t=="number"?cu.Outlier:cu.Box;return`${e}-${i}`}function vQ(a){let{oneSelectedItem:t,dataContext:e,selectedOutlierKey:i}=a;return t[i]===e[i]}function bQ(a){let{elementMin:t,elementMax:e,selectedOutlierValue:i}=a,r;return typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(r=i>=t&&i<=e),r}function xQ(a){let{selectedMin:t,selectedMax:e,elementOutlierValue:i,oneSelectedItem:r,iqrField:s}=a,n;typeof t=="number"&&typeof e=="number"&&typeof i=="number"&&(n=i>=t&&i<=e);let o=s in r;return n!==!1&&o}function _Q(a){let{selectedMin:t,selectedMax:e,elementMin:i,oneSelectedItem:r,elementMax:s,iqrField:n}=a,o;typeof i=="number"&&typeof s=="number"&&typeof t=="number"&&typeof e=="number"&&(o=!(i>=e||s<=t));let l=n in r;return o!==!1&&l}function CQ(a){let{oneSelectedItem:t,dataContext:e,xAxisField:i}=a,r=e[pt.originalCategoryValue]??e[pt.boxPlot.boxPlotCategory]??e[i],s=t[pt.originalCategoryValue]??t[pt.boxPlot.boxPlotCategory]??t[i];return r===s}function wQ(a){let{chartSubType:t,yAxisField:e,splitBy:i,showOutliers:r}=a,s=t===ke.BoxPlotMultiFieldsAndCategory?e:void 0,n={y:s,splitBy:i},o=Zi({...n,key:Yt.Outlier}),l=Zi({...n,key:Yt.Max,showOutliers:r}),h=Zi({...n,key:Yt.Min,showOutliers:r}),c=Zi({...n,key:Yt.Max,showOutliers:!1}),u=Zi({...n,key:Yt.Min,showOutliers:!1}),d=Zi({...n,key:Yt.Max,showOutliers:!0}),A=Zi({...n,key:Yt.Min,showOutliers:!0}),p=Zi({splitBy:i,y:s,key:Yt.IQR});return{selectedOutlierKey:o,maxField:l,minField:h,selectedMaxFieldWoOutliers:c,selectedMinFieldWoOutliers:u,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:A,iqrField:p}}function BQ(a){let{elementDataContext:t,layerOidField:e,xAxisField:i,splitBy:r,yAxisField:s,chartSubType:n,showOutliers:o}=a,l=t,h;if(l?.[pt.boxPlot.boxPlotMeanLineMarkerId]===!0){let c=Zi({splitBy:r,key:Yt.Average});h=u=>{let d=!i||!(i in u&&i in l)||u[i]===l[i],A=c in u&&c in l;return d&&A}}else i!==void 0&&s!==void 0&&(h=c=>{let u;if(e!==void 0&&e in c&&e in l)u=c[e]===l[e];else{let{selectedOutlierKey:d,maxField:A,minField:p,selectedMaxFieldWoOutliers:f,selectedMinFieldWoOutliers:m,selectedMaxFieldWithOutliers:g,selectedMinFieldWithOutliers:y,iqrField:x}=wQ({chartSubType:n,yAxisField:s,splitBy:r,showOutliers:o}),w=l[d],S=c[d],T=l[p],F=l[A],L=c[m]??c[y],$=c[f]??c[g],I=CQ({oneSelectedItem:c,dataContext:l,xAxisField:i});if(I)switch(yQ(c,w)){case cu.OutlierToOutlier:I=vQ({oneSelectedItem:c,dataContext:l,selectedOutlierKey:d});break;case cu.OutlierToBox:I=bQ({elementMin:T,elementMax:F,selectedOutlierValue:S});break;case cu.BoxToOutlier:I=xQ({selectedMin:L,selectedMax:$,elementOutlierValue:w,oneSelectedItem:c,iqrField:x});break;case cu.BoxToBox:I=_Q({selectedMin:L,selectedMax:$,elementMin:T,oneSelectedItem:c,elementMax:F,iqrField:x});break}u=I===!0}return u});return h}function ww(a){let{layerOidField:t,sliceDataContext:e,selectionDataContext:i,xAxisField:r}=a,s=!1;if(t!==void 0&&t in e&&t in i)s=i[t]?.toString()===e[t]?.toString();else{let n=e[pt.originalCategoryValue];n===void 0&&(n=e[r]),n===void 0&&(n=e[ao]);let o=i[pt.originalCategoryValue];o===void 0&&(o=i[r]),o===void 0&&(o=i[ao]),s=n!==void 0&&o!==void 0&&n===o}return s}function fv(a){let{dataContext:t,specificField:e,xOrY:i}=a,r=t[i==="x"?pt.originalCategoryValue:pt.originalYCategoryValue];return r===void 0&&e&&(r=t[e]),r===void 0&&(r=t[i==="x"?xr.xField:xr.yField]),r}function kv(a){let{options:t,elementDataContext:e,selectionDataItems:i,layerOidField:r,xAxisField:s,yAxisField:n,chartType:o,splitBy:l,chartSubType:h}=a,c=!1,u;if(e!==void 0&&i!==void 0)switch(o){case V.HeatSeries:let d=e,A=fv({dataContext:d,specificField:s,xOrY:"x"}),p=fv({dataContext:d,specificField:n,xOrY:"y"});u=f=>{let m=fv({dataContext:f,specificField:s,xOrY:"x"}),g=fv({dataContext:f,specificField:n,xOrY:"y"});return A===m&&p===g};break;case V.RadarSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:if(s!==void 0&&n!==void 0){let f=e;u=m=>{let g,y=r;if(h===ke.BarAndLineSplitByNoAggregation){let x=vh({where:l,keepSurroundingQuotes:!1,escape:!1});y=`${r}_${x}`}if(r!==void 0&&r in m&&r in f)g=m[r]===f[r];else if(y!==void 0&&y in m&&y in f)g=m[y]===f[y];else if(pt.dateBinningRange in f&&typeof m[s]=="number"){let x=m[s],w=m[pt.dateBinningRange],S=Array.isArray(w)&&Number.isFinite(w[0])&&Number.isFinite(w[1]),[T,F]=S?w:[0,0],[L,$]=f[pt.dateBinningRange],I=f[pt.lastTemporalBin]===!0?x<=$:x<$;g=(S?T<$&&L<F:x>=L&&I)&&n in m&&Number.isFinite(m[n])}else{let x=S=>{let T=S[pt.originalCategoryValue];return T===void 0&&(T=S[s]),T=T===null?pt.nullValue:T,T},w=x(f);g=x(m)===w&&n in m}return g}}break;case V.BoxPlotSeries:u=BQ(a);break;case V.ScatterSeries:if(s!==void 0&&n!==void 0){let f=e;if(!CF({dataContext:f,chartLimits:t?.chartLimits}))u=m=>{let g;return r!==void 0&&r in f&&r in m?g=m[r]===f[r]:g=m[s]===f[s]&&m[n]===f[n],g};else{let{dataContextXMinField:m,dataContextXMaxField:g,dataContextYMinField:y,dataContextYMaxField:x}=pt.scatterplotAggregationFields,{[m]:w,[g]:S}=f,T=s!==n?f[y]:w,F=s!==n?f[x]:S,L=I=>{let U=I[s]??Number.NaN,P=w??Number.NaN,Q=S??Number.NaN;return w===S?U===P:(U??Number.NaN)>=P&&(U??Number.NaN)<Q},$=I=>{let U=I[n]??Number.NaN,P=T??Number.NaN,Q=F??Number.NaN;return T===F?U===P:U>=P&&U<Q};u=I=>L(I)&&$(I)}}break;case V.HistogramSeries:u=f=>{let m=!1,{minValue:g,maxValue:y}=e,{isLastBin:x}=e;if(s!==void 0&&s in f){let w=f[s];m=typeof w=="number"&&w>=g&&(x&&w<=y||!x&&w<y)}else if("minValue"in f&&"maxValue"in f){let{minValue:w,maxValue:S}=f;m=!(g>=S||y<=w)}return m};break;case V.PieSeries:s!==void 0&&(u=f=>{let m=e,g=ih(m),y=[m];return g&&y.push(...Qf({groupOfSlicesDataContext:m})??[]),y.some(x=>ww({sliceDataContext:x,selectionDataContext:f,layerOidField:r,xAxisField:s}))});break}return u!==void 0&&(c=i.some(u)),c}function th(a){let{isFeatureCollectionLayer:t,dataContext:e,yAxisField:i,yList:r,xAxisField:s,splitBy:n,chartType:o,chartSubType:l,showOutliers:h}=a,c={...e};if(e!==void 0){if(o===V.RadarSeries||o===V.BarSeries||o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.PieSeries){o!==V.PieSeries&&(t||l!==ke.BarAndLineNoAggregation&&l!==ke.BarAndLineSplitByNoAggregation)&&r.forEach(d=>{d!==i&&delete c[d]});let u=no({value:e[s],dataContext:e,keepNullValues:!0});c[s]=u,!zi(n)&&!_F(n)&&(c[Dn(n)]=vh({where:n,escape:!1}))}else if(o===V.BoxPlotSeries){c={[s]:e[s]},[Ou.uniqueIdsName,pt.boxPlot.boxPlotMeanLineMarkerId,pt.boxPlot.boxPlotOutlierId,pt.originalCategoryValue,pt.originalYCategoryValue].forEach(d=>{e[d]&&(c[d]=e[d])});let u=l===ke.BoxPlotMultiFieldsAndCategory?i:void 0;Object.values(Yt).forEach(d=>{let A=Zi({key:d,y:u,splitBy:n,showOutliers:h});e[A]!==void 0&&(c[A]=e[A])})}}return c}function s1(a){let{data:t,colorMatch:e,chartSubType:i,rendererType:r}=a;return t!==void 0&&e&&r!==void 0&&(i===ke.BoxPlotMultiFields&&(r===Nm.UniqueValue||r===Nm.PieChart)||i===ke.BoxPlotMonoFieldAndCategory&&r===Nm.UniqueValue)&&t.some(s=>Object.keys(s).some(n=>n.includes(pt.rendererSymbolField)))}function SQ(a){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(a)}function a1(a,t=512){if(!SQ(a))throw new Error("Cannot convert a string that is not a data uri to a blob");let e=a.split(",")[0].split(":")[1].split(";")[0],i=atob(a.split(",")[1]),r=[];for(let s=0;s<i.length;s+=t){let n=i.slice(s,s+t),o=new Array(n.length);for(let h=0;h<n.length;h++)o[h]=n.charCodeAt(h);let l=new Uint8Array(o);r.push(l)}return new Blob(r,{type:e})}function Rf(a){let{value:t,valueFormat:e,iLocale:i,formatLocale:r}=a,s=t?.toString(),n=fl({type:e.type,iLocale:i,formatLocale:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?s=n.format(t,$o(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(s=n.format(t,$o(e))),s}function xn(a){let{chart:t,config:e}=a,i=e;return e===void 0&&t!==void 0&&(i=ve(t.uid,"config")),us(i)}function FQ(a){a instanceof Vl&&a.series.each(t=>{Kn(t.uid),t instanceof Ti&&Kn(zr(t)?.uid),t.bullets.each(e=>{Kn(e.uid)}),t instanceof Xi&&t.columns.template.children.each(e=>{Kn(e.uid)})}),a instanceof Vt&&[a.xAxes.getIndex(0),a.xAxes.getIndex(1),a.yAxes.getIndex(0),a.yAxes.getIndex(1)].forEach(t=>{t!==void 0&&(Kn(t.uid??""),t.axisRanges.each(e=>{Kn(e.label?.uid)}))}),a instanceof Ys&&a.radarContainer.children.each(t=>{Kn(t.uid)}),a instanceof qi&&a.series.getIndex(0)?.slices.each(t=>{Kn(t.uid)}),"cursor"in a&&a.cursor instanceof sA&&Kn(a.cursor?.uid),"legend"in a&&a.legend!==void 0&&(Kn(a.legend.uid),Kn(a.legend.valueLabels?.template?.uid)),Kn(a.uid)}function mv(a){return typeof a=="number"?a:a.value}async function TQ(a){let{chart:t,exportOptions:e}=a,{format:i,quality:r=1,...s}=e,n=r<0||r>1?1:r,o=await t.exporting.getImage(i,{quality:n,...s}),l=a1(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function $v(a,t){t!==void 0&&(t.marginBottom!==void 0&&(a.marginBottom=t.marginBottom),t.marginTop!==void 0&&(a.marginTop=t.marginTop),t.marginRight!==void 0&&(a.marginRight=t.marginRight),t.marginLeft!==void 0&&(a.marginLeft=t.marginLeft),t.verticalCenter!==void 0&&(a.verticalCenter=QI(t.verticalCenter)),t.horizontalCenter!==void 0&&(a.horizontalCenter=bw(t.horizontalCenter)),t.strokeWidth!==void 0&&(a.strokeWidth=t.strokeWidth),t.wrap!==void 0&&(a.wrap=t.wrap),t.truncate!==void 0&&(a.truncate=t.truncate),t.maxWidth!==void 0&&(a.maxWidth=t.maxWidth),t.applyOnClones!==void 0&&(a.applyOnClones=t.applyOnClones,a.background.applyOnClones=t.applyOnClones))}function ml(a,t){let e=t?.createChild(Mi)??new Mi;return $v(e,a),e}function PQ(a){let t=a.push(new zd);t.dx=1,t.dy=1,t.opacity=1}function DQ(a,t,e){if(e.alpha>0&&t>=0){a.length===0&&PQ(a);let i=a.getIndex(0);i.blur=t,i.color=e}else a.clear()}function LQ(a,t){let e=ms(a.uid,"isGuide"),i=t.visible===!1;return!i&&(e===!0||!(a instanceof Ko))&&t.content.text===""&&(i=!0),i}function GL(a){let{label:t,offset:e,offsetProperty:i}=a,r=99;if(t.adapter.remove(i,r),typeof e=="string"&&!Number.isFinite(Number(e))){let s=ip(e);s!==void 0&&(s/=100,t.adapter.add(i,()=>(t.parent?.[i==="dx"?"measuredWidth":"measuredHeight"]??0)*s,r))}else t[i]=e}function _n(a){let{label:t,labelConfig:e,defaults:i,skipSettingText:r}=a;if(e!==void 0){let s=_v(e.content,t.rtl,i);t.fill=s.fill,t.fontFamily=s.fontFamily,t.fontWeight=s.fontWeight,t.fontSize=s.fontSize,t.textDecoration=s.textDecoration,t.align=s.align,t.valign=s.valign,t.verticalCenter=s.verticalCenter,t.horizontalCenter=s.horizontalCenter,t.background.fill=s.backgroundFill,t.background.stroke=s.borderFill,t.background.strokeWidth=s.borderWidth,t.rotation=s.angle,GL({label:t,offset:s.xOffset,offsetProperty:"dx"}),GL({label:t,offset:s.yOffset,offsetProperty:"dy"}),t.rtl=s.rtl,t.wrap=s.wrap,t instanceof Ko||(t.maxWidth=s.maxWidth),r||(t.text=s.text),DQ(t.filters,s.haloSize,s.haloColor);let n=LQ(t,e);t.disabled=n,Ui(t,e.visible!==!1&&!n)}else t.disabled=!0}function n1(a,t){t!==void 0&&(a===V.BarSeries||a===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=i.dataItem,{chart:s}=r?.component??{};return s instanceof Vt&&(i.visible=!UI(i,s)),e??0})}function o1(a,t){t!==void 0&&(a===V.BarSeries&&t.adapter.add("dx",(e,i)=>{let r=e??0,s=i.dataItem,{chart:n}=s?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)===!0&&(s.valueX??s.valueY)<0&&(r-=i.measuredWidth+re.dataLabelNegative.paddingRight),r}),(a===V.BarSeries||a===V.LineSeries)&&t.adapter.add("dy",(e,i)=>{let r=e??0,s=i.dataItem,{chart:n}=s?.component??{};return(n!==void 0?ve(n.uid,"isRotated"):!1)!==!0&&(s.valueX??s.valueY)<0&&(r+=i.measuredHeight+re.dataLabelNegative.paddingTop),r}))}function rw(a){a.bulletsContainer.invalidateLabels(),a instanceof Xi&&a.columns?.template.invalidateLabels()}function IQ(a){let{dataValue:t,series:e,seriesType:i,stackedType:r,axisMin:s}=a,n=t===void 0;return t!==void 0&&(s!==void 0&&t<s?n=!0:e instanceof Xi&&(i===V.BarSeries||i===V.ComboLineAndBarSeries)&&(n=t===0&&r!==void 0&&r!==$i.Side)),n}function sw(a,t){let e,i=r=>ms(r.uid,"isDataLabel")??!1;return t==="bullets"?e=a.bullets.values.find(i):a instanceof Xi&&(e=a.columns.template.children.values.find(i)),e}function aw(a,t){a.adapter.add("htmlOutput",(e,i)=>{let r=e,{dataItem:s}=i;if(Ef(a)&&(t instanceof Xi&&s instanceof Bs||t instanceof Ti&&s instanceof Wa)){let n=sa(t.uid,t instanceof Xi?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=ve(t.chart.uid,"isRotated"),l=ve(t.chart.uid,"config"),h=ks(l),c=o===!0?s.valueX:s.valueY,u=o===!0?s.values?.valueX?.totalPercent:s.values?.valueY?.totalPercent,d=o===!0?(s.component?.xAxis).min:(s.component?.yAxis).min;r=IQ({dataValue:c,series:t,seriesType:t instanceof Xi?V.BarSeries:V.LineSeries,stackedType:h,axisMin:d})?"":n(c,u)}}return Zr(r)},0)}function l1(a){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i}=a;return(r,s)=>{let n=i===$i.Stacked100&&s!==void 0?s:r;return t.numberFormat.style==="percent"&&(n/=100),xa({textSymbol:{...e,text:t.format(n)},format:"html"})}}function h1(a){a.tabindex=-1}function u1(a){let{series:t,seriesType:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:s,yAxisValueFormat:n,stackedType:o,isRotated:l,defaultDataLabelFormatter:h,customDataLabelFormatter:c}=a;if(i!==void 0){let u=c,d=s?.content??{type:Rt.TS};if(c===void 0&&h!==void 0&&n?.type===V.NumberAxisFormat){let p=ve(t.chart.uid,"formatLocale"),f=fl({type:n.type,iLocale:t.chart.language.locale,formatLocale:p});f.numberFormat=n.intlOptions,u=h({numberFormatter:f,dataLabelsConfigContent:d,stackedType:o})}let A;switch(e){case V.BarSeries:A="barSeriesDataLabelFormatter";break;case V.LineSeries:A="lineSeriesDataLabelFormatter";break}A!==void 0&&Jn(t.uid,{[A]:u}),s!==void 0&&(s.content.text=l===!0?"{valueX}":"{valueY}",s.visible=s.visible!==!1),_n({label:i,labelConfig:s,defaults:r??re.dataLabel}),rw(t)}}function Ov(a,t){let e=t;e===void 0&&(e=ve(a.uid,"config"));let i=ve(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function c1(a,t){let e;return a instanceof Ct?e=t===!0?"dateY":"dateX":a instanceof Ot?e=t===!0?"categoryY":"categoryX":e=t===!0?"valueY":"valueX",e}function _A(a,t){a.name=t}function Bw(a){let{chart:t,lineSeries:e,applyPropertiesToClones:i}=a,r=e.bullets.push(new Ee);return IN(r.uid,{isBulletMarker:!0}),i!==!1&&(r.applyOnClones=!0),e.bulletsContainer.parent=t.seriesContainer,r}function Sw(a){let{series:t,seriesConfig:e,rotationChanged:i,stackedType:r,isRotated:s}=a;switch(r){case $i.Stacked:{t.stacked=!0,t instanceof Ti&&(t.stackToNegative=e.stackNegativeValuesToBaseline??re.lineSeries.stackNegativeValuesToBaseline),i===s?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0,t.updateStacking();break}case $i.Stacked100:{t.stacked=!0,s?t.dataFields.valueXShow="totalPercent":t.dataFields.valueYShow="totalPercent",t.updateStacking();break}case $i.Side:default:{t.stacked=!1,i===s?t.dataFields.valueYShow=void 0:t.dataFields.valueXShow=void 0;break}}}function kQ(a){return()=>{let{chart:t,marker:e}=a;e.clones.each(i=>{Ui(i,!UI(i,t))})}}function $Q(a){let{chart:t,series:e,seriesType:i,marker:r,numberOfChartSeries:s,ignoreSmoothRenderingLimit:n}=a,o=kQ({marker:r,chart:t}),l=s??1,h=t.data.length*l+l;n!==!0&&h>re.elementLimitForSmoothRendering&&(o=Is(o,re.debounceTime)),t.xAxes.getIndex(0)?.events.on(Ie.Validated,o),t.yAxes.getIndex(0)?.events.on(Ie.Validated,o),i===V.LineSeries&&(t.xAxes.getIndex(0)?.events.on(Ie.Validated,()=>{rw(e)}),t.yAxes.getIndex(0)?.events.on(Ie.Validated,()=>{rw(e)}))}function d1(a,t){a.series.each(e=>{let i=sa(e.uid,t);i!==void 0&&!i.isDisposed()&&i.dispose()})}function OQ(a){let t;return a!==void 0&&a.series.length>0&&(t=a.series.values.map(e=>e.visible?e.id:"").filter(e=>e!=="")),t}function zC(a){let{dataItem:t,y:e,splitBy:i,showOutliers:r}=a,s=Zi({key:Yt.Min,y:e,splitBy:i,showOutliers:r}),n=Zi({key:Yt.Max,y:e,splitBy:i,showOutliers:r}),o=Zi({key:Yt.FirstQuartile,y:e,splitBy:i,showOutliers:r}),l=Zi({key:Yt.ThirdQuartile,y:e,splitBy:i,showOutliers:r});return Number.isFinite(t[s])&&Number.isFinite(t[n])&&Number.isFinite(t[o])&&Number.isFinite(t[l])}function EQ(a,t){let e=0;if(a!==void 0&&t!==void 0){let i=Mo(t.series),r=kt(t.series),s=Eo(t);a.data.forEach(n=>{switch(r){case ke.BoxPlotMonoField:case ke.BoxPlotMultiFields:case ke.BoxPlotMonoFieldAndCategory:zC({dataItem:n,showOutliers:s})&&(e+=1);break;case ke.BoxPlotMultiFieldsAndCategory:i.forEach(o=>{zC({dataItem:n,y:o,showOutliers:s})&&(e+=1)});break;case ke.BoxPlotMonoFieldAndSplitBy:case ke.BoxPlotMultiFieldsAndSplitBy:case ke.BoxPlotMonoFieldAndCategoryAndSplitBy:t.series.forEach(o=>{zC({dataItem:n,splitBy:o.query?.where,showOutliers:s})&&(e+=1)});break}})}return e}function YL(){return a=>{let t=ve(a.chart.uid,"config"),e=!1;if(t!==void 0&&a instanceof Qr){let i=EQ(a.chart,t),r=0,s=0,n=0,o=0,l=0;a.chart.series.values.forEach(u=>{if(u instanceof wr)r+=u.columns.length;else if(u instanceof Ti&&!(u instanceof Aa)){let d=zr(u);if(d!==void 0&&!d.disabled){let A=d.clones.values.filter(p=>!(p.dataItem instanceof Go))?.length??0;if(sa(u.uid,"isBoxPlotMeanLineSeries")===!0){o+=A;let p=u.data.filter(f=>Number.isFinite(f[u.dataFields.valueX??u.dataFields.valueY??""])).length;l+=p}else{let p=u.data.filter(f=>Number.isFinite(f[u.dataFields.valueX??u.dataFields.valueY??""])).length;n+=p,s+=A}}}});let h=n===0||s>=n,c=l===0||o>=l;e=r>=i&&h&&c&&a.chart.appeared&&a.isReady()&&a.chart.isReady()}return e}}function MQ(a,t){let e;switch(a){case V.BarSeries:e=(i,r)=>{let s=!1;if(i instanceof Xi){let n=xn({chart:i.chart}),o=0;if(r.type===V.BarSeries){let l=(n?i.dataFields.valueX:i.dataFields.valueY)??r.y;o=i.chart?.data?.filter(h=>Number.isFinite(h[l])).length}s=i.chart.isReady()&&i.columns.length===o}return s};break;case V.LineSeries:t===!0?e=YL():e=(i,r)=>{let s=!1;if(i instanceof Ti){let n=xn({chart:i.chart}),o=zr(i),l=0;if(r.type===V.LineSeries){let{y:h}=r,c=(n?i.dataFields.valueX:i.dataFields.valueY)??[h].flat()[0];l=i.chart?.data?.filter(u=>Number.isFinite(u[c])).length}s=i.chart.appeared&&i.chart.isReady()&&o!==void 0&&o.clones.values.length>=l}return s};break;case V.PieSeries:e=i=>i instanceof ws&&i.slices.length>0;break;case V.BoxPlotSeries:e=YL();break}return e}function A1(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,{type:r}=e,s=ze([i]),n=sa(t.uid,"isBoxPlotMeanLineSeries"),o=r==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",l=u=>{let{type:d}=u;d==="selection"?m2(u.callbackProps):u.styleCallback!==void 0&&(Ui(t,i.visible),u.styleCallback())};t.chart.events.once(Ie.Ready,()=>l(e)),t.events.once(Ie.Ready,()=>l(e)),sa(t.uid,o)?.dispose();let h=MQ(s,n),c=(s===V.PieSeries?t.chart:t).events.on(Ie.Validated,()=>{h!==void 0&&h(t,i)&&(c!==void 0&&c.dispose(),l(e))});t.dispatchImmediately(Ie.Validated),Jn(t.uid,{[o]:c})}function Ev(a){let{series:t,styleCallback:e,seriesConfig:i}=a;A1({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function RQ(a){let{series:t,callbackProps:e,seriesConfig:i}=a;A1({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function Wc(a){let{defaultChartItemRole:t}=re.aria;a instanceof wr||a instanceof Xi?(a.columns.template.properties.role=t,a.columns.template.focusable=!0,a.columns.template.hoverOnFocus=!0,a.itemReaderText=sp()):a instanceof Aa?a.segments.template.properties.role=t:a instanceof Ti?a.bullets.values.forEach(e=>{e.focusable=!0,e.properties.role=t,e.readerTitle=sp(),e.hoverOnFocus=!0}):a instanceof ws&&(a.slices.template.properties.role=t,a.slices.template.hoverOnFocus=!0,a.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function UQ(a){let t=ve(a.uid,"config");a.series.each(e=>{let i=t?.series?.find(r=>r.id===e.id);i!==void 0&&i.visible!==!1&&!e.visible&&Ui(e)})}function Uf(a,t){let e=ze(t?.series);return t?.series.find(i=>{let r=!1;return e!==V.BoxPlotSeries||a instanceof wr?r=a.id===i.id:a instanceof Aa?r=a.id.replace(`_${ji.Top}`,"")===i.id||a.id.replace(`_${ji.Median}`,"")===i.id||a.id.replace(`_${ji.Bottom}`,"")===i.id:a instanceof Ti&&(r=a.id.replace(`_${ji.Outliers}`,"")===i.id),r})}var ia={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function VQ(a,t){let e=!1;if(t!==void 0&&Ef(a)){let i=Pt.spriteRectToSvg(a.bbox,a),r=t.x,s=t.y,n=t.x+t.width,o=t.y+t.height,l=i.x,h=i.y,c=i.x+i.width,u=i.y+i.height;e=!(l>n||c<r||h>o||u<s)}return e}function Xc(a){let{element:t,customSelectionTheme:e,useNativeState:i}=a,r=i===!0?ia.Active:ia.CustomActive,s=t.states.getKey(r)??t.states.create(r),n=t.states.getKey(ia.CustomInactive)??t.states.create(ia.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:l}=e??re.selectionTheme??{};jL(s,o),jL(n,l)}function Zn(a){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,useNativeState:s,backToDefaultState:n}=a;if(t!==void 0){let o=t.isActive;i!==!0?r===!0?o=t.isActive?!1:t.isActive!==e:o=e:o=t.isActive!==e,o!==t.isActive&&(t.isActive=o);let l=s===!0?ia.Active:ia.CustomActive,h=n===!0?ia.Default:ia.CustomInactive;t.setState(t.isActive?l:h,0),t.isActive&&(t.toFront(),t.dataItem?.component instanceof go&&t.dataItem.component.toFront())}return t?.isActive??!1}function Mv(a,t){let e=!1;if(t instanceof Vt||t instanceof qi){let i=ve(t.uid,"actionMode");i!==void 0&&(e=i===Ut.MultiSelection||i===Ut.MultiSelectionWithCtrlKey&&(a?.event?.ctrlKey||a?.event?.metaKey))}return e}function p1(a){let t=a instanceof Vt&&a.zoomOutButton.isHover,e=a.legend.isHover,i=!1,r=!1,s=!1,n=!1;if(a instanceof Vt){i=a.xAxes.values.some(l=>l.renderer.labels.template.events.has(Ie.Hit)&&l.renderer.isHover),r=a.yAxes.values.some(l=>l.renderer.labels.template.events.has(Ie.Hit)&&l.renderer.isHover),s=i||r;let o=ve(a.uid,"config");oa(o)&&(n=a.series.values.find(l=>l instanceof wr)?.isHover??!1)}return!t&&!e&&!s&&!n}function Fw(a,t){return a.values.filter(e=>{let i=!1,r=!e.isActive;if(!(e.dataItem instanceof Go)){e.isActive=!e.isActive;let s=ve(t.uid,"filterBySelection")!==!0&&r;Zn({element:e,selected:s}),i=r}return i})}function KL(a,t){let e=[],{columns:i,chart:r}=a,s=ve(r.uid,"config");if(s&&i!==void 0&&a.visible){let n=s?.series[0].x,o=a?.dataFields?.customValue??"",l=Iv(a,t),h=Uf(a,s),c=l===V.BoxPlotSeries?h?.y:xu(a),u={element:{},yAxisField:c,xAxisField:n,splitBy:o,seriesIndex:t,chartConfig:s};e=Fw(i,r).map(d=>({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return e}function ZL(a,t){let e=[];if(a.visible){let i=zr(a)?.clones;if(i!==void 0){let{chart:r}=a,s=ve(r.uid,"config");if(s){let n=s.series[0].x??"",o=xu(a),l=a?.dataFields?.customValue??"",h={element:{},xAxisField:n,yAxisField:o,splitBy:l,seriesIndex:t,chartConfig:s};e=Fw(i,r).map(c=>({...h,element:c,elementDataContext:c.dataItem?.dataContext,elementIndex:c.dataItem?.index}))}}}return e}function NQ(a){let t=[];if(a.visible){let{chart:e}=a,i=ve(e.uid,"config");if(i){let r=i1(a),s=xu(a),n={element:{},xAxisField:r,yAxisField:s,seriesIndex:0,chartConfig:i},o;t=Fw(a.slices,e).map(l=>{let h=l.dataItem?.dataContext??{};return ih(h)&&(o=Qf({groupOfSlicesDataContext:h})),{...n,element:l,elementIndex:l.dataItem?.index,elementDataContext:h}}),o!==void 0&&o.forEach((l,h)=>{t.push({...n,elementIndex:h,elementDataContext:l})})}}return t}function QQ(a){let{chart:t,selectionSource:e,chartConfig:i}=a,r=!1,s=[];if(Dl(i)){if(r=oa(i),s=t.series.values.filter(n=>!(n instanceof Aa)),e===Tr.SelectionByClick){let n=new Set,o=s.find(l=>l instanceof wr&&l.isHover);o===void 0?s.forEach(l=>{l instanceof Ti&&(l.id.includes(ji.Outliers)&&l.tooltip?.visible===!0||sa(l.uid,"isBoxPlotMeanLineSeries"))&&n.add(l)}):n.add(o),s=Array.from(n)}}else s=t.series.values;return s=s.filter(n=>n.visible&&(!r||!(n instanceof wr||sa(n.uid,"isBoxPlotOutliersSeries")))),s}async function f1(a){let{chart:t,cursorSelectionRectangle:e,multiSelect:i,selectionSource:r,hitElement:s,queryObject:n,errorStrings:o}=a,l=ve(t.uid,"config"),h=l?.series[0]?.x??"",c=[];ai(t.uid,{pendingSelectionQueries:!0});let u=[],d=!0;QQ({chart:t,selectionSource:r,chartConfig:l}).forEach((A,p)=>{let f=Uf(A,l);if(l&&A.visible&&A instanceof Qr){let m=Iv(A,p)===V.BoxPlotSeries?f?.y:xu(A),g=A.dataFields?.customValue??"",y={element:{},yAxisField:m,xAxisField:h,splitBy:g,seriesIndex:p,chartConfig:l},x;A instanceof Xi||A instanceof wr?x=A.columns?.values:A instanceof Aa?x=A.segments.values:A instanceof Ti&&(x=zr(A)?.clones?.values,y.uniqueFeature=!0),x!==void 0&&(u=[...u,...x],x.forEach((w,S)=>{if(!(w.dataItem instanceof Go)){let T=w.isActive,F=w===s||VQ(w,e);F&&(d=!1);let L=!1;T?F?L=r!==Tr.SelectionByClick:L=i===!0:L=F,L&&c.push({...y,element:w,elementDataContext:w.dataItem?.dataContext,elementIndex:S}),Zn({element:w,selected:L})}}))}}),d&&(c=[]),await Wf({chart:t,listSelectedElements:c,selectionSource:r,queryObject:n,errorStrings:o})}function HQ(a){let{chart:t,queryObject:e,errorStrings:i}=a,r=async s=>{let n=s.target.cursor;if(n.xRange!==void 0){n.selection.isMeasured=!0,n.validate(),n.selection.validate();let o=Pt.spriteRectToSvg(n.selection.bbox,n.selection);if(n.selection.hide(),o.width>0||o.height>0){let l=Mv(s,t);await f1({chart:t,cursorSelectionRectangle:o,multiSelect:l,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}n.selection.hide()};wn(t)&&t.events.on(Ie.Up,async s=>{let n=s.target.cursor,o=FN(t.uid,"selectEndedCallbackDisposer");if(o!==void 0&&o.dispose(),n.xRange!==void 0&&s.event instanceof TouchEvent)await r(s);else{let l=n.events.once(Ie.SelectEnded,async()=>{await r(s)});TN(t.uid,{selectEndedCallbackDisposer:l})}})}async function wv(a){let{hitEvent:t,chart:e,queryObject:i,errorStrings:r}=a,{target:s}=t,n=ve(e.uid,"actionMode");if(e!==void 0&&p1(e)&&n!==Ut.None&&n!==Ut.Zoom&&(s instanceof Vt||t.point===void 0)){let o=t.svgPoint?{x:t.svgPoint.x,y:t.svgPoint.y,width:0,height:0}:void 0,l=Mv(t,e);await f1({chart:e,cursorSelectionRectangle:o,multiSelect:l,selectionSource:Tr.SelectionByClick,hitElement:s,queryObject:i,errorStrings:r})}}function jQ(a){let{chart:t,queryObject:e,errorStrings:i}=a;wn(t)&&(t.zoomOutButton.hoverable=!0,t.events.on(Ie.Hit,async r=>await wv({hitEvent:r,chart:t,queryObject:e,errorStrings:i})),t.events.on(Ie.DoubleHit,async r=>await wv({hitEvent:r,chart:t,queryObject:e,errorStrings:i})))}function Hf(a){let{chart:t,element:e,queryObject:i,errorStrings:r}=a;e.events.on(Ie.Hit,async s=>await wv({hitEvent:s,chart:t,queryObject:i,errorStrings:r})),e.events.on(Ie.DoubleHit,async s=>await wv({hitEvent:s,chart:t,queryObject:i,errorStrings:r}))}async function WQ(a){let{chart:t,queryObject:e,errorStrings:i}=a,{series:r}=t;if(r.length>0){ai(t.uid,{pendingSelectionQueries:!0});let s=ve(t.uid,"config"),n=r.values.map((o,l)=>{let h=[];if(o.visible){let c=ze(s?.series,l);c===V.BarSeries?h=KL(o,l):c===V.LineSeries?h=ZL(o,l):c===V.PieSeries?h=NQ(o):c===V.BoxPlotSeries&&(o instanceof wr?h=KL(o,l):o instanceof Ti&&!(o instanceof Aa)&&(h=ZL(o,l)))}return h}).flat();await Wf({chart:t,listSelectedElements:n,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}),t instanceof qi&&t.feedLegend()}}function GC(a){if(wn(a))if(a.events.disableType(Ie.Hit),a.events.disableType(Ie.DoubleHit),a instanceof qi){let t=a.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!1,t.slices.template.togglable=!1,t.slices.template.events.disableType(Ie.Hit),t.slices.template.events.disableType(Ie.DoubleHit),t.labels.template.clickable=!1,t.labels.template.togglable=!1,t.labels.template.events.disableType(Ie.Hit),t.labels.template.events.disableType(Ie.DoubleHit))}else a instanceof Vt&&(a.xAxes.each(t=>Bv(t,!0)),a.yAxes.each(t=>Bv(t,!0)),a.events.disableType(Ie.Up))}function XQ(a){if(wn(a))if(a.events.enableType(Ie.Hit),a.events.enableType(Ie.DoubleHit),a instanceof qi){let t=a.series.getIndex(0);t!==void 0&&(t.slices.template.clickable=!0,t.slices.template.togglable=!0,t.slices.template.events.enableType(Ie.Hit),t.slices.template.events.enableType(Ie.DoubleHit),t.labels.template.clickable=!0,t.labels.template.togglable=!0,t.labels.template.events.enableType(Ie.Hit),t.labels.template.events.enableType(Ie.DoubleHit))}else a instanceof Vt&&(a.xAxes.each(t=>Bv(t,!1)),a.yAxes.each(t=>Bv(t,!1)),a.events.enableType(Ie.Up))}function gA(a){let{element:t,stylingInfo:e,stateKey:i="default"}=a;if(t!==void 0&&e!==void 0){let r=t.states.getKey(i)?.properties??t.defaultState.properties;if(r.fill=e.pattern??e.fill,r.fillOpacity=Ne(r.fill.toString()).alpha===0?0:1,e.outline!==void 0){let{outline:s}=e;r.stroke=s.stroke,r.strokeOpacity=s.stroke.alpha===0?0:1,r.strokeDasharray=s.strokeDasharray,r.strokeLinecap=s.strokeLinecap,r.strokeWidth=s.strokeWidth}}}function yA(a,t){return t!=null&&t!==""?t:a}function m1(a,t){let e;switch(a){case Pn.Average:{e=t.statistics.mean;break}case Pn.ContinuousPercentile:{e=t.statistics.median;break}case Pn.Sum:{e=t.statistics.sum;break}case Pn.Minimum:{e=t.statistics.minimum;break}case Pn.Maximum:{e=t.statistics.maximum;break}case Pn.Variance:{e=t.statistics.variance;break}case Pn.DiscretePercentile:{e=t.statistics.discretePercentile;break}case Pn.NoAggregation:{e=t.statistics.noAggregation;break}case Pn.Count:default:{e=t.statistics.count;break}}return e}function Tw(a){let{config:t,fieldName:e="",utilsStrings:i}=a,r=t.series[0].query?.outStatistics?.[0].statisticType??Hb.statisticType,s=m1(r,i);return Uc(i.statistics.aggregation,{statistics:s,fieldName:e})}function g1(a){let{config:t,fieldList:e,objectIdField:i,seriesIndex:r,isStacked100:s,utilsStrings:n}=a,o="",l=t.series[r].name,h=t.series[r],c=[h.y].flat()[0],u=t.axes,d=kt(t.series),A=i??Ou.outStatistics.onStatisticField,p=h.query?.outStatistics?.[0].onStatisticField??A,f=Or(e,p),m=h.query?.outStatistics?.[0].statisticType??Hb.statisticType,g=m1(m,n);return d===ke.BarAndLineNoAggregation?o=l??Or(e,c):d===ke.BarAndLineSplitByNoAggregation?o=Or(e,c):(o=m===Pn.Count&&p===A?n.statistics.count:Uc(n.statistics.aggregation,{statistics:g,fieldName:f??l}),d===ke.BarAndLineMonoField&&!s&&(o=yA(o,u[1].title?.content?.text))),o}function y1(a,t){let{dataTooltipStyle:e,dataTooltipStyleReversed:i}=re;if(t===!0){let r=a.background.fill;if(r!==void 0){a.background.stroke=r,a.background.strokeWidth=i?.outline?.width??Number.NaN,a.background.fill=bn(i?.color);let s=a.background.fill.rgb;if(s!==void 0){let n=a.label.fill;a.label.fill=Ig(s)?n?.darkColor:n?.lightColor}}}else a.getStrokeFromObject=!0,a.getFillFromObject=!0,a.background.strokeWidth=e?.outline?.width??Number.NaN,a.background.stroke=bn(e?.outline?.color)}function Rv(a,t){if(a.tooltip){let e=t.dataTooltipFontSize??re.tooltipFontSize,i=sa(a.uid,"tooltipFontSize")!==e;a.tooltip.label.fontSize=e,i&&!a.tooltip.visible&&(a.tooltip.label.html=""),a.tooltip.label.invalidate(),Jn(a.uid,{tooltipFontSize:e})}}function zQ(a){let t=a.tooltip??new fo;t.pointerOrientation="vertical",a instanceof wr||a instanceof Aa?t.label.maxWidth=re.boxPlot.boxPlotTooltipLabelWidth:t.label.maxWidth=re.tooltipWidth,t.label.wrap=!0;let e=ve(a.chart?.uid,"config"),i=e?Uf(a,e):void 0;i!==void 0&&Rv(a,i),t.events.on(Ie.Shown,r=>{let s=ve(a.chart.uid,"config");if(s!==void 0){let n=Uf(a,s),{dataTooltipReverseColor:o}=n??{};y1(r.target,o)}})}function GQ(a){a instanceof Ys||a.series.each(t=>{zQ(t)})}function v1(a,t){a.tooltipHTML=re.htmlEmptyContent,a.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:s}=t;if(s!==void 0){let n=ve(s.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)r="";else{let l=sa(t.uid,"barAndLineTooltipFormatter");if(l!==void 0&&t.isReady()){let{dataItem:h}=i;if(h instanceof Bs||h instanceof Wa){let c=n?.series.find(u=>u.id===t.id);if(c!==void 0){let u=xn({config:n}),d=u?h.valueX:h.valueY,A=(u?h.values.valueX.totalPercent:h.values.valueY.totalPercent)/100,p=h.dataContext??{};if(p!==void 0){let f=ve(s.uid,"rendererFieldNames"),m=no({value:qA(kt([c]),c),dataContext:p,useRendererLabel:Qu(n,f),config:n}),g=oo(p);g===void 0&&(g=m);let y=p[re.dateBinningRange];r=l({seriesName:t.name,xValue:m,originalXValue:g,dateBinningRange:y,statValue:d,percentValue:A})}}}}}}return Zr(r)}),a.tooltipPosition=t instanceof Ti?re.markerTooltipPosition:re.columnTooltipPosition,t.cursorTooltipEnabled=!1}function YQ(a){let{isStacked100:t,series:e,statValue:i,percentValue:r,yAxisValueFormat:s,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=a,l=n;l===void 0&&(ba(s)&&s?(l=s,t&&(l.intlOptions.style="decimal")):l=Wm());let h=ve(e.chart.uid,"formatLocale"),c=i!==void 0?Rf({value:i,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:h}):"",u="";if(t&&r!==void 0){let d=o;d===void 0&&(d=Xm(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),u=Rf({value:r,valueFormat:d,iLocale:e.chart.language.locale,formatLocale:h})}return{formattedStatValue:c,formattedPercentValue:u}}function KQ(a){let{series:t,dateRange:e,xAxisValueFormat:i}=a,r;if(e!==void 0&&e.length>0){let s=t.chart?.uid,n=ve(s,"timeIntervalInfo"),o=ve(s,"config"),l=ve(s,"options"),h=ve(s,"queryObject"),c=o&&bh(o.series[0])?o.series[0].temporalBinning?.outTimeZone:void 0,u={};switch(n?.unit){case er.Second:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case er.Minute:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Hour:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Day:case er.Week:case er.Month:case er.Year:u={month:"numeric",day:"numeric",year:"numeric"};break}ep({chartConfig:o,queryObject:h,options:l})&&(u.timeZone=c??i.intlOptions.timeZone);let d=new Date(e[0]),A=new Date(e[1]);if(!Number.isNaN(d.valueOf())){let p=ve(t.chart.uid,"formatLocale"),f=fl({type:V.DateAxisFormat,iLocale:t.chart.language.locale,formatLocale:p}),m=f.format(d,u);if(r=m,!Number.isNaN(A.valueOf())){let g=f.format(A,u);g!==m&&(r=`${r} - ${g}`)}}}return r?.toString()??""}function b1(a){let{seriesConfig:t,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:r,dataTooltipDateFormat:s,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:h,queryObject:c}=a,u,d=ve(n.chart.uid,"formatLocale");return Jm({seriesConfig:t,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:c})&&l!==void 0&&e?.type===V.DateAxisFormat?u=KQ({series:n,dateRange:l,xAxisValueFormat:e}):ro(e)?h&&typeof o=="number"?u=new Date(o).toLocaleTimeString(d):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(u=Rf({value:o,valueFormat:s??e,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&ba(e)?u=Rf({value:o,valueFormat:r??e,iLocale:n.chart.language.locale,formatLocale:d}):u=o,u?.toString()??""}function ZQ(a){let{series:t,fieldList:e,queryObject:i,setTimeBinningInfoWhenNotProvided:r,seriesIndex:s,seriesConfig:n,utilsStrings:o}=a,{dataTooltipValueFormat:l,dataTooltipPercentFormat:h,dataTooltipDateFormat:c}=n,u=()=>"",{chart:d}=t;if(d!==void 0){let A=ve(d.uid,"config");if(A!==void 0){let{dataTooltipVisible:p}=n,f=t instanceof Ti?n.markerVisible:void 0;if(p===!1||f===!1)u=()=>"";else{let m=A.axes,g=m[0].valueFormat,y=m[1].valueFormat,x=kt(A.series),w=e?.find(U=>U.name===n.x)?.type===GA.TimeOnly,S=ks(A)===$i.Stacked100,T=xh($s(i)).idField,F=Or(e,n.x),L=yA(F,m[0].title?.content.text),$=g1({config:A,fieldList:e,objectIdField:T,seriesIndex:s,utilsStrings:o,isStacked100:S}),I=Ra(d.rtl);u=U=>{let{statValue:P,percentValue:Q,xValue:G,dateBinningRange:Y}=U,ee=b1({seriesConfig:n,xAxisValueFormat:g,dataTooltipValueFormat:l,dataTooltipDateFormat:c,setTimeBinningInfoWhenNotProvided:r,series:t,xValue:G,dateBinningRange:Y,isTimeOnlyField:w,queryObject:i}),{formattedStatValue:te,formattedPercentValue:le}=YQ({isStacked100:S,yAxisValueFormat:y,dataTooltipValueFormat:l,dataTooltipPercentFormat:h,series:t,statValue:P,percentValue:Q}),z=[`<b>${L}${I} </b>${ee}`];switch(x){case ke.BarAndLineFromFields:{z.pop();let K=Tw({config:A,fieldName:Or(e,ee??""),utilsStrings:o});z.push(`<b>${K}${I} </b>${te}`);break}case ke.BarAndLineMonoField:case ke.BarAndLineNoAggregation:case ke.BarAndLineMultiFields:z.push(`<b>${$}${I} </b>${te}`);break;case ke.BarAndLineSplitByNoAggregation:case ke.BarAndLineSplitBy:{let K=Dn(n.query?.where,!1),we=tx({value:Or(e,K),escape:!0});z.push(`<b>${we}${I} </b>${t.name}<br /><b>${$}${I} </b>${te}`)}break}return S&&z.push(`<b>${o.statistics.percent}${I} </b>${le}`),z.join("<br />")}}}}return u}function x1(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{barAndLineTooltipFormatter:i??ZQ(a)}),Rv(t,e)}function Pw(a){let{target:t,defaultTooltipHTML:e,candleStickSeries:i,meanLineSeries:r,outliersSeries:s,tooltipCallback:n}=a,o=e,l=i??r;if(l!==void 0){let{chart:h}=l;if(h!==void 0){let c=ve(h.uid,"config"),{dataTooltipVisible:u}=c?.series[0]??{};if(u===!1)o="";else{let d=sa(l.uid,"boxPlotTooltipFormatter");d!==void 0&&l.isReady()&&c&&(o=n({target:t,defaultTooltipHTML:e,config:c,candleStickSeries:i,meanLineSeries:r,outliersSeries:s,boxPlotTooltipFormatter:d}))}}}return Zr(o)}function qQ(a){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,outliersSeries:s,boxPlotTooltipFormatter:n}=a,o=e;if(r!==void 0&&s!==void 0){let l=r.dataItems.values.find(c=>(c.categories.categoryX??c.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY)),h=i.series.find(c=>c.id===r.id);if(h!==void 0){let c=l?.dataContext??{};if(c!==void 0){let u=no({value:c[h.x],dataContext:c,useRendererLabel:Fl(i),specificField:pt.xAxisField}),d=oo(c);d===void 0&&(d=u),o=n({seriesName:s.name,xValue:u,originalXValue:d,dataContext:c})}}}return o}function JQ(a){let{target:t,defaultTooltipHTML:e,config:i,meanLineSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=r.dataItems.values.find(l=>(l.categories.categoryX??l.categories.categoryY)===(t.dataItem?.categories.categoryX??t.dataItem?.categories.categoryY));if(o instanceof Wa){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=no({value:h[l.x],dataContext:h,useRendererLabel:Fl(i),specificField:pt.xAxisField}),u=oo(h);u===void 0&&(u=c),n=s({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function eH(a){let{target:t,defaultTooltipHTML:e,config:i,candleStickSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=t.dataItem;if(o instanceof gc){let l=i.series.find(h=>h.id===r.id);if(l!==void 0){let h=o.dataContext??{};if(h!==void 0){let c=no({value:h[l.x],dataContext:h,useRendererLabel:Fl(i),specificField:pt.xAxisField}),u=oo(h);u===void 0&&(u=c),n=s({seriesName:r.name,xValue:c,originalXValue:u,dataContext:h})}}}}return n}function tH(a){a.cursorTooltipEnabled=!1,a.tooltipPosition=re.columnTooltipPosition,a.columns.template.tooltipHTML=re.htmlEmptyContent,a.columns.template.adapter.add("tooltipHTML",(t,e)=>Pw({target:e,defaultTooltipHTML:t??"",candleStickSeries:a,tooltipCallback:eH}))}function iH(a,t){let e=zr(a);e!==void 0&&(e.tooltipPosition=re.markerTooltipPosition,e.tooltipHTML=re.htmlEmptyContent,a.cursorTooltipEnabled=!1,e.adapter.add("tooltipHTML",(i,r)=>Pw({target:r,defaultTooltipHTML:i??"",candleStickSeries:t,outliersSeries:a,tooltipCallback:qQ})))}function rH(a){let t=zr(a);t!==void 0&&(a.cursorTooltipEnabled=!1,t.tooltipPosition=re.markerTooltipPosition,t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>Pw({target:i,defaultTooltipHTML:e??"",meanLineSeries:a,tooltipCallback:JQ})))}function uu(a){let{label:t,value:e,strongColon:i,useTable:r}=a,s=`<b>${t}${i}</b> ${e}`;return r!==!1?`<tr><td>${s}</td></tr>`:s}function sH(a){let{dataContext:t,series:e,dataTooltipValueFormat:i,y:r,splitBy:s,utilsStrings:n,useTable:o}=a,l=i??Wm(),h=Object.values(Yt),c=Ra(e.rtl),u=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return h.forEach(d=>{let A=Zi({key:d,y:r,splitBy:s}),p=t[A];if(p!=null&&typeof p=="number"){let f=ve(e.chart.uid,"formatLocale"),m=Rf({value:p,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:f}),g="";switch(d){case Yt.Min:g=n.statistics.minimum;break;case Yt.FirstQuartile:g=n.statistics.firstQuartile;break;case Yt.Median:g=n.statistics.median;break;case Yt.ThirdQuartile:g=n.statistics.thirdQuartile;break;case Yt.Max:g=n.statistics.maximum;break;case Yt.IQR:g=n.statistics.iqr;break;case Yt.Average:g=n.statistics.mean;break;case Yt.StandardDeviation:}Iu(g)||u.push(uu({label:g,value:m,strongColon:c,useTable:o}))}}),u}function aH(a){let{series:t,fieldList:e,seriesConfig:i,utilsStrings:r,queryObject:s}=a,{dataTooltipValueFormat:n}=i,o=()=>"",{chart:l}=t;if(l!==void 0){let h=ve(l.uid,"config");if(h!==void 0){let c=h.axes,u=c?.[0].valueFormat,{showMean:d}=h,A=kt(h.series),p=Dn(i.query?.where),f=Or(e,p),m=vh({where:i.query?.where,escape:!1}),g=Or(e,i.x),y;i.x!==jm&&(y=yA(g,c?.[0].title?.content.text));let x=Ra(l.rtl);o=w=>{let{dataContext:S,xValue:T}=w,F=b1({seriesConfig:i,xAxisValueFormat:u,series:t,xValue:T,queryObject:s}),L=[],$=F!==void 0&&!Iu(F)?Or(e,F):"",I=d===!0?[h.series[0].y].flat()[0]:[i.y].flat()[0],U=Or(e,I);switch(A){case ke.BoxPlotMonoField:case ke.BoxPlotMultiFields:case ke.BoxPlotMonoFieldAndSplitBy:case ke.BoxPlotMultiFieldsAndSplitBy:{if(F!==void 0&&!Iu(F)){let ee=A===ke.BoxPlotMonoField?i.name??$:$;L.push(uu({label:r.field,strongColon:x,value:ee}))}zi(f)||L.push(uu({label:f,strongColon:x,value:i.name??m?.toString()}));break}case ke.BoxPlotMonoFieldAndCategory:case ke.BoxPlotMultiFieldsAndCategory:{L.push(uu({label:r.field,strongColon:x,value:i.name??U})),F!==void 0&&!Iu(F)&&L.push(uu({label:y,strongColon:x,value:$}));break}case ke.BoxPlotMonoFieldAndCategoryAndSplitBy:L.push(uu({label:r.field,strongColon:x,value:U})),F!==void 0&&!Iu(F)&&L.push(uu({label:y,strongColon:x,value:$})),zi(f)||L.push(uu({label:f,strongColon:x,value:i.name??m?.toString()}));break}let P=[ke.BoxPlotMultiFieldsAndCategory],Q=S[re.boxPlot.boxPlotMeanLineMarkerId]!==void 0,G=L.length>0&&!Q,Y=sH({dataContext:S,series:t,dataTooltipValueFormat:n,splitBy:i.query?.where,y:P.includes(A)?[i.y].flat()[0]:void 0,utilsStrings:r,useTable:G});return G?`${L.join("<br>")}<table>${Y.join("")}</table>`:`${L.join("<br>")}${Y.join("<br>")}`}}}return o}function nH(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{boxPlotTooltipFormatter:i??aH(a)}),Rv(t,e)}function oH(a){let t=ml(re.dataLabelInitialize);return fu(t.uid,{isDataLabel:!0}),a.bullets.push(t),h1(t),n1(V.LineSeries,t),o1(V.LineSeries,t),aw(t,a),t.html="{valueX}",t}function lH(a){let{series:t}=a,e=sw(t,"bullets");u1({...a,dataLabel:e,defaultDataLabelFormatter:l1})}var B={Rotated:0,NonRotated:1,RTL:2,LTR:3,Stacked:4,Stacked100:5,SideBySide:6,LegendTop:7,LegendBottom:8,LegendLeft:9,LegendRight:10,DateAxis:11,ValueAxis:12,CategoryAxis:13,OrderByFieldsASC:14,OrderByFieldsDESC:15},_1=new Set([`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.LTR}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.DateAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.CategoryAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsASC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.SideBySide}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.LTR}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendLeft}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.NonRotated}-${B.RTL}-${B.Stacked100}-${B.LegendRight}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendTop}-${B.ValueAxis}-${B.OrderByFieldsDESC}`,`${B.Rotated}-${B.RTL}-${B.Stacked100}-${B.LegendBottom}-${B.ValueAxis}-${B.OrderByFieldsDESC}`]);function hH(a,t){t!==void 0&&(t.layout!==void 0&&(a.layout=t.layout),t.width!==void 0&&(a.width=HL(t.width)),t.height!==void 0&&(a.height=HL(t.height)),t.paddingTop!==void 0&&(a.paddingTop=t.paddingTop),t.paddingBottom!==void 0&&(a.paddingBottom=t.paddingBottom))}function uH(a){let t=!1,e=a.legend?.visible,i=a.legend?.title?.content.text,r=a.legend?.title?.visible;return t=e!==!1&&r!==!1&&i!==void 0&&i.length>0,t}function C1(a,t){let e=new Pe;return hH(e,a),e.parent=t,e}function w1(a,t){a.disabled=t}function cH(a,t){a.toBack()}function dH(a){if(a instanceof Ys){let{paddingTop:t,paddingRight:e,paddingBottom:i,paddingLeft:r}=re.gauge;a.padding(t,e,i,r)}else{let{paddingMinSize:t,marginMinSize:e,chartPaddingMinSize:i,chartContainer:r}=re;a.padding(i,i,i,i),a.chartAndLegendContainer.margin(e,e,e,e),a.chartAndLegendContainer.padding(t,t,t,t),a.chartContainer.margin(e,e,e,e),a.chartContainer.padding(r.paddingTop,t,t,t)}}function AH(a,t){let e=(i,r)=>{let{chartContainer:s,chartAndLegendContainer:n}=re,o=ve(i.uid,"config");if(o!==void 0){let l=uH(o),h=o.legend?.position;if(l)switch(h){case st.Top:i.chartAndLegendContainer.paddingTop=r.bbox.height??0,i.chartContainer.paddingBottom=s.paddingBottom??0;break;case st.Bottom:i.chartContainer.paddingBottom=r.bbox.height??0,i.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=s.paddingBottom??0;break}else i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=s.paddingBottom??0}};t.events.on(Ie.PositionChanged,()=>{e(a,t)})}function Dw(a){let{iLocale:t,pieChart:e,valueIntlOptions:i,percentageIntlOptions:r,displayNumericValue:s,displayPercentage:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}=a,u=ve(e.uid,"formatLocale"),d=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u}),A=fl({type:V.NumberAxisFormat,iLocale:t,formatLocale:u});d.numberFormat={...i},A.numberFormat={...r,style:"percent"};let p=Ra(e.rtl," ");return(f,m,g)=>{let y="";if(m!==void 0&&g!==void 0){let x=`${o??""}${d.format(m)}${l??""}`,w=`${h??""}${A.format(Math.abs(g/100))}${c??""}`;Number.isFinite(m)?s===!0&&n===!0?y=`${w}${p}(${x})`:s===!0?y=x:n===!0&&(y=w):y=""}return y}}function B1(a){let t=!1;if(a.position===st.Right||a.position===st.Left)t=!0;else{let e=a.labels.getIndex(0)?.parent?.x;e!==void 0&&(t=!a.labels.values.some(i=>i.parent?.x!==e))}return t}function pH(a){let t=!1,e=a.labels.getIndex(0)?.parent?.y;return e!==void 0&&(t=!a.labels.values.some(i=>i.parent?.y!==e)),t}function fH(a){a.events.on(Ie.LayoutValidated,()=>{let t=B1(a),e=pH(a),i=t||!e?"right":"center";a.valueLabels.template.horizontalCenter=bw(i),a.valueLabels.template.align=NI(i)})}function mH(a){fu(a.valueLabels.template.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapter.add("htmlOutput",(t,e)=>{let i=t,r=PN(a.uid,"pieChartLegendValueLabelsFormatter");if(r!==void 0&&(i=r(e.dataItem?.values?.value?.value??0,e.dataItem?.values?.value?.percent??0)),zi(i)&&(i=re.htmlEmptyContent),a.baseSprite instanceof Vl){let s=ve(a.baseSprite.uid,"config");s?.legend?.body!==void 0&&(i=xa({textSymbol:{...s.legend.body,text:i},format:"html"}))}return Zr(i)}),a.valueLabels.template.html=re.htmlEmptyContent,fH(a)}function gH(a){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r}=a,{visible:s,body:n,displayNumericValue:o,displayPercentage:l,displayCategory:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=h??re.pieChart.displayCategoryOnLegend,g=o??re.pieChart.displayNumericValueOnLegend,y=l??re.pieChart.displayPercentageOnLegend,x=r;if(r===void 0){let T=Dw({iLocale:t.language.locale,pieChart:t.baseSprite,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:g,displayPercentage:y,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});x=(F,L)=>T("",F,L)}DN(t.uid,{pieChartLegendValueLabelsFormatter:x});let w=B1(t),S={type:V.Text,visible:s,content:{...n,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:w?"right":"center"}};_n({label:t.valueLabels.template,labelConfig:S,defaults:re.legendProperties.valueLabels}),t.labels.template.disabled=m===!1,t.valueLabels.template.disabled=g===!1&&y===!1}}function yH(a){let{dataContext:t}=a.target.dataItem??{};if(t instanceof Fa){let{component:e}=t;e instanceof ws&&e.showTooltip()}}function vH(a){let t=()=>{let e=a.children.values.find(i=>i.className==="Container");if(e?.children.length===3){let i=e.children.values.findIndex(r=>r.className==="Container");if(i!==-1){let r=i!==0?0:2,s=e.children.getIndex(r)?.clonedFrom;s!==void 0&&ms(s.uid,"isLegendValueLabel")!==!0&&a.children.each(n=>{n.className==="Container"&&n.children.swap(1,r)})}}};a.events.on(Ie.Validated,t),t()}function qL(a,t){let{legendLabelReducedOpacity:e}=re.legendProperties;a!==void 0&&(a.fillOpacity=t===!1?e:1)}function kf(a){let{labels:t,seriesId:e,sliceCategory:i}=a;t.each(r=>{i!==void 0?i===r.dataItem.category&&qL(r,r.dataItem.slice.visible??!0):e===r.dataItem?.component?.id&&qL(r,r.dataItem?.component?.visible??!0)})}function Lw(a){a instanceof ws?(a.slices.template.events.on(Ie.Shown,t=>{let e=t.target.dataItem.category;kf({labels:a.chart?.legend?.labels,sliceCategory:e}),kf({labels:a.chart?.legend?.valueLabels,sliceCategory:e})}),a.slices.template.events.on(Ie.Hidden,t=>{let e=t.target.dataItem.category;kf({labels:a.chart?.legend?.labels,sliceCategory:e}),kf({labels:a.chart?.legend?.valueLabels,sliceCategory:e})})):a.events.on(Ie.VisibilityChanged,t=>{let e=t.target.id;kf({labels:a.chart?.legend?.labels,seriesId:e})})}function S1(a){let{title:t,visible:e}=a;return t!==void 0&&e!==!1&&t?.visible!==!1}function bH(a,t){let{legendProperties:e}=re;if(a.position===st.Bottom)a.marginTop=e.marginTop??0,a.marginBottom=0,a.dy=0;else if(a.position===st.Top)a.marginBottom=e.marginBottom??0,a.marginTop=0,a.dy=0;else if(a.marginTop=0,a.marginBottom=0,!(a.baseSprite instanceof qi)){let i=S1(t),r=t.title?.content?.font?.size??re.generalFontSize;a.dy=-(i?r:15)}}function xH(a){let t=a.baseSprite,e;if(t!==void 0){let i=ve(t?.uid,"config");e=t?.rtl&&(i?.legend?.position===st.Top||i?.legend?.position===st.Bottom)}return e??!1}function _H(a){let t=a.baseSprite,e="";if(t instanceof Vt){let i=ve(t.uid,"config"),r=us(i),s=r?B.Rotated:B.NonRotated,n=ks(i),o=B.SideBySide;n===$i.Stacked?o=B.Stacked:n===$i.Stacked100&&(o=B.Stacked100);let l=t.rtl?B.RTL:B.LTR,h;switch(i?.legend?.position){case st.Left:h=B.LegendLeft;break;case st.Top:h=B.LegendTop;break;case st.Bottom:h=B.LegendBottom;break;case st.Right:default:h=B.LegendRight;break}let c=r?t.yAxes.getIndex(0):t.xAxes.getIndex(0),u;c instanceof Ct?u=B.DateAxis:c instanceof Qe?u=B.ValueAxis:u=B.CategoryAxis;let d=i?.orderOptions?.data&&"orderBy"in i.orderOptions.data&&i.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;e=`${s}-${l}-${o}-${h}-${u}-${d}`}return e}function CH(a){let t=_H(a);return _1.has(t)}function F1(a,t){let{legend:e,legendTitle:i}=a??{};switch(t){case V.PieSeries:e.reverseOrder=xH(e);break;case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:e.reverseOrder=CH(e);break}let r=e.reverseOrder===!0?e.children.length-1:0;e.children.moveValue(i,r)}function wH(a){if(a.visible){let t=ve(a.chart.uid,"config")?.series.find(e=>e.id===a.id);if(t!==void 0&&ze([t])===V.LineSeries){let{markerVisible:e}=t;e!==!1&&a.bulletsContainer.show()}}}function BH(a,t){let e=a.target.dataItem,i=a.target.isActive;if(e?.dataContext!==void 0){let{dataContext:r}=e,s={visible:i};if(r instanceof Fa)ve(t.uid,"isNonAggregatedChart")===!0?s.sliceData=r.dataContext:s.sliceId=r.category;else if(r instanceof wr){let o=r.id,l=jf(t,o);if(l!==void 0){let d=ve(t.uid,"config"),A=kw(d?.showOutliers,i),p=zr(l);p!==void 0&&(p.disabled=!A),Ui(l,A)}let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t,o);h!==void 0&&Ui(h,i),c!==void 0&&Ui(c,i),u!==void 0&&Ui(u,i),s.seriesId=r.id}else s.seriesId=r.id;let n=r instanceof Fa?r.component:r;(n instanceof Qr||n instanceof ws)&&n.events.once(Ie.Validated,()=>{n instanceof Qr&&(R1(n),n.events.dispatchImmediately(Ie.Validated,{type:Ie.Validated,target:n}));let o=n instanceof ws,l=ve(t.uid,"currentSelectionDataItems"),h=l!==void 0&&l.length>0,c=ve(t.uid,"actionMode")??re.actionMode,u;n instanceof Xi?u=n.columns:o?u=n.slices:n instanceof Ti&&(wH(n),u=zr(n)?.clones),u?.each(d=>{d.dataItem instanceof Go||(Zn({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!h}),o&&c===Ut.None&&(d.clickable=!1))})}),ox(s,t.htmlContainer)}}function SH(a){let{legendProperties:t,legendProperties:e}=re;a.adapter.add("paddingRight",()=>a.scrollbar.visible?e.legendPaddingRightWithScrollbarVisible:t.paddingRight),a.adapter.add("paddingLeft",()=>t.paddingLeft),a.adapter.add("paddingTop",()=>t.paddingTop),a.adapter.add("paddingBottom",()=>t.paddingBottom)}function FH(a){a.scrollable=!0}function TH(a){let t=ml(void 0,a);return t.adapter.add("paddingTop",e=>{let i=e,r=t.bbox.height;return r>0&&(i=-r),i}),t.adapter.add("x",e=>{let i=e,{marginLeft:r,marginRight:s}=re.legendProperties.legendTitle;switch(ve(a.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case"left":i=t.measuredWidth+(r??0);break;case"right":i=a.measuredWidth-t.measuredWidth-(s??0);break;default:i=a.measuredWidth/2;break}return i}),t.adapter.add("disabled",e=>(e===!1&&t.validate(),e)),t}function PH(a){let{legendConfig:t,legendTitle:e}=a,{title:i,position:r}=t,{legendTitle:s}=re.legendProperties,n=S1(t);if(i!==void 0){let o={...i,visible:n};_n({label:e,labelConfig:o,defaults:s}),e.marginLeft=s.marginLeft??0}r===st.Top||r===st.Bottom?(e.maxWidth=Number.NaN,e.isMeasured=!1):(e.maxWidth=s.maxWidth??Number.NaN,e.marginTop=n?e.bbox?.height??i?.content?.font?.size??re.generalFontSize:0,e.isMeasured=!0)}function DH(a){let t=re.legendProperties;a.labels.template=ml(t.legendLabels),a.valueLabels.template=ml(t.legendLabels),a.markers.template.width=t.legendMarkersSize,a.markers.template.height=t.legendMarkersSize,a.labels.template.adapter.add("wrap",()=>!0),a.labels.template.adapter.add("maxWidth",e=>{let i=e,r;if(a.baseSprite instanceof qi&&(r=ve(a.baseSprite.uid,"config")?.legend?.labelMaxWidth),a.position===st.Right||a.position===st.Left)i=r??re.legendProperties.legendLabels.maxWidth;else if(r!==void 0)i=r;else{let s=0;a.valueLabels.template.disabled||a.valueLabels.each(n=>{s=Math.max(s,n.measuredWidth)}),i=a.measuredWidth-s-45}return i}),a.labels.template.adapter.add("textOutput",(e,i)=>{let r=i.dataItem?.label?.currentText,s,n=ve(a.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(ze(o)===V.PieSeries){let l=kt(o)===ke.PieFromFields?ao:o[0].x,h=i.dataItem?.dataContext?.[l];typeof h=="string"?s=h:h&&typeof h!="object"&&(s=h.toString())}else i.dataItem?.component instanceof go&&(s=i.dataItem.component.name)}return(s!==void 0&&!zi(s)?ig(s):s)??r}),a.valueLabels.template.adapter.add("maxWidth",e=>{let i=e,r;return a.baseSprite instanceof qi&&(r=ve(a.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),a.position===st.Right||a.position===st.Left?i=r??re.legendProperties.valueLabels.maxWidth:i=r??Number.NaN,i})}function LH(a,t){a.itemContainers.template.events.on(Ie.Hit,e=>BH(e,t)),t instanceof qi&&a.itemContainers.template.events.on(Ie.Over,e=>yH(e))}function IH(a){a.itemContainers.template.reverseOrder=a.rtl}function gv(a,t){a.adapter.keys().includes(t)||a.adapter.add(t,e=>{let i=e,r=a.dataItem?.dataContext;if(r!==void 0){let s=r instanceof Fa?r.component?.chart:r.chart;if(s!==void 0){let n=ve(s.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:l}=re.legendProperties;i=n?.legend?.roundMarkers===!0?l:o}}return i})}function JL(a){a.markers.each(t=>{let e=t.children.getIndex(0);e instanceof Nr&&(gv(e,"cornerRadiusBottomLeft"),gv(e,"cornerRadiusBottomRight"),gv(e,"cornerRadiusTopLeft"),gv(e,"cornerRadiusTopRight"),e.validate())})}function kH(a){a.markers.template.events.on(Ie.Inited,()=>{JL(a)}),a.events.once(Ie.Validated,()=>{JL(a)})}function $H(a){let{legendElements:{legend:t},seriesConfig:e,webChartLegend:i}=a,{visible:r,body:s}=i??{},n=ze(e),o={type:V.Text,visible:r,content:{...s,type:Rt.TS,text:" "}};_n({label:t.labels.template,labelConfig:o,defaults:re.legendProperties.legendLabels}),t.labels.template.valign="middle",t.valueLabels.template.valign="middle",n===V.PieSeries&&gH(a),t.valueLabels.template.width=Number.NaN}function OH(a,t){t.chartContainer.events.on(Ie.SizeChanged,Is(()=>{let e=ve(t.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(e)||(a.position===st.Top||a.position===st.Bottom?e=re.legendProperties.maxHeight:e=t instanceof qi?t.chartContainer.measuredHeight:t.seriesContainer.measuredHeight),a.maxHeight=e,a.invalidateLayout()}),re.debounceTime)}function EH(a,t){let{position:e}=t;e===st.Top||e===st.Bottom?a.contentAlign="center":a.contentAlign="none"}function MH(a,t){let{legend:e}=a;e.events.on(Ie.DataItemsValidated,()=>{e.dataItems.length>0&&F1(a,t)})}function RH(a,t){t===st.Right||t===st.Left?a.width=Number.NaN:a.maxWidth=Number.MAX_SAFE_INTEGER}function T1(a,t){let e=si.pointer;t===!0?(a.itemContainers.template.clickable=!1,a.itemContainers.template.focusable=!1,e=si.default):(a.itemContainers.template.clickable=!0,a.itemContainers.template.focusable=!0),a.itemContainers.values.forEach(i=>{i.cursorOverStyle=e})}function UH(a,t){let e=new oc;a.legend=e,FH(e);let i=TH(e);return DH(e),mH(e),LH(e,a),IH(e),SH(e),MH({legend:e,legendTitle:i},ze(t)),OH(e,a),AH(a,i),vH(e),a.legend.events.on(Ie.ChildAdded,()=>{let r=ve(a.uid,"options");T1(e,r?.togglingLegendItemsDisabled)}),{legend:e,legendTitle:i}}function Iw(a){let{legendElements:t,seriesConfig:e,webChartLegend:i}=a,{legend:r,legendTitle:s}=t,n=r.baseSprite,o=(n===void 0?!0:ix(e))&&i?.visible!==!1;if(n&&i&&o){let{position:l=re.legendProperties.position}=i;Ui(r,!0),PH({legendConfig:i,legendTitle:s}),kH(r),$H(a),EH(r,i),F1(t,ze(e)),r.position=l,RH(r,l),bH(r,i),T1(r,ve(n.uid,"options")?.togglingLegendItemsDisabled)}else r.position=st.Right,r.width=0,Ui(r,!1)}function VH(a){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],queryObject:s,selectionTheme:n,ignoreSmoothRenderingLimit:o,errorStrings:l}=a,h=e.series.length,{rotated:c}=e,u=e.series[i],{y:d,name:A,id:p,assignToSecondValueAxis:f}=u,m=new Ti;m.id=p,_A(m,A);let g,y;c!==!0?(g=r[0],y=f===!0&&r[2]?r[2]:r[1]):(g=f===!0&&r[2]?r[2]:r[0],y=r[1]),g!==void 0&&(m.xAxis=g),y!==void 0&&(m.yAxis=y);let x=xn({chart:t}),w=kt(e.series),S=w===ke.BarAndLineSplitByNoAggregation?`${d.toString()}_${vh({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];x?m.dataFields.valueX=S:m.dataFields.valueY=S;let T=x?r[1]:r[0];if(T!==void 0){let $=c1(T,x);m.dataFields[$]=re.xAxisField}m.dataFields.customValue=u?.query?.where;let F=$s(s);P1({series:m,seriesConfig:u,seriesIndex:i,chartSubType:w,colorMatch:e.colorMatch===!0,rendererType:rg(e.chartRenderer,F?.renderer)}),D1(u,m);let L=Bw({chart:t,lineSeries:m,applyPropertiesToClones:!1});return v1(L,m),oH(m),Xc({element:L,customSelectionTheme:n}),Hf({chart:t,element:L,queryObject:s,errorStrings:l}),$Q({chart:t,numberOfChartSeries:h,series:m,seriesType:V.LineSeries,marker:L,ignoreSmoothRenderingLimit:o}),Lw(m),Wc(m),m}function NH(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n,rendererType:o}=a,l=zr(t),h=!1,c;if(l!==void 0){r.markerVisible!==!1&&r.visible!==!1?t.bulletsContainer.show():t.bulletsContainer.hide();let{markerSymbol:u}=r;u===void 0&&(u=Kb(),u.color=n),s?u.color=n:u.color??=n;let d=new Set,A;Cv({element:l,markerSymbol:u}),l.clones.each(p=>{if(p.dataItem instanceof Go)Cv({element:p,markerSymbol:u}),p.states.getKey(ia.CustomActive)?.reset(),p.states.getKey(ia.CustomInactive)?.reset();else{let f=p.dataItem?.dataContext,m=on({seriesConfig:r,dataItem:f,chartSubType:i,colorMatch:s,rendererType:o}),g=du({seriesConfig:r,seriesIndex:e,seriesSymbol:u,element:p,colorMatch:s,rendererSymbol:m});c=g.symbolWithColorInfo,A=g.stylingInfo,gA({element:p,stylingInfo:A}),d.add(JSON.stringify(A))}}),h=d.size>1,h||gA({element:l,stylingInfo:A})}return h?void 0:c}function QH(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;return t.dataItems?.values.every(o=>{let l=!0,h=o.dataContext;return n=on({seriesConfig:e,dataItem:h,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0&&(l=!1),l}),n}function P1(a){let{series:t,seriesIndex:e,seriesConfig:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t,l=QH({series:o,seriesConfig:i,chartSubType:r,colorMatch:s,rendererType:n}),h=du({seriesConfig:i,seriesIndex:e,seriesSymbol:i.lineSymbol??Zb(e),element:o,colorMatch:s,rendererSymbol:l});return Ui(o,i.visible),h.symbolWithColorInfo}function D1(a,t){a.showArea===!0?a.areaColor!==void 0?(t.fill=bn(a.areaColor),t.fillOpacity=t.fill.alpha===0?0:1):(t.fill=Ne(t.stroke.hex,1),t.fillOpacity=re.lineSeries.areaOpacity):t.fillOpacity=0}function L1(a){let{series:t,seriesIndexMapper:e,seriesSymbolMapForEvent:i,seriesIndex:r,colorMatch:s,rendererType:n}=a,o=a.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=kt(l?.series);Ui(t,o.visible);let u=P1({series:t,seriesConfig:o,seriesIndex:r,chartSubType:c,colorMatch:s,rendererType:n}),d=NH({series:t,seriesIndex:r,seriesConfig:o,chartSubType:c,colorMatch:s,lineColor:u.color,rendererType:n});i.set(e.get(o.id)??r,{lineSymbol:u,markerSymbol:d}),D1(o,t),i.size===h&&(nn({data:i,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)}),t.chart.feedLegend())}function HH(a){let{seriesConfig:t,lineSeries:e,isRotated:i}=a;t.lineSmoothed===!0?e.smoothing=i?jb.MonotoneY:jb.MonotoneX:e.smoothing=re.lineSeries.lineSmoothedKind}function jH(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.connect=e!==!1&&r!==Wb.Null}function WH(a){let{seriesConfig:t,series:e,axes:i,rotationChanged:r,seriesIndex:s,fieldList:n,stackedType:o,queryObject:l,options:h,utilsStrings:c}=a,{visible:u,name:d}=t,A=i[1].valueFormat,p=ve(e.chart.uid,"config"),f=xn({config:p}),m=kt(p?.series);e.id=t.id,Ui(e,u);let g=d,y=e.dataFields?.customValue??"";(m===ke.BarAndLineSplitBy||m===ke.BarAndLineSplitByNoAggregation)&&(g=ag({queryObject:l,fieldName:Dn(y),fieldValue:g})??g),_A(e,g),Sw({series:e,seriesConfig:t,rotationChanged:r,stackedType:o,isRotated:f}),jH(e,t),Ev({styleCallback:()=>L1(a),series:e,seriesConfig:t}),HH({seriesConfig:t,lineSeries:e,isRotated:f}),x1({series:e,seriesConfig:t,fieldList:n,queryObject:l,seriesIndex:s,setTimeBinningInfoWhenNotProvided:h?.setTimeBinningInfoWhenNotProvided,utilsStrings:c,tooltipFormatter:h?.tooltipFormatter}),lH({series:e,seriesType:V.LineSeries,stackedType:o,dataLabelsConfig:t.dataLabels,yAxisValueFormat:A,customDataLabelFormatter:h?.dataLabelFormatter})}function Uv(a,t){let e=a.series.values.find(s=>s.id===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.id===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.id===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function jf(a,t){return a.series.values.find(e=>e.id===`${t}_${ji.Outliers}`)}function kw(a,t){return(a??re.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function XH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=oa(i),h=i.series[r],[c,u]=e,d=new wr;return d.hoverable=!0,l||(Xc({element:d.columns.template,customSelectionTheme:s}),Hf({chart:t,element:d.columns.template,queryObject:n,errorStrings:o})),d.id=h.id,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),_A(d,h.name),Wc(d),d}function YC(a){let{axisList:t=[],chartConfig:e,seriesIndex:i,type:r,selectionTheme:s}=a,n=e.series[i],[o,l]=t,h=new Aa;return h.hoverable=!0,h.id=`${n.id}_${r}`,o!==void 0&&(h.xAxis=o),l!==void 0&&(h.yAxis=l),h.noRisers=!0,h.simplifiedProcessing=!0,Xc({element:h.segments.template,customSelectionTheme:s}),h.hiddenInLegend=!0,Wc(h),h}function zH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=i.series[r],h=oa(i),[c,u]=e,d=new Ti;Jn(d.uid,{isBoxPlotOutliersSeries:!0}),d.id=`${l.id}_${ji.Outliers}`,c!==void 0&&(d.xAxis=c),u!==void 0&&(d.yAxis=u),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let A=Bw({chart:t,lineSeries:d});return h||(Xc({element:A,customSelectionTheme:s}),Hf({chart:t,element:A,queryObject:n,errorStrings:o})),Wc(d),d}function CA(a){let{chartConfig:t,seriesConfig:e,meanLineSeries:i,candleStickSeries:r,topStepLineSeries:s,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:l,creation:h=!1,rotationChanged:c,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:d}=a,{x:A,y:p}=e,f=h||c===!0||d===!0,m=f||u===!0,g=f,y=f;if(t!==void 0){let{showOutliers:x,standardizeValues:w,showMean:S}=t,T=xn({config:t});if(i instanceof Ti&&y){let P=kt(t.series),Q=e?.query?.where,G=Zi({y:P===ke.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:P,splitBy:Q,showOutliers:x,standardizeValues:pd(P)?w:!1,key:Yt.Average});T?(i.dataFields.valueX=G,i.dataFields.categoryY=A):(i.dataFields.valueY=G,i.dataFields.categoryX=A),i.dataFields.customValue=Q}let F=hg(t),L=kt(F.series),$=S===!0?void 0:e?.query?.where,I={y:L===ke.BoxPlotMultiFieldsAndCategory?p:void 0,chartSubType:L,splitBy:$,showOutliers:x,standardizeValues:pd(L)?w:!1};if(m){if(r instanceof wr){let P=Zi({...I,key:Yt.Min}),Q=Zi({...I,key:Yt.FirstQuartile}),G=Zi({...I,key:Yt.Max}),Y=Zi({...I,key:Yt.ThirdQuartile});T?(r.dataFields.lowValueX=P,r.dataFields.openValueX=Q,r.dataFields.highValueX=G,r.dataFields.valueX=Y,r.dataFields.categoryY=A):(r.dataFields.lowValueY=P,r.dataFields.openValueY=Q,r.dataFields.highValueY=G,r.dataFields.valueY=Y,r.dataFields.categoryX=A),r.dataFields.customValue=$}if(s instanceof Aa&&n instanceof Aa&&o instanceof Aa){let P=Zi({key:Yt.Max,...I}),Q=Zi({key:Yt.Median,...I}),G=Zi({key:Yt.Min,...I});T?(s.dataFields.valueX=P,n.dataFields.valueX=Q,o.dataFields.valueX=G,s.dataFields.categoryY=A,n.dataFields.categoryY=A,o.dataFields.categoryY=A):(s.dataFields.valueY=P,n.dataFields.valueY=Q,o.dataFields.valueY=G,s.dataFields.categoryX=A,n.dataFields.categoryX=A,o.dataFields.categoryX=A),s.dataFields.customValue=$,o.dataFields.customValue=$,n.dataFields.customValue=$}}if(l instanceof Ti&&g){let P=Zi({...I,key:Yt.Outlier});T?(l.dataFields.valueX=P,l.dataFields.categoryY=A):(l.dataFields.valueY=P,l.dataFields.categoryX=A),l.dataFields.customValue=$,l.invalidateRawData()}let U=i?.chart??r?.chart;U!==void 0&&(m||y)&&U.invalidateRawData()}}function GH(a){let{chart:t,axisList:e=[],chartConfig:i,seriesIndex:r,selectionTheme:s,queryObject:n,errorStrings:o}=a,l=i.series[r],[h,c]=e,u=new Ti;Jn(u.uid,{isBoxPlotMeanLineSeries:!0}),u.id=l.id,h!==void 0&&(u.xAxis=h),c!==void 0&&(u.yAxis=c),u.simplifiedProcessing=!0;let d=Bw({chart:t,lineSeries:u});return Xc({element:d,customSelectionTheme:s}),Hf({chart:t,element:d,queryObject:n,errorStrings:o}),Wc(u),rH(u),CA({chartConfig:i,seriesConfig:l,meanLineSeries:u,creation:!0}),u}function YH(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries){let n=XH(a),o=YC({...a,type:ji.Top}),l=YC({...a,type:ji.Median}),h=YC({...a,type:ji.Bottom}),c=zH(a);tH(n),iH(c,n),CA({chartConfig:t,seriesConfig:i,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:l,bottomStepLineSeries:h,outliersSeries:c,creation:!0}),s.push(n,o,l,h,c)}else if(r===V.LineSeries){let n=GH(a);s.push(n)}return s}function KH(a){let{candleStickSeries:t,seriesConfig:e,stylingInfo:i,chartSubType:r,colorMatch:s,rendererType:n}=a;if(i!==void 0){let o={...i},l=s1({data:t.chart.data,colorMatch:s,chartSubType:r,rendererType:n});i?.outline!==void 0&&l&&(o.outline.stroke=Nc(re.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t.chart,t.id);if(h!==void 0&&c!==void 0&&u!==void 0&&o.outline!==void 0){o.outline.strokeWidth=re.boxPlot.boxPlotLineWidth,fA(h,o.outline),fA(c,o.outline),fA(u,o.outline);let d=e.visible!==!1;Ui(h,d),Ui(c,d),Ui(u,d)}}}function ZH(a){let{candleStickSeries:t,seriesConfig:e,showOutliers:i,seriesSymbol:r}=a;if(r!==void 0){let s=jf(t.chart,t.id);if(s!==void 0){let n=zr(s);if(n!==void 0){let o=kw(i,e.visible),l={type:Rt.SMS,style:YA.Circle,color:r.color,size:re.boxPlot.boxPlotOutliersSize};n.clones.each(h=>{let c=t.dataItems.values.find(u=>(u.categories.categoryX??u.categories.categoryY)===(h.dataItem?.categories.categoryX??h.dataItem?.categories.categoryY))?.column?.fill;Cv({element:h,markerSymbol:{...l,color:RI(c)??l.color},visible:o})})}}}}function qH(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,showMean:o,rendererType:l}=a,h,c,u,d=new Set,A=!1,p=e.fillSymbol??zm(i);if(t.columns.length===0?(u=du({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:new Ee,colorMatch:n,isChartFillSymbol:!0}),h=u.symbolWithColorInfo,c=u.stylingInfo):t.columns.each(f=>{u=du({seriesConfig:e,seriesIndex:i,seriesSymbol:p,element:f,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:on({dataItem:f.dataItem?.dataContext,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:l})}),h=u.symbolWithColorInfo,c=u.stylingInfo,d.add(JSON.stringify(h))}),A=d.size>1,r>1){let f=t.legendDataItem?.marker.children.getIndex(0);f!==void 0?gA({element:f,stylingInfo:c}):t.chart.legend.events.once(Ie.Validated,()=>{gA({element:t.legendDataItem?.marker.children.getIndex(0),stylingInfo:c}),t.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:A,seriesSymbol:h,stylingInfo:c}}function JH(a){let{series:t,showOutliers:e,colorMatch:i,seriesIndex:r,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:l,queryObject:h}=a,c=ve(t.chart.uid,"config"),u=oa(c),d=c?.series.length??0,A=kt(c?.series),p=!1,f;if(t instanceof wr&&o.type===V.BoxPlotSeries){let m=qH({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:d,chartSubType:A,colorMatch:i,showMean:u,rendererType:l}),{stylingInfo:g}=m;({multipleSymbolsForOneSeries:p,seriesSymbol:f}=m),n.set(s.get(o.id)??r,p?void 0:{fillSymbol:f??o.fillSymbol}),KH({candleStickSeries:t,seriesConfig:o,colorMatch:i,stylingInfo:g,chartSubType:A,rendererType:l}),ZH({candleStickSeries:t,seriesConfig:o,showOutliers:e,seriesSymbol:f})}else t instanceof Ti&&o.type===V.LineSeries&&L1({series:t,seriesConfig:o,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesIndex:r,colorMatch:i,rendererType:l});n.size===d&&nn({data:n,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)})}function e2(a){let{numberOfSeries:t,chart:e,showMean:i}=a,r=xn({chart:e}),s=r?e.yAxes.getIndex(0)?.renderer:e.xAxes.getIndex(0)?.renderer;if(s!==void 0){let{cellStartLocation:n,cellEndLocation:o}=s,l=n/(i===!0?1:t),h=e.series.values.filter(c=>c instanceof wr);h.forEach((c,u)=>{let d=n+u/h.length*(o-n)+l,A=n+(u+1)/h.length*(o-n)-l,{topStepLineSeries:p,medianStepLineSeries:f,bottomStepLineSeries:m}=Uv(e,c.id);p!==void 0&&(p.startLocation=d,p.endLocation=A),f!==void 0&&(f.startLocation=d,f.endLocation=A),m!==void 0&&(m.startLocation=d,m.endLocation=A);let g=jf(e,c.id);if(g!==void 0){let y=(d+A)/2;r?g.dataItems.template.locations.categoryY=y:g.dataItems.template.locations.categoryX=y}})}}function t2(a){let{outliersSeries:t,chartData:e,dataWasUpdated:i,rotationChanged:r,seriesReordered:s,seriesWereReinitialized:n}=a;(r||i||s||n)&&(t.data=e?.outliers??[])}function i2(a){let{meanLineSeries:t,chartData:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesReordered:n,seriesWereReinitialized:o}=a;(i||s||r||n||o)&&(t.data=e?.meanLines??[],t.invalidateData())}function r2(a){let{chart:t,chartConfig:e,seriesConfig:i,chartData:r,candleStickSeriesId:s,showOutliers:n,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,seriesWereReinitialized:d}=a,A=jf(t,s);if(A!==void 0){let p=zr(A);if(p!==void 0){let f=kw(n,i.visible);p.disabled=!f,t2({outliersSeries:A,chartData:r,dataWasUpdated:o,rotationChanged:l,seriesReordered:h,seriesWereReinitialized:d})}CA({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:u,rotationChanged:l,outliersSeries:A})}}function s2(a){let{meanLineSeries:t,seriesConfig:e,chartData:i,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o,chartConfig:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c}=a;_A(t,e?.name),CA({chartConfig:l,seriesConfig:e,meanLineSeries:t,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,rotationChanged:o}),i2({meanLineSeries:t,chartData:i,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o})}function a2(a){let{series:t,chartConfig:e,seriesConfig:i,rotationChanged:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n}=a;_A(t,i?.name),t.hiddenInLegend=oa(e),CA({chartConfig:e,seriesConfig:i,candleStickSeries:t,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:r})}function n2(a){let{chart:t,chartConfig:e,seriesConfig:i,candleStickSeriesId:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o}=a,l=i.visible!==!1,{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u}=Uv(t,r);h!==void 0&&Ui(h,l),c!==void 0&&Ui(c,l),u!==void 0&&Ui(u,l),CA({chartConfig:e,seriesConfig:i,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:u})}function o2(a){let{chart:t,series:e,chartData:i,utilsStrings:r,dataWasUpdated:s,sortChanged:n,seriesReordered:o,fieldList:l,outliersVisibilityChanged:h,showMean:c,seriesConfig:u,showOutliers:d,standardizeValuesVisibilityChanged:A,rotationChanged:p,seriesWereReinitialized:f,options:m,queryObject:g}=a,{tooltipFormatter:y}=m??{};e2({numberOfSeries:a.numberOfSeries,chart:t,showMean:c});let x=ve(t.uid,"config");if(x!==void 0){if(e instanceof wr&&u.type===V.BoxPlotSeries){let{id:w}=e;a2({series:e,chartConfig:x,seriesConfig:u,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A}),n2({chart:t,chartConfig:x,seriesConfig:u,candleStickSeriesId:w,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,rotationChanged:p}),r2({chart:t,chartConfig:x,seriesConfig:u,chartData:i,showOutliers:d,candleStickSeriesId:w,dataWasUpdated:s,rotationChanged:p,seriesReordered:o,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A,seriesWereReinitialized:f})}else e instanceof Ti&&u.type===V.LineSeries&&s2({chartConfig:x,chartData:i,meanLineSeries:e,seriesConfig:u,dataWasUpdated:s,seriesReordered:o,sortChanged:n,rotationChanged:p,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:A});Ev({styleCallback:()=>JH(a),series:e,seriesConfig:u}),nH({series:e,seriesConfig:u,fieldList:l,tooltipFormatter:y,utilsStrings:r,queryObject:g})}}function l2(a){let t=a.series.getIndex(0);if(t!==void 0){let e=!1;t.slices.each(i=>{i.isActive&&(e=!0),Zn({element:i,selected:!1,backToDefaultState:!0})}),e&&a.feedLegend()}}function h2(a,t=!0){let e;a.series.each((i,r)=>{if(!t||i.visible){e=Iv(i,r);let s=[];if(e===V.BarSeries)s=i.columns?.values;else if(e===V.LineSeries)s=zr(i)?.clones?.values;else if(e===V.BoxPlotSeries){if(i instanceof wr)s.push(...i.columns.values);else if(i instanceof Aa)s.push(...i.segments.values);else if(i instanceof Ti){let n=zr(i)?.clones?.values;n!==void 0&&s.push(...n)}}s!==void 0&&s.forEach(n=>{Zn({element:n,selected:!1,backToDefaultState:!0})})}})}function wA(a){let{chart:t,selectionSource:e,clearOnlyVisibleSeries:i,disposeStyleAndSelection:r}=a,s=ve(t.uid,"currentSelectionDataItems");r!==!1&&d1(t,"updateSelectionCallbackDisposer"),ai(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),wn(t)&&(t instanceof Vt?h2(t,i??!0):t instanceof qi&&l2(t)),s&&Vu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.htmlContainer})}function u2(a){vx(),lx(a.htmlContainer),wA({chart:a})}function c2(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>e!==V.BoxPlotSeries||!i&&r instanceof wr||i&&sa(r.uid,"isBoxPlotMeanLineSeries")).every(r=>sa(r.uid,"isSelectionApplied")===!0)}function d2(a){a.series.each(t=>Jn(t.uid,{isSelectionApplied:void 0}))}function I1(a,t){let e=ve(a.uid,"actionMode");if((e===Ut.MonoSelection||e===Ut.None)&&t.length>1)wA({chart:a});else{let i=a instanceof qi;t.forEach(r=>{Zn({element:r,useNativeState:i,selected:!0})})}}function A2(a){let{chart:t,chartConfig:e,series:i,options:r,elementsToApplySelectionTo:s,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,queryObject:c}=a,u=ze(e.series),d=kt(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series),y=i instanceof Qr?i.dataFields?.customValue??"":"";return s.forEach(x=>{if(!(x instanceof Go)){let w=x.dataItem?.dataContext;if(w!==void 0&&(u===V.BoxPlotSeries&&w[re.boxPlot.boxPlotOutlierId]!==!0||d===ke.BarAndLineMultiFields)&&(w=th({dataContext:w,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)})),kv({elementDataContext:w,options:r,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:h,chartType:u,splitBy:y,chartSubType:d,showOutliers:A}))if(p.push(x),x.dataItem!==void 0&&f.push(x.dataItem.index),x?.dataItem instanceof Wa&&w!==void 0)m.push(w);else{let S=new Set;u===V.PieSeries&&ih(w)?(Qf({groupOfSlicesDataContext:w})??[]).forEach(T=>{n.forEach(F=>{ww({layerOidField:o,sliceDataContext:T,selectionDataContext:F,xAxisField:l})&&S.add(T)})}):S.add(w),Array.from(S)?.forEach(T=>{let F=th({dataContext:T,yAxisField:h,yList:g,xAxisField:l,splitBy:y,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)});F!==void 0&&m.push(F)})}else Zn({element:x,useNativeState:t instanceof qi,selected:!1})}}),I1(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function p2(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=ve(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=kt(n?.series);return t.series.each((c,u)=>{if(n&&c.visible){let d=n.series[0].x,A=xu(c),p=c instanceof Qr?c.dataFields?.customValue??"":"",f=Iv(c,u),m=e.get(u);if(m!==void 0){let g;if(c instanceof Xi?g=c.columns:c instanceof ws?g=c.slices:g=zr(c)?.clones,g!==void 0){let{indexesToSelect:y}=m;g.each((x,w)=>{if(x&&(y===void 0||y.includes(w))){let S;f===V.BoxPlotSeries&&x.dataItem instanceof Wa?S=x.dataItem.dataContext:x.dataItem instanceof Go||(S=th({dataContext:x.dataItem?.dataContext,yList:l,yAxisField:A,xAxisField:d,splitBy:p,chartType:f,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)})),S!==void 0&&r.push(S),s.push(x)}else Zn({element:x,useNativeState:t instanceof qi,selected:!1})})}}}}),I1(t,s),r}function f2(a){let{series:t,chartType:e,showMean:i}=a,r;switch(e){case V.ComboLineAndBarSeries:if(t instanceof Xi)r=t.columns.values;else if(t instanceof Ti){let s=zr(t);s!==void 0&&(r=s.clones.values)}break;case V.BarSeries:t instanceof Xi&&(r=t.columns.values);break;case V.LineSeries:if(t instanceof Ti){let s=zr(t);s!==void 0&&(r=s.clones.values)}break;case V.PieSeries:r=t.slices.values;break;case V.BoxPlotSeries:if(t.chart instanceof Vt){if(t instanceof wr&&i!==!0){r=[...t.columns.values];let s=jf(t.chart,t.id);if(s!==void 0&&s.visible){let n=zr(s);n!==void 0&&r.push(...n.clones.values)}}else if(i===!0&&t instanceof Ti&&sa(t.uid,"isBoxPlotMeanLineSeries")){let s=zr(t);s!==void 0&&(r=s.clones.values)}}break}return r}function m2(a){let{series:t,seriesIndex:e,queryObject:i,options:r,dataWasUpdated:s,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:l,yAxisField:h,rotationChanged:c}=a,{filterBySelection:u,selectionData:d,returnSelectionIndexes:A,returnSelectionOIDs:p}=r??{},{selectionIndexes:f}=d??{},{chart:m}=t,g=ve(m.uid,"config"),y=bs(i),x=Eo(g),w=oa(g),S=ze(g?.series);if(u!==!0&&g!==void 0){let T=f2({series:t,chartType:S,showMean:w}),F=kt(g?.series),L=$s(i),$=xh(L).idField,I=ve(m.uid,"currentSelectionDataItems"),U=!1,P=!1,Q,G=!1;if(T?.[0]!==void 0){if(r?.viewExtentUpdated!==!0){Q=r?.selectionData?.selectionItems??I;let Y=ve(m.uid,"currentSelectionIndexes");G=Sx({itemsA:Q,itemsB:I,isPieFromFields:F===ke.PieFromFields,x:g.series[0].x});let ee=f?.keys.length!==Y?.keys.length||!rn(f,Y);U=n===!0||s===!0||o===!0||c===!0||Q!==void 0&&G;let te=!0;if(f!==void 0&&f.size>0){let{indexesToSelect:le}=f.get(e??0)??{};te=le!==void 0&&le[0]===void 0}P=s===!0||o===!0||c===!0||!te&&ee}if(U&&Q!==void 0&&Q.length>0){let{selectedIndexes:Y,newSelectionDataItems:ee}=A2({chart:m,chartConfig:g,options:r,series:t,elementsToApplySelectionTo:T,selectionDataItems:Q,layerOidField:$,xAxisField:l,yAxisField:h}),te=ve(m.uid,"computedSelectionDataItems")??[];if(te.push(...ee),g.series.length>1&&F!==ke.BarAndLineNoAggregation&&F!==ke.BarAndLineSplitByNoAggregation&&(te=ap({data:te,x:g.series[0].x,splitByField:Dn(g.series[0].query?.where)})),ai(m.uid,{computedSelectionDataItems:te}),A===!0){let le=Array.from(new Set(Y)),z=ve(m.uid,"computedSelectionIndexes");z===void 0&&(z=new Map),le.length===T.length?z.set(e??0,{}):z.set(e??0,{indexesToSelect:le}),ai(m.uid,{computedSelectionIndexes:z})}}else if(f!==void 0&&P)Q=p2({chart:m,selectionIndexes:f,queryObject:i});else{let Y=Q===void 0||Q.length===0,ee=t instanceof Qr?t.dataFields?.customValue??"":"",te=le=>{let z=le.dataItem?.dataContext;return z!==void 0&&S===V.BoxPlotSeries&&z[re.boxPlot.boxPlotOutlierId]!==!0&&(z=th({dataContext:z,yAxisField:h,yList:Mo(g.series),xAxisField:l,splitBy:ee,chartType:S,chartSubType:F,showOutliers:x,isFeatureCollectionLayer:Oo(i)})),kv({elementDataContext:z,options:r,selectionDataItems:Q??I??[],layerOidField:$,xAxisField:l,yAxisField:h,chartType:S,splitBy:ee,chartSubType:F,showOutliers:x})};T.forEach(le=>{let z=le.isActive||te(le);Zn({element:le,selected:z,useNativeState:m instanceof qi,backToDefaultState:Y})})}}if(Jn(t.uid,{isSelectionApplied:!0}),c2({chart:m,chartType:S,showMean:w})&&(d2(m),G||P)){let Y=ve(m.uid,"computedSelectionDataItems")??Q;Y=Array.from(new Set(Y?.map(te=>JSON.stringify(te)))).map(te=>JSON.parse(te)),Q!==void 0&&ai(m.uid,{currentSelectionDataItems:Y}),d?.selectionOIDs!==void 0&&ai(m.uid,{currentSelectionOIDs:d.selectionOIDs});let ee;if(A===!0&&(ee=ve(m.uid,"computedSelectionIndexes")??f,ee!==void 0&&ai(m.uid,{currentSelectionIndexes:ee})),Y===void 0||Y.length===0)wA({chart:m,selectionSource:Tr.ProgrammaticSelection});else{let te={selectionItems:Y,selectionSource:Tr.ProgrammaticSelection};A===!0&&(te.selectionIndexes=ee),p!==!1&&(te.selectionOIDs=d?.selectionOIDs??ve(m.uid,"currentSelectionOIDs")),y&&(te.selectionPixelTarget=sg({chartConfig:g,layer:i,selectionDataItems:Y})),Vu({data:te,htmlContainer:m.htmlContainer})}ai(m.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}function g2(a){let{chart:t,chartConfig:e}=a;for(let i=0;i<t.series.length;i+=1){let r=t.series.getIndex(i);if(r){let s=Uf(r,e);if(s){let n=ze([s]);if(n===V.BoxPlotSeries&&(r=t.series.values.find(o=>o.id===s.id)),r!==void 0){let o=s.x,l=n===V.BoxPlotSeries?s.y.toString():xu(r);RQ({callbackProps:{...a,series:r,seriesIndex:i,xAxisField:o,yAxisField:l},series:r,seriesConfig:s})}}}}}async function Wf(a){let{chart:t,listSelectedElements:e,selectionSource:i,queryObject:r,errorStrings:s}=a,n=ve(t.uid,"options"),o=ve(t.uid,"config"),l=bs(r);if(o)if(e.length===0)wA({chart:t,selectionSource:i,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{d1(t,"updateSelectionCallbackDisposer");let h=Eo(o),c=[],u=[],d=[],A=new Map,{xAxisField:p}=e[0]??{},f=ze(o?.series),m=kt(o?.series),g=Mo(o?.series??[]),y=_a(r).find(w=>w.name===p)?.type;if(e.forEach(w=>{let{elementDataContext:S,yAxisField:T,splitBy:F}=w,L=th({dataContext:S,yAxisField:T,yList:g,xAxisField:p,splitBy:F,chartType:f,chartSubType:m,showOutliers:h,isFeatureCollectionLayer:Oo(r)});L!==void 0&&u.push(L);let{seriesIndex:$,elementIndex:I}=w;if(I!==void 0){let U=A.get($)?.indexesToSelect??[];U.push(I),A.set($,{indexesToSelect:Array.from(new Set(U))})}if(!l&&S!==void 0){let U=S[Ou.uniqueIdsName]!==void 0?[S[Ou.uniqueIdsName]].flat():[];if(U.length>0)d.push(...U);else if(n?.returnSelectionOIDs!==!1){let P=Fx({dataContext:S,options:n,xAxisField:p,yAxisField:T??"",splitBy:F,xAxisFieldType:y,chartConfig:o,queryObject:r});c.push(P)}}}),!l&&n?.returnSelectionOIDs!==!1&&c.length>0){let w={...ve(t.uid,"queryConfig")};delete w.groupByFieldsForStatistics,delete w.orderByFields,delete w.outStatistics;let S=await r1({whereList:c,queryObject:r,queryConfig:w,errorStrings:s});if(c.length===e.length)d=S;else for(let T=0;T<S.length;T+=1)d.push(S[T])}o.series.length>1&&m!==ke.BarAndLineNoAggregation&&m!==ke.BarAndLineSplitByNoAggregation&&(u=ap({data:u,x:o.series[0].x,splitByField:Dn(o.series[0].query?.where)})),ai(t.uid,{currentSelectionDataItems:u,currentSelectionOIDs:d,currentSelectionIndexes:A});let x={selectionItems:u,selectionSource:i};n?.returnSelectionIndexes===!0&&(x.selectionIndexes=A),n?.returnSelectionOIDs!==!1&&(x.selectionOIDs=d),l&&(x.selectionPixelTarget=sg({chartConfig:o,layer:r,selectionDataItems:u})),Vu({data:x,htmlContainer:t.htmlContainer})}catch(h){ai(t.uid,{pendingSelectionQueries:!1});let{httpStatus:c}=h instanceof Tl?h.details.details:h.details??{};if(c===429)u2(t);else throw h}ai(t.uid,{pendingSelectionQueries:!1})}function y2(a){let{axis:t}=a,e=t.chart;return{axis:t,chart:e}}async function v2(a,t,e){let i=a.target,{axis:r,chart:s}=y2(i),n=[],{seriesDataItems:o}=a.target.dataItem;Object.keys(o).forEach(d=>{if(Object.hasOwn(o,d)){let A=o[d];for(let p of A)if(p instanceof Bs)n.push(p.column);else{let f=p.sprites.find(m=>!(m instanceof Mi));f!==void 0&&n.push(f)}}});let l=Mv(a,s),h=r instanceof Ct||r instanceof Ot,c=[],u=ve(s.uid,"config");if(u){let d=u.series[0].x??"";s.series.each((A,p)=>{let f;if(A instanceof Xi?f=A.columns:f=zr(A)?.clones,A.visible){let m=xu(A),g=A.dataFields?.customValue??"";f?.each((y,x)=>{let w=n.includes(y);Zn({element:y,selected:w,multiSelect:l,isDateOrCategoryAxis:h})&&c.push({element:y,elementDataContext:y.dataItem?.dataContext,yAxisField:m,xAxisField:d,splitBy:g,seriesIndex:p,elementIndex:x,chartConfig:u})})}}),await Wf({chart:s,listSelectedElements:c,selectionSource:Tr.SelectionByClick,queryObject:t,errorStrings:e})}}function b2(a){let{axis:t,queryObject:e,errorStrings:i}=a;if(wn(t.renderer.labels.template)){t.renderer.labels.template.events.on(Ie.Hit,async s=>{t.renderer.labels.template.events.isEnabled(Ie.Hit)&&await v2(s,e,i)});let r=ve(t.chart.uid,"filterBySelection")===!0?si.default:si.pointer;iw(t,r)}}function Bv(a,t){if(wn(a?.renderer?.labels?.template)&&(a instanceof Ot||a instanceof Ct))if(t)a.renderer.labels.template.events.disableType(Ie.Hit),iw(a,si.default);else{a.renderer.labels.template.events.enableType(Ie.Hit);let e=ve(a.chart.uid,"filterBySelection")===!0?si.default:si.pointer;iw(a,e)}}var gr={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function mu(a){let{chart:t,label:e,labelType:i}=a,r=Number.NaN;switch(i){case Wt.GuideLabel:!(t instanceof Ys)&&t instanceof Vt&&(e.rotation===90||e.rotation===270?r=t.seriesContainer.measuredHeight:r=t.seriesContainer.measuredWidth);break;case Wt.XAxisTitle:t instanceof Vt&&(r=t.seriesContainer.measuredWidth);break;case Wt.YAxisTitle:t instanceof Vt&&(r=t.seriesContainer.measuredHeight);break;case Wt.ChartTitle:case Wt.ChartSubTitle:case Wt.ChartFooter:r=t.measuredWidth-20;break}r>0&&(e.maxWidth=r,t.invalidateLabels(),t instanceof Vt&&(t.xAxes.getIndex(0)?.invalidateLabels(),t.xAxes.getIndex(1)?.invalidateLabels(),t.yAxes.getIndex(0)?.invalidateLabels(),t.yAxes.getIndex(1)?.invalidateLabels()))}function Vf(a){let{chart:t,labelType:e}=a;mu(a);let i=e===Wt.YAxisTitle?1:0,r=Is(()=>mu(a),re.debounceTime);t.events.on(Ie.Validated,r,i),(e===Wt.YAxisTitle||e===Wt.XAxisTitle)&&t instanceof Vt&&t.seriesContainer.events.on(Ie.SizeChanged,r,i)}function Sv(a,t){a.events.on(Ie.Validated,Is(()=>{t.visible=a.measuredWidth!==0},re.debounceTime))}function x2(a,t){a.chart instanceof Ys||(t.adapter.add("dx",e=>{let i=e;return(t.rotation===90||t.rotation===270)&&(i=t.bbox.height,t.dataItem.value!==t.dataItem.endValue&&(i/=2)),i}),t.padding(0,10,0,10))}function _2(a,t){let e=a.renderer instanceof Hl?new Vn:new Ko;return e.disabled=!0,e.axis=a,$v(e),fu(e.uid,{isGuide:t}),Vf({chart:a.chart,label:e,labelType:Wt.GuideLabel}),x2(a,e),e}function C2(a){let{label:t,labelConfig:e,guideType:i}=a,r=t.axis.renderer instanceof ar,s;t instanceof Vn||(r?i===Rt.SFS?s=re.verticalSurfaceGuideLabels:s=re.verticalLineGuideLabels:i===Rt.SFS?s=re.horizontalSurfaceGuideLabels:s=re.horizontalLineGuideLabels);let n={...e};n.content.rightToLeft=t.axis.rtl,_n({label:t,labelConfig:n,defaults:s}),t.axis.invalidateLabels()}function w2(a,t,e){let i=e.chart;a.axisFill.tooltip=new fo,a.axisFill.interactionsEnabled=!0,a.axisFill.tooltipPosition=re.guideTooltipPosition,a.axisFill.tooltip.label.wrap=!0,a.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(re.tooltipWidth,i.seriesContainer.maxWidth)),a.axisFill.tooltip.boundingContainer=i.chartAndLegendContainer,a.axisFill.adapter.add("tooltipHTML",(r,s)=>{let n=r,{dataItem:o,axis:l}=s;if(!(l.renderer instanceof Hl)){let h=Ns(l.uid,"guideTooltipFormatter");if(h!==void 0){let c="",u;o instanceof vo?(c=o.value,u=o.endValue):o instanceof Jo?(c=o.category,u=o.endCategory):o instanceof Uh&&(c=o.date,u=o.endDate),n=h({guideName:o.id??"",start:c,end:u,guideIndex:t})}}return n}),a.axisFill.tooltip.events.on(Ie.Shown,r=>{let s=ve(a.axisFill.axis.chart.uid,"config");if(s!==void 0){let n=ve(a.axisFill.axis.chart.uid,"isRotated"),o=Xf(a.axisFill.axis.renderer,n)?0:1,l=s.axes?.[o]?.guides,{tooltipReverseColor:h}=l?.[t]??{};y1(r.target,h)}})}function B2(a,t){return e=>{let{guideName:i,start:r,end:s,guideIndex:n}=e,{chart:o}=a,l="";if(o!==void 0){let h=ve(o.uid,"config"),c=ve(o.uid,"isRotated"),u=Xf(a.renderer,c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=s;if(a instanceof Ct){let y=new un,x;if(o!==void 0){let w=ve(a.chart.uid,"formatLocale");y=fl({type:V.DateAxisFormat,iLocale:o.language.locale,formatLocale:w}),x=h?.axes?.[0]?.valueFormat?.intlOptions}A=y.format(r,x),s!==void 0&&(p=y.format(s,x))}else if(a instanceof Qe&&!(r instanceof Date)&&!(s instanceof Date)){let{start:y,end:x}=$w(a,d?.[n]);Number.isFinite(y)&&(A=y),Number.isFinite(x)&&(p=x);let w=Ns(a.uid,"numberFormatter")??(S=>new Rl().format(S));A=w(A),p!==void 0&&(p=w(p))}else a instanceof Ot&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Uc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=Ra(o.rtl);l=`${i}${g} ${l}`}return l}}function S2(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;Ds(t.uid,{guideTooltipFormatter:e??B2(t,i)})}function F2(a){let t=$u.Value;return a instanceof Ct?t=$u.Date:a instanceof Ot&&(t=$u.Category),t}function eI(a){let{inputValue:t,axisType:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(e){case $u.Date:s=t instanceof Date?t:new Date(t);break;case $u.Category:s=t.toString();break;case $u.Value:if(typeof t!="number"){let n=t.toString().trim(),o=ip(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function $w(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=F2(a),n=a instanceof Qe?a.min:void 0,o=a instanceof Qe?a.max:void 0,l=eI({inputValue:e,axisType:s,axisMin:n,axisMax:o}),h=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?eI({inputValue:i,axisType:s,axisMin:n,axisMax:o}):l;r={isValidGuide:l!=null&&h!=null,start:l,end:h}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function T2(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ms(o.label?.uid,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function en(a,t){return a.axisRanges?.values?.filter(e=>{let i=ms(e.label?.uid,"isGuide")??!1,r=ms(e.label?.uid,"isGaugeAxisLabel")??!1,s=!1;switch(t){case gr.Ticks:s=i===!1;break;case gr.Guides:s=i===!0;break;case gr.GaugeTicksWithLabels:s=r===!0&&e.value!==void 0;break;case gr.GaugeFirstAndLastGuides:s=i===!0&&(e.id===re.gaugeFirstLabelId||e.id===re.gaugeLastLabelId);break}return s})??[]}function P2(a,t){let e=a.axisRanges.length;{let r=a.axisRanges.values.findIndex(s=>s.id===re.gaugeFirstLabelId);r!==-1&&(e=r)}let i;return a instanceof Ot?i=new Jo:a instanceof Ct?i=new Uh:i=new vo,a.axisRanges.insertIndex(e,i),i.label=_2(a,t),i.axisFill.fillOpacity=1,i.axisFill.disabled=!0,i.grid.strokeOpacity=1,i}function D2(a,t){let e=P2(a,!0);w2(e,t,a),e.tick!==void 0&&(e.tick.disabled=!0),e.label!==void 0&&(e.label.inside=!0),e.grid!==void 0&&(e.grid.disabled=!0)}function L2(a,t){let{start:e,end:i}=t,r=ve(a.uid,"config"),s=lg(r),n=e!==null?e:void 0;n=a.data.find(l=>l[re.originalCategoryValue]===e)?.[s]??n;let o=i!==null?i:void 0;if(o!==void 0)for(let l=a.data.length-1;l>=0;l-=1){let h=a.data[l];if(h[re.originalCategoryValue]===i){o=h[s];break}}return{modifiedStart:n,modifiedEnd:o}}function I2(a,t){let{start:e,end:i}=t;if(e!==void 0){let{chart:r}=a?.component??{},s;if(a instanceof Jo&&r instanceof Vt&&ve(r.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=L2(r,t);s={isValidGuide:!0,start:n??e,end:o??i}}else s=$w(a.axisFill.axis,t);s.isValidGuide&&(a instanceof Jo?(a.category=`${s.start?.toString()}`,a.endCategory=`${s.end?.toString()}`):a instanceof Uh?(a.date=s.start,a.endDate=s.end):(a.value=s.start,a.endValue=s.end))}}function k2(a,t){a.axisFill.above=t??re.guideAbove,a.grid.above=t??re.guideAbove}function $2(a,t){let{axisFill:e,label:i}=a;if(t!==void 0){if(a.id=t.name,a.visible=t.visible!==void 0?t.visible:a.visible,I2(a,t),t.style.type===Rt.SLS?Mf({element:e,fillSymbol:{type:Rt.SFS,color:t.style?.color,outline:t.style},visible:t.visible}):t.style.type===Rt.SFS&&Mf({element:e,fillSymbol:t.style,visible:t.visible}),k2(a,t.above),t.label!==void 0){let s={type:V.Text,visible:t.visible,content:t.label};C2({label:i,labelConfig:s,guideType:t.style.type})}let r=a.component?.chart;r!==void 0&&mu({chart:r,label:i,labelType:Wt.GuideLabel})}else e.disabled=!0,i.disabled=!0}function O2(a,t){let e=en(a,gr.Guides).length,i=t?.length??e;for(let r=e;r<i;r+=1)D2(a,r)}function E2(a){let{axis:t,guides:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){for(let s=0;s<e.length;s+=1){let n=en(t,gr.Guides)[s];n!==void 0&&$2(n,e[s])}S2({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function M2(a,t){let e=en(a,gr.Guides).length,i=t?.length??0,r=e-i;T2({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function R2(a){let{axis:t,guides:e}=a;O2(t,e),E2(a),M2(t,e)}function U2(a){let{axis:t,labels:e,restoreLabelsVisibility:i=!0}=a;(e??t.renderer.labels.values).forEach(r=>{r.x instanceof et?r.x.value:r.x,i&&Ui(r,!0)})}function k1(a){let t=a.renderer.labels.values.filter(e=>ms(e.uid,"isGuide")!==!0&&e.measuredWidth>0).length;return a.pixelWidth/t}function V2(a){let{target:t}=a;if((ve(t.chart.uid,"config")?.horizontalAxisLabelsBehavior??tr.Rotate)===tr.Wrap){let e=Number.MAX_SAFE_INTEGER;t.renderer.labels.each(r=>{ms(r.uid,"isGuide")!==!0&&r.measuredWidth>0&&(e=Math.min(e,r.bbox.width))});let i=t instanceof Ct?t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapModeForDateAxis:t.pixelWidth/re.maxNumberOfXAxisLabelsInWrapMode;t.renderer.minGridDistance=Math.max(e+1,i)}}function N2(a){let{axis:t,labelsConfig:e,horizontalAxisLabelsBehavior:i,isSecondValueAxis:r,tickSpacing:s}=a,n=t.renderer.minGridDistance;if(typeof s=="number"&&Number.isFinite(s))n=s;else if(t.renderer instanceof Hl)n=re.gauge.gaugeMinGridDistance;else if(t instanceof Qe)n=t.renderer instanceof ar?re.xAxisMinGridDistance:re.yAxisMinGridDistance;else if(t.renderer instanceof ar)if(r===!0)n=re.secondRotatedValueAxisMinGridDistance;else if(i===void 0||i===tr.Rotate){let o=e.content.font?.size??re.generalFontSize,l=t instanceof Ot?re.categoryAxisLabelPadding:re.axisLabelPadding;n=o*l}else if(i===tr.Wrap){let o=Is(V2,re.debounceTime);Ds(t.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),t.events.on(Ie.SizeChanged,o),t.dispatchImmediately(Ie.SizeChanged)}else i===tr.Stagger?n=re.staggerMinGridDistance:n=t instanceof Ot?re.xCategoryAxisMinGridDistance:re.xAxisMinGridDistance;else n=t instanceof Ot?re.yCategoryAxisMinGridDistance:re.yAxisMinGridDistance;t.renderer.minGridDistance=n}function Q2(a){let t=a.renderer.labels.template;wn(t)&&(t.adapter.add("rotation",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.angle??e:e),t.adapter.add("verticalCenter",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.verticalCenter??e:e),t.adapter.add("horizontalCenter",(e,i)=>ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.horizontalCenter??e:e),t.adapter.add("dy",(e,i)=>{let r=re.axisLabel.dy??e??0;return i.dataItem?.tick?.length>re.axisTickLength?r=e??0:r=Number(ms(i.uid,"isGuide")!==!0?Ns(a.uid,"labelsSymbol")?.yOffset??r:r),r}))}function H2(a){let{target:t}=a;if(t.chart!==void 0){let e=ve(t.chart.uid,"config")?.axes?.[0].labels;if((e?.visible??!0)&&e!==void 0&&t.renderer.labels.length>1){let i=0;t.renderer.labels.each(n=>{if(ms(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>i&&(i=o)}});let r=Ns(t.uid,"labelsSymbol")?.angle??0,s=k1(t)>=i+5;if(!s&&r===0||s&&r===re.rotatedAxisLabel.rotation){let n=s?_v(e.content,t.rtl,re.axisLabel):_v({type:Rt.TS},t.rtl,re.rotatedAxisLabel);Ds(t.uid,{labelsSymbol:n}),t.renderer.invalidateLabels()}}}}function j2(a,t=1){let{target:e}=a,i=k1(e);Number.isFinite(i)&&(e.renderer.labels.template.maxWidth=Math.min(i*t,e.renderer.minGridDistance))}function W2(a){let{target:t}=a;if(ve(t.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let e=0;t.dataItems.each(i=>{let{label:r,itemIndex:s}=i;ms(r.uid,"isGuide")!==!0&&r.currentText!==void 0&&r.measuredWidth>0&&s%2===0&&r.bbox.height>e&&(e=r.bbox.height)}),t.dataItems.each(i=>{let{tick:r,label:s,itemIndex:n}=i;if(ms(s.uid,"isGuide")!==!0&&s.currentText!==void 0&&s.measuredWidth>0){let o=n%2===1;r.length=o?e+5:re.axisTickLength,r.dataItem.label.dy=re.axisLabel.dy+(o?e:0)}}),e!==void 0&&(t.renderer.labels.template.paddingBottom=e+5),t.validate()}}function X2(a){let{chart:t}=a;a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let e=Ns(a.uid,"debouncedAxisLabelRotationCallback");if(e!==void 0&&(a.events.off(Ie.Validated,e),Ds(a.uid,{debouncedAxisLabelRotationCallback:void 0})),t!==void 0){let i=ve(t.uid,"config")?.axes?.[0].labels;if(i!==void 0){let r=_v(i.content,t.rtl,re.axisLabel),s=a.renderer.labels.template;s.rotation=r.angle,s.verticalCenter=r.verticalCenter,s.horizontalCenter=r.horizontalCenter,Number.isFinite(r.yOffset)&&(s.dy=r.yOffset)}Ds(a.uid,{labelsSymbol:void 0})}}function $1(a){a.renderer.labels.template.wrap=!1,a.renderer.labels.template.textAlign="start"}function z2(a){$1(a),a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let t=Ns(a.uid,"debouncedAxisLabelWrapCallback");t!==void 0&&(a.events.off(Ie.DataRangeChanged,t),Ds(a.uid,{debouncedAxisLabelWrapCallback:void 0}))}function G2(a){$1(a);let t=Ns(a.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");t!==void 0&&(a.events.off(Ie.SizeChanged,t),Ds(a.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function Y2(a){let t=Ns(a.uid,"debouncedAxisLabelStaggerCallback");t!==void 0&&(a.events.off(Ie.DataRangeChanged,t),Ds(a.uid,{debouncedAxisLabelStaggerCallback:void 0})),a.renderer.ticks.each(e=>{e.length=re.axisTickLength,e.dataItem?.label&&(e.dataItem.label.dy=re.axisLabel.dy??0)})}function K2(a){X2(a),z2(a),Y2(a)}function tI(a){Q2(a),a.renderer.labels.template.paddingLeft=0,a.renderer.labels.template.paddingRight=0,a.renderer.labels.template.maxWidth=Number.NaN;let t=Is(H2,re.debounceTime,{leading:!0});Ds(a.uid,{debouncedAxisLabelRotationCallback:t}),a.events.on(Ie.Validated,t),a.dispatchImmediately(Ie.Validated)}function iI(a,t=1){a.renderer.labels.template.wrap=!0,a.renderer.labels.template.paddingLeft=.5,a.renderer.labels.template.paddingRight=.5,a.renderer.labels.template.textAlign="middle";let e=Is(i=>j2(i,t),re.debounceTime);Ds(a.uid,{debouncedAxisLabelWrapCallback:e}),a.events.on(Ie.DataRangeChanged,e)}function Z2(a){a.renderer.labels.template.maxWidth=re.yAxisLabelMaxWidth,a.renderer.labels.template.wrap=!0,a.renderer.labels.template.textAlign="end"}function q2(a){let t=Is(W2,re.debounceTime);Ds(a.uid,{debouncedAxisLabelStaggerCallback:t}),a.events.on(Ie.DataRangeChanged,t)}function J2(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,labelsConfig:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a;if(t.renderer instanceof ar&&s?.[0]!==!1){if(K2(t),n!==!0)switch(e){case tr.Hide:break;case tr.Stagger:q2(t),iI(t,1.5);break;case tr.Wrap:iI(t);break;case tr.Rotate:tI(t);break;default:r.content.angle!==null&&r.content.angle===void 0&&tI(t);break}}else t.renderer instanceof Cr&&(i!==tr.Hide?Z2(t):G2(t))}function ej(a){let{axis:t,axisConfig:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a,o=t.renderer.labels.template;o.axis=t;let{labels:l}=e,h=t.renderer instanceof ar&&o.rotation===re.rotatedAxisLabel.rotation,c=l,u;h?(c.content.angle=void 0,c.content.horizontalAlignment=void 0,c.content.verticalAlignment=void 0,c.content.yoffset=void 0,u=re.rotatedAxisLabel):t.renderer instanceof ar&&(i===tr.Stagger||i===tr.Wrap)&&(u={wrap:!0,dy:re.axisLabel.dy}),t.renderer instanceof Cr&&r!==tr.Hide&&(u={wrap:!0}),_n({label:o,labelConfig:c,defaults:u}),t.renderer.labels.template.paddingTop=t.renderer instanceof ar?0:re.axisLabel.dy,o.align="none",o.valign="none",J2({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelsConfig:l,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}),o.axis.invalidateLabels()}function Ow(a){return(a??ex())===$i.Side}function O1(a,t){let e,i,r=sw(a,"bullets"),s=sw(a,"columns"),n=Ow(t);return n&&r!==void 0?(e=r,i=s):n||(e=s,i=r),{labelToRender:e,labelToHide:i}}function tj(a,t=!0){a.hideOversized=t}function ij(a,t){let e,i,r=ml(re.dataLabelInitialize);fu(r.uid,{isDataLabel:!0}),a.bullets.push(r);let s=ml(re.dataLabelInitialize,a.columns.template);return fu(s.uid,{isDataLabel:!0}),aw(s,a),aw(r,a),a.events.on(Ie.Validated,Is(()=>{Ef(s)&&s.clones.each(n=>{Ef(n)&&n.validate()})},re.debounceTime)),s.html="{valueX}",r.html="{valueX}",h1(r),Ow(t)?(e=r,i=s):(e=s,i=r),n1(V.BarSeries,r),o1(V.BarSeries,e),{newLabelToRender:e,newLabelToHide:i}}function rj(a){let{series:t,stackedType:e,isRotated:i,hideOversizedStackedLabels:r,hideOversizedSideBySideLabels:s}=a,{labelToRender:n,labelToHide:o}=O1(t,e);if(n===void 0){let{newLabelToRender:c,newLabelToHide:u}=ij(t,e);n=c,o=u}let l=re.dataLabel,h=!0;Ow(e)?(l=i===!0?re.dataLabelRotated:re.dataLabel,h=s===!0):(l=i===!0?re.dataLabelStackedRotated:re.dataLabelStackedNonRotated,h=r!==!1),tj(n,h),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",u1({...a,dataLabel:n,labelDefaults:l,defaultDataLabelFormatter:l1})}function sj(a){let t=a.tooltip;t!==void 0&&!(a instanceof Ct)&&(t.label.adapter.add("html",(e,i)=>{let r=e??"";return a instanceof Qe?r=GI(a,i.properties?.text??e??""):a instanceof Ot&&(r=YI({axis:a,defaultOutput:e??"",dataItem:t.dataItem})),Zr(r)}),t.label.html=re.htmlEmptyContent)}function aj(a){let t=a.title,e=98;if(a.renderer instanceof Cr)t.adapter.add("y",i=>{let r=t.parent?.measuredHeight??0;return r>0?r/2:i},e);else if(a.renderer instanceof ar)if(a.renderer.opposite){let i=a.title;i.adapter.add("rotation",()=>0,e),i.adapter.add("y",()=>{let r=i.measuredHeight;return r>0?r/2:0},e)}else t.adapter.add("x",i=>{let r=t.parent?.measuredWidth??0;return r>0?r/2:i},e)}function nw(a){let{axis:t,start:e,end:i}=a;t.zoom({start:e??0,end:i??1})}function rI(a){a!==void 0&&(a.start=0,a.end=1)}function Vv(a){a!==void 0&&(a.xAxes!==void 0&&a.xAxes.each(t=>nw({axis:t})),a.yAxes!==void 0&&a.yAxes.each(t=>nw({axis:t})),rI(a.scrollbarX),rI(a.scrollbarY),Ui(a.zoomOutButton,!1))}function Xf(a,t){return a instanceof ar&&t!==!0||a instanceof Cr&&t===!0}function nj(a){wn(a.labels.template)&&(a.labels.template.events.on(Ie.Over,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??1)*e}),a.labels.template.events.on(Ie.Out,t=>{let{axisLabelOveredOpacity:e}=re;t.target.fillOpacity=(t.target.fillOpacity??.5)/e}))}function oj(a){let{axis:t,valueFormat:e,axisRenderer:i,queryObject:r,errorStrings:s}=a;i.grid.template.applyOnClones=!0,i.ticks.template.applyOnClones=!0,i.labels.template.applyOnClones=!0,i.hoverable=!0,i.line.strokeOpacity=1,i.grid.template.strokeOpacity=1,i.ticks.template.strokeOpacity=1,$v(i.labels.template,re.axisLabel),i.ticks.template.disabled=!1,i.labels.template.disabled=!0,sj(t),ud(e)&&(nj(i),b2({axis:t,queryObject:r,errorStrings:s})),Sv(t.chart,t.title),Vf({chart:t.chart,label:t.title,labelType:t.renderer instanceof ar?Wt.XAxisTitle:Wt.YAxisTitle}),aj(t),t.renderer instanceof ar&&(t.events.on(Ie.SizeChanged,Is(()=>{mu({chart:t.chart,label:t.title,labelType:Wt.XAxisTitle})},re.debounceTime)),t.events.on(Ie.Validated,Is(()=>{U2({axis:t,restoreLabelsVisibility:!0})},re.debounceTime)))}function lj(a){let t=a.target,e=ve(t.chart.uid,"isRotated"),i=[];if(t instanceof Qe){if(t.renderer instanceof Hl)i.push({isXAxis:!0,minimum:t.min,maximum:t.max});else if(t.renderer instanceof(e!==!0?Cr:ar)){t.maxZoomFactor=1;let r=a.target,s=r.chart,n=e!==!0?s.xAxes.getIndex(0):s.yAxes.getIndex(0),o=s.yAxes.getIndex(1)??s.xAxes.getIndex(1);i=[{isXAxis:!1,minimum:r.min,maximum:r.max},{isXAxis:!0,minimum:n instanceof Qe?n.min:void 0,maximum:n instanceof Qe?n.max:void 0}],o instanceof Qe&&i.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}i.length>0&&i.every(r=>!Number.isNaN(r.minimum)&&!Number.isNaN(r.maximum))&&hx(i,t.chart.htmlContainer)}}function hj(a){a.events.on(Ie.Validated,Is(lj,re.debounceTime))}function uj(a){let{axis:t,isNonAggregatedChart:e}=a,i,r,s,n=t.dataItems.values,o=t.axisRanges.values;if(t instanceof Ot)for(let l=0;l<o.length;l+=1){i=!1,r=!1,s=!1;let h=o[l],{category:c,endCategory:u,axisFill:d,grid:A,label:p}=h;if(h instanceof Jo&&h.visible)for(let f=0;f<n.length;f+=1){let m;e===!0?m=no({value:n[f].category,dataContext:n[f].dataContext}):m=n[f].category.toString(),c===m&&(r=!0),u===m&&(s=!0)}r&&s&&(i=!0),Ui(d,i),Ui(A,i),Ui(p,i)}}function sI(a){let{axis:t,axisMinimum:e,axisMaximum:i}=a,r;if(t instanceof Qe&&i!==void 0&&e!==void 0){let s=t.axisRanges.values,n=ve(t.chart.uid,"config"),o=ve(t.chart.uid,"isRotated"),l=Xf(t.renderer,o)?0:1,h=n?.axes?.[l]?.guides;for(let c=0;c<s.length;c+=1){let u=s[c],{value:d,endValue:A,axisFill:p,grid:f,label:m}=u;if(ms(m?.uid,"isGuide")===!0){if(r=u.visible,r&&u instanceof vo){let{start:g,end:y}=$w(t,h?.[c]),x=Math.min(d,A,g??d,y??A),w=Math.max(d,A,g??d,y??A);x<e&&w<e||x>i&&w>i?r=!1:(u.value=x<e?e:x,u.endValue=w>i?i:w)}Ui(p,r),Ui(f,r),Ui(m,r)}}}}function cj(a){a instanceof Qe?(a.adapter.add("min",t=>(sI({axis:a,axisMinimum:t,axisMaximum:a.max}),t)),a.adapter.add("max",t=>(sI({axis:a,axisMinimum:a.min,axisMaximum:t}),t))):a instanceof Ot&&a.events.on(Ie.Validated,()=>{let t=ve(a.chart.uid,"isNonAggregatedChart");uj({axis:a,isNonAggregatedChart:t})})}function Of(a){let{axes:t,isSecondValueAxis:e=!1,isXAxis:i,valueFormat:r,chartType:s,queryObject:n,errorStrings:o}=a,l;if(Zm({isXAxis:i,chartType:s,valueFormat:r})&&!e)l=t.push(new Ot);else if(ro(r))l=t.push(new Ct);else if(ba(r)){l=t.push(new Qe);let h=ve(l.chart.uid,"formatLocale");l.numberFormatter=fl({type:V.NumberAxisFormat,iLocale:l.chart.language.locale,formatLocale:h}),l.numberFormatter.numberFormat="#",e?(l.renderer.opposite=!0,l.renderer.grid.template.disabled=!0):hj(l)}l!==void 0&&(nQ(l),oj({axis:l,valueFormat:r,axisRenderer:l.renderer,queryObject:n,errorStrings:o}),cj(l))}function E1(a){let{chart:t,axesConfig:e,isRotated:i,chartType:r,queryObject:s,errorStrings:n}=a;ai(t.uid,{isRotated:i===!0});let o=i===!0?e?.[1]:e?.[0],l=i===!0?e?.[0]:e?.[1],h=o?.valueFormat,c=l?.valueFormat;h!==void 0&&c!==void 0&&(t.xAxes.clear(),t.yAxes.clear(),Of({chartType:r,isXAxis:i!==!0,axes:t.xAxes,valueFormat:h,queryObject:s,errorStrings:n}),Of({chartType:r,isXAxis:i===!0,axes:t.yAxes,valueFormat:c,queryObject:s,errorStrings:n}),e?.[2]!==void 0&&Of({chartType:r,isXAxis:i===!0,axes:i===!0?t.xAxes:t.yAxes,valueFormat:e[2].valueFormat,isSecondValueAxis:!0,queryObject:s,errorStrings:n}))}function dj(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=ve(t.chart.uid,"config"),s=e===!0&&dg({chartConfig:r,chartData:t.chart.data,axisConfigIndex:i});(t instanceof Ct||t instanceof Qe)&&(t.logarithmic=s,t.treatZeroAs=s?re.treatZeroValueAs:0)}function Aj(a,t){let{minimum:e,maximum:i,isLogarithmic:r}=t??{},{buffer:s}=t??{};return s??=re.buffer,a instanceof Qe&&!(a instanceof Ct)&&!s&&(r!==!0||i!=null||e!=null)}function pj(a,t){let e=!1;return a instanceof Qe&&!(a instanceof Ct)&&(e=Aj(a,t),a.strictMinMax=e),e}function fj(a){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=a,s=e?.minimum,n=e?.maximum,o=e?.isLogarithmic??!1,l=s,h=n,{chart:c}=t,u=ve(c.uid,"isRotated"),d=ve(c.uid,"config"),A=0;if(c instanceof Vt&&d!==void 0){let p=ks(d),f=Xf(t.renderer,u),m=OQ(c),g=cg({chartConfig:d,isSecondValueAxis:r,seriesIds:m}),y=Tx({chartConfig:d,chartData:c.data,filteredSeriesIds:g});if(p===$i.Stacked100)l=Number.NaN,h=Number.NaN;else{let{minX:x,maxX:w,minY:S,maxY:T}=y,[F,L]=f?[x??Number.NaN,w??Number.NaN]:[S,T];A=F,i===V.BarSeries||i===V.ComboLineAndBarSeries||i===V.LineSeries&&p===$i.Stacked&&!f?(l=Math.min(F,0),h=Math.max(L,0)):(l=F,h=L)}l=s??l,h=n??h}return o&&l!==void 0&&l!==null&&l<=0&&(l=dQ(A)),{min:l,max:h}}function M1(a){let{axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r}=a,{minimum:s,maximum:n,isLogarithmic:o}=e??{};if(t instanceof Qe||t instanceof Ct)if(pj(t,e)){let l=s,h=n;if(KI({minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o})){let c=fj({axis:t,axisConfig:e,chartType:i,isSecondValueAxis:r});l=c.min,h=c.max}l=l??Number.NaN,h=h??Number.NaN,Number.isNaN(l)||Number.isNaN(h)||l<h?(t.min=l,t.max=h):(t.min=Number.NaN,t.max=Number.NaN),i===V.GaugeSeries&&t.validate()}else t.min=Number.NaN,t.max=Number.NaN}function mj(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i}=a;if(t instanceof Ct){let{size:r,unit:s}=e??{};if(s||({size:r,unit:s}=i??{}),r&&s!==void 0){let n;switch(s){case er.Second:n="second";break;case er.Minute:n="minute";break;case er.Hour:n="hour";break;case er.Day:n="day";break;case er.Week:n="week";break;case er.Month:n="month";break;case er.Year:n="year";break}n!==void 0&&(t.baseInterval={timeUnit:n,count:r})}}}function gj(a,t){a instanceof Qe&&(a.renderer.baseGrid.disabled=t!==!0)}function yj(a,t){a.cursorTooltipEnabled=t===!0}function vj(a,t){let e=a.renderer instanceof ar;a.events.once(Ie.Validated,()=>{let i=a.renderer instanceof Cr?re.yAxisTitleLabel:re.xAxisTitleLabel;e&&(i={...i,dy:i.dy??0}),_n({label:a.title,labelConfig:t,defaults:i}),mu({chart:a.chart,label:a.title,labelType:a.renderer instanceof ar?Wt.XAxisTitle:Wt.YAxisTitle})})}function bj(a,t){let e=!0;return t===V.BoxPlotSeries&&(e=a instanceof wr),e}function R1(a){let t=Is(()=>{let{chart:e}=a,i=ve(e.uid,"config");if(e!==void 0&&i!==void 0){let r=ze(i?.series);if(bj(a,r)){let s=ve(e.uid,"isRotated"),n=ks(i);n===$i.Stacked100&&!a.visible&&Ui(a,!1);let o=e.xAxes.getIndex(0),l=e.yAxes.getIndex(0),h=e.yAxes.getIndex(1),c=s===!0?1:0,u=i.axes?.[c],d=s===!0?0:1,A=i.axes?.[d],p=i.axes?.[2];[{axis:o,axisConfig:u,updateLabels:!1},{axis:l,axisConfig:A,updateLabels:!0},{axis:h,axisConfig:p,updateLabels:!0,isSecondValueAxis:!0}].forEach(f=>{let{axis:m,axisConfig:g,updateLabels:y,isSecondValueAxis:x}=f;m!==void 0&&(M1({axis:m,chartType:r,axisConfig:g,isSecondValueAxis:x}),y!==void 0&&m.events.once(Ie.Validated,()=>{let{labelToRender:w}=O1(a,n);w&&(w.html=s===!0?"{valueX}":"{valueY}")}))})}}},re.debounceTime);a.events.once(Ie.Validated,t)}function xj(a,t){if(a instanceof Qe){let{integerOnlyValues:e,valueFormat:i}=t,r=Dx(i)?i.intlOptions.maximumFractionDigits:void 0;a.maxPrecision=e===!0||r===0?0:Number.NaN}}function vv(a){let{axis:t,axisConfig:e,axisConfigIndex:i,timeIntervalInfo:r,chartType:s,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,guideTooltipFormatter:h,stackedType:c,axisValueFormatter:u,isSecondValueAxis:d,isRotated:A,isTimeOnlyField:p,setTimeZone:f,outTimeZone:m,utilsStrings:g,errorStrings:y}=a,{visible:x,isLogarithmic:w,title:S,grid:T,lineSymbol:F,labels:L,guides:$,valueFormat:I,displayZeroLine:U,displayCursorTooltip:P,tickSpacing:Q,dateBaseInterval:G}=e;mj({axis:t,timeIntervalInfo:r,dateBaseInterval:G}),Vc({element:t.renderer.grid.template,lineSymbol:T,visible:x}),Vc({element:t.renderer.line,lineSymbol:{color:[...re.color],...F??KA()},visible:x}),Vc({element:t.renderer.ticks.template,lineSymbol:F,visible:x}),ej({axis:t,axisConfig:e,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,isSecondValueAxis:d}),xj(t,e),N2({axis:t,labelsConfig:L,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:Q}),cQ({axis:t,isXAxis:Xf(t.renderer,A),chartType:s,labelsTextSymbol:e.labels.content,formatOptions:I,overridePercentMultiplication:c===$i.Stacked100,axisValueFormatter:u,isTimeOnlyField:p,setTimeZone:f,outTimeZone:m,errorStrings:y}),M1({axis:t,axisConfig:e,chartType:s,isSecondValueAxis:d}),dj({axis:t,isLogarithmic:w,axisConfigIndex:i}),vj(t,S),yj(t,P),d!==!0&&(R2({axis:t,guides:$,guideTooltipFormatter:h,utilsStrings:g}),gj(t,U))}function _j(a){let{chart:t,rotationChanged:e,isRotated:i,dualAxisChanged:r,timeIntervalInfoWasReset:s,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:l,yAxisLabelFormatter:h,secondaryYAxisLabelFormatter:c,options:u,utilsStrings:d,errorStrings:A,queryObject:p}=a,{axisLabelsBehaviorChanged:f}=a,m=ve(t.uid,"config"),g=m.axes,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x}=m,w=ze(m.series),S=ks(m),T=ve(t.uid,"fieldList")?.some(de=>de.name===m.series[0].x&&de.type===GA.TimeOnly)??!1,F=ep({chartConfig:m,queryObject:p,options:u}),L=bh(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,$=i===!0?1:0,I=i===!0?0:1,U=g?.[$],P=g?.[I],Q=t.xAxes.getIndex(0);U1({chart:t,dualAxisChanged:r,rotationChanged:e,timeIntervalInfoWasReset:s,axisLabelsBehaviorChanged:f})&&(E1({chart:t,axesConfig:g,isRotated:i,chartType:w,queryObject:p,errorStrings:A}),f=[!0,!0]),Q=t.xAxes.getIndex(0);let G=t.yAxes.getIndex(0),Y=t.xAxes.getIndex(1)??t.yAxes.getIndex(1),ee=Q?.start,te=Q?.end,le=G?.start,z=G?.end,K=Y?.start,we=Y?.end,se={timeIntervalInfo:n,chartType:w,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:f,guideTooltipFormatter:o,stackedType:S,isRotated:i,setTimeZone:F,outTimeZone:L,utilsStrings:d,errorStrings:A};Q!==void 0&&U!==void 0&&vv({...se,axis:Q,axisConfig:U,axisConfigIndex:$,axisValueFormatter:$===0?l:h,isTimeOnlyField:T}),G!==void 0&&P!==void 0&&vv({...se,axis:G,axisConfig:P,axisConfigIndex:I,axisValueFormatter:I===1?h:l,isTimeOnlyField:T}),Y!==void 0&&g?.[2]!==void 0&&vv({...se,axis:Y,axisConfig:g[2],axisConfigIndex:2,axisValueFormatter:c,isSecondValueAxis:!0,isTimeOnlyField:T}),e===!0&&[{axis:Q,start:ee,end:te},{axis:G,start:le,end:z},{axis:Y,start:K,end:we}].forEach(de=>{let{axis:$e,start:Ye,end:He}=de;$e!==void 0&&$e.events.once(Ie.Validated,()=>{nw({axis:$e,start:Ye,end:He})})}),Q!==void 0&&Q.ghostLabel.setPropertyValue("disabled",!0),G!==void 0&&G.ghostLabel.setPropertyValue("disabled",!0),Y!==void 0&&Y.ghostLabel.setPropertyValue("disabled",!0)}function U1(a){let{chart:t,dualAxisChanged:e,rotationChanged:i,timeIntervalInfoWasReset:r,axisLabelsBehaviorChanged:s}=a,n=ve(t.uid,"config"),{rotated:o,series:l}=n,h=n.axes,c=ze(l),u=o===!0?1:0,d=o===!0?0:1,A=h?.[u]?.valueFormat,p=h?.[d]?.valueFormat,f=t.xAxes.getIndex(0),m=t.yAxes.getIndex(0),g=f===void 0||i||A!==void 0&&tw({axis:f,valueFormat:A,chartType:c}),y=m===void 0||i||p!==void 0&&tw({axis:m,valueFormat:p,chartType:c});return e===!0||i===!0||r===!0||s?.[0]||s?.[1]||g||y}function Cj(a){E1(a)}function wj(a){let{chart:t,chartConfig:e,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,options:A,utilsStrings:p,errorStrings:f,queryObject:m}=a,g=ks(e);_j({chart:t,rotationChanged:i,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:h,xAxisLabelFormatter:c,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:d,options:A,utilsStrings:p,errorStrings:f,queryObject:m});let y=s===!0?t.yAxes.getIndex(0):t.xAxes.getIndex(0);if(y!==void 0){y instanceof Ot&&(y.dataFields.category=lg(e));let S=y.renderer,T=S.grid.template;T.location=0,S.cellStartLocation=.1,S.cellEndLocation=.9;let F=e.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending,L=s===!0;F&&y instanceof Ct&&(L=!L),S.inversed=L}let x=s===!0?t.xAxes.getIndex(0):t.yAxes.getIndex(0),w=s===!0?t.xAxes.getIndex(1):t.yAxes.getIndex(1);g===$i.Stacked100?(x instanceof Qe&&(x.calculateTotals=!0),w instanceof Qe&&(w.calculateTotals=!0)):(x instanceof Qe&&(x.calculateTotals=!1),w instanceof Qe&&(w.calculateTotals=!1))}function Nf(a){let{value:t,axisMin:e,axisMax:i}=a,r=Number.NaN,s=i-e;return s!==0&&(r=(t-e)/s),r}function ow(a){return a!=null&&a!==0}function V1(a){let{minimum:t,maximum:e,labelsIncrement:i,minimumValueConversion:r,maximumValueConversion:s}=a,n=t??pt.gauge.axisMinimum,o=e??pt.gauge.axisMaximum;n=px(n,r),o=px(o,s);let l=ow(i),h=ow(i)?i:Math.abs(o-n)/pt.gauge.numberOfLabelIntervals,c=l?Math.round(Math.abs(o-n)/h):pt.gauge.numberOfLabelIntervals;if(l)if(c>pt.gauge.maximumNumberOfLabelIntervals)h=Math.abs(o-n),c=1;else{let u=n+c*h;u<o?(c+=1,o=n+c*h):u>o&&(o=u)}return{min:n,max:o,labelsIncrement:h,numberOfIntervals:c}}function N1(a){let{axisConfig:t,axisMin:e,axisMax:i}=a;typeof e=="number"&&typeof i=="number"&&i-e!==0&&t.guides?.forEach(r=>{let{start:s,end:n}=r;typeof s=="number"&&(r.start=Nf({value:s,axisMin:e,axisMax:i})),typeof n=="number"&&(r.end=Nf({value:n,axisMin:e,axisMax:i}))})}function Bj(a){let{featureIndex:t,chartData:e,chartConfig:i}=a,{minimumFromField:r,maximumFromField:s}=i?.axes?.[0]??{},n,o;if(t>=0&&t<e.length){let l=e[t];typeof r=="string"&&!zi(r)&&Number.isFinite(l[r])&&(n=l[r]),typeof s=="string"&&!zi(s)&&Number.isFinite(l[s])&&(o=l[s])}return{minimumFromData:n,maximumFromData:o}}function Sj(a){let{featureIndex:t,chartData:e,x:i}=a,r=Number.NaN;if(t>=0&&t<e.length){let s=e[t];i!==void 0&&!zi(i)&&Number.isFinite(s[i])&&(r=s[i])}return r}function Ew(a){let{featureIndex:t=0,chartData:e,queryConfig:i,chartConfig:r,gaugeMinMaxFromData:s}=a,{axes:n,series:o}=r,l=Hu(r),{minimum:h,maximum:c}=n?.[0]??{},{x:u}=o?.[0]??{},d=pt.gauge,A,p;l?{minimumFromData:A,maximumFromData:p}=Bj({featureIndex:t,chartData:e,chartConfig:r}):i!==void 0&&({minimumFromData:A,maximumFromData:p}=s);let f=A??h??d.axisMinimum,m=p??c??d.axisMaximum,g=Sj({chartData:e,featureIndex:t,x:u});return{minimum:f,maximum:m,dataValue:g}}function Fj(a){let{oldConfig:t,axisMax:e,min:i,max:r,labelsIncrement:s,numberOfIntervals:n,valueFormat:o,minimumFromField:l}=a,h=Mu(o),c=!0;if(t!==void 0){let{minimum:u,minimumFromField:d,labelsIncrement:A,valueFormat:p}=t.axes[0],f=p?.intlOptions?.style!==o?.intlOptions?.style,m=ow(A)?A!==s:n!==pt.gauge.numberOfLabelIntervals;c=f||i!==u||l!==d||!h&&r!==e||m}return c}var Ps={InnerLabel:0,InnerLabelSecondary:1,AxisLabels:2,FirstAndLastLabels:3};function Au(a,t){let e;switch(t){case Ps.InnerLabel:e="gaugeAutoResizeInnerLabelFirstDisposer";break;case Ps.InnerLabelSecondary:e="gaugeAutoResizeInnerLabelSecondDisposer";break;case Ps.AxisLabels:e="gaugeAutoResizeAxisLabelsDisposer";break;case Ps.FirstAndLastLabels:e="gaugeAutoResizeFirstAndLastLabelsDisposer";break}if(e!==void 0){let i=ve(a.uid,e);i!==void 0&&(i.dispose(),i=void 0,ai(a.uid,{[e]:void 0}))}}function Tj(a){let{chart:t,labelList:e,scaleToAdjust:i,fontSize:r,type:s,axisConfig:n}=a,o=Number.NaN,l=Number.NaN,h=i;if(s===Ps.InnerLabel){let u=e[0],d=n?.innerLabel?.content?.verticalAlignment??"middle",A=u.dy??0,p=Math.round(t.chartContainer.measuredHeight-t.radarContainer.pixelY-A),f=u.bbox.height*i,m=0;switch(d){case"bottom":m=f;break;case"top":m=-f;break;case"middle":case"baseline":m=f*.5;break}m>p&&(h=i*(p/m)),o=re.gauge.innerLabelAutoMinFontSize,l=re.gauge.innerLabelAutoMaxFontSize}else o=re.gauge.axisLabelAutoMinFontSize,l=re.gauge.axisLabelAutoMaxFontSize;let c=r*h;return c<o?h*=o/c:c>l&&(h*=l/c),h}function Mw(a){let{chart:t,type:e,labelList:i,currentScale:r,currentFontSize:s,axisConfig:n}=a,o=Number.NaN,l=Number.NaN;if(e===Ps.InnerLabel){let h=typeof t.innerRadius=="number"?t.innerRadius:t.innerRadius.value;l=(t.xAxes.getIndex(0)?.measuredWidth!==0?t.xAxes.getIndex(0)?.measuredWidth??1:1)*h}else l=t.xAxes.getIndex(0)?.measuredHeight??1;if(l>1){let h=e===Ps.InnerLabel?i[0]?.measuredWidth??0:i.find(c=>c.measuredWidth>0&&c.measuredHeight>0)?.measuredHeight??0;if(h>0){let c=h/l;if(c>0){let{axisLabelToInnerChartRatio:u,innerLabelToInnerChartRatio:d}=re.gauge,A=e===Ps.InnerLabel?d:u;o=r*(A/c),o=Tj({chart:t,labelList:i,axisConfig:n,scaleToAdjust:o,fontSize:s,type:e}),o=Number(o.toFixed(2))}}}return Number.isFinite(o)||(o=r),o}function Pj(a){return a?.labels.content.font?.size===void 0||a?.innerLabel?.visible!==!1&&a?.innerLabel?.content?.font?.size===void 0}function Nv(a){return a.some(t=>op(t)&&t.value!==void 0)}function Dj(a){let{chart:t,axisConfig:e,axis:i}=a;if(e.labels.content.font?.size===void 0&&e.onlyShowFirstAndLastLabels!==!0){Au(t,Ps.AxisLabels),Au(t,Ps.FirstAndLastLabels);let r=()=>{i.events.once(Ie.Validated,()=>{let n=en(i,gr.GaugeTicksWithLabels);if(Nv(n)){let o=n.map(d=>d.label),l=o[0].scale,h=o[0].fontSize,c=Mw({chart:t,type:Ps.AxisLabels,labelList:o,currentScale:l,currentFontSize:h,axisConfig:e}),u=c/l;Number.isFinite(c)&&c>0&&(u<=.98||u>1.02)&&o.forEach(d=>{d.scale=c})}}),i.validate()};t.events.once(Ie.Validated,r);let s=t.events.on(Ie.SizeChanged,r);ai(t.uid,{gaugeAutoResizeAxisLabelsDisposer:s}),r()}else{Au(t,Ps.AxisLabels);let r=en(i,gr.GaugeTicksWithLabels);r.length>0&&r.map(s=>s.label).forEach(s=>{s.scale=1})}}function Lj(a,t){let e=ve(a.uid,"config")?.axes?.[0];if(e?.innerLabel?.visible!==!1&&e?.innerLabel?.content?.font?.size===void 0){let i=a.xAxes.getIndex(0)?.measuredWidth;if(i!==void 0&&i>0){let r=Mw({chart:a,type:Ps.InnerLabel,labelList:[t],currentScale:t.scale,currentFontSize:t.fontSize,axisConfig:e});Number.isFinite(r)&&Math.abs(t.scale-r)>.25&&(t.scale=r,t.validate())}}else t.scale=1}function Ij(a,t){Au(a,Ps.InnerLabel),Au(a,Ps.InnerLabelSecondary);let e=a.xAxes.getIndex(0),i=()=>{e?.events.once(Ie.Validated,()=>{Lj(a,t)})},r=a.events.on(Ie.Validated,i),s=a.events.on(Ie.SizeChanged,i);ai(a.uid,{gaugeAutoResizeInnerLabelFirstDisposer:s,gaugeAutoResizeInnerLabelSecondDisposer:r}),i()}function lw(a){return a?.labels.content.font?.size===void 0&&a?.onlyShowFirstAndLastLabels===!0}function kj(a){let t=a.chart,e=ve(t.uid,"config")?.axes?.[0],i=en(a,gr.GaugeFirstAndLastGuides);if(Nv(i)){let r=i.map(l=>l.label),s=r[0].scale,n=r[0].fontSize,o=Mw({chart:t,type:Ps.FirstAndLastLabels,labelList:r,currentScale:s,currentFontSize:n,axisConfig:e});Number.isFinite(o)&&o>0&&r.forEach(l=>{fu(l.uid,{originalWidth:l.measuredWidth/l.scale,originalHeight:l.measuredHeight/l.scale}),l.scale=o,l.validate()})}}function $j(a){let{chart:t,axisConfig:e,axis:i}=a;if(lw(e)){Au(t,Ps.AxisLabels),Au(t,Ps.FirstAndLastLabels);let r=()=>{i.events.once(Ie.Validated,()=>{kj(i)})},s=t.events.on(Ie.SizeChanged,r);ai(t.uid,{gaugeAutoResizeFirstAndLastLabelsDisposer:s}),r()}else Au(t,Ps.FirstAndLastLabels),en(i,gr.GaugeFirstAndLastGuides).map(r=>r.label).forEach(r=>{r.scale=1})}function hw(a,t){let e=a.xAxes.getIndex(0);if(e!==void 0){let i=t??ve(a.uid,"config"),{onlyShowFirstAndLastLabels:r}=i?.axes?.[0]??{};if(!e.renderer.labels.template.visible||r===!0)a.radius=new et(re.gauge.radius);else{let s=en(e,gr.GaugeTicksWithLabels),{furthestLabelX:n,furthestLabelY:o}=s.reduce(({furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u},{label:d})=>{if(d?.visible&&d.bbox.width>0&&d.bbox.height>0){let A=d.pixelX,p=d.bbox.width*d.scale,f=0;A<0?f=Math.abs(A):f=A+p,f>c&&(c=f,l=d);let m=d.pixelY,g=d.bbox.height*d.scale,y=0;m<0?y=Math.abs(m):y=m+g,y>u&&(u=y,h=d)}return{furthestLabelX:l,furthestLabelY:h,furthestPixelX:c,furthestPixelY:u}},{furthestLabelX:void 0,furthestPixelX:0,furthestLabelY:void 0,furthestPixelY:0});if(n!==void 0&&o!==void 0){let l=(n.bbox.width+5)*n.scale,h=(o.bbox.height+5)*o.scale,c=typeof e.renderer.labels.template.radius=="number"?e.renderer.labels.template.radius:e.renderer.labels.template.radius.value,u=(l+c)*2+a.radarContainer.measuredWidth+mv(a.paddingLeft)+mv(a.paddingRight),d=80,A=170,p=a.htmlContainer?.clientHeight??0,f=Math.max(0,Math.min(1,(p-d)/(A-d))),m=a.radarContainer.measuredHeight+(h+c*f)*2+mv(a.paddingTop)+mv(a.paddingBottom),g=a.measuredWidth,y=a.measuredHeight,x=g/u,w=y/m,S=(typeof a.radius=="number"?a.radius:a.radius.value)*100,T=Number((S*x).toFixed(2)),F=Number((S*w).toFixed(2)),L=T/S,$=F/S,I=a.radarContainer.measuredWidth*L,U=a.radarContainer.measuredWidth*$,[P,Q]=I<U?[T,L]:[F,$];Number.isFinite(P)&&P>=10&&P<=re.gauge.radius&&(Q<.98||Q>1.02)&&(a.radius=new et(P))}}}}function Oj(a){let t=a.xAxes.getIndex(0);t!==void 0&&(t.events.on(Ie.SizeChanged,()=>hw(a)),t.events.on(Ie.Validated,Is(()=>hw(a),re.debounceTime)))}function Q1(a){let t=a.hands.push(new qd),e=re.gaugeNeedle,{startWidth:i,endWidth:r,innerRadius:s}=e;t.pin.disabled=!0,t.startWidth=i??Number.NaN,t.endWidth=r??Number.NaN,t.innerRadius=he(s??Number.NaN);let n=a.xAxes.getIndex(0);return n!==void 0&&(t.axis=n),t}function Ej(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,ai(i.uid,{gaugeData:o}))}else{let l=ve(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Mu(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function Mj(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=ve(a.uid,"config"),s=i.min??r?.axes?.[0].minimum??re.gauge.axisMinimum,n=i.max??r?.axes?.[0].maximum??re.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e}function Rj(a){let{chart:t,needle:e,gaugeValue:i}=a,r=t.hands.getIndex(0)??Q1(t);if(r!==void 0){Mf({element:r,fillSymbol:e?.symbol});let{startWidth:s,endWidth:n,innerRadius:o}=re.gaugeNeedle;r.value=Mj(t,i),r.pin.disabled=e?.displayPin!==!0,r.visible=e?.visible??!0,r.startWidth=e?.startWidth??s,r.endWidth=e?.endWidth??n,r.innerRadius=he(e?.innerRadius??o)}}function Uj(a){let t=ml(void 0,a.radarContainer);t.isMeasured=!1,fu(t.uid,{isGaugeAxisInnerLabel:!0}),Ij(a,t)}function Vj(a){let{chart:t,innerLabelConfig:e,valueFormat:i,gaugeValue:r,gaugeInnerLabelFormatter:s}=a,n=t.radarContainer.children.values.find(o=>ms(o.uid,"isGaugeAxisInnerLabel")===!0);if(n!==void 0){_n({label:n,labelConfig:e,defaults:re.gaugeInnerLabel});let o=ve(t.uid,"formatLocale");n.html=Zj({valueFormat:i,iLocale:t.language.locale,formatLocale:o,gaugeValue:r,innerLabelConfigContent:e?.content,gaugeInnerLabelFormatter:s}),t.radarContainer.invalidateLabels()}}function Nj(a){let t=a.axisRanges.create();return t.axisFill.fillOpacity=1,t.axisFill.disabled=!0,t.grid.strokeOpacity=1,t.grid.disabled=!1,t.tick.length=re.gaugeTicksLength,t}function Qj(a){let t=new Vn;return t.disabled=!0,t.axis=a,$v(t),t.padding(10,10,10,10),fu(t.uid,{isGaugeAxisLabel:!0}),t}function Hj(a){let{axis:t,min:e,max:i,labelsIncrement:r,numberOfIntervals:s,valueFormat:n}=a,o=Mu(n),l=1,h=en(t,gr.Ticks);h.length>0&&(l=h[0].label?.scale,h.forEach(d=>{if(op(d)){let A=t.axisRanges.values.indexOf(d);A>=0&&t.axisRanges.removeIndex(A)}}));let c=re.gauge.numberOfTicksBetweenTwoLabels+1,u=s*c+1;for(let d=0;d<u;d+=1){let A=d===u-1,p=Nj(t),f=A?i:e+d/c*r;p.value=o?Nf({value:f,axisMin:e,axisMax:i}):f,d%c===0&&(p.label=Qj(t),p.label.text=String(f),p.grid.disabled=!0,Number.isFinite(l)&&(p.label.scale=l))}}function jj(a){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,axisLabelConfigContent:s,axisValueFormatter:n}=a;if(!i){let o=en(e,gr.GaugeTicksWithLabels);if(Nv(o)){let l=ve(t.uid,"formatLocale");o.forEach(h=>{_n({label:h.label,labelConfig:s}),op(h)&&(h.label.html=H1({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:s?.content,itemLabelValue:h.value,axisValueFormatter:n}))})}}}function Wj(a,t){let e=t?.ticks?.visible??!0,i=en(a,gr.Ticks);for(let r=0;r<i.length;r+=1){let s=i[r];Ui(s.tick,e)}}function Xj(a,t){if(a instanceof Qe&&a.chart instanceof Ys){let e=en(a,gr.GaugeTicksWithLabels);if(Nv(e)){let{onlyShowFirstAndLastLabels:i,labels:r}=t,s=(r?.visible??!0)&&i!==!0;e.forEach(n=>{Ui(n.label,s)})}}}function zj(a){let{labels:t,guides:e,onlyShowFirstAndLastLabels:i}=a,r=e??[];if(i===!0){let s={type:V.Guide,start:Number.NaN,style:{type:"esriSLS"},name:""};r.push({...s,start:a.minimum??Number.NaN,name:re.gaugeFirstLabelId,label:{...t.content,text:`${a.minimum}`}},{...s,start:a.maximum??Number.NaN,name:re.gaugeLastLabelId,label:{...t.content,text:`${a.maximum}`}})}a.guides=r}function Gj(a){en(a,gr.GaugeFirstAndLastGuides).forEach(t=>{t.label.adapter.keys().includes("dx")||t.label.adapter.add("dx",e=>{let i=e;if(t.label.measuredWidth>0){let r=ve(a.chart.uid,"config")?.axes?.[0],s=ms(t.label.uid,"originalWidth"),n=lw(r)&&s!==void 0&&s===t.label.measuredWidth&&t.label.scale!==1;i=Math.round((n?s*t.label.scale:t.label.measuredWidth)/2),t.id===re.gaugeLastLabelId&&(i*=-1)}return i}),t.label.adapter.keys().includes("dy")||t.label.adapter.add("dy",e=>{let i=e;if(t.label.measuredHeight>0){let r=ve(a.chart.uid,"config")?.axes?.[0],s=ms(t.label.uid,"originalHeight"),n=lw(r)&&s!==void 0&&s===t.label.measuredHeight&&t.label.scale!==1;i=Math.round((n?s*t.label.scale:t.label.measuredHeight)/2)}return i})})}function Yj(a){let{chart:t,axis:e,onlyShowFirstAndLastLabels:i,valueFormat:r,gaugeLabelConfigContent:s,axisValueFormatter:n}=a;if(i){let o=en(e,gr.GaugeFirstAndLastGuides),l=ve(t.uid,"formatLocale");o.forEach(h=>{h?.label!==void 0&&op(h)&&(h.label.html=H1({valueFormat:r,iLocale:t.language.locale,formatLocale:l,gaugeLabelConfigContent:s?.content,itemLabelValue:h.value,axisValueFormatter:n}))}),Gj(e)}}function Kj(a){let{chart:t,valueFormat:e,queryObject:i,errorStrings:r}=a;t.xAxes.clear(),Of({isXAxis:!0,axes:t.xAxes,valueFormat:e,queryObject:i,errorStrings:r});let s=t.xAxes.getIndex(0);s instanceof Qe&&(s.renderer.labels.template.disabled=!0,s.renderer.ticks.template.disabled=!0,Q1(t),Uj(t),Oj(t),s.maxZoomFactor=1)}function Zj(a){let{valueFormat:t,iLocale:e,formatLocale:i,innerLabelConfigContent:r,gaugeValue:s,gaugeInnerLabelFormatter:n}=a,o="";if(Number.isFinite(s))if(n!==void 0)o=n(s);else{let l=$o(t),h=fl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${s}`),o=xa({textSymbol:{type:Rt.TS,...r,text:o},format:"html"}),o=Zr(o)}return o}function H1(a){let{valueFormat:t,iLocale:e,formatLocale:i,gaugeLabelConfigContent:r,itemLabelValue:s,axisValueFormatter:n}=a,o="";if(Number.isFinite(s))if(n!==void 0)o=n(s);else{let l=$o(t),h=fl({type:V.NumberAxisFormat,iLocale:e,formatLocale:i});h.numberFormat=l,o=h.format(`${s}`),o=xa({textSymbol:{type:Rt.TS,...r,text:o},format:"html"}),o=Zr(o)}return o}function qj(a){let{gaugeBands:t}=a,e={base:pF(),target:fF()};return t.type===V.FixedProgressBands&&(e.target=t.bands?.target??e.target,e.base=t.bands?.base??e.base),e}function Jj(a){let{axis:t,axisConfig:e,gaugeValue:i}=a,r=e.progressBands;if(r?.type===V.FixedProgressBands&&r.visible!==!1){let s=e.minimum??t.min,n=e.maximum??t.max;if(i!=null&&s!==void 0&&s!==null&&n!==void 0&&n!==null){let o=Math.min(Math.max(i,s),n),l=qj({gaugeBands:r});e.guides=[{type:V.Guide,start:s,end:o,style:l.target,name:"progressTargetBand"},{type:V.Guide,start:o,end:n,style:l.base,name:"progressBaseBand"}]}}}function eW(a){let{chart:t,chartConfig:e,data:i,queryObject:r,axisValueFormatter:s,gaugeInnerLabelFormatter:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a,{axes:c,series:u}=e,d=Hu(e),A=ze(e.series),{featureIndex:p,x:f}=u[0],m=c?.[0],g=t.xAxes.getIndex(0),y={...m};if(g!==void 0&&y!==void 0){let{valueFormat:x,needle:w,innerLabel:S,onlyShowFirstAndLastLabels:T}=y;tw({axis:g,valueFormat:x,chartType:A})&&Of({isXAxis:!0,axes:t.xAxes,valueFormat:x,queryObject:r,errorStrings:l});let F=Ew({featureIndex:p,chartData:t.data,chartConfig:e,gaugeMinMaxFromData:h,queryConfig:ve(t.uid,"queryConfig")});y.minimum=F.minimum,y.maximum=F.maximum;let{min:L,max:$,labelsIncrement:I,numberOfIntervals:U}=V1(y);Fj({oldConfig:ve(g.chart.uid,"config"),axisMax:g.max,min:L,max:$,labelsIncrement:I,numberOfIntervals:U,valueFormat:x})&&Hj({axis:g,min:L,max:$,labelsIncrement:I,numberOfIntervals:U,valueFormat:x});let P={...y};Mu(x)?(P.minimum=0,P.maximum=1,N1({axisConfig:P,axisMin:y.minimum,axisMax:y.maximum})):(P.minimum=L,P.maximum=$);let Q=d?F?.dataValue:Ej({x:f,data:i,chart:t,minimum:y.minimum,maximum:y.maximum,valueFormat:x});Jj({axis:g,axisConfig:P,gaugeValue:Q??Number.NaN}),zj(P),vv({axis:g,axisConfig:P,axisConfigIndex:0,chartType:V.GaugeSeries,axisValueFormatter:s,isTimeOnlyField:!1,setTimeZone:!1,utilsStrings:o,errorStrings:l}),g.renderer.labels.template.disabled||(g.renderer.labels.template.disabled=!0),g.renderer.ticks.template.disabled||(g.renderer.ticks.template.disabled=!0),Dj({chart:g.chart,axis:g,axisConfig:y}),$j({chart:t,axis:g,axisConfig:y}),Wj(g,y),jj({chart:t,axis:g,onlyShowFirstAndLastLabels:T??!1,valueFormat:x,axisLabelConfigContent:y.labels,axisValueFormatter:s}),Yj({chart:t,axis:g,onlyShowFirstAndLastLabels:T??!1,valueFormat:x,gaugeLabelConfigContent:y.labels,axisValueFormatter:s}),Rj({chart:t,needle:w,gaugeValue:Q}),Vj({chart:t,innerLabelConfig:S,valueFormat:x,gaugeValue:Q,gaugeInnerLabelFormatter:n}),Xj(g,y),hw(t,e),t.validateData()}}function tW(a){a.background.fill=bn(re.backgroundColor)}function Qv(a,t){a.background.fill=bn(t??re.backgroundColor)}function iW(a){let t=C1(re.headerContainer,a),e=ml(re.title,t),i=ml(re.subtitle,t);return a instanceof dn&&(Sv(a,e),Sv(a,i),Vf({chart:a,label:e,labelType:Wt.ChartTitle}),Vf({chart:a,label:i,labelType:Wt.ChartSubTitle})),cH(t),{headerContainer:t,title:e,subtitle:i}}function Hv(a,t){let{title:e,subtitle:i,headerContainer:r}=a;_n({label:e,labelConfig:t?.title,defaults:re.titleLabel}),_n({label:i,labelConfig:t?.subtitle,defaults:re.titleLabel}),w1(r,e.disabled&&i.disabled),mu({chart:e.parent,label:e,labelType:Wt.ChartTitle}),mu({chart:i.parent,label:i,labelType:Wt.ChartSubTitle})}function rW(a){let t=C1(re.footerContainer,a),e=ml(re.footer,t);return a instanceof dn&&(Sv(a,e),Vf({chart:a,label:e,labelType:Wt.ChartFooter})),{footerContainer:t,footer:e}}function jv(a,t){let{footer:e,footerContainer:i}=a;_n({label:e,labelConfig:t,defaults:re.footer}),w1(i,e.disabled||t?.content.text===""),mu({chart:e.parent,label:e,labelType:Wt.ChartFooter})}function Rw(a){return a.values.every(t=>t.isReady())}function sW(a){a.events.on(Ie.Ready,()=>{let{chart:t}=a;t&&Rw(a.chart.series)&&(UQ(t),Uu(a.chart.htmlContainer))})}function j1(a){if(a instanceof Vt){let t=new mo,e=new mo;t.disabled=!0,e.disabled=!0,t.marginTop=-10,e.marginRight=0,a.scrollbarX=t,a.scrollbarY=e}}function aW(a,t){let e=t?0:-1;a.thumb.tabindex=e,a.startGrip.tabindex=e,a.endGrip.tabindex=e}function nW(a,t){if(t!==void 0){let e=Nc(t);[a.background,a.startGrip.background,a.endGrip.background,a.thumb.background,a.background.states.getKey("default")?.properties,a.startGrip.background.states.getKey("default")?.properties,a.endGrip.background.states.getKey("default")?.properties,a.thumb.background.states.getKey("default")?.properties,a.startGrip.background.states.getKey("hover")?.properties,a.endGrip.background.states.getKey("hover")?.properties,a.thumb.background.states.getKey("hover")?.properties,a.startGrip.background.states.getKey("down")?.properties,a.endGrip.background.states.getKey("down")?.properties,a.thumb.background.states.getKey("down")?.properties].forEach(i=>{i!==void 0&&(i.fill=e)})}}function oW(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.orientation==="horizontal"?(a.height=t,a.minHeight=t):(a.width=t,a.minWidth=t))}function lW(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.scale=e,a.endGrip.scale=e}}function hW(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.orientation==="horizontal"?a.marginBottom=t:a.marginLeft=t,a.parent?.invalidateLayout())}function W1(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(t instanceof Vt){let r=ve(t.uid,"isRotated");(t.scrollbarX===void 0||t.scrollbarY===void 0)&&j1(t);let{scrollbarX:s,scrollbarY:n}=t;[s,n].forEach(o=>{let l=o.orientation==="horizontal"&&r!==!0||o.orientation==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(o.disabled=h,aW(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;hW(o,A),nW(o,u),lW(o,d),oW(o,c)}})}}function uW(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&(e.strokeOpacity=0)})}function cW(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.dataFields.valueY??t.dataFields.valueX??e.y,h=new Set,c,u=e.fillSymbol,d={seriesConfig:e,seriesIndex:i,seriesSymbol:u,colorMatch:n,isChartFillSymbol:!0},A={},p={},f=Jb(i);return t.columns.length===0?A=du({seriesConfig:e,seriesIndex:i,seriesSymbol:u??f,element:new Ee,colorMatch:n,isChartFillSymbol:!0}):(t.columns.each(m=>{let g=m.dataItem?.dataContext;if(Number.isFinite(g?.[l])){let y=on({dataItem:g,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o}),x=g[re.xAxisField]===re.nullValue,w=(x&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:u)??f;A=du({...d,seriesSymbol:w,element:m,rendererSymbol:y}),gA({element:m,stylingInfo:A.stylingInfo}),x||(h.add(JSON.stringify(A.symbolWithColorInfo)),p=A)}}),r>1&&A.symbolWithColorInfo&&du({...d,seriesSymbol:A.symbolWithColorInfo,element:t.columns.template})),h.size<=1&&(c=p.symbolWithColorInfo??u),uW(t,l),c}function dW(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n}=a,o=a.seriesConfig,l=ve(t.chart.uid,"config"),h=l?.series.length??0,c=kt(l?.series),u=cW({series:t,seriesConfig:o,seriesIndex:r,numberOfSeries:h,chartSubType:c,colorMatch:s,rendererType:n});e.set(i.get(o.id)??r,u),e.size===h&&nn({data:e,htmlContainer:t.chart.htmlContainer,chartId:t.chart.id,colorMatchApplied:Ov(t.chart)})}function X1(a){let{seriesConfig:t,series:e,seriesIndexMapper:i,rotationChanged:r,colorMatch:s,stackedType:n,rendererType:o,seriesIndex:l,seriesSymbolMapForEvent:h,queryObject:c}=a,{name:u}=t,d=ve(e.chart.uid,"config"),A=xn({config:d}),p=kt(d?.series);Ui(e,t.visible);let f=u,m=e.dataFields?.customValue??"";(p===ke.BarAndLineSplitBy||p===ke.BarAndLineSplitByNoAggregation)&&(f=ag({queryObject:c,fieldName:Dn(m),fieldValue:f})??f),_A(e,f),Sw({series:e,seriesConfig:t,rotationChanged:r,stackedType:n,isRotated:A}),dW({series:e,seriesConfig:t,seriesIndex:l,seriesIndexMapper:i,colorMatch:s,rendererType:o,seriesSymbolMapForEvent:h}),Jn(e.uid,{barSeriesLastUpdate:{numberOfColumnsUpdated:e.columns.length,updateProps:a}})}function AW(a){a.events.on(Ie.Validated,()=>{let t=sa(a.uid,"barSeriesLastUpdate");if(t!==void 0){let{numberOfColumnsUpdated:e,updateProps:i}=t;a.columns.length>e&&X1(i)}})}function pW(a){let{chart:t,chartConfig:e,seriesIndex:i,axisList:r=[],selectionTheme:s,queryObject:n,errorStrings:o}=a,{rotated:l}=e,h=e.series[i],{y:c,assignToSecondValueAxis:u}=h,d=new Xi;d.id=h.id;let A,p;l!==!0?(A=r[0],p=u===!0&&r[2]?r[2]:r[1]):(A=u===!0&&r[2]?r[2]:r[0],p=r[1]),A!==void 0&&(d.xAxis=A),p!==void 0&&(d.yAxis=p);let f=t instanceof Vt?xn({chart:t}):!1,m=kt(e.series)!==ke.BarAndLineSplitByNoAggregation?c:`${c}_${vh({where:h.query?.where,keepSurroundingQuotes:!1,escape:!1})}`;f?d.dataFields.valueX=m:d.dataFields.valueY=m;let g=f?r[1]:r[0];if(g!==void 0){let y=c1(g,f);d.dataFields[y]=re.xAxisField,d.baseAxis=g}return Sw({series:d,seriesConfig:h,rotationChanged:!1,stackedType:e.stackedType,isRotated:f}),d.dataFields.customValue=h?.query?.where,v1(d.columns.template,d),d.columns.template.width=he(100),Xc({element:d.columns.template,customSelectionTheme:s}),Hf({chart:t,element:d.columns.template,queryObject:n,errorStrings:o}),Lw(d),AW(d),Wc(d),d}function fW(a){let{seriesConfig:t,series:e,seriesIndex:i,axes:r,utilsStrings:s,fieldList:n,queryObject:o,stackedType:l,options:h}=a;e.id=t.id;let c=xn({chart:e.chart});rj({series:e,seriesType:V.BarSeries,isRotated:c,stackedType:l,hideOversizedSideBySideLabels:t.hideOversizedSideBySideLabels,hideOversizedStackedLabels:t.hideOversizedStackedLabels,dataLabelsConfig:t.dataLabels,yAxisValueFormat:r[1].valueFormat,customDataLabelFormatter:h?.dataLabelFormatter}),Ev({styleCallback:()=>X1(a),series:e,seriesConfig:t}),x1({series:e,seriesConfig:t,fieldList:n,queryObject:o,utilsStrings:s,seriesIndex:i,tooltipFormatter:h?.tooltipFormatter})}function mW(a){a.labels.template.adapter.add("html",(t,e)=>{let i=sa(a.uid,"pieChartDataLabelFormatter"),r=t??"",{dataItem:s}=e;if(s instanceof Fa){let{slice:n}=s;if(n!==void 0&&!Ef(n))r="";else if(i!==void 0){let{value:o,percent:l}=s.values?.value??{};if(o!==void 0&&o!==0){let h=`${s.properties?.category??t}`;r=i(h,o,l)}}}return zi(r)&&(r=re.htmlEmptyContent),Zr(r)})}function gW(a){let t=a.labels.template;t.maxWidth=re.pieChart.dataLabels.maxWidth??Number.NaN,t.wrap=re.pieChart.dataLabels.wrap??!0,t.events.on(Ie.Over,e=>{let{dataItem:i}=e.target??{};i instanceof Fa&&i.slice.showTooltip()}),mW(a)}function yW(a,t){let{numericValueFormat:e,percentValueFormat:i,displayCategoryOnDataLabel:r,displayNumericValueOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,d=Dw({iLocale:a.chart.language.locale,pieChart:a.chart,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:s??re.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??re.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),A=tg(u),p=Ra(a.rtl," ");return(f,m,g)=>{let y=d(f,m,g),x=r??re.pieChart.displayCategoryOnDataLabel?A(f):"",w=zi(x)?"":`${x}${p}`;return w=`${w}${y}`,t.dataLabels?.content!==void 0&&(w=xa({textSymbol:{...t.dataLabels.content,text:w},format:"html",defaults:{...re.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??re.pieChart.dataLabels.wrap}})),w}}function vW(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??re.pieChart.dataLabelsOffset,n=e.dataLabelsInside??re.pieChart.dataLabelsInside;Jn(t.uid,{pieChartDataLabelFormatter:i??yW(t,e)}),_n({label:t.labels.template,labelConfig:r,defaults:{...re.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??re.pieChart.alignDataLabels},skipSettingText:!0}),t.alignLabels=!n&&(e.alignDataLabels??re.pieChart.alignDataLabels);let o=t.labels.template.radius;t.chart.invalidateData(),(n&&o!==he(-40)||!n&&o===he(-40)||s!==void 0&&Number.isFinite(s)&&o!==s)&&(t.labels.template.radius=n?he(-40):s,t.invalidate())}function bW(a,t){let e=(p,f,m)=>re.htmlEmptyContent,{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:s,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,f,m)=>{let g=re.htmlEmptyContent,y=Dw({iLocale:a.chart.language.locale,pieChart:a.chart,valueIntlOptions:(s??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??re.pieChart.displayNumericValueOnTooltip,displayPercentage:h??re.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",f,m),x=!zi(p)&&(o??re.pieChart.displayCategoryOnTooltip);if(x&&(g=`<b>${p}</b>`),!zi(y)){let w=ig(y);g=x?`${g}<br />${w}`:w}return g},e}function xW(a){if(a.tooltip!==void 0){let t=a.fill;t instanceof vc?t=t.stroke:t instanceof bc&&(t=t.backgroundFill),a.tooltip.background.fill=t}}function _W(a){let t=a.slices.template;t.tooltipHTML=re.htmlEmptyContent,t.adapter.add("tooltipHTML",(e,i)=>{let r=e??"",{chart:s}=a;if(s!==void 0&&i.tooltip!==void 0){let n=ve(s.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)i.tooltip.disabled=!0;else{let l=sa(a.uid,"pieChartTooltipFormatter");if(l!==void 0){let{dataItem:h}=i;if(h instanceof Fa){let c=h.properties.category??"",u=h.dataContext,d=oo(u);d===void 0&&(d=c);let A=h.values?.value?.value,p=h.values?.value?.percent;typeof A=="number"&&A!==0&&n?.series?.[0]?.dataTooltipVisible!==!1?(i.tooltip.disabled=!1,xW(i),r=l(`${c}`,A,p,d)):i.tooltip.disabled=!0}}}}return Zr(r)})}function CW(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Jn(t.uid,{pieChartTooltipFormatter:i??bW(t,e)}),Rv(t,e)}function wW(a){a.ticks.template.adapter.add("disabled",(t,e)=>e.dataItem?.values?.value?.value===0||!Number.isFinite(e.dataItem?.values?.value?.value)||t===!0)}function BW(a){let{chartData:t,pieSeries:e,pieSlicesSymbols:i,seriesConfig:r}=a;if(e.slices.length===0){let s=[];t?.forEach(n=>{let o=Cw({dataContext:n,pieSlicesSymbols:i,seriesConfig:r});s.push(Nc(o.color))}),s.length>0&&(e.colors.list=s)}}function SW(a){let{seriesConfig:t,selectionTheme:e}=a,{x:i,y:r,id:s,visible:n}=t,o=new ws;o.id=s,o.dataFields.value=r,o.dataFields.category=i;let l=re.pieChart;o.startAngle=l.min,o.endAngle=360+o.startAngle,wW(o),_W(o),gW(o);let h=e!==void 0&&e.selectedElementsTheme?.transformation?.opacity===void 0?{...e,selectedElementsTheme:{...e?.selectedElementsTheme,transformation:{...e?.selectedElementsTheme?.transformation,opacity:1}}}:e;return Xc({element:o.slices.template,useNativeState:!0,customSelectionTheme:h}),o.slices.template.states.removeKey("hover"),Wc(o),o.hidden=n===!1,Lw(o),o}function FW(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i,selectionTheme:r}=a;t.defaultState.reset(),t.slices.each((s,n)=>{let o=s.dataItem?.dataContext,l=Cw({dataContext:o,pieSlicesSymbols:e,seriesConfig:i}),h=Mf({element:s,fillSymbol:l,defaultToColorFromRamp:!0,colorRampIndex:n,isChartFillSymbol:!0});r!==void 0&&r.selectedElementsTheme===void 0&&gA({element:s,stylingInfo:h,stateKey:ia.Active})})}function TW(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.disabled=i,a.ticks.template.strokeOpacity=re.pieChart.ticksOpacity;let r=e?.lineSymbol??KA({color:Hm});i&&(r.width=0),Vc({element:a.ticks.template,lineSymbol:r,visible:!i})}function PW(a){let{chart:t,seriesConfig:e,series:i,pieSlicesSymbols:r,options:s}=a,{tooltipFormatter:n,dataLabelFormatter:o}=s??{},{x:l,y:h,id:c,innerRadius:u,startAngle:d,endAngle:A}=e;i.id=c;let p=kt([e]),f=re.pieChart;i.dataFields.value=p!==ke.PieFromFields?h:Ru,i.dataFields.category=p!==ke.PieFromFields?l:ao;let m=t.radius instanceof et?t.radius.value:t.radius;t.innerRadius=he((u??f.innerRadius)*m),i.startAngle=d??f.min,i.endAngle=A??360+i.startAngle,vW({pieSeries:i,seriesConfig:e,dataLabelFormatter:o}),BW({chartData:t.data,pieSeries:i,pieSlicesSymbols:r,seriesConfig:e}),Ev({styleCallback:()=>FW(a),series:i,seriesConfig:e}),TW(i,e),CW({series:i,seriesConfig:e,tooltipFormatter:n})}async function aI(a){let{chart:t,hitSlice:e,multiSelect:i=!1,queryObject:r,errorStrings:s}=a,n=[],o=ve(t.uid,"config"),l=t.series.getIndex(0);if(o&&l!==void 0){let h=i1(l),c=xu(l),u={element:{},xAxisField:h,yAxisField:c,seriesIndex:0,chartConfig:o};l.slices.each((d,A)=>{d.isActive&&(d===e||i||d.dataItem instanceof Fa&&d.dataItem.label.isHover)?ih(d.dataItem?.dataContext)?(Qf({groupOfSlicesDataContext:d.dataItem?.dataContext})??[]).forEach(p=>{n.push({...u,element:void 0,elementDataContext:p,elementIndex:A})}):n.push({...u,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:A}):Zn({element:d,selected:!1,useNativeState:!0})}),n.forEach(d=>{Zn({element:d.element,selected:!0,useNativeState:!0})}),await Wf({chart:t,listSelectedElements:n,selectionSource:Tr.SelectionByClick,queryObject:r,errorStrings:s})}t.feedLegend()}function DW(a,t,e){let i=async n=>{let{target:o}=n;if(p1(a)&&a.series.getIndex(0)?.slices.template.togglable){let l=Mv(n,a);if(o instanceof Sa)await aI({chart:a,multiSelect:l,hitSlice:o,queryObject:t,errorStrings:e});else if(o instanceof Mi){let h=o.dataItem;if(h instanceof Fa){let{slice:c}=h;c.isActive=!c.isActive,await aI({chart:a,multiSelect:l,hitSlice:c,queryObject:t,errorStrings:e})}}else o===a.background&&await Wf({chart:a,listSelectedElements:[],selectionSource:Tr.SelectionByClick,queryObject:t,errorStrings:e})}},r=a.series.getIndex(0)?.slices.template;r!==void 0&&(r.events.on(Ie.Hit,i),r.events.on(Ie.DoubleHit,i));let s=a.series.getIndex(0)?.labels.template;s!==void 0&&s.events.on(Ie.Hit,i),a.background.events.on(Ie.Hit,i),a.background.events.on(Ie.DoubleHit,i)}function nI(a){let t;return typeof a=="number"&&Number.isFinite(a)&&a>0&&(t=a),t}function LW(a){let{chartContainer:t}=a,e=nI(t.measuredWidth),i=nI(t.measuredHeight),r;return e!==void 0&&i!==void 0&&(r={width:e,minSide:Math.min(e,i)}),r}function oI(a){return a?.offsetParent!==null}function IW(a,t){a!==void 0&&t!==void 0&&window.IntersectionObserver!==void 0&&new IntersectionObserver(e=>{e[0].intersectionRatio>0&&(ve(a.uid,"chartWasCreatedWhileHidden")===!0?(a instanceof qi&&a.events.once(Ie.Validated,()=>{a.isDisposed()||Fv(a),a.reinit()}),a.reinit(),a instanceof Vt&&Vv(a),ai(a.uid,{chartWasCreatedWhileHidden:!1})):ve(a.uid,"chartWasUpdatedWhileHidden")===!0&&(a instanceof qi&&a.events.once(Ie.Validated,()=>{a.isDisposed()||Fv(a),a.reinit()}),a.reinit(),ai(a.uid,{chartWasUpdatedWhileHidden:!1})))},{root:null}).observe(t)}function Fv(a){let t=ve(a.uid,"config");if(t!==void 0){let e=he(ve(a.uid,"pieChartRadius")??re.pieChart.chartOptimizedRadius),i=e,{series:r}=t,{innerRadius:s,optimizeDataLabelsOverlapping:n,alignDataLabels:o,dataLabelsOffset:l=re.pieChart.dataLabelsOffset,dataLabels:h,dataLabelsInside:c}=r[0];if(h?.visible===!0&&o===!0&&n===!0&&c!==!0){let d=re.pieChart.chartOptimizedRadius/100,A=500,p=150,f=.6,m=.5,g=1,y=a.chartContainer.measuredWidth-l*2,x=Math.max(y-p,0)/(A-p),w=x<1?Math.max(x**g*f,.4):Math.min(x**m*f,d);i=he(w*100)}else i=he(re.pieChart.chartRadius);e.value.toFixed(1)!==i.value.toFixed(1)&&(ai(a.uid,{pieChartRadius:i.percent}),a.radius=i,a.innerRadius=he((s??re.pieChart.innerRadius)*i.value));let u=a.series?.values?.[0];u instanceof ws&&(u.labels.template.maxWidth=kW(t?.series[0],a))}}function z1(a){wn(a)&&a.events.on(Ie.SizeChanged,Is(()=>Fv(a),re.debounceTime))}function kW(a,t){let e=re.pieChart.dataLabels.maxWidth??100,i=e;if(a!=null){let{alignDataLabels:r,dataLabelsOffset:s=re.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:n,dataLabels:o,dataLabelsInside:l}=a;if(o?.visible===!0&&r===!0&&l!==!0&&n===!0){let h=e,c=LW(t),u=typeof t.radius=="number"?t.radius/100:t.radius.value;if(c!==void 0&&Number.isFinite(u)){let{width:d,minSide:A}=c,p=u*A,f=5,m=Math.floor((d-p)/2)-f-s;if(Number.isFinite(m)){h=Math.min(m,e-f);let g=30;h<g&&(h=g),Number.isFinite(h)||(h=e)}}i=h}}return i}function G1(a){if(wn(a)){let t=typeof a.radius=="number"?a.radius:a.radius.percent;ai(a.uid,{pieChartRadius:t}),Fv(a),a.validate()}}function Y1(a){if(a instanceof qi)z1(a),G1(a);else if(!(a instanceof Ys)){let t=()=>{let i=ve(a.uid,"config"),{chartPaddingMinSize:r,chartPaddingRightWhenLegendNotOnRight:s,chartContainerPaddingTopWhenRotated:n,chartContainer:o}=re,l=i?.series,h=ze(l),c=xn({config:i}),u=l?.[0]?.dataLabels?.visible??!0,d=re.chartDefaultPaddingRight;if(c&&u&&(h===V.LineSeries||h===V.ComboLineAndBarSeries||h===V.BarSeries&&(i?.stackedType??ex())===$i.Side)){let p=0,f=m=>ms(m.uid,"isDataLabel")??!1;a.series.each(m=>{let g=m.bullets.values.find(f);g!==void 0&&g.clones.each(y=>{let x=y.measuredWidth;switch(y.horizontalCenter){case"middle":x/=2;break;case"right":x*=-1;break}let w=y.pixelX+x;w>p&&(p=w,d=x)})})}d>=0&&(a.chartContainer.paddingRight=d),a.chartContainer.paddingTop=c?n:o.paddingTop;let A=i?.legend?.visible!==!1&&i?.legend?.position===st.Right;a.paddingRight=A?r:s},e=0;a.series.each(i=>{i.events.once(Ie.Validated,()=>{e+=1,e===a.series.length&&t()})})}}function $W(a,t){a.adapter.add("criticalError",e=>(e.message=t.errors.simpleError,e))}it.classNamePrefix="arcgis-charts-";function Uw(a){let{chart:t,localeInfo:e,chartLocale:i}=a;it.defaultLocale=i,t.language.locale=i,ai(t.uid,{formatLocale:e.formatLocale}),t.rtl=e.rtl}function Wv(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(wn(t)){let r=e??ve(t.uid,"actionMode")??re.actionMode;ai(t.uid,{actionMode:r});let s=ve(t.uid,"filterBySelection");switch(r){case Ut.MonoSelection:case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:s!==!0?XQ(t):GC(t);break;case Ut.Zoom:GC(t);break;case Ut.None:wA({chart:t,selectionSource:Tr.ClearSelection,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1}),GC(t);break}mQ({chart:t,actionMode:r,cursorRange:i})}}function OW(a,t){t&&(a.tapToActivate=!0,a.tapTimeout=3e3,a.responsive.enabled=!0)}function EW(a){let{chart:t,axesConfig:e,chartType:i,isRotated:r,errorStrings:s,queryObject:n}=a;switch(Pl({chartType:i,axesConfig:e,errorStrings:s}),i){case V.GaugeSeries:{io(n),t instanceof Ys&&e?.[0]?.valueFormat!==void 0&&Kj({chart:t,valueFormat:e[0].valueFormat,queryObject:n,errorStrings:s});break}case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{Cj({chart:t,chartType:i,isRotated:r,axesConfig:e,queryObject:n,errorStrings:s});break}}}function Vw(a){let{chart:t,chartConfig:e,chartConfig:{axes:i},rotationChanged:r,axisLabelsBehaviorChanged:s,chartType:n,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,data:c,queryObject:u,guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:f,gaugeInnerLabelFormatter:m,options:g,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:w}=a;switch(Pl({chartType:n,axesConfig:i,errorStrings:x}),n){case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:{t instanceof Vt&&wj({chart:t,chartConfig:e,rotationChanged:r,axisLabelsBehaviorChanged:s,isRotated:o,dualAxisChanged:l,timeIntervalInfoWasReset:h,timeIntervalInfo:c?.timeIntervalInfo??ve(t.uid,"timeIntervalInfo"),guideTooltipFormatter:d,xAxisLabelFormatter:A,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:f,options:g,utilsStrings:y,errorStrings:x,queryObject:u});break}case V.GaugeSeries:{t instanceof Ys&&(io(u),eW({chart:t,chartConfig:e,data:(c??t.data).dataItems,queryObject:u,axisValueFormatter:A,gaugeInnerLabelFormatter:m,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:w}));break}}}function K1(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,errorStrings:s,queryObject:n}=a,{selectionTheme:o,ignoreSmoothRenderingLimit:l}=i??{};t.series.clear();let h,c,u=[],d=t instanceof Vt?[t.xAxes.getIndex(0),t.yAxes.getIndex(0),t.xAxes.getIndex(1)??t.yAxes.getIndex(1)]:void 0,A={selectionTheme:o,utilsStrings:r},p={...A,axisList:d};if(t instanceof Vt)for(let m=0;m<e.series.length;m+=1){let g=e.series[m];if(c=ze([g]),Dl(e))h=YH({...p,chart:t,axisList:d,chartConfig:e,seriesIndex:m,queryObject:n,errorStrings:s}),u.push(...h.flat());else switch(c){case V.BarSeries:{h=pW({...p,chart:t,chartConfig:e,seriesIndex:m,queryObject:n,errorStrings:s}),u.push(h);break}case V.LineSeries:{io(n),h=VH({...p,chart:t,chartConfig:e,seriesIndex:m,ignoreSmoothRenderingLimit:l,queryObject:n,errorStrings:s}),u.push(h);break}}}else t instanceof qi&&e.series[0].type===V.PieSeries&&(h=SW({...A,seriesConfig:e.series[0]}),u.push(h));u.forEach(m=>{sW(m)});let f=GF({chartConfig:e,queryObject:n,chartData:t.data});f.length>0&&(t.colors.list=f.map(m=>{let[g,y,x,w]=m;return new xt({r:g,g:y,b:x,a:w})})),u.length>0&&t.series.pushAll(u),GQ(t)}function Nw(a){let{chart:t,chartConfig:e,chartConfig:{series:i,axes:r,chartRenderer:s},seriesIndexMapper:n,rotationChanged:o,seriesReordered:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,chartData:u,queryObject:d,options:A,dataWasUpdated:p,sortChanged:f,groupOfSlicesWasUpdated:m,pieSlicesSymbols:g,seriesWereReinitialized:y,utilsStrings:x,errorStrings:w}=a,S=t.series.values,T=new Map,F=e.series.length,L=Fl(e),$=ks(e),I=_a(d,A?.popupTemplateFieldInfosEnabled),U=$s(d),P=rg(s,bs(U)?void 0:U?.renderer);for(let[Q,G]of i.entries()){let Y=ze([G]),ee=S[Q],te={numberOfSeries:F,series:ee,seriesConfig:G,seriesIndex:Q,colorMatch:L,queryObject:d,rendererType:P,options:A,dataWasUpdated:p,fieldList:I,sortChanged:f,utilsStrings:x},le={...te,axes:r,seriesIndexMapper:n},z=ee;if(t instanceof Vt&&Dl(e))z=S.find(K=>K.id===G.id),ee!==void 0&&(z instanceof wr||z instanceof Ti)&&o2({...te,chart:t,series:z,seriesIndexMapper:n,seriesSymbolMapForEvent:T,chartData:u,showOutliers:e.showOutliers,showMean:e.showMean,outliersVisibilityChanged:h,seriesReordered:l,standardizeValuesVisibilityChanged:c,rotationChanged:o,seriesWereReinitialized:y,options:A});else switch(Y){case V.BarSeries:fW({...le,stackedType:$,seriesSymbolMapForEvent:T,rotationChanged:o});break;case V.LineSeries:WH({...le,stackedType:$,seriesSymbolMapForEvent:T,rotationChanged:o});break;case V.PieSeries:PW({...te,chart:t,pieSlicesSymbols:g,selectionTheme:A?.selectionTheme});break}}g2({chart:t,options:A,dataWasUpdated:p,chartData:u,chartConfig:e,queryObject:d,sortChanged:f,groupOfSlicesWasUpdated:m,errorStrings:w})}function Qw(a){let{chartConfig:t}=a,{chart:e,options:i,globalOptions:r,colorMatchApplied:s,pieSlicesSymbols:n,queryObject:o,utilsStrings:l,errorStrings:h,dataInfo:c}=a,{togglingLegendItemsDisabled:u,cursorRange:d,actionMode:A,pieChartLegendValueLabelFormatter:p,guideTooltipFormatter:f,xAxisLabelFormatter:m,yAxisLabelFormatter:g,secondaryYAxisLabelFormatter:y,gaugeInnerLabelFormatter:x,popupTemplateFieldInfosEnabled:w}=i??{},{data:S,count:T,queryConfig:F,gaugeMinMaxFromData:L={}}=c??{},$,I,U,P=ze(t.series),Q=_a(o,w);ai(e.uid,{fieldList:Q,options:i,elementCount:T,queryConfig:F,timeIntervalInfo:S?.timeIntervalInfo,serverLimitReached:S?.serverLimitReached});let G=new Map;t.series.forEach(($e,Ye)=>{G.set($e.id,Ye)});let Y=Ln(S);Y!==void 0&&(e.data=Y);let ee=kt(t.series);e instanceof qi&&nn({data:n,htmlContainer:e.htmlContainer,chartId:e.id,colorMatchApplied:s===!0});let{title:te,subtitle:le,footer:z,series:K,background:we}=t;$=iW(e),Hv($,{title:te,subtitle:le}),I=rW(e),jv(I,z),U=UH(e,K),dH(e);let se=xn({config:t});ai(e.uid,{config:t,isRotated:se,isNonAggregatedChart:!rp(ee)}),t.axes!==void 0&&(EW({chart:e,axesConfig:t.axes,chartType:P,isRotated:se,errorStrings:h,queryObject:o}),Vw({chart:e,chartConfig:t,chartType:P,isRotated:se,data:S,queryObject:o,guideTooltipFormatter:f,xAxisLabelFormatter:m,yAxisLabelFormatter:g,secondaryYAxisLabelFormatter:y,gaugeInnerLabelFormatter:x,options:i,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:L})),K1({chart:e,chartConfig:t,utilsStrings:l,options:i,queryObject:o,errorStrings:h}),Nw({chart:e,chartConfig:t,seriesIndexMapper:G,rotationChanged:!1,queryObject:o,chartData:S,groupOfSlicesWasUpdated:!0,pieSlicesSymbols:n,dataWasUpdated:!0,seriesWereReinitialized:!0,options:i,utilsStrings:l,errorStrings:h}),Iw({legendElements:U,seriesConfig:K,webChartLegend:t.legend,pieChartLegendValueLabelFormatter:p}),j1(e),tW(e),Qv(e,we),W1({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),qI(e),JI(e,t?.cursorCrosshair),Wv({chart:e,actionMode:A,cursorRange:d});let de=Ad(e.htmlContainer??document.documentElement);return e.dateFormatter.intlLocales=de,OW(e,r?.enableResponsiveFeatures),(e instanceof Ys||Rw(e.series))&&Uu(e.htmlContainer),Y1(e),$!==void 0&&I!==void 0&&U!==void 0?{headerElements:$,footerElements:I,legendElements:U}:void 0}function Z1(a){a.series.each(t=>{t.events.on(Ie.Ready,()=>{Rw(a.series)&&Vv(a)})})}function MW(a){let{chartContainer:t,chartConfig:e,queryObject:i,colorMatchApplied:r,dataInfo:s,t9nStrings:n,options:o,globalOptions:l}=a,{errorStrings:h,utilsStrings:c,amChartsStrings:u}=n,d=nf(t,Vt);d.id=e?.id??d.uid,ai(d.uid,{queryObject:i});let{t9nLocale:A}=Lu(d.htmlContainer??document.documentElement),p=Ad(d.htmlContainer??document.documentElement),f=Um(d.htmlContainer??document.documentElement)==="rtl";Uw({chart:d,localeInfo:{locale:A,formatLocale:p,rtl:f},chartLocale:u}),d.events.on(Ie.Inited,()=>d.zoomOutButton.deepInvalidate());let m=ze(e?.series);d instanceof Vt&&m!==V.BoxPlotSeries&&(d.maskBullets=!1);let g=Qw({chartConfig:e,chart:d,queryObject:i,colorMatchApplied:r,options:o,globalOptions:l,utilsStrings:c,errorStrings:h,dataInfo:s});return ai(d.uid,{config:_r(e)}),Z1(d),HQ({chart:d,queryObject:i,errorStrings:h}),jQ({chart:d,queryObject:i,errorStrings:h}),{chart:d,chartElements:g}}function RW(a){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,colorMatchApplied:s,pieSlicesSymbols:n,t9nStrings:{errorStrings:o,utilsStrings:l,amChartsStrings:h},options:c,globalOptions:u}=a,d=nf(t,qi);d.id=e?.id??d.uid;let A=Cx(d.htmlContainer);Uw({chart:d,localeInfo:A,chartLocale:h}),d.radius=he(re.pieChart.chartRadius);let p=Qw({chartConfig:e,chart:d,queryObject:i,colorMatchApplied:s,pieSlicesSymbols:n,dataInfo:r,options:c,globalOptions:u,utilsStrings:l,errorStrings:o});return ai(d.uid,{config:_r(e),filterBySelection:c?.filterBySelection}),DW(d,i,o),{chart:d,chartElements:p}}function UW(a){let{chartContainer:t,chartConfig:e,queryObject:i,dataInfo:r,t9nStrings:{errorStrings:s,utilsStrings:n,amChartsStrings:o},options:l,globalOptions:h}=a,c=nf(t,Ys);c.id=e?.id??c.uid;let u=Cx(c.htmlContainer);Uw({chart:c,localeInfo:u,chartLocale:o}),c.maskBullets=!1;let d=re.gauge,A=Number.isFinite(e?.innerRadius)?e?.innerRadius:d.innerRadius,p=Number.isFinite(e?.startAngle)?e?.startAngle:d.startAngle,f=Number.isFinite(e?.endAngle)?e?.endAngle:d.endAngle;c.radius=he(d.radius),typeof A=="number"&&(c.innerRadius=he(A)),typeof p=="number"&&(c.startAngle=p),typeof f=="number"&&(c.endAngle=f);let m=Qw({chartConfig:e,chart:c,queryObject:i,dataInfo:r,options:l,globalOptions:h,utilsStrings:n,errorStrings:s});return ai(c.uid,{config:_r(e)}),Z1(c),t?.ownerDocument.addEventListener("visibilitychange",()=>{let g=t.ownerDocument.hidden;c&&!g&&Pj(e?.axes?.[0])&&(c.svgContainer?.measure(),c.invalidateData())}),{chart:c,chartElements:m}}function VW(a){let{newConfig:t}=a,{chart:e,chartElements:i,dataWasUpdated:r,dataUpdateDetails:s,dataInfo:n,options:o,configWithAllSeries:l,hasSeriesFilteredOut:h,queryObject:c,utilsStrings:u,errorStrings:d}=a,{guideTooltipFormatter:A}=o??{},{gaugeMinMaxFromData:p={}}=n,f=ve(e.uid,"config"),m=f?.series,g=t.series,y=ze(g),x=xn({config:t});ai(e.uid,{config:_r(t),isRotated:x}),ai(e.uid,{filterBySelection:o?.filterBySelection}),Wv({chart:e,actionMode:o?.actionMode,cursorRange:o?.cursorRange});let{xOrYChanged:w,layerChanged:S}=s?.common??{},{numberOfSeriesChanged:T}=s?.common??{},F=dx(f,t),L=Ax(f,t),$=OF(f,t),I=EF(f,t),U=JSON.stringify(ZA(m))!==JSON.stringify(ZA(g)),P=!1,Q=!1;Dl(t)&&Dl(f)&&(P=RF(f,t),Q=UF(f,t));let G=tp({oldConfig:h?l:f,newConfig:t,dataWasUpdated:r}),Y=sx({oldConfig:f,newConfig:t,rotationChanged:L}),ee=U1({chart:e,dualAxisChanged:$,rotationChanged:L,timeIntervalInfoWasReset:F,axisLabelsBehaviorChanged:Y}),te=!1,le=Ln(n?.data),z=kt(g);if(ai(e.uid,{isNonAggregatedChart:!rp(z)}),r){let{count:Ye,data:He,queryConfig:qe}=n??{};ai(e.uid,{elementCount:Ye,queryConfig:qe,timeIntervalInfo:He?.timeIntervalInfo,serverLimitReached:He?.serverLimitReached})}else if(y===V.BarSeries||y===V.LineSeries||y===V.RadarSeries||y===V.ComboLineAndBarSeries||y===V.BoxPlotSeries){let Ye=_x(m,g);if(Ye.length>0&&(kN(e.series,Ye),e.feedLegend(),te=!0),bh(g[0])){let{binTemporalData:He}=g[0],{unit:qe,size:Tt}=g[0].temporalBinning??{};He===!1&&qe!==void 0&&Tt!==void 0&&ai(e.uid,{timeIntervalInfo:{unit:qe,size:Tt}})}}let K=G&&!r,we=new Map;(l??t).series.forEach((Ye,He)=>{we.set(Ye.id,He)}),T=T||h,le&&(r||G)&&(e.data=le),t.axes!==void 0&&Vw({chart:e,chartConfig:t,rotationChanged:L,timeIntervalInfoWasReset:F,axisLabelsBehaviorChanged:Y,chartType:y,isRotated:x,dualAxisChanged:$,guideTooltipFormatter:A,xAxisLabelFormatter:o?.xAxisLabelFormatter,yAxisLabelFormatter:o?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:o?.secondaryYAxisLabelFormatter,queryObject:c,options:o,utilsStrings:u,errorStrings:d,gaugeMinMaxFromData:p});let se=y===V.BoxPlotSeries&&($F(g,m)||kF(g,m)),de=!1;(e.series===void 0||e.series.length===0||w||S||T||U||(y===V.BarSeries||y===V.LineSeries||y===V.RadarSeries||y===V.ComboLineAndBarSeries)&&e.series.length!==t.series.length||ee||I||se||s?.boxPlot?.showMeanChanged)&&(de=!0,!r&&(L||se||ee)&&e.invalidateData(),K1({chart:e,chartConfig:t,utilsStrings:u,queryObject:c,options:o,errorStrings:d})),Nw({chart:e,chartConfig:t,seriesIndexMapper:we,rotationChanged:L,seriesReordered:te,outliersVisibilityChanged:P,standardizeValuesVisibilityChanged:Q,queryObject:c,chartData:n.data,options:o,dataWasUpdated:r,sortChanged:G,seriesWereReinitialized:de,utilsStrings:u,errorStrings:d}),K&&(e.validateData(),y===V.BoxPlotSeries&&e.series.each(Ye=>{Ye instanceof Ti&&!(Ye instanceof Aa)&&Ye.id.includes(ji.Outliers)&&Ye.validateData()})),Hv(i.headerElements,{title:t.title,subtitle:t.subtitle}),jv(i.footerElements,t.footer),Iw({legendElements:i.legendElements,seriesConfig:t.series,webChartLegend:t.legend,togglingLegendItemsDisabled:o?.togglingLegendItemsDisabled}),Qv(e,t.background),W1({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar}),JI(e,t?.cursorCrosshair);let $e=pQ(e);($e.behavior===Hi.SelectX||$e.behavior===Hi.SelectXY||$e.behavior===Hi.SelectY||$e.behavior===Hi.None)&&e.scrollbarX.start===0&&e.scrollbarX.end===1&&e.scrollbarY.start===0&&e.scrollbarY.end===1&&Vv(e),Y1(e),R1(e.series.values[0])}function NW(a){let{chart:t,chartElements:e,dataWasUpdated:i,newConfig:r,pieSlicesSymbols:s,queryObject:n,options:o,dataInfo:l,utilsStrings:h,errorStrings:c}=a,u=ve(t.uid,"config"),d=u?.series,A=r?.series,p=tp({oldConfig:u,newConfig:r,dataWasUpdated:i}),f=_w(d,A),{count:m,data:g,queryConfig:y}=l??{},x=Ln(g);ai(t.uid,{filterBySelection:o?.filterBySelection,config:_r(r)});let w=x!==void 0&&(t.data.length!==x.length||zI(t.data,x));w&&(ai(t.uid,{elementCount:m,queryConfig:y}),t.data=x,Uu(t.htmlContainer)),(p||f)&&t.validateData(),nn({data:s,htmlContainer:t.htmlContainer,chartId:t.id,colorMatchApplied:Ov(t,r)}),Nw({chart:t,queryObject:n,chartConfig:r,seriesIndexMapper:new Map,options:o,dataWasUpdated:w,sortChanged:p,chartData:g,groupOfSlicesWasUpdated:f,pieSlicesSymbols:s,seriesWereReinitialized:!1,utilsStrings:h,errorStrings:c}),Hv(e.headerElements,{title:r.title,subtitle:r.subtitle}),jv(e.footerElements,r.footer),Iw({legendElements:e.legendElements,seriesConfig:r.series,webChartLegend:r.legend,togglingLegendItemsDisabled:o?.togglingLegendItemsDisabled,pieChartLegendValueLabelFormatter:o?.pieChartLegendValueLabelFormatter}),Qv(t,r.background),Wv({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange}),z1(t),G1(t)}function QW(a){let{chart:t,chartElements:e,newConfig:i,queryObject:r,dataInfo:s,dataWasUpdated:n,options:o,utilsStrings:l,errorStrings:h}=a,{gaugeMinMaxFromData:c={}}=s??{},{xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A}=o??{},p=i.series,f=ze(p),m;if(n){let{count:S,data:T,queryConfig:F}=s??{};m=T,m?.dataItems!==void 0&&(t.data=m.dataItems),Uu(t.htmlContainer),ai(t.uid,{elementCount:S,queryConfig:F})}i.axes!==void 0&&Vw({chart:t,chartConfig:i,chartType:f,data:m,queryObject:r,xAxisLabelFormatter:u,gaugeInnerLabelFormatter:d,guideTooltipFormatter:A,options:o,utilsStrings:l,errorStrings:h,gaugeMinMaxFromData:c});let g=re.gauge,y=Number.isFinite(i?.innerRadius)?i.innerRadius:g.innerRadius,x=Number.isFinite(i?.startAngle)?i.startAngle:g.startAngle,w=Number.isFinite(i?.endAngle)?i.endAngle:g.endAngle;t.innerRadius=he(y),t.startAngle=x,t.endAngle=w,Hv(e.headerElements,{title:i.title,subtitle:i.subtitle}),jv(e.footerElements,i.footer),Qv(t,i.background),ai(t.uid,{config:_r(i)})}function HW(a){let{chartContainer:t,chartConfig:e,colorMatchApplied:i,pieSlicesSymbols:r,queryObject:s,dataInfo:n,t9nStrings:o,options:l,globalOptions:h}=a;it.commercialLicense=!(h?.showLicenseWatermark??h?.hideLicenseWatermark===!1),it.queue=h?.queueChartCreation!==!1,it.autoDispose=h?.autoDisposeChart===!0,h?.animationEnabled?F_(Fy):T_(Fy);let c;switch(ze(e?.series)){case V.PieSeries:io(s),c=RW({chartContainer:t,chartConfig:e,queryObject:s,dataInfo:n,colorMatchApplied:i,pieSlicesSymbols:r,options:l,globalOptions:h,t9nStrings:o});break;case V.GaugeSeries:io(s),c=UW({chartContainer:t,chartConfig:e,queryObject:s,dataInfo:n,options:l,globalOptions:h,t9nStrings:o});break;default:c=MW({chartContainer:t,chartConfig:e,dataInfo:n,colorMatchApplied:i,queryObject:s,options:l,globalOptions:h,t9nStrings:o});break}return c}function jW(a){let{chartContainer:t,chartConfig:e,t9nStrings:i,queryObject:r,options:s,colorMatchApplied:n,rendererFieldNames:o,pieSlicesSymbols:l,globalOptions:h,dataInfo:c,uniqueInternalID:u}=a,{errorStrings:d}=i,A=!oI(t),p=HW({chartContainer:t,chartConfig:e,dataInfo:c,colorMatchApplied:n,pieSlicesSymbols:l,queryObject:r,t9nStrings:i,options:s,globalOptions:h}),{chart:f,chartElements:m}=p;ai(f.uid,{chartWasCreatedWhileHidden:A,queryObject:r,filterBySelection:s?.filterBySelection,options:s,colorMatchApplied:n,rendererFieldNames:o}),$W(f,d),IW(f,t);function g(){u&&YF.delete(u),f.isDisposed()||(FQ(f),m!==void 0&&(p.chartElements=void 0),f.dispose())}function y(T){let{chartConfig:F,dataWasUpdated:L,dataUpdateDetails:$,queryObject:I,options:U,t9nStrings:{utilsStrings:P},configWithAllSeries:Q,hasSeriesFilteredOut:G,pieSlicesSymbols:Y,dataInfo:ee}=T,te=ve(f.uid,"config"),le=F?.series,z=le!==void 0?ze(le):void 0;if(f.isDisposed()||m===void 0||!yx(te,F))throw new Tl(cd.ChartDisposed);switch(z){case V.BoxPlotSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:f instanceof Vt&&VW({chart:f,chartElements:m,queryObject:I,dataWasUpdated:L,dataUpdateDetails:$,dataInfo:ee,newConfig:F,configWithAllSeries:Q,hasSeriesFilteredOut:G,options:U,utilsStrings:P,errorStrings:d});break;case V.PieSeries:io(I),NW({chart:f,chartElements:m,queryObject:I,dataWasUpdated:L,dataInfo:ee,newConfig:F,pieSlicesSymbols:Y,options:U,utilsStrings:P,errorStrings:d});break;case V.GaugeSeries:io(I),QW({chart:f,chartElements:m,newConfig:F,queryObject:I,dataWasUpdated:L,dataInfo:ee,options:U,utilsStrings:P,errorStrings:d});break}}function x(T){let{chartConfig:F,options:L,dataWasUpdated:$,dataUpdateDetails:I,configWithAllSeries:U,hasSeriesFilteredOut:P,pieSlicesSymbols:Q,colorMatchApplied:G,rendererFieldNames:Y,globalOptions:ee,t9nStrings:te,queryObject:le,dataInfo:z}=T,K=!oI(t),we=_a(le,L?.popupTemplateFieldInfosEnabled);ai(f.uid,{chartWasUpdatedWhileHidden:K,options:L,fieldList:we,queryObject:le,colorMatchApplied:G,rendererFieldNames:Y}),y({chartConfig:F,options:L,dataWasUpdated:$,dataUpdateDetails:I,pieSlicesSymbols:Q,t9nStrings:te,configWithAllSeries:U,hasSeriesFilteredOut:P,queryObject:le,dataInfo:z})}async function w(T,F){if(wn(f)&&(f instanceof Vt||f instanceof qi)){let L=ve(f.uid,"actionMode");L!==Ut.MonoSelection&&L!==Ut.None&&await WQ({chart:f,queryObject:T,errorStrings:F})}}function S(){Vv(f)}return{update:x,dispose:g,resetZoom:S,clearSelection:()=>wA({chart:f}),switchSelection:async T=>await w(T,i.errorStrings),exportImage:async T=>await TQ({chart:f,exportOptions:T}),setActionMode:(T,F)=>Wv({chart:f,actionMode:T,cursorRange:F})}}var WW="AM5C241025748",Ji={SelectEnded:"selectended",DataValidated:"datavalidated",BoundsChanged:"boundschanged",PointerUp:"pointerup",FrameEnded:"frameended",Click:"click"},uw=new Map;function XW(a,t){return Gc(a,t)}function zW(a,t){zc(a,t)}function zc(a,t){let e=uw.get(a)??{};uw.set(a,{...e,...t})}function Gc(a,t){return uw.get(a)?.[t]}function fe(a,t){return Gc(a,t)}function Xr(a,t){zc(a,t)}function bi(a,t){return Gc(a,t)}function Gr(a,t){zc(a,t)}function gu(a,t){return Gc(a,t)}function BA(a,t){zc(a,t)}function yl(a,t){return Gc(a,t)}function GW(a,t){zc(a,t)}function ka(a,t){return Gc(a,t)}function Hw(a,t){zc(a,t)}function YW(a,t){return Gc(a,t)}function KW(a,t){zc(a,t)}function ZW(a){let{chartSeries:t,oldSeries:e,newSeries:i}=a,r=_x(e,i);for(let s=0;s<r.length;s+=1){let n=r[s][0],o=r[s][1],l=t.length;n>=0&&n<l&&o>=0&&o<l&&t.swap(r[s][0],r[s][1])}}function qW(a){return a.get("renderer")instanceof ya?xr.yField:xr.xField}function JW(a){let t="";return a instanceof ga?t=a.get("categoryXField")??a.get("valueXField")??"":a instanceof Ur&&(t=a.get("categoryField")??""),t}function e4(a){let t="";return a instanceof ga?t=a.get("categoryYField")??a.get("valueYField")??"":a instanceof Ur&&(t=a.get("categoryField")??""),t}function zf(a){let t="",{chart:e}=a;return e!==void 0&&(t=fe(e.uid,"isRotated")===!0?JW(a):e4(a)),t}function t4(a,t){t&&a.setThemes([NL.new(a)])}function i4(a,t){t===!0&&a.setThemes([VL.new(a)])}function Xt(a){let t=qs("#000000"),e=hd;if(a!=null){let[i,r,s,n]=a;e=n/255,t=qs(`rgba(${i}, ${r}, ${s}, ${e})`)}return{color:t,opacity:e}}function Li(a,t){t===!1&&(!("isHiding"in a)||!a.isHiding())?(a.set("visible",!1),"hide"in a&&a.hide()):t!==!1&&(!("isShowing"in a)||!a.isShowing())&&(a.set("visible",!0),"show"in a&&a.show())}function Di(a){let{childId:t,parent:e,useChildId:i}=a,r=i?t:Qs(t,e.uid);return e.children.values.find(s=>s.get("id")===r)}function Qs(a,t){return`${a}${t}`}function yu(a,t=100){return setTimeout(()=>a(),t)}function q1(a){let{series:t,chartConfig:e,whenReadyCallback:i}=a,r=ze(e.series);if(t){let s=t.root.events.on(Ji.FrameEnded,()=>{let n=!1,o=!1;switch(!0){case t instanceof Ri:n=t.columns.length===t.dataItems.length;break;case(!(t instanceof Bo)&&t instanceof ei):let l=bi(t.uid,"bulletTemplate");if(l)if(r===V.ScatterSeries)n=l.entities.length===t.data.length&&t.dataItems[t.dataItems.length-1]?.bullets?.[0]?.get("sprite")!==void 0;else{o=!0;let h=zf(t)??"",c=e?.series[0]?.x??"";n=t.dataItems.filter(u=>{let d=u.dataContext;return h in d&&c in d&&d[c]!==void 0}).every(u=>!Number.isFinite(u.dataContext[h])||u?.bullets?.[0]?.get("sprite"))}break;default:n=!0;break}n&&(s.dispose(),i(),o&&t.markDirtySize())})}}function J1(a){let{chart:t,chartConfig:e,delayCallback:i}=a,{root:r}=t;if(ze(e.series)===V.GaugeSeries||!i)Uu(r.dom);else if(t instanceof fs&&i){let s=()=>{r.events.once(Ji.FrameEnded,()=>{Uu(r.dom)})};q1({series:t.series.getIndex(0),chartConfig:e,whenReadyCallback:s})}}function lI(a){let t=Number.NaN;if(typeof a=="number")t=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(t=Bt(e))}return t}function r4(a,t){return t!==!0||a?.includes("Dot")===!0?"round":"square"}function s4(a,t){let e=a??hs.Solid,i=t??q.lineWidth,r={[hs.Solid]:[],[hs.Dot]:[1,i],[hs.DashDotDot]:[4*i,i,1,i,1,i],[hs.Dash]:[4*i,3*i],[hs.DashDot]:[4*i,3*i,1,3*i],[hs.Null]:[]};return r[e]??r[hs.Null]}function a4(a){let{root:t,fill:e,rotation:i,isLinePattern:r,chartBackgroundFill:s}=a,n;if(r!==!1){let{tileSize:o,diagonalTileSize:l}=q.patternLineProperties,h=i===45||i===135,c=h?l:o;n=Jl.new(t,{width:c,height:c,strokeWidth:q.patternLineProperties.strokeWidth??1,gap:6,color:e,...h?{angle:i}:{rotation:i??Number.NaN},...s!==void 0&&{fill:s,fillOpacity:1}})}else{let o=s!==void 0?1:q.patternRectProperties.fillOpacity??Number.NaN;n=iu.new(t,{width:q.patternRectProperties.width??Number.NaN,height:q.patternRectProperties.height??Number.NaN,strokeWidth:q.patternRectProperties.strokeWidth??Number.NaN,fillOpacity:o,color:s??e,fill:e,gap:1,maxWidth:q.patternRectProperties.rectWidth??Number.NaN,maxHeight:q.patternRectProperties.rectHeight??Number.NaN,rotation:i??Number.NaN})}return n}function n4(a){let{fill:t,root:e,style:i,chartBackgroundFill:r}=a,s,n,o=!0;switch(i){case vs.Horizontal:{n=0;break}case vs.Vertical:{n=90;break}case vs.ForwardDiagonal:{n=135;break}case vs.BackwardDiagonal:{n=45;break}case vs.Cross:{n=0,o=!1;break}case vs.DiagonalCross:{n=135,o=!1;break}case vs.Solid:}return n!==void 0&&e!==void 0&&(s=a4({root:e,fill:t,rotation:n,isLinePattern:o,chartBackgroundFill:r})),s}function ek(a,t=0){return(a??t)%360}function tk(a,t){let e={stroke:Xt().color,strokeWidth:q.lineWidth,strokeDasharray:[],linecap:t!==!0?"round":"square",strokeOpacity:hd};if(a!=null){let i=Xt(a.color);e.stroke=i.color,e.strokeOpacity=i.opacity,a.width!==void 0&&(e.strokeWidth=a.width,e.strokeOpacity=a.width===0?0:i.opacity),a.style!==void 0&&a.style!==hs.Null&&(e.strokeDasharray=s4(a.style,e.strokeWidth),e.linecap=r4(a.style,t))}return e}function ik(a,t){let e=a,[i,r,s,n]=a?.color??t??q.color,o=[i,r,s,n];return e==null?e={type:Rt.SLS,color:o}:e.color===void 0&&(e.color=o),tk(e,!1)}function o4(a,t,e){let{color:i,outline:r,style:s}=a,n=Xt(i),o=ax(s),l;return e!==void 0?l=Xt(e).color:o&&(l=Xt(q.backgroundColor).color),{pattern:n4({root:t,fill:n.color,style:s,chartBackgroundFill:l}),fill:n.color,outline:ik(r,i),fillOpacity:n.opacity}}function l4(a){let{color:t,style:e,size:i,outline:r,xoffset:s,yoffset:n,angle:o}=a,l=ek(o),h=Xt(t),c=r,u=e!==YA.Cross&&e!==YA.X&&i!==void 0&&i<q.lineSeries.marker.markerSizeThresholdForTooltipDisplay&&(r?.width===void 0||r.width===0),d=i;return u&&(c={type:Rt.SLS,style:r?.style??hs.Solid,color:[0,0,0,0],width:q.lineSeries.marker.markerSizeThresholdForTooltipDisplay-i},d=i+1),{path:e!==void 0?nx(e,d):"",fill:h.color,outline:ik(c,t),xOffset:s??0,yOffset:n??0,angle:l,fillOpacity:h.opacity}}function h4(a){let t;switch(a){case"line-through":case"underline":t=a;break}return t}function u4(a){return a===!0?"wrap":"none"}function rk(a,t){let e=je;switch(a??t){case"right":e=ge;break;case"left":e=Hr;break}return e}function sk(a,t){let e=je;switch(a??t){case"top":e=Hr;break;case"bottom":e=ge;break}return e}function c4(a){let{angle:t,mappedHAlignment:e,mappedVAlignment:i,isGuideLabel:r}=a,s=e,n=i,o=e,l=i;return(Math.abs(t)===270||Math.abs(t)===90)&&(r||(o=void 0,n=void 0),l===Hr?s=ge:l===ge?s=Hr:l===je&&(s=je)),{align:s,valign:n,horizontalCenter:o,verticalCenter:l}}function jw(a){let{root:t,symbol:e,defaultToColorFromRamp:i,colorRampIndex:r,isChartFillSymbol:s=!1,chartBackgroundColor:n}=a,o;if(i===!0){let l=s?Qm:hd;if(e.color=e.color??gh({colorIndex:r,opacity:l}),fd(e)||np(e)){let{outline:h}=e;h!==void 0&&(h.color=h?.color??gh({colorIndex:r}),e.outline={...h})}}return Px(e)?o=tk(e,!0):np(e)?(e.style??=q.lineSeries.marker.markerStyle,e.size??=q.lineSeries.marker.markerBigSize,o=l4(e)):fd(e)&&(o=o4(e,t,n)),o}function d4(a){let{root:t,input:e,isGuideLabel:i,defaults:r}=a,s=ek(e.angle,r?.rotation),n=rk(e.horizontalAlignment,r?.horizontalCenter),o=sk(e.verticalAlignment,r?.verticalCenter),{align:l,valign:h,horizontalCenter:c,verticalCenter:u}=c4({angle:s,mappedHAlignment:n,mappedVAlignment:o,isGuideLabel:i}),d=e.rightToLeft??(t?.dom?Um(t.dom)==="rtl":!1);return{fill:Xt(e.color).color,fontFamily:e.font?.family??"Arial, Helvetica, sans-serif",fontSize:e.font?.size??q.generalFontSize,fontWeight:e.font?.weight??"400",textDecoration:h4(e.font?.decoration),align:l,valign:h,verticalCenter:u,horizontalCenter:c,text:xa({textSymbol:e,format:"amChartsV5"}),angle:s,xOffset:e.xoffset??r?.dx??0,yOffset:e.yoffset??r?.dy??0,backgroundFill:Xt(e.backgroundColor).color,borderFill:Xt(e.borderLineColor).color,borderWidth:e.borderLineSize??1,haloColor:Xt(e.haloColor).color,rtl:d?"rtl":"ltr",wrap:u4(r?.wrap),maxWidth:r?.maxWidth??Number.NaN}}function ak(a,t){t!==void 0&&(t.marginBottom!==void 0&&a.set("marginBottom",t.marginBottom),t.marginTop!==void 0&&a.set("marginTop",t.marginTop),t.marginRight!==void 0&&a.set("marginRight",t.marginRight),t.marginLeft!==void 0&&a.set("marginLeft",t.marginLeft),t.verticalCenter!==void 0&&a.set("y",sk(t.verticalCenter)),t.horizontalCenter!==void 0&&a.set("x",rk(t.horizontalCenter)),t.strokeWidth!==void 0&&a.get("background")?.set("strokeWidth",t.strokeWidth),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingLeft!==void 0&&a.set("paddingLeft",t.paddingLeft),t.paddingRight!==void 0&&a.set("paddingRight",t.paddingRight),t.maxWidth!==void 0&&a.set("maxWidth",t.maxWidth))}function vA(a){let{root:t,parent:e,defaults:i,index:r,id:s}=a,n=Kt.new(t,{text:"",textAlign:"center",background:or.new(t,{}),paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0});return s!==void 0&&n.set("id",s),ak(n,i),e!==void 0&&e.children.insertIndex(r??e.children.length,n),n}function hI(a){let{label:t,offset:e,offsetProperty:i}=a;t.adapters.remove(i),(t instanceof Kt?[t]:t.entities).forEach(r=>{if(typeof e=="string"&&!Number.isFinite(Number(e))){let s=ip(e);typeof s=="number"&&(s/=100,r.adapters.add(i,()=>(i==="dx"?r.width():r.height())*(s??0)))}else{let s=Number(e);Number.isFinite(s)&&r.set(i,s)}})}function Cn(a){let{label:t,labelConfig:e,defaults:i,skipSettingText:r,skipSettingXAndY:s}=a,n=t instanceof Kt?t.root:t.entities[0]?.root,o=e?.visible??!0;if(t!==void 0&&!t.isDisposed()&&e!==void 0){let l=t instanceof Kt&&ka(t.uid,"isGuide"),h=d4({root:n,input:e.content,isGuideLabel:l,defaults:i});t.setAll({fill:h.fill,fontFamily:h.fontFamily,fontWeight:h.fontWeight,fontSize:h.fontSize,textDecoration:h.textDecoration,rotation:h.angle,direction:h.rtl,oversizedBehavior:h.wrap,maxWidth:h.maxWidth}),r||t.setAll({text:h.text}),s||(hI({label:t,offset:h.xOffset,offsetProperty:"dx"}),hI({label:t,offset:h.yOffset,offsetProperty:"dy"}),t.setAll({centerX:h.align,centerY:h.valign,x:h.horizontalCenter,y:h.verticalCenter})),t.get("background")?.setAll({strokeWidth:h.borderWidth,strokeOpacity:1}),t.set("visible",o),t instanceof Kt?Li(t,o):t.entities.forEach(c=>{Li(c,o)})}}function gl(a){let{chart:t,label:e,labelType:i}=a,{legendTitle:r}=q.legendProperties,s=fe(t.uid,"config"),n=r.maxWidth??Number.NaN;switch(i){case Wt.GuideLabel:if(t instanceof vi){let o=e.get("rotation");o===90||o===270?n=t.seriesContainer.height():n=t.seriesContainer.width()}break;case Wt.XAxisTitle:t instanceof vi&&(n=t.seriesContainer.width());break;case Wt.YAxisTitle:t instanceof vi&&(n=t.seriesContainer.height());break;case Wt.ChartTitle:case Wt.ChartSubTitle:case Wt.ChartFooter:n=t.chartContainer.width()-20;break;case Wt.LegendTitle:s?.legend?.position!==void 0&&(s?.legend?.position===st.Top||s?.legend?.position===st.Bottom)&&(n=t.chartContainer.width()-20);break}if(n>0)if(i===Wt.YAxisTitle){let o=Number(e.get("fontSize"))||q.generalFontSize,l=o*2.4,h=Math.max(1,Math.floor(n/Math.max(o*.5,1)));e.adapters.remove("text"),e.adapters.add("text",c=>jF({input:c??"",charsPerLine:h})),e.setAll({maxHeight:Math.min(n,l),maxWidth:n,breakWords:!1,oversizedBehavior:"none"})}else e.setAll({maxWidth:n,oversizedBehavior:"wrap"})}function Qc(a){let{chart:t}=a;gl(a),t.events.onDebounced(Ji.BoundsChanged,()=>gl(a),q.debounceTime)}function Tv(a,t){let e=t.get("axisFill"),i=t.get("label");if(e!==void 0&&i!==void 0){let r=ka(i.uid,"guideLabelConfig"),s=a.get("renderer")instanceof as,n=Math.round(e.width()),o=Math.round(e.height()),l=Math.round(i.height()),h=Math.round(i.width()),{horizontalAlignment:c,verticalAlignment:u}=r??{},d=0,A=0;if(s){let p=n!==0;switch(c){case"left":p?d=-h/2:d=-h;break;case"right":p?d=h/2:d=h;break;case"center":case"justify":break;default:p||(d=h/2);break}switch(u){case"bottom":p?A=-l:A=-l/2;break;case"middle":A=-o/2;break;default:A=-o+l/2;break}}else{let p=o!==0;switch(c){case"center":d=n/2;break;case"left":d=h/2;break;default:d=n-h/2;break}switch(u){case"bottom":p?A=o/2:A=l;break;case"top":p?A=-o/2+l/2:A=-l;break;default:p||(A=-l/2);break}}i.setAll({dx:d,dy:A})}}function A4(a){let{axis:t,guide:e,label:i}=a,{chart:r}=t;if(r){let s=t.get("renderer")instanceof as?r.yAxes.getIndex(0):r.xAxes.getIndex(0);s&&(s.events.onDebounced(Ji.BoundsChanged,()=>Tv(t,e),q.debounceTime),t.events.onDebounced(Ji.BoundsChanged,()=>Tv(t,e),q.debounceTime))}i.setAll({paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})}function p4(a){let{guide:t,axis:e,guideLabelConfig:i}=a,r=t.get("label");if(r!==void 0){ak(r),Hw(r.uid,{isGuide:!0,guideLabelConfig:i});let{chart:s}=e;s!==void 0&&Qc({chart:s,label:r,labelType:Wt.GuideLabel}),A4({axis:e,guide:t,label:r})}}function f4(a){let{axis:t,guide:e,guideConfig:i,guideType:r}=a,s=e?.get("label");if(s!==void 0)if(i.label!==void 0){let n=t.get("renderer")instanceof as,o;t instanceof Vs||(n?r===Rt.SFS?o=q.verticalSurfaceGuideLabels:o=q.verticalLineGuideLabels:r===Rt.SFS?o=q.horizontalSurfaceGuideLabels:o=q.horizontalLineGuideLabels),Hw(s.uid,{guideLabelConfig:i.label});let l={type:V.Text,visible:i.visible,content:{...i.label,verticalAlignment:"middle",horizontalAlignment:"center",rightToLeft:s.get("direction")==="rtl"}};Cn({label:s,labelConfig:l,defaults:o}),s.events.once(Ji.BoundsChanged,()=>{Tv(t,e)}),Tv(t,e)}else Li(s,!1)}function Ww(a){return a!=null&&!a.isDisposed()}function m4(a){let t;if(a!=null){let e=a;if(e instanceof Wr)t=e.chart;else{let i=e.dataItem?.component;i instanceof Wr&&(t=i.chart)}}return t}function nk(a){let t;if(a){let e=a.get("background")?.get("fill");if(e){let{r:i,g:r,b:s}=e;t=[Math.round(i),Math.round(r),Math.round(s),255]}}return t}function ok(a){let t=qs(a),{r:e,g:i,b:r}=t;return{r:e,g:i,b:r}}function g4(a){let t=a.dataItem?.component;t instanceof ei?(t.uid!==void 0?bi(t.uid,"bulletTemplate"):void 0)?.adapters?.remove?.("fill"):t instanceof Ri?t.columns?.template?.adapters?.remove?.("fill"):t instanceof Ur&&t.slices?.template?.adapters?.remove?.("fill")}function lk(a){let{element:t,fill:e,fillOpacity:i,pattern:r,chartBackgroundFill:s}=a,n=t.get("tooltip"),o=!0,l=t;if(r!==void 0){n!==void 0&&(o=!1,n.get("background")?.set("fill",e)),l.set("fillPattern",r);let h=s??e;l.set("fill",h),l.set("fillOpacity",1),g4(l)}else l.set("fill",e),l.remove("fillPattern"),l.set("fillOpacity",i);n!==void 0&&n.set("getFillFromSprite",o)}function Pv(a,t){a.setAll({stroke:t.stroke,strokeDasharray:t.strokeDasharray,strokeOpacity:t.strokeOpacity,strokeWidth:t.strokeWidth,lineCap:t.linecap})}function hk(a){let{element:t,markerSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return t!==void 0&&e!==void 0&&(n=jw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(t.setAll({svgPath:n.path,rotation:n.angle,dx:n.xOffset,dy:n.yOffset}),lk({element:t,fill:n.fill,fillOpacity:n.fillOpacity}),Pv(t,n.outline)),Li(t,i)),n}function vu(a){let{root:t,element:e,fillSymbol:i,visible:r,defaultToColorFromRamp:s,colorRampIndex:n,isChartFillSymbol:o,keepCurrentVisibility:l,chartBackgroundColor:h}=a,c=ax(i?.style),u=m4(e),d=h??(c?nk(u)??[...q.backgroundColor]:void 0),A;if(e!==void 0&&!e.isDisposed()){if(i!==void 0&&(A=jw({root:t,symbol:i,defaultToColorFromRamp:s,colorRampIndex:n,isChartFillSymbol:o,chartBackgroundColor:d}),A!==void 0)){let p=d!==void 0?Xt(d).color:void 0;lk({element:e,fill:A.fill,fillOpacity:A.fillOpacity,pattern:A.pattern,chartBackgroundFill:p}),Pv(e,A.outline)}l||Li(e,r)}return A}function Fo(a){let{element:t,lineSymbol:e,visible:i,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return t!==void 0&&!t.isDisposed()&&(e!==void 0&&(n=jw({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(Pv(t,n),t instanceof ei&&Pv(t.strokes.template,n))),Li(t,i)),n}function Ja(a){let{root:t,element:e,seriesIndex:i,seriesSymbol:r,isChartFillSymbol:s,colorMatch:n,rendererSymbol:o,keepCurrentVisibility:l}=a,h,c;n&&o!==void 0&&(h=gx({rendererSymbol:o,seriesSymbol:r,colorIndex:i}));let u={root:t,element:e,defaultToColorFromRamp:!0,colorRampIndex:i},d=h??{...r};switch(r.type){case Rt.SLS:c=Fo({...u,lineSymbol:d});break;case Rt.SFS:c=vu({...u,fillSymbol:d,isChartFillSymbol:s,keepCurrentVisibility:l});break;case Rt.SMS:c=hk({...u,markerSymbol:d});break}return{symbolWithColorInfo:d,stylingInfo:c}}function uI(a,t){if(t!==void 0){let{elementColor:e,elementOutlineColor:i,elementOutlineWidth:r,rotation:s,transformation:n}=t,{opacity:o,scale:l}=n??{};e!==void 0&&a.setAll({fill:Xt(e).color,fillOpacity:1}),i!==void 0&&a.setAll({stroke:Xt(i).color,strokeOpacity:1}),r!==void 0&&a.setAll({strokeWidth:r}),s!==void 0&&a.setAll({rotation:s}),l!==void 0&&a.setAll({scale:l}),o!==void 0&&a.setAll({fillOpacity:o,strokeOpacity:o})}}function qn(a){let{root:t,type:e,intlOptions:i,formatLocale:r}=a,s;switch(e){case V.NumberAxisFormat:{s=Zh.new(t,{}),s.set("intlLocales",r),s.set("numberFormat",i);break}case V.DateAxisFormat:{s=Tc.new(t,{}),s.set("intlLocales",r);break}}return s}function y4(a,t,e){let i=t-a,r=[];if(i!==0){if(e===1)r=[a];else if(e>1){let s=i/(e-1);r=[...ZF(a,t,s),t]}}return r}function v4({x:a,mean:t,stddev:e,scalingFactor:i}){let r=-1/(2*e**2);return(i??1)*Math.exp(r*(a-t)**2)}function b4(a){let t=0;if(a.length>0)for(let e=0;e<a.length;e+=1)a[e].count>t&&(t=a[e].count);return t}function uk(a){let t=!1,e;if(a.target.dataItem?.component instanceof Wr?{chart:e}=a.target.dataItem.component:(a.target instanceof Yn||a.target instanceof Al)&&({chart:e}=a.target),e instanceof vi||e instanceof Us){let i=fe(e.uid,"actionMode");if(i!==void 0){let{originalEvent:r}=a;t=i===Ut.MultiSelection||i===Ut.MultiSelectionWithCtrlKey&&("ctrlKey"in r&&r.ctrlKey||"metaKey"in r&&r.metaKey)}}return t}function ra(a){let{element:t,selected:e,multiSelect:i,isDateOrCategoryAxis:r,backToDefaultState:s}=a,n=!1;if(t!==void 0){let o=yl(t.uid,"selected")??!1;n=o,i!==!0?r===!0?n=o?!1:o!==e:n=e:n=o!==e;let l=s===!0?ia.Default:ia.CustomInactive;t.states.apply(ia.Default),t.states.apply(n?ia.CustomActive:l),n!==o&&(GW(t.uid,{selected:n}),n&&(t.toFront(),t.dataItem?.component instanceof Wr&&t.dataItem.component.toFront()))}return n}function x4(a,t){let e=fe(t.chart?.uid??Number.NaN,"actionMode"),i=uk(a);return e===Ut.MonoSelection||e===Ut.MultiSelectionWithCtrlKey&&!i}function ns(a,t){let{selectedElementsTheme:e,nonSelectedElementsTheme:i}=t??q.selectionTheme??{},r=a.states.create(ia.CustomActive,{}),s=a.states.create(ia.CustomInactive,{});uI(r,e),uI(s,i)}function bA(a){let{value:t,valueFormat:e,formatLocale:i,root:r}=a,s=t?.toString(),n=qn({type:e.type,intlOptions:e.intlOptions,formatLocale:i,root:r});return typeof t=="number"&&e.type===V.NumberAxisFormat?s=n.format(t,$o(e)):(typeof t=="number"||t instanceof Date)&&e.type===V.DateAxisFormat&&(s=n.format(t,$o(e))),s}async function _4(a){let{root:t,exportOptions:e}=a,{format:i,quality:r=1,...s}=e,n=r<0||r>1?1:r,o=await hu.new(t,{}).exportImage(i,{quality:n,...s}),l=a1(o),h=i==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${i}`,{type:h})}function mA(a,t){if(a!==void 0&&t!==void 0&&(a.states.lookup("default")?.setAll({fill:t.fill,fillOpacity:t.fillOpacity}),t.outline!==void 0)){let{outline:e}=t;a.states.lookup("default")?.setAll({stroke:e.stroke,strokeOpacity:e.strokeOpacity,strokeDasharray:e.strokeDasharray,lineCap:e.linecap,strokeWidth:e.strokeWidth})}}function ck(a){let{numberFormatter:t,dataLabelsConfigContent:e,stackedType:i,externalDataLabelFormatter:r}=a;return(s,n)=>{let o=i===$i.Stacked100&&n!==void 0?n:s;return t.get("numberFormat").style==="percent"&&(o/=100),xa({textSymbol:{...e,text:t.format(o)},format:r===void 0?"amChartsV5":"html"})}}function C4(a,t){let e=a.dataItem,i;switch(t){case V.LineSeries:case V.ScatterSeries:i=e.get("point");break;case V.HistogramSeries:case V.BarSeries:case V.HeatSeries:i=e.get("graphics");break}let r=i??a,s=i?.x??r?.get("x")??0,n=i?.y??r?.get("y")??0;return{x:s,y:n}}function dk(a){let{label:t,chart:e,seriesType:i}=a,r=n=>{if(e instanceof vi){let o=C4(n,i),l=e.plotContainer,h=l.x(),c=l.y(),u=o.x<h||o.x>h+l.width()||o.y<c||o.y>c+l.height();n.setAll({visible:!u,forceHidden:u})}},s=Is((n,o)=>{o&&r(o)},q.debounceTime);t.on("x",s),t.on("y",s)}function w4(a){let{series:t,label:e,isHeatChart:i}=a;e.adapters.add("y",(r,s)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=s.dataItem;if(h!==void 0&&l!==void 0&&l!==null){let c=h?.get("valueY"),u=s.localBounds().bottom;if(o!==!0){let d=q.dataLabelNegative?.paddingTop??0;if(t.get("stacked")||i)if(c<0)l+=u-d;else{let A=i?q.heatChartLabelPadding.paddingTop:0;l+=u/2+A}}else{let d=q.rotatedChartPadding?.paddingTop??0;l+=u/2+d}}return l}),e.adapters.add("x",(r,s)=>{let{chart:n}=t,o=n!==void 0?fe(n.uid,"isRotated"):!1,l=typeof r=="number"?r:r?.value,h=s.dataItem;if(h!==void 0&&l!==void 0&&l!==null&&o===!0){let c=h?.get("valueX"),u=s.width()/2,d=q.rotatedChartPadding?.paddingRight??0,A=u+d;t.get("stacked")||(c<0?l-=A:l+=A)}return l})}function B4(a){let{series:t,externalDataLabelFormatter:e}=a;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config"),r=i?.series?.find(h=>h.id===t.get("id"))?.dataLabels??a.dataLabelsConfig,s=us(i),n=t.get("stacked"),o=fa.new(t.root,{locationY:!n&&!s?1:void 0,locationX:!n&&s?1:void 0,sprite:Kt.new(t.root,{text:s?"{valueX}":"{valueY}",populateText:!0,centerY:ge,centerX:Hr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(r?.content.color).color,fontSize:r?.content.font?.size})}),l=o.get("sprite");if(l){let h=l;F4({dataLabel:h,series:t,externalDataLabelFormatter:e}),pk({...a,dataLabelsConfig:r,dataLabel:h,dataLabelFormatter:ck})}return o})}function Xw(a,t=1){a.bullets.removeIndex(t)}function Ak(a){let{textBackgroundColor:t,chartBackgroundColor:e,fillOpacity:i}=a,r;return JA({r:t.r,g:t.g,b:t.b,a:i})?r=JA({r:e.r,g:e.g,b:e.b,a:i})?Xt(cF).color:e:r=JA({r:e.r,g:e.g,b:e.b,a:i})?e:Xt(uF).color,r}function S4(a){let{dataLabel:t,labelConfigColor:e,seriesColor:i,backgroundColor:r,autoInverseDataLabelTextColor:s,isHeatChart:n}=a,o=r??Xt(q.backgroundColor).color;s===!0&&i&&t.adapters.add("fill",(l,h,c)=>{let u=e??h.text.get("fill"),d=(h.dataItem?.component).get("stacked"),A=u;if(u&&(d||n)){let p=h.dataItem.get("graphics"),f=p?.get("fillOpacity");A=Ak({textBackgroundColor:p?.get("fill")??i,chartBackgroundColor:o,fillOpacity:f})}return A})}function F4(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=n.dataItem,h=bi(e.uid,e instanceof Ri?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(h!==void 0&&e.chart&&l){let c=fe(e.chart.uid,"config"),u=us(c),d=u?l.get("valueX"):l.get("valueY"),A=u?l.get("valueXTotalPercent"):l.get("valueYTotalPercent");o=h(ks(c)===$i.Stacked100?A:d)}return r==="html"?Zr(o):o})}function Xv(a){let{series:t,seriesConfig:e,dataLabel:i,labelDefaults:r,dataLabelsConfig:s,isRotated:n,seriesType:o,defaultDataLabelFormatter:l,externalDataLabelFormatter:h}=a;if(i!==void 0){let{chart:c}=t,u=h,d=s?.content??{type:Rt.TS},A=c?fe(c.uid,"config"):void 0;if(c&&h===void 0&&l!==void 0&&A?.axes?.[1]?.valueFormat?.type===V.NumberAxisFormat){let y=fe(c.uid,"formatLocale"),x=o===V.HeatSeries?{type:V.NumberAxisFormat,intlOptions:{}}:A?.axes?.[1]?.valueFormat,w=ks(A),S=w===$i.Stacked100?{...Xm().intlOptions,...x.intlOptions,style:"percent"}:{...x.intlOptions},T=qn({root:c.root,type:x.type,formatLocale:y,intlOptions:S});u=l({numberFormatter:T,dataLabelsConfigContent:d,stackedType:w,externalDataLabelFormatter:h})}let p;switch(o){case V.BarSeries:p="barSeriesDataLabelFormatter";break;case V.LineSeries:p="lineSeriesDataLabelFormatter";break;case V.HistogramSeries:p="histogramDataLabelFormatter";break;case V.ScatterSeries:p="scatterplotDataLabelFormatter";break;case V.HeatSeries:p="heatChartDataLabelFormatter";break}p!==void 0&&Gr(t.uid,{[p]:u}),s!==void 0&&(o===V.HeatSeries?s.content.text="{value}":s.content.text=n===!0?"{valueX}":"{valueY}",s.visible=s.visible!==!1),Cn({label:i,labelConfig:s,defaults:r??q.dataLabel,skipSettingText:!0});let f=t.get("stacked"),m=f&&o===V.BarSeries&&e?.hideOversizedStackedLabels!==!1,g=!f&&o===V.BarSeries&&e?.hideOversizedSideBySideLabels===!0;g||m?i.setAll({oversizedBehavior:"hide",maxWidth:void 0,maxHeight:g?100:void 0}):i.setAll({oversizedBehavior:"none"})}}function T4(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[1];if(s){s.set("locationY",t.get("stacked")?void 0:1);let n=s.get("sprite");n&&Xv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:ck,externalDataLabelFormatter:i})}})}function pk(a){let{series:t,dataLabelsConfig:e,autoInverseDataLabelTextColor:i,externalDataLabelFormatter:r,labelDefaults:s,seriesType:n,dataLabel:o,isHeatChart:l,dataLabelFormatter:h}=a;o&&(t.chart&&e&&e?.visible!==!1&&dk({label:o,chart:t.chart,seriesType:n}),w4({series:t,label:o,isHeatChart:l}),Xv({...a,dataLabel:o,labelDefaults:s,defaultDataLabelFormatter:h,externalDataLabelFormatter:r}),S4({dataLabel:o,labelConfigColor:Xt(e?.content.color).color,seriesColor:t.get("fill"),backgroundColor:t.chart?.get("background")?.get("fill"),autoInverseDataLabelTextColor:i,isHeatChart:l}))}function fk(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1,r=t.bullets.hasIndex(1);i?(r||B4(a),T4(a)):r&&Xw(t)}function P4(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=n.dataItem,h=bi(e.uid,"heatChartDataLabelFormatter"),c=fe(e.chart?.uid??NaN,"config");if(h!==void 0&&l){let u=l.get("value"),d=l.get("categoryX"),A=l.get("categoryY");u===null?o=c?.series[0].emptyCells?.text??q.heatChart.emptyCells?.text??"":u!==void 0&&(o=h(u,d,A))}return r==="html"?Zr(o):o})}function D4(a){let{numberFormatter:t,dataLabelsConfigContent:e}=a;return i=>xa({textSymbol:{...e,text:t.format(i)},format:"amChartsV5"})}function L4(a){let{series:t,externalDataLabelFormatter:e}=a;t.bullets.push(()=>{let i=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,r=fa.new(t.root,{sprite:Kt.new(t.root,{text:"{value}",populateText:!0,centerY:ge,centerX:Hr,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(i?.content.color).color,fontSize:i?.content.font?.size,oversizedBehavior:"hide"})}),s=r.get("sprite");if(s){let n=s;P4({dataLabel:n,series:t,externalDataLabelFormatter:e}),pk({...a,dataLabelsConfig:i,dataLabel:n,isHeatChart:!0,dataLabelFormatter:D4}),n.set("oversizedBehavior","hide"),n.set("maxWidth",void 0),n.set("maxHeight",void 0)}return r})}function I4(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1;t.bullets.hasIndex(0)&&Xw(t,0),i&&L4(a)}var Ts={nameField:"name",fillField:"fill",strokeField:"stroke",fillOpacityField:"fillOpacity",strokeOpacityField:"strokeOpacity"};function mk(a,t){let e=Gf(a);a.columns.template.set("tooltip",e);let i=t!==void 0?"tooltipHTML":"tooltipText";a.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),a.columns.template.adapters.remove(i),a.columns.template.adapters.add(i,(r,s)=>Yf({element:s,series:a,isHTML:t!==void 0}))}function gk(a){let{axesConfig:t,currentSeries:e,tooltipValueFormat:i}=a,{root:r,chart:s}=e;if(s){let n=t?.[1]?.valueFormat,o=t?.[0].valueFormat,l=fe(s.uid,"formatLocale");if(n?.type===V.NumberAxisFormat){let h=qn({root:r,type:n.type,formatLocale:l,intlOptions:n.intlOptions});Gr(e.uid,{tooltipValueYNumberFormatCallback:c=>h.format(c,i?.intlOptions??n.intlOptions)})}if(o?.type===V.NumberAxisFormat){let h=qn({root:r,type:o.type,formatLocale:l,intlOptions:o.intlOptions});Gr(e.uid,{tooltipValueXNumberFormatCallback:c=>h.format(c,i?.intlOptions??o.intlOptions)})}}}function k4(a){let{axes:t,seriesConfig:e,series:i,fieldList:r,utilsStrings:s}=a,{dataTooltipVisible:n}=e,o,l=fe(i.chart?.uid??0,"rtl")??!1,h=Ra(l);return n===!1?o=(c,u,d)=>"":o=(c,u,d)=>{let A=Or(r,e.x),p=yA(A,t?.[0].title?.content?.text),f=yA(s?.statistics.count??"",t?.[1]?.title?.content?.text??""),m=bi(i.uid,"tooltipValueXNumberFormatCallback"),g=bi(i.uid,"tooltipValueYNumberFormatCallback"),y=m?m(u):u,x=m?m(d):d,w=g?g(c):c;return`[bold]${p}${h} [/]${y} - ${x}
|
|
47
47
|
[bold]${f}${h} [/]${w}`},o}function $4(a){let{seriesConfig:t,series:e,tooltip:i}=a,{dataTooltipVisible:r}=t;if(r!==!1){let s=bi(e.uid,"histogramTooltipFormatter");if(s!==void 0){let n=i.dataItem;if(n!==void 0){let o=n.dataContext;return s(n.get("valueY")??0,o.minValue,o.maxValue)}}}return""}function yk(a,t){let e=Gf(a);a.columns.template.set("tooltip",e);let i=t!==void 0?"tooltipHTML":"tooltipText";a.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),a.columns.template.adapters.remove(i),a.columns.template.adapters.add(i,(r,s)=>Yf({element:s,series:a,isHTML:t!==void 0}))}function O4(a){let{series:t,tooltipFormatter:e,axesConfig:i,seriesConfig:r}=a;gk({axesConfig:i,currentSeries:t,tooltipValueFormat:r.dataTooltipValueFormat}),Gr(t.uid,{histogramTooltipFormatter:e??k4(a)})}function zw(a){let{pieChart:t,valueIntlOptions:e,percentageIntlOptions:i,displayNumericValue:r,displayPercentage:s,valuePrefix:n,valueSuffix:o,percentagePrefix:l,percentageSuffix:h}=a,{root:c}=t,u=fe(t.uid,"formatLocale"),d=qn({root:c,type:V.NumberAxisFormat,intlOptions:e,formatLocale:u}),A=qn({root:c,type:V.NumberAxisFormat,intlOptions:{...i,style:"percent"},formatLocale:u}),p=Ra(fe(t.uid,"rtl")??!1," ");return(f,m,g)=>{let y="";if(m!==void 0&&g!==void 0){let x=`${n??""}${d.format(m)}${o??""}`,w=`${l??""}${A.format(Math.abs(g/100))}${h??""}`;Number.isFinite(m)?r===!0&&s===!0?y=`${w}${p}(${x})`:r===!0?y=x:s===!0&&(y=w):y=""}return y}}function E4(a,t){let e=(p,f,m)=>"",{numericValueFormat:i,percentValueFormat:r,dataTooltipValueFormat:s,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:l,displayPercentageOnTooltip:h,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A}=t;return e=(p,f,m)=>{let g="",{chart:y}=a;if(y){let x=zw({pieChart:y,valueIntlOptions:(s??i)?.intlOptions,percentageIntlOptions:(n??r)?.intlOptions,displayNumericValue:l??q.pieChart.displayNumericValueOnTooltip,displayPercentage:h??q.pieChart.displayPercentageOnTooltip,valuePrefix:c,valueSuffix:u,percentagePrefix:d,percentageSuffix:A})("",f,m),w=!zi(p)&&(o??q.pieChart.displayCategoryOnTooltip);if(w&&(g=`[bold]${p}[/]`),!zi(x)){let S=ig(x);g=w?`${g}
|
|
48
48
|
${S}`:S}}return g},e}function M4(a){let t=a.get("tooltip");if(t!==void 0){let e=a.get("fill");e instanceof Jl&&(e=e.get("fill")),t.get("background")?.set("fill",e)}}function R4(a){let{pieSeries:t,tooltip:e}=a,i="",{chart:r}=t;if(r!==void 0&&e!==void 0){let s=fe(r.uid,"config"),{dataTooltipVisible:n}=s?.series[0]??{};if(n!==!1){let o=bi(t.uid,"pieChartTooltipFormatter");if(o){let l=e.dataItem;if(l!==void 0){let h=l,c=h.get("category")??"",u=l.dataContext,d=oo(u);d===void 0&&(d=c);let A=h.get("value"),p=h.get("valuePercentTotal");typeof A=="number"&&A!==0&&s?.series?.[0]?.dataTooltipVisible!==!1?(e.set("disabled",!1),M4(h.get("slice")),i=o(c,A,p,d)):e.set("disabled",!0)}}}else return}return i}function vk(a,t){let e=a.slices.template,i=Gf(a),r=t!==void 0?"tooltipHTML":"tooltipText";e.setAll({tooltip:i,tooltipText:" ",tooltipPosition:q.sliceTooltipPosition}),e.adapters.remove(r),e.adapters.add(r,(s,n)=>{let o=" ";try{let l=n.get("tooltip");l&&(l.dataItem=n.dataItem,o=Yf({element:l,series:a,isHTML:t!==void 0}))}catch{}return o}),e.set(r," ")}function U4(a){let{series:t,seriesConfig:e,tooltipFormatter:i}=a;Gr(t.uid,{pieChartTooltipFormatter:i??E4(t,e)})}function V4(a){let{axesConfig:t,seriesConfig:e,series:i,fieldList:r}=a,{dataTooltipVisible:s}=e,n,{chart:o}=i,l=o?.uid!==void 0?fe(o.uid,"rtl"):!1,h=Ra(l??!1);return s===!1?n=(c,u,d,A)=>"":n=(c,u,d,A)=>{let p=Or(r,e.x),f=zi(t?.[0].title?.content?.text)?p:t?.[0].title?.content?.text,m=Or(r,e.y),g=zi(t?.[1]?.title?.content?.text)?m:t?.[1]?.title?.content?.text,y=bi(i.uid,"tooltipValueXNumberFormatCallback"),x=y?y(c):c,w=bi(i.uid,"tooltipValueYNumberFormatCallback"),S=w?w(u):u,T=`[bold]${f}${h} [/]${x}
|
|
49
49
|
[bold]${g}${h} [/]${S}`;if(d!==void 0&&e.sizePolicy?.field!==void 0){let F=Or(r,e.sizePolicy?.field),L=w?w(d):d;T+=`
|
|
50
50
|
[bold]${F}${h} [/]${L}`}return e.additionalTooltipFields?.forEach(F=>{let L=Or(r,F),$=r?.find(P=>P.name===F),I=A?.[F],U="";if(I!=null&&I!==void 0&&$)if(JF($)&&typeof I=="number")U=String(w?w(I):I);else if(eT($)){let P=new Date(I),Q=o?fe(o.uid,"formatLocale"):void 0;U=new Intl.DateTimeFormat(Q,{}).format(P)}else $.type===GA.String&&typeof I=="string"&&(U=I);T+=l?`
|
|
51
51
|
${U}[bold]${L}${h} [/]`:`
|
|
52
|
-
[bold]${L}${h} [/]${U}`}),T},n}function N4(a){let{seriesConfig:t,markerSeries:e,tooltip:i}=a,{x:r,y:s,sizePolicy:n,dataTooltipVisible:o}=t,{field:l}=n??{};if(o!==!1){let h=bi(e.uid,"scatterplotTooltipFormatter");if(!i.isHidden()&&h){let{dataItem:c}=i;if(c){let u=c.dataContext;if(u){let d=r in u&&typeof u[r]=="number"?Number(u[r]):Number.NaN,A=s in u&&typeof u[s]=="number"?Number(u[s]):Number.NaN,p=l&&l in u&&typeof u[l]=="number"?Number(u[l]):void 0;return h(d,A,p,u)}}}}}function Q4(a){let{axesConfig:t,series:e,seriesConfig:i,tooltipFormatter:r}=a;gk({axesConfig:t,currentSeries:e,tooltipValueFormat:i.dataTooltipValueFormat}),Gr(e.uid,{scatterplotTooltipFormatter:r??V4(a)})}function cI(a,t){if(t!==void 0){let e=
|
|
52
|
+
[bold]${L}${h} [/]${U}`}),T},n}function N4(a){let{seriesConfig:t,markerSeries:e,tooltip:i}=a,{x:r,y:s,sizePolicy:n,dataTooltipVisible:o}=t,{field:l}=n??{};if(o!==!1){let h=bi(e.uid,"scatterplotTooltipFormatter");if(!i.isHidden()&&h){let{dataItem:c}=i;if(c){let u=c.dataContext;if(u){let d=r in u&&typeof u[r]=="number"?Number(u[r]):Number.NaN,A=s in u&&typeof u[s]=="number"?Number(u[s]):Number.NaN,p=l&&l in u&&typeof u[l]=="number"?Number(u[l]):void 0;return h(d,A,p,u)}}}}}function Q4(a){let{axesConfig:t,series:e,seriesConfig:i,tooltipFormatter:r}=a;gk({axesConfig:t,currentSeries:e,tooltipValueFormat:i.dataTooltipValueFormat}),Gr(e.uid,{scatterplotTooltipFormatter:r??V4(a)})}function cI(a,t){if(t!==void 0){let e=ok(t);e!==void 0&&a.label.setAll({fill:JA({r:e.r,g:e.g,b:e.b,a:1})?qs("#000000"):qs("#ffffff")})}}function bk(a){a.label.setAll({paddingTop:4,paddingBottom:4})}function xk(a,t){let{dataTooltipStyleReversed:e,dataTooltipStyle:i}=q;if(t===!0){let r=a.get("background")?.get("fill");if(r!==void 0)if(cI(a,a.get("background")?.get("fill")?.toCSS()),e?.color!==void 0&&r.toCSSHex()!==Xt(e.color).color.toCSSHex()){a.get("background")?.setAll({fill:Xt(e.color).color,stroke:r,strokeWidth:e.outline?.width??Number.NaN});let s=a.get("background");if(s instanceof ft&&s.parent instanceof ps){let n=s.parent.get("tooltipTarget");s.set("strokeOpacity",n instanceof ft?n.get("fillOpacity"):void 0)}a.get("background")?.adapters.enable("fillOpacity")}else r.toCSSHex()===Xt(e?.color).color.toCSSHex()&&a.get("background")?.adapters.disable("fillOpacity")}else cI(a,a.get("background")?.get("fill")?.toCSS()),a.setAll({getStrokeFromSprite:!0,getFillFromSprite:!0}),a.get("background")?.adapters.enable("fillOpacity"),a.get("background")?.setAll({strokeWidth:i?.outline?.width??Number.NaN,stroke:Xt(i?.outline?.color).color})}function H4(a){a.get("background")?.adapters.add("fillOpacity",(t,e)=>{let i=t;if(e.parent instanceof ps){let r=e.parent.get("tooltipTarget");i=r instanceof ft?r.get("fillOpacity"):i}return i})}function j4(a,t){let e=fe(t.chart?.uid??Number.NaN,"config"),{seriesConfig:i}=e?Zf(t,e):{seriesConfig:void 0},r=i?.dataTooltipFontSize??q.tooltipFontSize;a.label.set("fontSize",r)}function Gf(a){let{root:t,chart:e}=a,i=ps.new(t,{});return i.label.setAll({oversizedBehavior:"wrap",maxWidth:q.tooltipWidth}),i.adapters.add("visible",(r,s)=>(r&&X4(s,a),r)),H4(i),W4(i,e),j4(i,a),Gr(a.uid,{tooltipTemplate:i}),i}function zv(a){let{series:t,element:e,tooltipFormatter:i}=a,r,s=Gf(t);e&&e.get("tooltip")===void 0?(r=e,e.setAll({tooltip:s,tooltipPosition:q.markerTooltipPosition})):r=s;let n=i!==void 0?"tooltipHTML":"tooltipText",o=(l,h)=>Yf({element:h,series:t,isHTML:i!==void 0});return(r instanceof ps||r instanceof It)&&(r.adapters.remove(n),r.adapters.add(n,o)),s}function W4(a,t){if(a){let e=fe(t?.uid??0,"rtl");a.label.set("direction",e?"rtl":"ltr"),bk(a)}}function X4(a,t){let{chart:e}=t;if(e&&a){let i=fe(e.uid,"config");if(i){let{seriesConfig:r}=Zf(t,i);if(r){let{dataTooltipReverseColor:s}=r;xk(a,s)}}}}function z4(a){let{seriesConfig:t,series:e,tooltip:i,isRotated:r}=a,s=bi(e.uid,"barAndLineTooltipFormatter");if(s!==void 0){let n=i.dataItem;if(n!==void 0){let o=n.get("valueX"),l=n.get("valueY"),h=n.get("valueXTotalPercent"),c=n.get("valueYTotalPercent"),u=r?o:l,d;r&&typeof h=="number"?d=h:!r&&typeof c=="number"&&(d=c),d&&(d/=100);let A=n.dataContext??{},p=fe(e.chart?.uid??0,"config"),f=fe(e.chart?.uid??0,"rendererFieldNames"),m=no({value:qA(kt([t]),t),dataContext:A,useRendererLabel:Qu(p,f),config:p}),g=oo(A);g===void 0&&(g=m);let y=A[q.dateBinningRange];if(g!==void 0||u!==void 0||d!==void 0||y!==void 0)return s({seriesName:e.get("name")??t.name,xValue:m,originalXValue:g,dateBinningRange:y,statValue:u,percentValue:d})}}}function dI(a,t){if(a instanceof ps)a.set("forceHidden",t);else{let e=a.get("tooltip");e&&e.set("forceHidden",t)}}function Yf(a){let{element:t,series:e,isHTML:i}=a,r,{chart:s}=e;if(s!==void 0){let o=fe(s.uid,"config"),{seriesConfig:l}=Zf(e,o),{dataTooltipVisible:h}=o?.series[0]??{};if(h===!1||!l)r="",dI(t,!0);else switch(dI(t,!1),l.type){case V.ScatterSeries:e instanceof ei&&(r=N4({seriesConfig:l,markerSeries:e,tooltip:t}));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:r=z4({seriesConfig:l,series:e,tooltip:t,isRotated:o?.rotated??!1});break;case V.HistogramSeries:r=$4({seriesConfig:l,series:e,tooltip:t});break;case V.HeatSeries:r=eX({heatSeries:e,tooltip:t});break;case V.PieSeries:e instanceof Ur&&t instanceof ps&&(r=R4({pieSeries:e,tooltip:t}));break}}let n=r??"";return i?Zr(n):n}function G4(a){let{series:t,dateRange:e,xAxisValueFormat:i}=a,r;if(e!==void 0&&e.length>0){let s=t.chart?.uid??Number.NaN,n=fe(s,"timeIntervalInfo"),o=fe(s,"config"),l=fe(s,"options"),h=fe(s,"queryObject"),c=o&&bh(o.series[0])?o.series[0].temporalBinning?.outTimeZone:void 0,u={};switch(n?.unit){case er.Second:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case er.Minute:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Hour:u={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case er.Day:case er.Week:case er.Month:case er.Year:u={month:"numeric",day:"numeric",year:"numeric"};break}ep({chartConfig:o,queryObject:h,options:l})&&(u.timeZone=c??i.intlOptions.timeZone);let d=new Date(e[0]),A=new Date(e[1]),{root:p}=t;if(!Number.isNaN(d.valueOf())&&t.chart!==void 0){let f=fe(t.chart.uid,"formatLocale"),m=qn({root:p,type:V.DateAxisFormat,formatLocale:f,intlOptions:u}),g=m.format(d,u);if(r=g,!Number.isNaN(A.valueOf())){let y=m.format(A,u);y!==g&&(r=`${r} - ${y}`)}}}return r?.toString()??""}function Y4(a){let{seriesConfig:t,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:r,dataTooltipDateFormat:s,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:h,queryObject:c}=a,{root:u}=n,d,A=fe(n.chart?.uid??0,"formatLocale");return Jm({seriesConfig:t,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:c})&&l!==void 0&&e?.type===V.DateAxisFormat?d=G4({series:n,dateRange:l,xAxisValueFormat:e}):ro(e)?h&&typeof o=="number"?d=new Date(o).toLocaleTimeString(A):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(d=bA({root:u,value:o,valueFormat:s??e,formatLocale:A})):typeof o=="number"&&ba(e)?d=bA({root:u,value:o,valueFormat:r??e,formatLocale:A}):d=o,d?.toString()??""}function K4(a){let{isStacked100:t,series:e,statValue:i,percentValue:r,yAxisValueFormat:s,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=a,l=e.chart?.uid??0,{root:h}=e,c=n;c===void 0&&(ba(s)&&s?(c=s,t&&(c.intlOptions.style="decimal")):c=Wm());let u=fe(l,"formatLocale"),d=i!==void 0?bA({root:h,value:i,valueFormat:c,formatLocale:u}):"",A="";if(t&&r!==void 0&&h!==void 0){let p=o;p===void 0&&(p=Xm(),p.intlOptions.minimumFractionDigits=2,p.intlOptions.maximumFractionDigits=2),A=bA({root:h,value:r,valueFormat:p,formatLocale:u})}return{formattedStatValue:d,formattedPercentValue:A}}function Z4(a){let{utilsStrings:t,fieldList:e,queryObject:i,series:r,seriesConfig:s,seriesIndex:n,setTimeBinningInfoWhenNotProvided:o}=a,{chart:l}=r,{dataTooltipDateFormat:h,dataTooltipPercentFormat:c,dataTooltipValueFormat:u}=s,d=()=>"";if(l!==void 0){let A=fe(l.uid,"config");if(A!==void 0){let{dataTooltipVisible:p}=s,f=r instanceof ei?s.markerVisible:void 0;if(p!==!1&&f!==!1){let m=A.axes,g=m[0].valueFormat,y=m[1].valueFormat,x=e?.find(Q=>Q.name===s.x)?.type===GA.TimeOnly,w=kt(A.series),S=ks(A)===$i.Stacked100,T=$s(i),F=xh(T).idField,L=Or(e,s.x),$=yA(L,m[0].title?.content.text),I=g1({config:A,fieldList:e,objectIdField:F,seriesIndex:n,utilsStrings:t,isStacked100:S}),U=fe(l.uid,"rtl"),P=Ra(U??!1);d=Q=>{let{seriesName:G,statValue:Y,percentValue:ee,xValue:te,dateBinningRange:le}=Q,z=Y4({seriesConfig:s,xAxisValueFormat:g,dataTooltipValueFormat:u,dataTooltipDateFormat:h,setTimeBinningInfoWhenNotProvided:o,series:r,xValue:te,dateBinningRange:le,isTimeOnlyField:x,queryObject:i}),{formattedStatValue:K,formattedPercentValue:we}=K4({isStacked100:S,yAxisValueFormat:y,dataTooltipValueFormat:u,dataTooltipPercentFormat:c,series:r,statValue:Y,percentValue:ee}),se=[`[bold]${$}${P} [/]${z}`];switch(w){case ke.BarAndLineFromFields:{se.pop();let de=Tw({config:A,fieldName:Or(e,z??""),utilsStrings:t});se.push(`[bold]${de}${P} [/]${K}`);break}case ke.BarAndLineMonoField:case ke.BarAndLineNoAggregation:case ke.BarAndLineMultiFields:se.push(`[bold]${I}${P} [/]${K}`);break;case ke.BarAndLineSplitByNoAggregation:case ke.BarAndLineSplitBy:{let de=Dn(s.query?.where,!1),$e=tx({value:Or(e,de),escape:!0});se.push(`[bold]${$e}${P} [/]${G}
|
|
53
53
|
[bold]${I}${P} [/]${K}`)}break}return S&&se.push(`[bold]${t.statistics.percent}${P} [/]${we}`),se.join(`
|
|
54
54
|
`)}}}}return d}function Gw(a){let{series:t,tooltipFormatter:e}=a;Gr(t.uid,{barAndLineTooltipFormatter:e??Z4(a)})}function q4(a){let{chartType:t,series:e,tooltipFormatter:i}=a;switch(!0){case(t===V.HistogramSeries&&e instanceof Ri):{yk(e,i);break}case(t===V.PieSeries&&e instanceof Ur):{let r=bi(e.uid,"tooltipCallback");r&&r.dispose();let s=e.events.on(Ji.DataValidated,()=>{vk(e,i)});Gr(e.uid,{tooltipCallback:s});break}case(t===V.HeatSeries&&e instanceof Ri):{_k(e,i);break}case((t===V.ComboLineAndBarSeries||t===V.BarSeries)&&e instanceof Ri):{mk(e,i);break}case(e instanceof ei&&(t===V.ComboLineAndBarSeries||t===V.LineSeries||t===V.RadarSeries||t===V.ScatterSeries)):{let r=bi(e.uid,"bulletTemplate");r&&zv({series:e,element:r,tooltipFormatter:i});break}}}function J4(a){let{columnSeries:t,seriesConfig:e,utilsStrings:i,fieldList:r,queryObject:s}=a;return(n,o,l)=>{let h="",c=n,u=fe(t.chart?.uid??0,"rtl"),d=fe(t.chart?.uid??0,"config");if(so(d)){c!==null?t.chart&&(c=qn({root:t.chart.root,type:"number",intlOptions:{}}).format(n)):c=d.series[0].emptyCells?.text??q.heatChart.emptyCells?.text??"";let A=Ra(u??!1),p=e.query?.outStatistics?.[0].onStatisticField,f=$s(s),m=i.statistics.count;p!==xh(f).idField&&(m=Tw({config:d,fieldName:Or(r,e.query?.outStatistics?.[0].onStatisticField??""),utilsStrings:i}));let g=fe(t.chart?.uid??0,"formatLocale"),y={label:e.x,value:o},x={label:e.y,value:l};if(e.xTemporalBinning!==void 0){let{label:w,value:S}=Rx({value:Number(o),config:d,formatLocale:g,unit:e.xTemporalBinning.unit,utilsStrings:i});!zi(w)&&!zi(S)&&(y={label:w,value:S})}if(e.yTemporalBinning!==void 0){let{label:w,value:S}=Rx({value:Number(l),config:d,formatLocale:g,unit:e.yTemporalBinning.unit,utilsStrings:i});!zi(w)&&!zi(S)&&(x={label:w,value:S})}zi(h)&&(h=`[bold]${y.label}${A} [/]${y.value}
|
|
55
55
|
[bold]${x.label}${A} [/]${x.value}
|
|
56
56
|
[bold]${m}${A}[/] ${c} [/]]`)}return h}}function eX(a){let{heatSeries:t,tooltip:e}=a,i="",{chart:r}=t;if(r!==void 0&&e!==void 0){let s=fe(r.uid,"config"),{dataTooltipVisible:n}=s?.series[0]??{};if(n!==!1){let o=bi(t.uid,"heatChartTooltipFormatter");if(o){let l=e.dataItem;if(l!==void 0){let h=l.dataContext;if(s?.series?.[0]?.dataTooltipVisible!==!1){let c=h?.[xr.valueField]??null,u=h?.[xr.xField],d=h?.[xr.yField];i=o(c,u,d)}}}}else return}return Zr(i)}function _k(a,t){let e=Gf(a);a.columns.template.set("tooltip",e);let i=t!==void 0?"tooltipHTML":"tooltipText";a.columns.template.setAll({tooltipPosition:q.columnTooltipPosition}),a.columns.template.adapters.remove(i),a.columns.template.adapters.add(i,(r,s)=>Yf({element:s,series:a,isHTML:t!==void 0}))}function tX(a){let{series:t,seriesConfig:e,utilsStrings:i,fieldList:r,options:s,queryObject:n}=a;Gr(t.uid,{heatChartTooltipFormatter:s?.tooltipFormatter??J4({columnSeries:t,seriesConfig:e,utilsStrings:i,fieldList:r,queryObject:n})})}function Dv(a){let t={type:Rt.SLS,color:[0,0,0,0],width:0},e=a?.color?a:t,i=a?.color?Xt(a.color).color:void 0,r=a?.color?Xt(a.color).opacity:void 0;return{outlineSymbol:e,outlineColor:i,outlineOpacity:r}}function iX(a){let{root:t,xAxis:e,yAxis:i,options:r,chartConfig:s,queryObject:n,errorStrings:o}=a,l=Ri.new(t,{calculateAggregates:!0,stroke:Xt(q.backgroundColor).color,clustered:!1,turboMode:!0,xAxis:e,yAxis:i,categoryXField:xr.xField,categoryYField:xr.yField,valueField:xr.valueField});return l.columns.template.setAll({tooltipText:`x: {${xr.xField}}
|
|
57
57
|
y: {${xr.yField}}
|
|
58
|
-
Value: {${xr.valueField}}`,width:ge,height:ge}),_k(l,r?.tooltipFormatter),TA(l,s),ns(l.columns.template,r?.selectionTheme),To({element:l.columns.template,series:l,queryObject:n,errorStrings:o}),l}function rX(a,t){t?.dataItems&&a.data.setAll(t.dataItems)}function sX(a){let{columnSeries:t,seriesConfig:e}=a,{gradientHeatRules:i}=q.heatChart,{gradientRules:r,heatRulesType:s,gridLine:n}=e,o=e.emptyCells?.symbol??q.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,c=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,u=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:f}=Xt(l),{color:m,opacity:g}=Xt(h),y=Xt(c),x=Xt(u);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,T,F)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let $,I,U,P=!1;if(s===ku.Renderer){let Q=L?.[pt.rendererSymbolField];if(fd(Q)){U=_r(Q);let{outlineSymbol:G}=Dv(n);U.outline=G}else P=!0}if((!Number.isFinite(F)||P)&&o){U=_r(o);let{outlineSymbol:Q}=Dv(n);U.outline=Q}if(U){let Q=vu({root:t.root,element:w,fillSymbol:U});mA(w,Q)}else typeof d=="number"&&F<d?{color:$,opacity:I}=y:typeof A=="number"&&F>A?{color:$,opacity:I}=x:S===T?($=p,I=f):($=ot.interpolate((F-S)/(T-S),p,m,"rgb"),I=f+(F-S)/(T-S)*(g-f)),$&&w.set("fill",$),I!==void 0&&w.set("fillOpacity",I)}}}])}function aX(a,t){t?.color?Fo({element:a.columns.template,lineSymbol:t}):a.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function nX(a){let{series:t,data:e,dataWasUpdated:i,sortChanged:r,timeZoneChanged:s,seriesWereReinitialized:n,seriesConfig:o,autoInverseDataLabelTextColor:l,options:h,queryObject:c,chartConfig:u}=a,d=i===!0||r===!0||s||n===!0;t.set("id",o.id),Li(t,o.visible),xA(t,!1),ns(t.columns.template,h?.selectionTheme),_u(t.columns.template,e?.dataItems?.length),tX(a),aX(t,o.gridLine),sX({columnSeries:t,seriesConfig:o}),d&&rX(t,e),I4({seriesType:V.HeatSeries,series:t,seriesConfig:o,dataLabelsConfig:o.dataLabels,autoInverseDataLabelTextColor:l,externalDataLabelFormatter:h?.dataLabelFormatter});let{chart:A}=t;A&&oX({seriesConfig:o,queryObject:c,chartConfig:u,chart:A}),h?.interactionsDisabled&&xA(t,!0)}function oX(a){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=a,s;if(t.heatRulesType===ku.Renderer)s={heatRulesType:ku.Renderer,seriesColors:wk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=q.heatChart,{gradientRules:o}=t;s={heatRulesType:ku.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:s,colorMatchApplied:!1,htmlContainer:r.root.dom})}function Ck(a,t){let e="",i,r,s;return a&&typeof a=="object"&&(e="label"in a&&typeof a.label=="string"?a.label:"",i="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"color"in a.symbol&&Array.isArray(a.symbol.color)?a.symbol.color:void 0,s="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"outline"in a.symbol&&Array.isArray(a.symbol.outline)?a.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=Xt(i)),Array.isArray(s)&&(s=Xt(s).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:s}}function lX(a){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:s,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=a,{legendItemLabel:c,legendItemColor:u,legendItemColorOpacity:d}=Ck(n,!0);if(n&&typeof n=="object"&&u&&!Array.isArray(u)){let A=!0;if(r&&s){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,f="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,m=o===l-1;A=r.some(g=>{let y=g[s];return m||h?typeof y=="number"&&y>=p&&y<=f:typeof y=="number"&&y>=p&&y<f})}A&&(t={[Ts.nameField]:c,[Ts.fillField]:u,[Ts.strokeField]:e,[Ts.fillOpacityField]:d,[Ts.strokeOpacityField]:i})}return t}function hX(a){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=Ck(a,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Rt.SFS,style:vs.Solid,color:i,outline:{type:Rt.SLS,color:r??i}}}),t}function wk(a){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=a,s,n=$s(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:c}=Dv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let u=r?.data.values,d=r?.get("valueField")??xr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;s=l.classBreakInfos.map((f,m)=>{let g;return i?g=lX({outlineColor:h,outlineOpacity:c,dataItems:u,valueField:d,classBreakInfo:f,classBreakIndex:m,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=hX(f),g}).filter(Boolean)}return s}var Gv="arcgis_charts_title_container",Yw="arcgis_charts_subtitle_container",Yv="arcgis_charts_footer_container",Bk="arcgis_charts_title",Sk="arcgis_charts_subtitle",Fk="arcgis_charts_footer",va="arcgis_charts_legend_container",eo="arcgis_charts_legend_title",cw="arcgis_charts_axis_title_id";function uX(a){let t=a.yAxes.getIndex(0);if(t){let e=Di({childId:`${cw}_y_${t.uid}`,parent:t});e instanceof Kt&&e.set("dx",0)}}function cX(a,t){let e=q.axisLabelSpacing.verticalAxisLabelSidePadding,i=q.heatChart.legend.legendPadding+e;t.set("marginRight",i),a.leftAxesContainer.setAll({paddingLeft:e});let r=a.leftAxesContainer.children.values[0];r instanceof Sr&&r.set("paddingLeft",e)}function Tk(a,t){let{root:e}=a,i=fe(a.uid,"rtl")??!1,r=fe(a.uid,"config")??t,s=r?.series[0],{start:n,end:o}=Kv(i,s),l=r?.legend?.position??q.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return xo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function dX(a,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:s,end:n}=Kv(e,r);a.setAll({startColor:s.color,endColor:n.color,startOpacity:s.opacity,endOpacity:n.opacity})}}function Kv(a=!1,t){let e=q.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...a?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:s}=Xt(i[0]),{color:n,opacity:o}=Xt(i[1]);return{start:{color:r,opacity:s},end:{color:n,opacity:o}}}function AI(a,t){let e=fe(a.uid,"rtl")??!1,i=fe(a.uid,"config")?.series[0],{start:r,end:s}=Kv(e,i);t.setAll({startColor:r.color,endColor:s.color})}function Pk(a){let t=fe(a.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=q.heatChart.legend,i=t?.legend?.position??e.position,r=Qs(va,a.uid),s,n=!1;switch(i){case st.Top:s=a.topAxesContainer,n=!0;break;case st.Bottom:s=a.bottomAxesContainer,n=!1;break;case st.Left:s=a.leftAxesContainer,n=!0;break;case st.Right:s=a.rightAxesContainer,n=!1;break;default:s=void 0}if(s!==void 0){let o=Di({childId:r,parent:s,useChildId:!0});if(o!==void 0){let{children:l}=s,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),s.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),s.markDirty()))}}}}function Dk(a){let{chart:t,legend:e,legendContainer:i}=a,{root:r}=t,s=fe(t.uid,"config"),n=q.heatChart.legend,o=s?.legend?.position??n.position,l,h,c,u=o===st.Left||o===st.Top,d=Di({childId:eo,parent:i}),A=s?.legend?s.legend.visible??!0:!1,p=s?.legend?.title?s.legend.title.visible??!0:!1,f=d instanceof Kt&&A&&p?d.height()>0?d.height():n.titleHeight:0,m=o===st.Left||o===st.Right;switch(e.setAll({orientation:m?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),cX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:c=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+f});let g=Di({childId:Yv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+f),l=t.bottomAxesContainer}break}uX(t),e.markDirty(),Lk(t,{chartPaddingTop:c,chartPaddingBottom:h}),yu(()=>{l&&(u?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Lk(a,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:s}=t;a.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:s})}function Ik(a,t){let e=a.root.events.on(Ji.FrameEnded,()=>{a.markerContainer.children.length>0&&(t(),e.dispose())})}function kk(a){let{series:t,legend:e,chart:i}=a,r=fe(i.uid,"config"),s=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),yu(()=>{Ik(e,()=>{$k({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{s(t)}),s(t)),Ok(e,r?.legend)}function $k(a){let{legend:t,series:e,chartConfig:i}=a,r=i?.series[0],s=r?.gradientRules;if(s&&(s.minValue!==void 0||s.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,c=h-l,u=s.minValue??l,d=s.maxValue??h,A=(u-l)/c,p=(d-l)/c;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:f,end:m}=Kv(!1,r),{color:g,opacity:y}=Xt(s.outsideRangeLowerColor??q.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=Xt(s.outsideRangeUpperColor??q.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:f.color,opacity:f.opacity,offset:A},{color:m.color,opacity:m.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],T=(L,$,I)=>{let U=Qs(`heatLegendLabel${I}`,t.uid),P=t.markerContainer.children.values.find(Y=>Y instanceof Kt&&Y.get("id")===U),Q=P&&!P.isDisposed()?P:void 0,G=t.startLabel;if(Q||(Q=Kt.new(t.root,{id:U,position:"absolute",isMeasured:!1,centerX:je,centerY:je,paddingLeft:0}),t.markerContainer.children.push(Q)),Q.setAll({fill:G.get("fill"),fontSize:G.get("fontSize"),fontFamily:G.get("fontFamily")}),Q.set("text",L.toString()),t.get("orientation")==="vertical"){let Y=G.localBounds().top,ee=G.get("fontSize")??0;if(typeof ee=="number"){let te=q.heatChart.legend.minMaxLabelPadding;Q.set("x",Y-ee*2-te)}else Q.set("x",Y);Q.set("y",Bt($*100)),Q.set("centerY",je)}else{Q.set("x",Bt($*100));let Y=t.startLabel.localBounds().bottom,ee=q.heatChart.legend.minMaxLabelPadding;Q.set("y",-Y-ee),Q.set("centerX",Hr)}};A>0&&A<1&&T(u,A,"Min"),p>0&&p<1&&T(d,p,"Max");let F=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each($=>{$ instanceof or&&(L=$)}),L){let $=0;t.get("orientation")==="vertical"&&($=90),L.set("fillGradient",al.new(t.root,{stops:S,rotation:$}))}};if(t.markerContainer.children.length>0)F();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),F())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof or&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ok(a,t){if(a!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Rt.TS,text:" "}};[a.startLabel,a.endLabel].forEach(i=>{Cn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function Kw(a){let t=Qs(va,a.uid);[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(e=>{let i=Di({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof xo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Lk(a,{}),pX(a)}function Zw(a,t){let e=vA({root:t.root,parent:t,index:0,id:Qs(eo,t.uid)});return e.set("paddingTop",q.heatChart.legend.titlePadding),Qc({chart:a,label:e,labelType:Wt.LegendTitle}),e}function dw(a){let{chart:t,legendConfig:e,container:i}=a,r=Qs(va,t.uid),s=i;if(s||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Di({childId:r,parent:n,useChildId:!0});o&&(s=o)}),s!==void 0){let n=Di({childId:eo,parent:s})??Zw(t,s);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=q.legendProperties;if(o!==void 0){Cn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:"top"}});let c=fe(t.uid,"config")?.legend?.position??q.heatChart.legend.position;c===st.Left||c===st.Right?(n.set("maxWidth",250),gl({chart:t,label:n,labelType:Wt.LegendTitle})):n.set("maxWidth",void 0),Ek({legendContainer:s,chart:t})}else Li(n,!1)}}}function AX(a,t){let{root:e}=a,i=fe(a.uid,"config"),r=i?.legend,s=a.series.values[0];Kw(a);let n=Tk(a,i??t),o=Re.new(e,{id:Qs(va,a.uid),layout:e.verticalLayout});return o.children.push(n),Zw(a,o),dw({chart:a,legendConfig:r,container:o}),kk({series:s,legend:n,chart:a}),r!==void 0&&r.visible!==!1&&(Dk({chart:a,legend:n,legendContainer:o}),Aw({legend:n,chart:a,legendContainer:o})),n}function Aw(a){let{legend:t,chart:e,legendContainer:i}=a,r=fe(e.uid,"config"),s=q.heatChart.legend,n=r?.legend?.position??s.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Ek({legendContainer:i,chart:e});else{let o=Di({childId:eo,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,c=o instanceof Kt&&l&&h?o.height()>0?o.height():s.titleHeight+s.titlePadding:0,u=n===st.Top?s.topHeight:s.bottomHeight;t.set("height",u),i.set("height",u+c+20)}}function Ek(a){let{legendContainer:t,chart:e}=a,i=fe(e.uid,"config"),r=q.heatChart.legend,s=i?.legend?.position??r.position;if(s!==st.Left&&s!==st.Right)return;let n=Di({childId:eo,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Kt&&o){let l=()=>{let h=n.width(),c=r.width,u=Math.max(h+r.legendPadding*2,c);t.set("width",u)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function pX(a){let t=Di({childId:Gv,parent:a});t instanceof Re&&t.set("marginTop",0)}function fX(a){let t,e=Qs(va,a.uid);return[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(i=>{let r=Di({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof xo);if(n){t=n;return}}let s=i.children.values.find(n=>n instanceof xo);if(s){t=s;return}}),t}function mX(a){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=a,{legend:s}=e,n=s!==void 0&&s.visible!==!1,o=t.series.values[0];if(i||r)Kw(t),n&&o instanceof Ri&&yu(()=>{let l=Tk(t),h=Re.new(t.root,{id:Qs(va,t.uid),layout:t.root.verticalLayout});h.children.push(l),Zw(t,h),dw({chart:t,legendConfig:s,container:h}),AI(t,l),Dk({chart:t,legend:l,legendContainer:h}),kk({series:o,legend:l,chart:t}),Aw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Ri){let l=fX(t);if(l){AI(t,l),dw({chart:t,legendConfig:s}),Ok(l,s);let h=l.parent;h?.get("id")===Qs(va,t.uid)&&Li(h,n),Li(l,n),dX(l,t),h&&Aw({legend:l,chart:t,legendContainer:h}),yu(()=>{Ik(l,()=>{$k({legend:l,series:o,chartConfig:e})})})}}}function gX(a,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=a.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!a.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function yX(a){let t=!1,e=a.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!a.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function vX(a){Hw(a.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=XW(a.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),a.valueLabels.template.set("text","")}function Mk(a){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:s}=a,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=l??q.pieChart.displayNumericValueOnLegend,g=h??q.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let $=zw({pieChart:s,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:m,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});y=(I,U)=>$("",I,U)}zW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(s?.uid??0,"config")?.legend?.position??q.legendProperties.position,w=i?.valueLabelMaxWidth,S=gX(t,x),T={type:V.Text,visible:n,content:{...o,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:S?"right":"center"}};Cn({label:t.valueLabels.template,labelConfig:T,defaults:q.legendProperties.valueLabels});let F=fe(s?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:F?"right":"left",disabled:m===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function bX(a,t){a.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.labelMaxWidth,n=r?.legend?.position??q.legendProperties.position;if(n===st.Right||n===st.Left)i=s??q.legendProperties.legendLabels.maxWidth;else if(s!==void 0)i=s;else{let o=0;a.valueLabels.template.get("forceHidden")||a.valueLabels.each(h=>{let c=h.get("width",0);typeof c=="number"&&(o=Math.max(o,c))});let l=a.get("width",200);typeof l=="number"&&(i=l+o)}return i}),a.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??q.legendProperties.position;return n===st.Right||n===st.Left?i=s??q.legendProperties.valueLabels.maxWidth:i=s??Number.NaN,i})}function Rk(a,t){let e=0;for(let i of a.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function xX(a,t){for(let e of a.dataItems)e.get("label")?.set("width",t)}function _X(a,t){let e=0;for(let i of a.dataItems){let r=i.get("marker")?._contentWidth??0,s=i.get("valueLabel")?._contentWidth??0,n=r+t+s;e=Math.max(e,n)}return Math.ceil(e)+q.legendPadding}function Uk(a,t){yu(()=>{let e=yX(a),i=t===st.Right||t===st.Left||!e;xX(a,i?Rk(a):void 0)})}function CX(a){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=a,{displayCategory:s}=r??{},n=s??q.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),yu(()=>{let l=Rk(t,r?.labelMaxWidth),h=_X(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),bX(t,e),Mk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let c=r.position??q.legendProperties.position;Uk(t,c),t.markDirty()})}function Vk(a){return a?.[0].type===V.HeatSeries&&a[0].heatRulesType!==ku.Renderer}function Nk(a){let t=a.get("id");a.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof fs){let s=Di({childId:va,parent:r});s!==void 0&&s.dataItems?.forEach(n=>{n.get("id")===t&&s.set("opacity",e?1:q.legendProperties.legendLabelReducedOpacity)})}}})}function wX(a){let t=a.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof Wr){let r={visible:!i.get("visible")};rh(i)||Kf(i)?r.overlayType=bi(i.uid,"type"):r.seriesId=i.get("id"),ox(r,i.root.dom)}}}function BX(a){a.itemContainers.template.events.on(Ji.Click,wX)}function SX(a,t){let e=fe(t.uid,"rtl")??!1;a.itemContainers.template.setAll({reverseChildren:e})}function FX(a){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:s}=a,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=kt(i.series);switch(n){case V.BoxPlotSeries:{let h=oa(i);o=t.series.values.filter(c=>{let u=!1;return h?u=c instanceof ei&&!(c instanceof Bo):u=c instanceof La,u});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let c=!1;if(bi(h.uid,"isOverlay")){let u=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=bi(h.uid,"type"),A;switch(d){case vr.Mean:A=u?.mean?.created;break;case vr.Median:A=u?.median?.created;break;case vr.Normal:A=u?.comparisonDistribution?.created;break;case vr.StdDev:A=u?.standardDeviation?.created;break}c=A===!0}return c});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let c=!0;if(!r){let u=i.series.find(d=>d.id===h.get("id"));if(u!==void 0&&"y"in u&&typeof u.y=="string"){let{x:d,y:A}=u,p=l===ke.BarAndLineSplitByNoAggregation?`${A}_${vh({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;c=h.data.values.some(f=>lT({dataItem:f,x:d,y:p,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))}}return c});break;case V.ScatterSeries:{let h=Wk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Ri&&so(i)&&!bs(s)){let c=wk({queryObject:s,chartConfig:i,forLegend:!0,series:h});if(c){o=[...c];let u=VX(t);u!==void 0&&o.push(u)}}break}}e.data.setAll(o)}}function pI(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function fI(a){let t=0;if(a instanceof Kt&&a.get("visible")!==!1&&a.get("forceHidden")!==!0){let e=a.width();Number.isFinite(e)&&(t=e)}return t}function mI(a){let t=0;return a.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,fI(r))}),t===0&&e.dataItems.forEach(r=>{let s=r.bullets;if(s)for(let n of s)t=Math.max(t,fI(n.get("sprite")))})}),Math.ceil(t)}function Rc(a,t){let{root:e}=a,i=Di({childId:va,parent:a});if(i!==void 0){let r=fe(a.uid,"config"),s=fe(a.uid,"rtl"),n=us(r),o=ze(r?.series),l=ks(r),h=r?.series?.some(He=>He.dataLabels&&He.dataLabels?.visible!==!1)??!1,c=r?.title?r.title.visible??!0:!1,u=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,f=Di({childId:Gv,parent:a}),m=f instanceof Re&&c?f.height():0,g=Di({childId:Yw,parent:a}),y=g instanceof Re&&u?g.height():0,x=Di({childId:Yv,parent:a}),w=x instanceof Re&&d?x.height():0,S=Di({childId:eo,parent:i}),T=S instanceof Kt&&A&&p?S?.height():0,F=r?.legend?.position??q.legendProperties.position,L,$=t.get("verticalScrollbar"),I=je,U=je,P=e.verticalLayout,Q=je,G=je,Y=je,ee=je,te=0,le,z=t.height()+T,K=0,we=0,se=h&&!n?q.chartContainer.paddingTop??0:0,de=0,$e,Ye;switch(F){case st.Left:P=e.verticalLayout,Q=Hr,Y=Hr,G=Hr,ee=Hr,le=void 0,I=Hr,U=Hr,K=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=pI(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Right:P=e.verticalLayout,Q=ge,Y=ge,G=Hr,ee=Hr,le=void 0,I=Hr,U=Hr,we=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=pI(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Top:P=e.gridLayout,Q=je,Y=je,G=Hr,ee=Hr,le=ge,I=je,U=je,se+=z,te+=m+y,L=void 0,s&&($e=void 0);break;case st.Bottom:P=e.gridLayout,Q=je,Y=je,G=ge,ee=ge,le=ge,I=je,U=je,de=z,te=-de-w,L=void 0,s&&($e=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===$i.Side)){let He=mI(a);if(He>0)we+=He;else if(a.series.length>0){let qe=t.root.events.on(Ji.FrameEnded,()=>{let Tt=mI(a);Tt>0&&(s?K+=Tt:we+=Tt,qe.dispose(),Rc(a,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),s&&t.itemContainers.template.setAll({centerX:$e,dx:Ye})),t.setAll({layout:P,x:I,centerX:U}),i.setAll({x:Q,y:G,centerX:Y,centerY:ee,dy:te,width:le,height:0}),a.chartContainer.setAll({paddingBottom:de,paddingTop:se,paddingLeft:K,paddingRight:we}),le===void 0&&(i.setPrivate("width",void 0),i.markDirty()),a instanceof Us&&Uk(t,F)}}function TX(a){let{chart:t,legend:e,legendContainer:i}=a,r=Di({childId:eo,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ji.FrameEnded,()=>{Rc(t,e)})}),i.events.on(Ji.BoundsChanged,()=>{Rc(t,e)}),e.events.on(Ji.BoundsChanged,()=>{Rc(t,e)}),t.seriesContainer.onPrivate("height",()=>{Rc(t,e)}),t.series.each(s=>{s.events.on(Ji.DataValidated,()=>{Rc(t,e)})})}function Qk(a,t){let e=vA({root:t.root,parent:t,index:0,id:Qs(eo,t.uid)});return e.set("paddingTop",10),Qc({chart:a,label:e,labelType:Wt.LegendTitle}),e}function PX(a,t){t.markers.template.setAll({width:q.legendProperties.legendMarkersSize,height:q.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ts.fillOpacityField in r?r[Ts.fillOpacityField]:e;return typeof s=="number"?s:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ts.strokeOpacityField in r?r[Ts.strokeOpacityField]:e;return typeof s=="number"?s:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,s=fe(a.uid,"config");if(ze(s?.series)!==V.HeatSeries){let n=i.dataItem?.component;if(n instanceof Ur){let o=n.get("categoryField")??"",l=i.dataItem,h=l?.get("category"),c=l?.dataContext;r=h??(c?.[o]??e)?.toString()}else n instanceof Wr&&(r=n.get("name"))}if(s!==void 0){let{legend:n}=s,o={...n?.body,type:Rt.TS,text:r};r=xa({textSymbol:o,format:"amChartsV5"})}return r})}function DX(a,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),s=r?.legend,n=Di({childId:va,parent:t});if(n!==void 0){let l=Di({childId:eo,parent:n});l!==void 0&&s?.visible!==!1&&s?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=q.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),a.set("maxHeight",o)})}function LX(a,t,e){a.events.on(Ji.DataValidated,()=>{a.dataItems.length>0&&Hk(a,t,e)})}function IX(a){let t;if(a!==void 0){let e=fe(a?.uid,"config");t=fe(a.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function kX(a){let t="";if(a instanceof vi){let e=fe(a.uid,"config"),i=us(e),r=i?B.Rotated:B.NonRotated,s=ks(e),n=B.SideBySide;s===$i.Stacked?n=B.Stacked:s===$i.Stacked100&&(n=B.Stacked100);let o=fe(a.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?a.yAxes.getIndex(0):a.xAxes.getIndex(0),c;h instanceof hr?c=B.DateAxis:h instanceof ti?c=B.ValueAxis:c=B.CategoryAxis;let u=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${c}-${u}`}return t}function $X(a){let t=kX(a);return _1.has(t)}function Hk(a,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:a.set("reverseChildren",IX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:a.set("reverseChildren",$X(t));break}}function OX(a,t){let e=Di({childId:va,parent:a});if(e!==void 0){let i=Di({childId:eo,parent:e})??Qk(a,e);if(t!==void 0){let{title:r,visible:s}=t,{legendTitle:n}=q.legendProperties;r!==void 0?(Cn({label:i,labelConfig:{...r,visible:s!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:"top"}}),gl({chart:a,label:i,labelType:Wt.LegendTitle})):Li(i,!1)}}}function EX(a,t=!1){let e=t?q.legendProperties.roundedMarkerRadius:q.legendProperties.rectangleMarkerRadius;a.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function MX(a){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:s}=a;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Rt.TS,text:" "}};if(i===V.PieSeries){let o=Di({childId:va,parent:s});o!==void 0&&Di({childId:eo,parent:o})!==void 0&&Mk({legend:t,seriesConfig:r,webChartLegend:e,chart:s})}Cn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function RX(a,t){t===!0&&a.itemContainers.each(e=>{e.events.disableType(Ji.Click)})}function UX(a){let{legend:t,chart:e,seriesConfig:i}=a;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.togglingLegendItemsDisabled===!0?"default":"pointer")}function gI(a,t){let{root:e}=a,i;if(Vk(t?.series))i=AX(a,t);else{let r=Re.new(e,{id:Qs(va,a.uid),layout:e.verticalLayout}),s=t?.series?.[0].type===V.HeatSeries?{nameField:Ts.nameField,fillField:Ts.fillField,strokeField:Ts.strokeField,fillOpacityField:Ts.fillOpacityField,strokeOpacityField:Ts.strokeOpacityField}:{};i=nl.new(e,{...s,verticalScrollbar:ll.new(e,{orientation:"vertical"})}),a instanceof Us?vX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),PX(a,i),Qk(a,r),BX(i),SX(i,a),TX({chart:a,legend:i,legendContainer:r}),DX(i,a),LX(i,a,ze(t?.series)),UX({legend:i,chart:a,seriesConfig:t?.series}),r.children.push(i),a.children.push(r)}return i}function VX(a){let t=fe(a.uid??NaN,"config"),e=t?.series[0].heatRulesType===ku.Renderer,i=a.series.values[0].data.values.some(s=>s[xr.valueField]===null||e&&!s[pt.rendererSymbolField]),r;if(i){let s=t?.series[0].emptyCells,n=s?.symbol?.color??q.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Dv(t?.series[0].gridLine);r={[Ts.nameField]:s?.text??q.heatChart.emptyCells?.text??"",[Ts.fillField]:Xt(n).color,[Ts.fillOpacityField]:Xt(n).opacity,[Ts.strokeField]:o,[Ts.strokeOpacityField]:l}}return r}function yI(a){let{chart:t,legend:e,showLegend:i}=a,r=Di({childId:va,parent:t});r&&(Li(r,i),Li(e,i))}function vI(a){let{chart:t,showLegend:e,legendConfig:i}=a;if(i){let{title:r,visible:s}=i,n=r!==void 0&&s!==!1&&r.visible!==!1,o=Di({childId:va,parent:t});if(o){let l=Di({childId:eo,parent:o});l&&(r?Li(l,n):Li(l,e))}}}function jk(a){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:s,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=a,{legend:c,series:u}=e;if(Vk(n)&&r)l&&i&&(yI({chart:t,legend:i,showLegend:!1}),vI({chart:t,showLegend:!1,legendConfig:c})),mX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof nl&&(n?.[0].type===V.HeatSeries&&Kw(t),Di({childId:va,parent:t})!==void 0)){let d=ix(u)&&c!==void 0&&c.visible!==!1;if(yI({chart:t,legend:i,showLegend:d}),vI({chart:t,showLegend:d,legendConfig:c}),d){EX(i,c?.roundMarkers),MX({legend:i,legendConfig:c,chartType:ze(u),seriesConfig:n,chart:t}),Hk(i,t,ze(u)),FX({chart:t,legend:i,chartConfig:e,showEmptySeries:s,queryObject:o}),OX(t,c),Rc(t,i);let A=fe(t.uid,"options");RX(i,A?.togglingLegendItemsDisabled),t instanceof Us&&CX({legend:i,chart:t,seriesConfig:n,legendConfig:c})}}}function NX(a){let{seriesConfig:t,series:e,sizePolicyChanged:i}=a,{sizePolicy:r}=t,s=e.get("heatRules")?.[0],n=bi(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:c}=r,u=AF(),d=t.markerSymbol?.size??qb().size??1,A=(h??u.minSize)/d,p=(c??u.maxSize)/d;s!==void 0?i&&(s.min=A,s.max=p,s.logarithmic=o===Xb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Xb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function rh(a){return a.get("id")===q.overlayId.scatterplotTrendLine}function QX(a){return a.series.values.find(t=>!rh(t))}function Wk(a){return a.series.values.find(t=>rh(t))}function HX(a){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=a,{x:s,y:n}=r,o=ei.new(t,{xAxis:e,yAxis:i,valueXField:s,valueYField:n,layer:q.zIndexes.scatterplotTrendLine});return o.set("id",q.overlayId.scatterplotTrendLine),Gr(o.uid,{type:vr.Trendline}),o}function jX(a){let{markerSeries:t,options:e,queryObject:i,errorStrings:r}=a,s=It.new({});Gr(t.uid,{bulletTemplate:s}),ns(s,e?.selectionTheme),t.bullets.push(n=>{let o=ft.new(n,{nonScalingStroke:!0,tooltip:zv({series:t,tooltipFormatter:e?.tooltipFormatter})},s);return To({element:o,series:t,queryObject:i,errorStrings:r}),qk(o,t),fa.new(n,{sprite:o})})}function WX(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{x:h,y:c,id:u}=i,d=[],A=ei.new(t,{xAxis:r,yAxis:s,valueXField:h,valueYField:c,id:u,opacity:0,valueField:"value",maskBullets:!1,layer:q.zIndexes.lineSeries});A.strokes.template.set("forceHidden",!0),jX({markerSeries:A,options:n,queryObject:o,errorStrings:l}),TA(A,e),d.push(A);let p=HX({root:t,xAxis:r,yAxis:s,seriesConfig:i});return Nk(p),d.push(p),A.appear(),d}function XX(a){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:s,valueFormat:n,defaultR2Value:o,chartConfig:l}=a,{chart:h}=e,c=l.series[0],u=c.overlays?.trendLine,d=u?.symbol??{type:Rt.SLS},A=u?.created===!0&&u.visible!==!1;if(i&&(r||s)){let p=q.scatterplotSeries,f=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:m,y:g}=c;e.setAll({valueXField:m,valueYField:g}),e.data.setAll(i.trendLinePoints??q.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?bA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:f}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=gh({colorIndex:1})),Fo({element:e,lineSymbol:d,visible:A})}function zX(a){let{root:t,chartConfig:e,markerSeries:i}=a,r=i.chart;if(r){let s=e.series[0],n=Fl(e),o,l,h=qb(),c=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:s,chartSubType:ke.NonSpecific,colorMatch:n}),f=Ja({root:t,element:A,seriesSymbol:s.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=f.symbolWithColorInfo,l=f.stylingInfo,mA(A,l),c.add(JSON.stringify(l))}}),o=c.size>1?void 0:o;let u=new Map;u.set(0,o),nn({data:u,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:PA(r)})}}function GX(a){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:s}=a;if((t||e)&&i){let{x:n,y:o}=s.series[0];if(r.setAll({valueXField:n,valueYField:o}),s.series[0].type===V.ScatterSeries&&s.series[0].sizePolicy){let{field:l}=s.series[0].sizePolicy;i.dataItems=i.dataItems.sort((h,c)=>typeof c[l]=="number"&&typeof h[l]=="number"?c[l]-h[l]:0)}r.data.setAll(i.dataItems)}}function YX(a){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:s,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:c,sizePolicyChanged:u,utilsStrings:d}=a,{axes:A}=e,{tooltipFormatter:p}=r??{};n.set("id",i.id);let f=bi(n.uid,"bulletTemplate");f&&ns(f,r?.selectionTheme),Li(n.bulletsContainer,i.visible),XX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:c,valueFormat:Yb(),defaultR2Value:d.notAvailable}),NX({seriesConfig:i,series:n,sizePolicyChanged:u}),sh(a)&&ah({styleCallback:()=>zX({root:t,chartConfig:e,markerSeries:n}),series:n,seriesConfig:i}),Q4({axesConfig:A,seriesConfig:i,series:n,fieldList:s,tooltipFormatter:p}),GX({dataWasUpdated:h,seriesWereReinitialized:c,data:l,series:n,chartConfig:e})}function KX(a){a.series.each(t=>{t instanceof ei?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&ra({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Ri?t.columns.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Ur&&t.slices.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})})})}function Yc(a){let{chart:t,selectionSource:e}=a,i=fe(t.uid,"currentSelectionDataItems");Xr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),jw(t)&&KX(t),i&&Vu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.root.dom})}function Xk(a){let t=a?.selection.width();return t!==void 0&&t>0&&t!==2e7}function To(a){let{element:t,series:e,queryObject:i,errorStrings:r}=a;t.events.on(Ji.PointerUp,async s=>{let{chart:n}=e;if(n){let o=n.get("cursor");if(!Xk(o)){let l=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&l!==Ut.None&&l!==Ut.Zoom){let h=s.target,c=x4(s,e);ra({element:h,selected:yl(h.uid,"selected")!==!0}),c&&n.series.each(u=>{u instanceof ei?u.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");A!==h&&ra({element:A,selected:!1})}):u instanceof Ri?u.columns.each(d=>{d!==h&&ra({element:d,selected:!1})}):u instanceof Ur&&u.slices.each(d=>{d!==h&&ra({element:d,selected:!1})})}),await qw({chart:n,selectionSource:Tr.SelectionByClick,queryObject:i,errorStrings:r})}}}})}function bI(a,t){let e=Number.NaN,i=Number.NaN;if(a instanceof Al){let r=t.get("renderer")instanceof Vs,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");if(s!==void 0&&n!==void 0)if(t instanceof Sr)e=t.axisPositionToIndex(t.toAxisPosition(s)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof hr){e=t.positionToDate(t.toAxisPosition(s)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Dc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof ti&&(e=t.positionToValue(t.toAxisPosition(s)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof as,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");s!==void 0&&n!==void 0&&(e=s*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function ZX(a){let t=()=>{let e=a instanceof vi?a.get("cursor"):void 0,i=fe(a.uid,"filterBySelection");(e===void 0||!Xk(e))&&!i&&Yc({chart:a})};a.get("background")?.events.on(Ji.Click,t),a instanceof vi&&a.plotContainer.events.on(Ji.PointerUp,t)}function qX(a){let{series:t,cursorBounds:e,multiSelect:i}=a,r=fe(t.chart?.uid??NaN,"config"),s=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&s!==V.HeatSeries,c=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let u=h?l-c:l,d={left:o,right:o+n.width(),top:u,bottom:u+c};if(s===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&yl(n.uid,"selected")===!0;ra({element:n,selected:A})}})}function JX(a){let{series:t,cursorBounds:e,multiSelect:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0]?.get("sprite");if(s){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&yl(s.uid,"selected")===!0;ra({element:s,selected:l})}})}function ez(a){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=a;e.dataItems.forEach(s=>{let n=s.bullets?.[0]?.get("sprite");if(n){let o=s.dataContext,l=s.get("valueX"),h=s.get("valueY");if(t instanceof Sr){let A=o?.[q.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let c=typeof l=="number"&&l>=i.left&&l<=i.right,u=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=c&&u||r&&yl(n.uid,"selected")===!0;ra({element:n,selected:d})}})}function tz(a){let{cursor:t,xAxis:e,yAxis:i}=a,r=t.get("behavior"),{value1:s,value2:n}=bI(t,e),{value1:o,value2:l}=bI(t,i),h={left:s>n?n:s,right:s>n?s:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function iz(a){let{chart:t,queryObject:e,errorStrings:i}=a;t.get("cursor")?.events.on(Ji.SelectEnded,async r=>{let s=fe(t.uid,"actionMode");if(s===Ut.MultiSelection||s===Ut.MultiSelectionWithCtrlKey){let n=t.xAxes.getIndex(0),o=t.yAxes.getIndex(0);if(n&&o){let l=fe(t.uid,"config"),h=ze(l?.series),c=t.get("cursor"),u=tz({cursor:c,xAxis:n,yAxis:o}),d=uk(r);t.series.each(A=>{!rh(A)&&!Kf(A)&&(A instanceof Ri?qX({series:A,cursorBounds:u,multiSelect:d}):A instanceof ei&&(h===V.RadarSeries?ez({xAxis:n,series:A,cursorBounds:u,multiSelect:d}):JX({series:A,cursorBounds:u,multiSelect:d})))}),Li(c.selection,!1),await qw({chart:t,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}})}function rz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=a;t.bullets.push(()=>{let s=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,n=fa.new(t.root,{locationY:1,sprite:Kt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:je,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(s?.content.color).color,fontSize:s?.content.font?.size})}),o=n.get("sprite");return o&&(sz({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&s&&s?.visible!==!1&&dk({label:o,chart:t.chart,seriesType:r}),Xv({...a,dataLabel:o,dataLabelsConfig:s,labelDefaults:e,defaultDataLabelFormatter:zk})),n})}function sz(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=bi(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:c,minValue:u,maxValue:d}=h.dataContext;o=l(c,u,d)}return r==="html"?Zr(o):o})}function zk(a){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=a;return(r,s,n)=>xa({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function az(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0];if(s){let n=s.get("sprite");n&&Xv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:zk,externalDataLabelFormatter:i})}})}function Gk(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1,r=t.bullets.hasIndex(0);i?(r||rz(a),az(a)):r&&Xw(t,0)}function Kf(a){return[q.overlayId.histogramMean,q.overlayId.histogramMedian,q.overlayId.histogramStdDev,q.overlayId.histogramNormalDistribution].includes(a.get("id")??"")}function nz(a){let t="";switch(a){case vr.Mean:t=q.overlayId.histogramMean;break;case vr.Median:t=q.overlayId.histogramMedian;break;case vr.StdDev:t=q.overlayId.histogramStdDev;break;case vr.Normal:t=q.overlayId.histogramNormalDistribution;break}return t}function oz(a){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=a,{root:s}=t,n=t.chart;if(n){let o=e.fillSymbol??mF(),l=Ja({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:s.dom,chartId:n.get("id"),colorMatchApplied:PA(n)})}}}function lz(a){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r}=a;e&&(i===!0||r===!0)&&t.data.setAll(e.bins)}function yv(a){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:s}=a,n=ei.new(t,{id:nz(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===vr.Normal&&FA(n,s.overlays.normal),Gr(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function hz(a){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:s,chartConfig:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=e,u=Ri.new(t,{id:h,name:c,xAxis:i,yAxis:r,categoryXField:dd.Start,valueYField:dd.Count,maskBullets:!1});return ns(u.columns.template,s?.selectionTheme),To({element:u.columns.template,series:u,queryObject:o,errorStrings:l}),u.columns.template.setAll({width:ge}),Gk({series:u,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:s?.dataLabelFormatter}),TA(u,n),u.appear(),u}function uz(a){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:s,utilsStrings:n,options:o,chartConfig:l,queryObject:h,errorStrings:c}=a,u=[],d=hz({root:t,seriesConfig:e,xAxis:i,yAxis:s,options:o,chartConfig:l,queryObject:h,errorStrings:c});return u.push(d),yk(d,o?.tooltipFormatter),r&&(u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Mean,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Median,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.StdDev,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Normal,utilsStrings:n}))),u}function cz(a){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=a;if(!e)Li(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=bi(t.uid,"type"),h=s??{type:Rt.SLS},c=n===!0&&o!==!1;if(Li(t,c),e.symbol?.color===void 0&&(h.color=gh({colorIndex:rx(l),histogramOverlays:!0})),Fo({element:t,lineSymbol:h,visible:c}),i&&"bins"in i){let d=i.bins.map(w=>w.count),A=Math.max(...d),{mean:p,stddev:f,median:m}=i,g=p-f,y=p+f,x=[];switch(l){case vr.Mean:x=[{x:p,y:0},{x:p,y:A}];break;case vr.Median:x=[{x:m,y:0},{x:m,y:A}];break;case vr.StdDev:x=[{x:g,y:0},{x:g,y:A},{x:null,y:null},{x:y,y:0},{x:y,y:A}];break}t.data.setAll(x)}let u=t.data.getIndex(0)?.x;if(l===vr.StdDev&&(u=i?.stddev??bi(t.uid,"stddev"),Gr(t.uid,{stddev:u})),typeof u=="number"){let d=l;switch(l){case vr.Mean:d=r.overlays.mean;break;case vr.Median:d=r.overlays.median;break;case vr.StdDev:d=r.overlays.stdDev;break}let A=fe(t.chart?.uid??Number.NaN,"formatLocale"),p=bA({root:t.root,value:u,valueFormat:Yb(),formatLocale:A}),f=`${d}: ${p}`;FA(t,f)}}}function dz(a){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=a;if(!e)Li(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=s??{type:Rt.SLS},h=n===!0&&o!==!1;if(Li(t,h),e?.symbol?.color===void 0&&(l.color=gh({colorIndex:rx(vr.Normal),histogramOverlays:!0})),Fo({element:t,lineSymbol:l,visible:h}),i&&"bins"in i){let{mean:c,stddev:u,min:d,max:A}=i,p=b4(i.bins),f=y4(d,A,r??q.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:v4({x:m,mean:c,stddev:u,scalingFactor:p})}));t.data.setAll(f)}}}function Az(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:s,options:n}=a;t.set("id",e.id),Li(t,e.visible),ns(t.columns.template,n?.selectionTheme),_u(t.columns.template,s?.bins?.length),FA(t,e.name);let o=s?.bins.find(l=>"symbol"in l)?.symbol;sh(a)&&ah({styleCallback:()=>oz({...a,rendererSymbol:o}),series:t,seriesConfig:e}),lz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:s})}function pz(a){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:s,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=a,{tooltipFormatter:c}=o??{};for(let u=0;u<t.length;u++){let d=t[u];if(d instanceof ei&&bi(d.uid,"isOverlay")){let A=bi(d.uid,"type");if(A===vr.Normal)dz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case vr.Mean:p=e.overlays?.mean;break;case vr.Median:p=e.overlays?.median;break;case vr.StdDev:p=e.overlays?.standardDeviation;break}cz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Ri&&(Az({...a,series:d}),Gk({series:d,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),O4({axes:n,series:d,seriesConfig:e,fieldList:s,tooltipFormatter:c,utilsStrings:r,axesConfig:h.axes}))}}function fz(a){vx(),lx(a.root.dom),Yc({chart:a})}function mz(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>{let s=!0;return rh(r)||Kf(r)||bi(r.uid,"isOverlay")===!0?s=!1:e===V.BoxPlotSeries&&(i?s=bi(r.uid,"isBoxPlotMeanLineSeries")===!0:s=r instanceof La),s}).every(r=>bi(r.uid,"isSelectionApplied")===!0)}function gz(a){a.series.each(t=>Gr(t.uid,{isSelectionApplied:void 0}))}function yz(a){let t=[];if(!rh(a)&&!Kf(a))switch(!0){case a instanceof Ur:t=a.slices.values;break;case a instanceof Ri:let{chart:e}=a;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),s=[];r===V.HistogramSeries?s=[dd.Count]:r===V.HeatSeries?s=[xr.valueField]:s=Mo(i?.series,[a.get("id")??""]),t=a.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||s.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case a instanceof ei:t=Array.from(a.dataItems.values());break}return t}function Yk(a,t){let e=fe(a.uid,"actionMode");(e===Ut.MonoSelection||e===Ut.None)&&t.length>1?Yc({chart:a}):t.forEach(i=>{ra({element:i,selected:!0})})}function vz(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=fe(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=kt(n?.series),c=ze(n?.series);return t.series.each((u,d)=>{if(n&&u.get("visible")===!0&&u.get("id")!==q.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=zf(u),f=e.get(d);if(f!==void 0){let m;if(u instanceof ei&&(m=u.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),m!==void 0){let{indexesToSelect:g}=f;m.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=th({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:c,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)});w!==void 0&&r.push(w),s.push(y)}else ra({element:y,selected:!1})})}}}}),Yk(t,s),r}function bz(a){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:c}=a,u=ze(e.series),d=kt(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series);return r.forEach((y,x)=>{let w=y instanceof mr||y instanceof ma?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof mr||y instanceof ma?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&u===V.BoxPlotSeries&&S[q.boxPlot.boxPlotOutlierId]!==!0&&(S=th({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)})),kv({elementDataContext:S,options:i,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,chartType:u,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),f.push(x),w?.dataItem instanceof Wa&&S!==void 0)m.push(S);else{let T=new Set;u===V.PieSeries&&ih(S)?(Qf({groupOfSlicesDataContext:S})??[]).forEach(F=>{s.forEach(L=>{ww({layerOidField:n,sliceDataContext:F,selectionDataContext:L,xAxisField:o})&&T.add(F)})}):T.add(S),Array.from(T)?.forEach(F=>{let L=th({dataContext:F,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)});L!==void 0&&m.push(L)})}else ra({element:w,selected:!1})}}),Yk(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function xz(a){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:s,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:c}=a,{chart:u}=t;if(u instanceof fs){let d=fe(u.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:f,returnSelectionOIDs:m}=d??{},{selectionIndexes:g}=p??{},y=fe(u.uid,"config"),x=oa(y),w=ze(y?.series),S=kt(y?.series),T=yz(t);if(A!==!0&&y!==void 0){let F=$s(i),L=xh(F).idField,$=fe(u.uid,"currentSelectionDataItems"),I=!1,U=!1,P,Q=!1;if(T?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){P=d?.selectionData?.selectionItems??$;let G=fe(u.uid,"currentSelectionIndexes");Q=Sx({itemsA:P,itemsB:$,isPieFromFields:S===ke.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let Y=g?.keys.length!==G?.keys.length||!rn(g,G);I=s===!0||r===!0||n===!0||c===!0||P!==void 0&&Q;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:te}=g.get(e??0)??{};ee=te!==void 0&&te[0]===void 0}U=r===!0||n===!0||c===!0||!ee&&Y}if(I&&P!==void 0&&P.length>0){let{selectedIndexes:G,newSelectionDataItems:Y}=bz({chart:u,chartConfig:y,options:d,elementsToApplySelectionTo:T,selectionDataItems:P,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(u.uid,"computedSelectionDataItems")??[];if(ee.push(...Y),y.series.length>1&&S!==ke.BarAndLineNoAggregation&&S!==ke.BarAndLineSplitByNoAggregation&&(ee=ap({data:ee,x:y.series[0].x,splitByField:Dn(y.series[0].query?.where)})),Xr(u.uid,{computedSelectionDataItems:ee}),f===!0){let te=Array.from(new Set(G)),le=fe(u.uid,"computedSelectionIndexes");le===void 0&&(le=new Map),te.length===T.length?le.set(e??0,{}):le.set(e??0,{indexesToSelect:te}),Xr(u.uid,{computedSelectionIndexes:le})}}else if(g!==void 0&&U)P=vz({chart:u,selectionIndexes:g,queryObject:i});else{let G=Y=>{let ee=Y.dataItem?.dataContext;return kv({elementDataContext:ee,options:d,selectionDataItems:P??$??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};T.forEach(Y=>{let ee=Y instanceof mr||Y instanceof ma?Y:Y.bullets?.[0]?.get("sprite");ee!==void 0&&ra({element:ee,selected:yl(ee.uid,"selected")===!0||G(ee),backToDefaultState:P===void 0||P.length===0})})}}if(Gr(t.uid,{isSelectionApplied:!0}),mz({chart:u,chartType:w,showMean:x})&&(gz(u),Q||U)){let G=fe(u.uid,"computedSelectionDataItems")??P;G=Array.from(new Set(G?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),P!==void 0&&Xr(u.uid,{currentSelectionDataItems:G}),p?.selectionOIDs!==void 0&&Xr(u.uid,{currentSelectionOIDs:p.selectionOIDs});let Y;if(f===!0&&(Y=fe(u.uid,"computedSelectionIndexes")??g,Y!==void 0&&Xr(u.uid,{currentSelectionIndexes:Y})),G===void 0||G.length===0)Yc({chart:u,selectionSource:Tr.ProgrammaticSelection});else{let ee={selectionItems:G,selectionSource:Tr.ProgrammaticSelection};f===!0&&(ee.selectionIndexes=Y),m!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(u.uid,"currentSelectionOIDs")),Vu({data:ee,htmlContainer:u.root.dom})}Xr(u.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function _z(a){let{chart:t,chartConfig:e,queryObject:i}=a;!fe(t.uid,"filterBySelection")&&!bs(i)&&t.series.values.filter(r=>!rh(r)&&!Kf(r)).forEach(r=>{let{seriesConfig:s,seriesIndex:n}=Zf(r,e);if(s){let o=s.x,l=s.type===V.BoxPlotSeries||s.type===V.HeatSeries?s.y.toString():zf(r),h=s.query?.where??"";Cz({callbackProps:{...a,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:s})}})}async function qw(a){let{chart:t,selectionSource:e,queryObject:i,errorStrings:r}=a,s=fe(t.uid,"config"),n=bs(i);if(s){let o=fe(t.uid,"options"),l=ze(s.series),h=kt(s.series),c=Eo(s),u=Mo(s.series),d=s.series[0].x,A=yh(i),p=n?void 0:qm($s(i))?.dateFieldsTimeZone,f;so(s)?f=s.outTimeZone:bh(s.series[0])&&(f=s.series[0].temporalBinning?.outTimeZone);let m=_a(i).find(g=>g.name===d)?.type;try{let g=new Set,y=[],x=new Map,w=[],S=[],T=0;if(t.series.each((F,L)=>{let{seriesConfig:$}=Zf(F,s),I=$?.query?.where??"",U=$?.type===V.BoxPlotSeries?$.y.toString():zf(F),P;F instanceof ei?P=F.dataItems:F instanceof Ri?P=F.columns.values:F instanceof Ur&&(P=F.slices.values),P?.forEach((Q,G)=>{let Y=Q instanceof mr||Q instanceof ma?Q:Q.bullets?.[0]?.get("sprite");if(Y!==void 0&&yl(Y.uid,"selected")===!0){T+=1;let ee=Q instanceof mr||Q instanceof ma?Q.dataItem?.dataContext:Q.dataContext;if(ee!==void 0){if(ee=th({dataContext:ee,yAxisField:U,yList:u,xAxisField:d,splitBy:I,chartType:l,chartSubType:h,showOutliers:c,isFeatureCollectionLayer:Oo(i)}),g.has(JSON.stringify(ee))||(g.add(JSON.stringify(ee)),y.push(ee)),G!==void 0){let le=x.get(L)?.indexesToSelect??[];le.push(G),x.set(L,{indexesToSelect:Array.from(new Set(le))})}let te=ee[Ou.uniqueIdsName]!==void 0?[ee[Ou.uniqueIdsName]].flat():[];if(te.length>0)S.push(...te);else if(!n&&o?.returnSelectionOIDs!==!1){let le=Fx({dataContext:ee,options:o,xAxisField:d,yAxisField:U??"",splitBy:I,xAxisFieldType:m,chartConfig:s,outTimeZone:f,dataTimeZone:p,runsOnClientQueryEngine:A,queryObject:i});w.push(le)}}}})}),T===0)Yc({chart:t,selectionSource:e});else{if(!n&&o?.returnSelectionOIDs!==!1&&w.length>0){let L={...fe(t.uid,"queryConfig")};delete L.groupByFieldsForStatistics,delete L.orderByFields,delete L.outStatistics;let $=await r1({whereList:w,queryObject:i,queryConfig:L,errorStrings:r});if(w.length===T)S=$;else for(let I=0;I<$.length;I+=1)S.push($[I])}S=Array.from(new Set(S)),s.series.length>1&&h!==ke.BarAndLineNoAggregation&&h!==ke.BarAndLineSplitByNoAggregation&&(y=ap({data:y,x:s.series[0].x,splitByField:Dn(s.series[0].query?.where)})),Xr(t.uid,{currentSelectionDataItems:y,currentSelectionOIDs:S,currentSelectionIndexes:x});let F={selectionItems:y,selectionSource:e};o?.returnSelectionIndexes===!0&&(F.selectionIndexes=x),o?.returnSelectionOIDs!==!1&&(F.selectionOIDs=S),n&&(F.selectionPixelTarget=sg({chartConfig:s,layer:i,selectionDataItems:y})),Vu({data:F,htmlContainer:t.root.dom})}}catch(g){Xr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:y}=g instanceof Tl?g.details.details:g.details??{};if(y===429)fz(t);else throw g}Xr(t.uid,{pendingSelectionQueries:!1})}}function SA(a,t){let{y:e,query:i}=t,r=kt(a.series)===ke.BarAndLineSplitByNoAggregation?`${e.toString()}_${vh({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],s=q.xAxisField,n=a.rotated===!0?"categoryYField":"categoryXField",o=a.rotated===!0?"valueYField":"valueXField",l=a.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=a.rotated===!0?"valueXField":"valueYField";return{xField:s,yField:r,xAxisField:l,yAxisField:h}}function sh(a){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:s,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=a,h=t.series.length===1,c=ze(t.series),u=!!(e||i||r||s||l),d=!1;switch(c){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return u||d}function Kk(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,r=n=>{let{type:o}=n;o==="selection"?xz(n.callbackProps):(Li(t,i.visible),n.styleCallback())},s=fe(t.chart?.uid??Number.NaN,"config");s&&ek({series:t,chartConfig:s,whenReadyCallback:()=>r(e)})}function Cz(a){let{series:t,callbackProps:e,seriesConfig:i}=a;Kk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function ah(a){let{series:t,styleCallback:e,seriesConfig:i}=a;Kk({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function Zk(a){let t;return a&&a.series.length>0&&(t=a.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function Jw(a){let{series:t,chartConfig:e,isRotated:i}=a,r=ks(e),s=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===$i.Stacked||r===$i.Stacked100)?o:n;switch(r){case $i.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof ei&&t.set("stackToNegative",s.stackNegativeValuesToBaseline??q.lineSeries.stackNegativeValuesToBaseline);break}case $i.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof ti&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof ti&&o.set("calculateTotals",!0));break}case $i.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function FA(a,t){a.set("name",t)}function wz(a){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=a,s=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[s,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let c=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:c,yAxis:h}}function TA(a,t){let{series:e}=t,i=ze(e);a instanceof Ri&&(a.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?a.columns.template.set("ariaLabel",Tz()):a.columns.template.set("ariaLabel",sp()))}function _u(a,t){a&&a.set("focusable",(t??0)<q.focusableThreshold)}function Bz(a){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:s,sizePolicyChangesRequireSeriesReinit:n}=a,o=!1,l=ze(e.series);switch(l){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:let h=e.series.length;l===V.BoxPlotSeries&&(oa(e)?h+=4:h*=5),o=s||r||i?.common?.numberOfSeriesChanged===!0||t!==h;break;case V.ScatterSeries:o=n===!0;break}return o}function eB(a){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=a,s=t.series[i];if(s){let n=kt(t.series),o=s.name;if(n===ke.BarAndLineSplitBy||n===ke.BarAndLineSplitByNoAggregation){let l=Dn(s.query?.where);o=ag({queryObject:r,fieldName:l,fieldValue:o})??o}FA(e,o)}}function Zf(a,t){let e=ze(t?.series),i,r;return t?.series.forEach((s,n)=>{let o=!1;e!==V.BoxPlotSeries||a instanceof La?o=a.get("id")===s.id:a instanceof Bo?o=a.get("id")?.replace(`_${ji.Top}`,"")===s.id||a.get("id")?.replace(`_${ji.Median}`,"")===s.id||a.get("id")?.replace(`_${ji.Bottom}`,"")===s.id:a instanceof ei&&(o=a.get("id")?.replace(`_${ji.Outliers}`,"")===s.id),o&&(i=s,r=n)}),{seriesConfig:i,seriesIndex:r}}function Sz(a,t){let e=a.get("valueXShow"),i=a.get("valueYShow"),r=t,s=e==="valueXTotalPercent"?r.get("valueXTotalPercent"):t.get("valueX"),n=i==="valueYTotalPercent"?r.get("valueYTotalPercent"):t.get("valueY");return{markerValueX:typeof s=="number"?s:void 0,markerValueY:typeof n=="number"?n:void 0}}function pA(a,t){let e=a;if(t instanceof ti&&t.get("logarithmic")===!0&&a===0){let i=t.get("treatZeroAs");e=typeof i=="number"&&i>0?i:q.treatZeroValueAs}return e}function Fz(a,t){let{chart:e}=t,i;if(e instanceof vi){let r=t.get("xAxis"),s=t.get("yAxis"),n=a.dataItem;if(n===void 0)i=!1;else{let{markerValueX:o,markerValueY:l}=Sz(t,n);if(typeof o!="number"||typeof l!="number")i=!1;else{let h=r?.getPrivate("min",0),c=r?.getPrivate("max",0),u=s?.getPrivate("min",0),d=s?.getPrivate("max",0),A=r?.get("start",0),p=r?.get("end",1),f=s?.get("start",0),m=s?.get("end",1),g=h+A*(c-h),y=h+p*(c-h),x=u+f*(d-u),w=u+m*(d-u),S=pA(o,r),T=pA(l,s),F=pA(g,r),L=pA(y,r),$=pA(x,s),I=pA(w,s);i=S<F||S>L||T<$||T>I}}}i!==void 0&&a.set("forceHidden",i)}function qk(a,t){let e=(i,r)=>{r!==void 0&&Fz(r,t)};a.on("x",e),a.on("y",e)}function PA(a,t){let e=t;e===void 0&&(e=fe(a.uid,"config"));let i=fe(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function xA(a,t){a.set("turboMode",t===!0)}function Tz(){return`{${xr.xField}} {${xr.yField}} {${xr.valueField}}`}function Jk(a){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=a,s=qn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(s!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:wx(n,s.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=s.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Pz(a){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,{chart:s,root:n}=t,o=s!==void 0?fe(s.uid,"formatLocale"):void 0,l=r??Jk({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return BA(t.uid,{numberFormatter:l}),l}function Dz(a){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof s=="number"&&e.type===V.NumberAxisFormat)n=Jk({root:r,intlOptions:e.intlOptions,formatLocale:o})(s);else if(i===!0&&e.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=kt(l?.series);if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(h)&&typeof s=="string"){let u=fe(t.uid,"fieldList");s=Or(u,s)}let{characterLimit:c}=e;n=s?.toString()??"",!zi(n)&&n!==q.htmlEmptyContent&&(n=fx({stringToTruncate:n,characterLimit:c}))}return n.toString()}}function Lz(a){let{chart:t,isXAxis:e=!0,formatOptions:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(so(l)){let h=oF(l.series[0],e);if(h&&s!==void 0&&s!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Vm.DayOfWeek:n=TT({weekdayNumber:Number(s),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Vm.MonthOfYear:n=PT({monthNumber:Number(s),format:i.intlOptions,locale:o});break;case Vm.HourOfDay:n=FT({hour:Number(s),format:i.intlOptions,locale:o});break}}else if(s!==void 0&&s!==""){if(i.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=s?.toString()??"",!zi(n)&&n!==q.htmlEmptyContent)){let{characterLimit:c}=i;n=fx({stringToTruncate:n,characterLimit:c})}}}return n.toString()}}function Iz(a){let{axis:t,formatOptions:e,isTimeOnlyField:i,setTimeZone:r,outTimeZone:s}=a,n={...$o(e)},o=["year","month","day","hour","minute","second"],l=i?{hour:{hour:"numeric",minute:"numeric"},minute:{hour:"numeric",minute:"numeric"},second:{hour:"numeric",minute:"numeric",second:"numeric"}}:{},h=i?{hour:{hour:"numeric",minute:"numeric"},minute:{hour:"numeric",minute:"numeric"},second:{hour:"numeric",minute:"numeric",second:"numeric"}}:{};if(r){let c=Fc.new(s??n.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);r&&t.root.timezone?.name!==c.name&&(t.root.timezone=c);for(let u=0;u<o.length;u+=1){let d=o[u],A=u===0?d:o[u-1],p=e?.formatPerDateTimeUnit?.[d]??n,f=e?.formatPerDateTimeUnit?.[A];p&&Object.values(p).find(m=>m!==void 0&&(typeof m!="string"||!zi(m)))&&(l[d]=p,h[d]=f??p)}Object.keys(l).length>0&&t.set("dateFormats",l),Object.keys(h).length>0&&t.set("periodChangeDateFormats",h)}}function xI(a){let{axis:t,valueFormat:e,chartType:i}=a,r=rB({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof hr,n=ba(e)&&t instanceof ti&&!(t instanceof hr),o=r&&t instanceof Sr;return!s&&!n&&!o}function e$(a){let{dataContext:t,defaultValue:e,chartUID:i}=a,r=oo(t),s=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(s?.series),l=kt(s?.series);return o===V.BoxPlotSeries&&(l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy)?r=t?.[jm]:o===V.HistogramSeries?r=t?.[dd.Start]:(o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&s!==void 0?r=no({value:qA(l,s?.series?.[0]),dataContext:t,useRendererLabel:Qu(s,n),config:s}):r=no({value:e??"",dataContext:t,useRendererLabel:Qu(s,n),specificField:pt.xAxisField}),{labelValue:r,originalLabelValue:oo(t)}}function kz(a,t){let{chart:e}=a;if(e!==void 0){let i=a.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html");let r=t!==void 0?"html":"text";i.adapters.add(r,(s,n)=>{let o=s,l=gu(a.uid,"labelFormatter");if(!ka(n.uid,"isGuide")&&l!==void 0){let h,c;switch(!0){case a instanceof hr:case a instanceof ti:h=n.dataItem?._settings?.value;break;case a instanceof Sr:{let u=s,d=n.dataItem?.dataContext,A=fe(a.chart?.uid??Number.NaN,"config");if(ze(A?.series)===V.HeatSeries){let f=bu(a.get("renderer"))?d?.[xr.xField]:d?.[xr.yField];typeof f=="string"&&(u=f)}let p=e$({dataContext:d,defaultValue:u,chartUID:e.uid});h=p.labelValue,c=p.originalLabelValue}break}h!==void 0&&(o=l(h,c),r==="html"&&(o=Zr(o)))}return o}),i.adapters.add(r,(s,n)=>{let o=s,l=fe(e.uid,"config");if(!ka(n.uid,"isGuide")&&l!==void 0){let h=us(l),c=bu(a.get("renderer"),h),u=l.axes?.[c?0:1],d=i.get("maxWidth"),A=r==="html"?{wrap:i.get("oversizedBehavior")==="wrap",maxWidth:typeof d=="number"?d:void 0}:void 0,p={type:Rt.TS,...u?.labels.content,text:s};o=xa({textSymbol:p,format:r==="text"?"amChartsV5":"html",defaults:A})}return o}),r==="html"&&i.set("html",q.htmlEmptyContent)}}function $z(a){let{axis:t,isRotated:e,chartConfig:i}=a,r=t.get("renderer");if(r===void 0)return;let s=t instanceof Sr||t instanceof hr,n=t instanceof ti&&!(t instanceof hr)&&e===!0&&bu(r,e);if(s||n){let o=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===zA.Descending:!1,l=e===!0;o&&t instanceof hr&&(l=!l),r.set("inversed",l)}}function Oz(a){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:s,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c,errorStrings:u}=a,{chart:d}=t;if(d!==void 0){let A=rB({isXAxis:e,chartType:i,valueFormat:r}),p=t instanceof ti&&!(t instanceof hr)&&ba(r),f=t instanceof hr&&ro(r),m=t instanceof Sr&&A;if(!(p||f||m))Km("mismatchAxisAndValueFormat",u);else{kz(t,o);let g=o;o===void 0&&(i===V.HeatSeries?g=Lz({chart:d,isXAxis:e,formatOptions:r}):m?g=Dz({chart:d,formatOptions:r,isNonAggregatedChart:s}):p?g=Pz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):f&&Iz({axis:t,formatOptions:r,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c})),BA(t.uid,{labelFormatter:g})}}}function Ez(a){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:s,timeIntervalInfoWasReset:n}=a,o=ze(i),l=us(a.chartConfig),h=l?1:0,c=l?0:1,u=e?.[h]?.valueFormat,d=e?.[c]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),f=A===void 0||r||u!==void 0&&xI({axis:A,valueFormat:u,chartType:o}),m=p===void 0||r||d!==void 0&&xI({axis:p,valueFormat:d,chartType:o});return n||s?.[0]||s?.[1]||f||m}function bu(a,t){return a instanceof as&&!t||a instanceof ya&&t||a instanceof Vs}function Zv(a){return a instanceof as}function Mz(a){return a instanceof ya}function Rz(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=fe(t.chart?.uid??Number.NaN,"config"),s=e===!0&&dg({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof hr||t instanceof ti)&&t.setAll({logarithmic:s,treatZeroAs:s?q.treatZeroValueAs:0,maxPrecision:s?0:void 0})}function Uz(a,t){if(a instanceof ti){let{integerOnlyValues:e,valueFormat:i}=t,r=Dx(i)?i.intlOptions.maximumFractionDigits:void 0;a.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function t$(a,t){let{chart:e}=t,i=ps.new(a,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,s)=>{let n=r??"",o=gu(t.uid,"labelFormatter");if(!s.isHidden()&&o&&e){let{label:l}=s,h=l.get("text")??"";if(t instanceof ti){let c=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(c)?h:c,r)}else if(t instanceof Sr){let c=l.dataItem?.dataContext,u=e$({dataContext:c,defaultValue:r,chartUID:e.uid});n=o(u.labelValue??h,r??u.originalLabelValue)}}return n}),i}function Vz(a){let{root:t,axis:e,displayCursorTooltip:i}=a;(e.get("tooltip")??t$(t,e)).set("forceHidden",i!==!0)}function Nz(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=a;if(t instanceof hr){let s,n=1;if(r)s="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case er.Second:s="second";break;case er.Minute:s="minute";break;case er.Hour:s="hour";break;case er.Day:s="day";break;case er.Week:s="week";break;case er.Month:s="month";break;case er.Year:s="year";break}n=o}}s!==void 0&&t.set("baseInterval",{timeUnit:s,count:n})}}function Qz(a,t){let{buffer:e}=t??{};return e??=q.buffer,a instanceof ti&&!(a instanceof hr)&&!e}function Hz(a,t){let e=!1;return a instanceof ti&&!(a instanceof hr)&&(e=Qz(a,t),a.set("strictMinMax",e)),e}function _I(a,t){let e=a;if(a){let i=(t?Math.ceil:Math.floor)(Math.log10(a));e=Math.pow(10,i)}return e}function jz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:s,isLogarithmic:n}=a,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&s===$i.Stacked100&&!n&&t instanceof ti&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),c=t.chart?.series.getIndex(0)?.data.values;if(h&&c){let u=Zk(t.chart),d=cg({chartConfig:h,isSecondValueAxis:i,seriesIds:u});o=!uT({seriesConfig:h.series,filteredData:c,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Wz(a){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o}=a,{minX:l,maxX:h,minY:c,maxY:u}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[c,u],p=d,f=A;return i===$i.Stacked100?(p=Number.NaN,f=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===$i.Stacked&&!r)&&(p=Math.min(d,0),f=Math.max(A,0)),p=s??p,f=n??f),o===!0&&(p=Number.isFinite(p)?_I(p,!1):p,f=Number.isFinite(f)?_I(f,!0):f),{min:p??Number.NaN,max:f??Number.NaN}}function Xz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:s,maximumFromConfig:n}=a,o=s,l=n,{chart:h}=t;if(h){let c=fe(h.uid,"config");if(h instanceof vi&&c){let u=ze(c.series),d=ks(c)??$i.Side,A=Zk(h),p=cg({chartConfig:c,isSecondValueAxis:i,seriesIds:A}),f=Ln(r),m=Tx({chartConfig:c,chartData:f??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Wz({dataMinMax:m,chartType:u,stackedType:d,isXAxis:e,minimumFromConfig:s,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function zz(a){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:c}=a,{chart:u}=t;if(u&&(t instanceof ti||t instanceof hr))if(Hz(t,e)){let d=i,A=r,p=bu(t.get("renderer"),l);if(jz({chartType:n,stackedType:o,isLogarithmic:s,axis:t,xAxis:p}))d=d??0,A=A??100;else if(KI({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s})){let f=Xz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:c});d=f.min,A=f.max}A=A??Number.NaN,d=d??Number.NaN,s&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?q.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Lv(a,t){if(a!==void 0){let e=fe(a.uid,"config");if(e!==void 0){let i=ze(e?.series),r=ks(e)??$i.Side,s=us(e),n=a.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],c=a.yAxes.getIndex(0),u=a.xAxes.getIndex(1)??a.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:c,axisConfig:l},{axis:u,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:f}=d;if(A!==void 0){let{minimum:m,maximum:g,buffer:y,isLogarithmic:x}=p??{};zz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:s,minimumFromConfig:m,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:f})}})}}}function Gz(a){a.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=gu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.strokeWidth??q.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(s=(s===0?1:s)*1.5),s}),a.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=gu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(s=1),s})}function tB(a){a.on("visible",()=>{a.chart instanceof vi&&Lv(a.chart)}),a.events.on(Ji.DataValidated,()=>{a.chart instanceof vi&&Lv(a.chart)})}function Yz(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&ka(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function CI(a,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),s=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof ti){let c=l.get("renderer")instanceof Vs;n.push({isXAxis:bu(l.get("renderer"),i),isSecondValueAxis:h===1&&s!==V.HistogramSeries,minimum:c?l.get("min"):l.getPrivate("min"),maximum:c?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&hx(n,e.root.dom)}}}function i$(a){a.ghostLabel?.set("forceHidden",!0)}function wI(a){let{axis:t,start:e,end:i}=a;t.zoom(e??0,i??1)}function BI(a){a!==void 0&&a.setAll({start:0,end:1})}function Kz(a){a instanceof vi&&(a.xAxes.each(t=>wI({axis:t})),a.yAxes.each(t=>wI({axis:t})),BI(a.get("scrollbarX")),BI(a.get("scrollbarY")))}function Zz(a){let{axis:t,guide:e,guideIndex:i}=a,{root:r,chart:s}=t,n=e.get("axisFill");n?.set("tooltip",ps.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&s!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(q.tooltipWidth,s.seriesContainer.width())),o.get("background")?.set("fillOpacity",Qm);let l=fe(s.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.setAll({tooltipPosition:q.guideTooltipPosition}),n.adapters.add("tooltipText",(h,c)=>{let u=h,{dataItem:d}=c;if(!(t.get("renderer")instanceof Vs)){let A=gu(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof ss){let p,f;switch(!0){case t instanceof hr:case t instanceof ti:p=d.get("value"),f=d.get("endValue");break;case t instanceof Sr:p=d.get("category"),f=d.get("endCategory");break}u=A({guideName:YW(d.uid,"name")??"",start:p??"",end:f,guideIndex:i})}}return u??""});let l=n.getTooltip();l&&(bk(l),l.adapters.add("x",(h,c)=>{let{chart:u}=t;if(u&&c){let d=fe(u.uid,"config"),A=fe(u.uid,"isRotated");if(d){let p=bu(t.get("renderer"),A)?0:1,f=d?.axes?.[p]?.guides?.[i];if(f){let{tooltipReverseColor:m}=f;xk(c,m)}}}return h}))}}function qz(a,t){return e=>{let{guideName:i,start:r,end:s}=e,{chart:n,root:o}=a,l="";if(n!==void 0){let h=fe(n.uid,"config"),c=fe(n.uid,"isRotated"),u=bu(a.get("renderer"),c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=s;if(a instanceof hr){let x;if(n!==void 0){let w=fe(a.chart?.uid??Number.NaN,"formatLocale");x=qn({root:a.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),s!==void 0&&(p=x.format(s,S))}}else if(a instanceof ti&&!(r instanceof Date)&&!(s instanceof Date)){let x=d?.find(F=>F.name===i),{start:w,end:S}=r$(a,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let T=gu(a.uid,"numberFormatter")??(F=>Zh.new(o,{}).format(F));A=T(A),p!==void 0&&(p=T(p))}else a instanceof Sr&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Uc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Jz(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;BA(t.uid,{guideTooltipFormatter:e??qz(t,i)})}function SI(a){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(!0){case e instanceof hr:s=t;break;case e instanceof Sr:s=t.toString();break;case e instanceof ti:if(typeof t!="number"){let n=t.toString().trim(),o=ip(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function iB(a,t){return a.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=ka(i?.uid??Number.NaN,"isGuide")??!1,s=ka(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case gr.Ticks:n=!r;break;case gr.Guides:n=r;break;case gr.GaugeTicksWithLabels:n=s&&"value"in e&&e.value!==void 0;break}return n})??[]}function eG(a){let{axis:t,guideConfig:e,above:i}=a,r=e!==void 0,s=t.axisRanges.length,n=t.axisRanges.insertIndex(s,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:q.zIndexes.guide}),f4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function tG(a){let{axis:t,guideIndex:e,guideConfig:i}=a,r=eG({axis:t,guideConfig:i,above:i?.above});Zz({axis:t,guide:r,guideIndex:e});let s=r.get("tick"),n=r.get("label"),o=r.get("grid");s!==void 0&&s.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function iG(a,t){let e=iB(a,gr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)tG({axis:a,guideIndex:r,guideConfig:t?.[r]})}function rG(a,t){let{start:e,end:i}=t,r=e!==null?e:void 0,s=i!==null?i:void 0,{chart:n}=a,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=lg(o),h=a.data.values,c=h.find(u=>u[q.originalCategoryValue]===e)?.[l];if((typeof c=="string"||typeof c=="number"||c instanceof Date)&&(r=c),s!==void 0)for(let u=h.length-1;u>=0;u-=1){let d=h[u],A=d[l];if(d[q.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){s=A;break}}}return{modifiedStart:r,modifiedEnd:s}}function r$(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=a instanceof ti?a.get("min"):void 0,n=a instanceof ti?a.get("max"):void 0,o=SI({inputValue:e,axis:a,axisMin:s,axisMax:n}),l=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?SI({inputValue:i,axis:a,axisMin:s,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function sG(a){let{axis:t,guide:e,guideConfig:i}=a,{start:r,end:s}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Sr&&n instanceof vi&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=rG(t,i);o={isValidGuide:!0,start:l??r,end:h??s}}else o=r$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof hr:case t instanceof ti:l="value",h="endValue";break;case t instanceof Sr:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function aG(a){let{axis:t,guide:e,guideConfig:i}=a;if(e){let r=e.get("axisFill"),s=e.get("label");if(i!==void 0){KW(e.uid,{name:i.name}),Li(e,i.visible),sG({axis:t,guide:e,guideConfig:i}),i.style.type===Rt.SLS?vu({root:t.root,element:r,fillSymbol:{type:Rt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Rt.SFS&&vu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),m4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?q.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),s!==void 0&&s.set("disabled",!0)}}function nG(a){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){let s=iB(t,gr.Guides);e.forEach((n,o)=>{aG({axis:t,guide:s[o],guideConfig:n})}),Jz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function oG(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ka(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function FI(a,t){let e=iB(a,gr.Guides).length,i=t?.length??0,r=e-i;oG({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function lG(a){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=a;i&&FI(t),iG(t,e),nG(a),FI(t,e)}function s$(a){return a.getCellWidthPosition()*a.width()}function hG(a,t){let e=a.get("renderer");if(a!==void 0){let i=Number.NaN;if(t===tr.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{ka(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let s=a instanceof hr?a.width()/q.maxNumberOfXAxisLabelsInWrapModeForDateAxis:a.width()/q.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,s)}else if(t===tr.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(s=>{ka(s.uid,"isGuide")!==!0&&s.width()>0&&(r=Math.max(r,s.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>q.shortestMinGridDistance&&e.set("minGridDistance",i)}}function uG(a){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:s}=a,{horizontalAxisLabelsBehavior:n}=a;n===void 0&&(n=e!==V.HistogramSeries?tr.Rotate:tr.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof s=="number"&&Number.isFinite(s))l=s;else if(e!==V.RadarSeries)if(o instanceof Vs)l=q.gauge.gaugeMinGridDistance;else if(t instanceof ti)l=o instanceof as?q.xAxisMinGridDistance:q.yAxisMinGridDistance;else if(o instanceof as)if(r===!0)l=q.secondRotatedValueAxisMinGridDistance;else if(n===tr.Rotate){let h=i.content.font?.size??q.generalFontSize,c=t instanceof Sr?q.categoryAxisLabelPadding:q.axisLabelPadding;l=h*c}else if(n===tr.Wrap||n===tr.Hide){n===tr.Hide&&(l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance);let h=gu(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ji.BoundsChanged,()=>{hG(t,n)}),BA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===tr.Stagger?l=q.staggerMinGridDistance:l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance;else l=t instanceof Sr?q.yCategoryAxisMinGridDistance:q.yAxisMinGridDistance;o.set("minGridDistance",l)}function TI(a=1,t){let e=t.get("renderer"),i=s$(t),r=0;e.labels.each(o=>{ka(o.uid,"isGuide")!==!0&&o.getText()!==void 0&&o.width()>0&&(r+=1)});let s=r>0?t.width()/r:0,n=Math.max(i,s)*a;if(Number.isFinite(n)&&n>0){let o=e.labels.template;o.get("maxWidth")!==n&&(o.set("maxWidth",n),o.get("html")!==void 0&&(o.set("html",void 0),o.set("html",q.htmlEmptyContent)))}}function PI(a,t=1){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),a.events.on(Ji.BoundsChanged,()=>TI(t,a)),TI(t,a)}function cG(a){let t=a.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=ka(i.uid,"isGuide")!==!0?gu(a.uid,"rotation")??0:e??0;return t.set("centerX",r===0?je:ge),r})}function KC(a){if(a?.chart!==void 0){let t=a.get("renderer");if(fe(a.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(s=>{if(ka(s.uid,"isGuide")!==!0&&s.width()>0){let n=e===q.rotatedAxisLabel.rotation?Math.sqrt(s.innerHeight()**2+s.innerWidth()**2):s.innerWidth();n>i&&(i=n)}});let r=s$(a)>=i+5;if(!r&&e===0||r&&e===q.rotatedAxisLabel.rotation){let s=r?q.axisLabel.rotation:q.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:s,centerX:r?je:ge,centerY:Hr,paddingTop:r?q.axisLabel.paddingTop:q.rotatedAxisLabel.paddingTop,paddingLeft:r?q.axisLabel.paddingLeft:q.rotatedAxisLabel.paddingLeft,paddingRight:r?q.axisLabel.paddingRight:q.rotatedAxisLabel.paddingRight}),BA(a.uid,{rotation:s})}}}}function DI(a){let t=a.get("renderer");cG(a),t.labels.template.setAll({oversizedBehavior:"hide"}),a instanceof hr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),a.events.on(Ji.BoundsChanged,()=>KC(a)),a.events.on(Ji.DataValidated,()=>KC(a)),KC()}function LI(a){if(a&&fe(a.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;a.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(a.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),s=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:q.axisTickLength),s&&s.set("dy",n?t:0)}),t&&a.get("renderer").labels.template.get("paddingBottom")!==t+5&&a.get("renderer").labels.template.set("paddingBottom",t+5))}}function dG(a){a.get("renderer").labels.template.set("oversizedBehavior","wrap"),a.events.on(Ji.BoundsChanged,()=>LI(a)),LI(a)}function AG(a){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:q.yAxisLabelMaxWidth,textAlign:"end"})}function pG(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:s,chartType:n}=a,o=t.get("renderer");if(!(o instanceof Vs))if(Zv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?tr.Hide:e){case tr.Hide:break;case tr.Stagger:dG(t),PI(t,2);break;case tr.Wrap:PI(t);break;case tr.Rotate:DI(t);break;default:s.content.angle!==null&&s.content.angle===void 0&&DI(t);break}else Mz(o)&&i!==tr.Hide&&AG(t)}function fG(a){let{renderer:t,axisConfig:e,labelConfig:i}=a;switch(e.labelsOrientation){case zb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case zb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment="middle";break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function mG(a){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,chartType:n}=a,o={...e},l=t.get("renderer"),h=l?.get("opposite");Zv(l)?(o.content.horizontalAlignment="center",o.content.verticalAlignment=h?"bottom":"top"):(o.content.horizontalAlignment=h?"left":"right",o.content.verticalAlignment="middle"),l instanceof Vs?fG({renderer:l,axisConfig:a.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation"),Cn({label:l.labels.template,labelConfig:o}),pG({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:s,chartType:n})}function gG(a){let{axis:t,isHorizontalAxis:e,label:i}=a,{chart:r}=t;if(r){let s=e?"width":"height",n=e?Wt.XAxisTitle:Wt.YAxisTitle;gl({chart:r,label:i,labelType:n}),t.onPrivate(s,Is(()=>gl({chart:r,label:i,labelType:n}),q.debounceTime))}}function yG(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Xr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Mu(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function vG(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=fe(a.uid,"config"),s=i.get("min")??r?.axes?.[0].minimum??q.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??q.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e??void 0}function bG(a){let{root:t}=a,e=dl.new(t,{radius:Bt(100)}),i=a.makeDataItem({value:0,bullet:ou.new(t,{sprite:e})});return a.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function xG(a){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=a,s=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof dl),n=s?.get("bullet")?.get("sprite");if(s&&n instanceof dl){let{startWidth:o,endWidth:l,innerRadius:h}=q.gaugeNeedle;vu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),vu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),s.set("value",vG(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function _G(a,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:q.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&a.set("innerRadius",Bt(e))}function CG(a,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:q.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:q.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&a.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&a.set("endAngle",i)}function wG(a){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=a,{axes:h,series:c}=e,u=Hu(e),{featureIndex:d,x:A}=c[0],p=h?.[0],f=t.xAxes.getIndex(0),m={...p};if(f instanceof ti&&f.get("renderer")instanceof Vs&&m!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=m;_G(t,e),CG(t,e);let x=Ew({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});m.minimum=x.minimum,m.maximum=x.maximum;let{min:w,max:S}=V1(m),T={...m};Mu(g)?(T.minimum=0,T.maximum=1,N1({axisConfig:T,axisMin:m.minimum,axisMax:m.maximum})):(T.minimum=w,T.maximum=S),sB({chartConfig:e,axis:f,axisConfig:T,axisConfigIndex:0,externalAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,queryObject:r});let F=u?x?.dataValue:yG({x:A,data:i.dataItems,chart:t,minimum:m.minimum,maximum:m.maximum,valueFormat:g});xG({chart:t,axis:f,needleConfig:y,gaugeValue:F})}}function BG(a){let{chart:t,axesConfig:e,errorStrings:i}=a,{root:r}=t;Pl({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let s=t.xAxes.push(ti.new(r,{min:0,max:100,renderer:Vs.new(r,{})}));bG(s),i$(s)}function SG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:s,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=a,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axes:m}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Pl({chartType:g,axesConfig:m,errorStrings:d}),[{axis:y,axisConfig:m?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:m?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:T,axisConfig:F,externalAxisLabelFormatter:L}=w;T!==void 0&&!T.isDisposed()&&F!==void 0&&sB({axis:T,data:s,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:F,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axisLabelsBehaviorChanged:i,utilsStrings:u,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:c,errorStrings:d,queryObject:A})}),Lv(t,s)}function FG(a){let{chart:t,axesConfig:e,x:i,errorStrings:r}=a,{root:s}=t,n=V.HistogramSeries;Pl({chartType:n,axesConfig:e,errorStrings:r});let o={root:s,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let c=pu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:as.new(s,{}),isXAxis:!0,x:i}),u=pu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:as.new(s,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});pu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:ya.new(s,{}),isXAxis:!1,x:i}),c&&(c.get("renderer").grid.template.set("location",0),c.get("renderer").ticks.template.set("location",0),c.get("renderer").labels.template.set("location",0)),u&&(u.set("visible",!1),u.get("renderer").grid.template.set("visible",!1),u.get("renderer").ticks.template.set("visible",!1),u.get("renderer").labels.template.set("visible",!1))}}function rB(a){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=a;return e===V.HeatSeries||t&&(ud(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&ba(i))}function a$(a,t){return t?`${cw}_x_${a.uid}`:`${cw}_y_${a.uid}`}function pw(a,t){let e=fe(a.chart?.uid??Number.NaN,"config"),i=us(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,s=Yz(a),n=s;switch(r){case"baseline":case"middle":n=s/2;break;case"bottom":n=Math.min(s,0);break}t?.set("dy",n)}function TG(a){a instanceof ti&&(a.onPrivate("min",CI),a.onPrivate("max",CI))}function PG(a){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=a,{root:r}=t,s=e?{...q.xAxisTitleLabel,verticalCenter:"top"}:q.yAxisTitleLabel,n=vA({root:r,id:a$(t,e),defaults:s});return t.get("renderer")instanceof ya&&i!==!0||t.get("renderer")instanceof as&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ji.BoundsChanged,()=>pw(t,n),q.debounceTime),t.events.onDebounced(Ji.DataValidated,()=>pw(t,n),q.debounceTime),gG({axis:t,isHorizontalAxis:e,label:n})),!e&&t.chart&&Qc({chart:t.chart,label:n,labelType:Wt.YAxisTitle}),n}function pu(a){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:s,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=a,c;if(rB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let u;switch(o){case V.HeatSeries:u=i?xr.xField:xr.yField;break;case V.HistogramSeries:u=dd.Start;break;case V.BoxPlotSeries:u=l;break;default:u=q.xAxisField;break}u&&(c=e.push(Sr.new(t,{categoryField:u,renderer:s})))}else if(ro(r))c=e.push(hr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:s}));else if(ba(r)&&(c=e.push(ti.new(t,{strictMinMax:!0,renderer:s})),n&&c instanceof ti)){let u=e.getIndex(0);u instanceof ti&&c.set("syncWithAxis",u)}if(c!==void 0&&!h){Gz(c),t$(t,c);let u=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;c.get("renderer").setAll({cellStartLocation:u,cellEndLocation:d}),o===V.HeatSeries&&(s instanceof as||s instanceof ya)&&s.setAll({layer:q.zIndexes.axisLineLayer}),i$(c),TG(c),Zv(c.get("renderer"))?c.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",q.axisLabelSpacing.horizontalAxisLabelPaddingTop):s instanceof ya&&c.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",q.axisLabelSpacing.verticalAxisLabelSidePadding)}return c}function DG(a){let{axis:t,data:e,chartConfig:i,dataWasUpdated:r,axesInitializationNeeded:s,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=a;if(e&&(r||s||n||o)){let l=Ln(e);if(so(i)){let h=qW(t),c=e?.heatChartAxesData,u=h===xr.xField?c?.xAxisData:c?.yAxisData;t.data.setAll(u??[])}else t.data.setAll(l??[])}}function LG(a){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=a,r=t.get("renderer"),{chart:s}=t,n=Zv(r),o=Di({childId:a$(t,n),parent:t,useChildId:!0})??PG({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Kt){let l=n?{...q.xAxisTitleLabel,verticalCenter:"top"}:q.yAxisTitleLabel;if(Cn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&pw(t,o),s){let h={chart:s,label:o,labelType:n?Wt.XAxisTitle:Wt.YAxisTitle};gl(h)}}}function sB(a){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:s,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:f,chartConfig:m,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=a,{visible:T,lineSymbol:F,title:L,labels:$,isLogarithmic:I,grid:U,displayCursorTooltip:P,displayZeroLine:Q,valueFormat:G,guides:Y,tickSpacing:ee,dateBaseInterval:te}=o,{root:le}=t,z=ze(m.series),K=ks(m),we=us(m),{chart:se}=t,de=se?fe(se.uid,"config"):void 0,$e=se?fe(se.uid,"options"):void 0,Ye=$s(S),He=_a(Ye).find(wi=>wi.name===de?.series?.[0]?.x),qe=tT(He),Tt=ep({chartConfig:m,queryObject:S,options:$e}),At=bh(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,xi=t.get("renderer");BA(t.uid,{zeroGridLine:{displayZeroLine:Q,strokeWidth:U?.width??q.lineWidth,visible:U!==void 0}}),Rz({axis:t,isLogarithmic:I,axisConfigIndex:l}),Oz({axis:t,isXAxis:bu(t.get("renderer"),we),chartType:z,formatOptions:G,isNonAggregatedChart:p,overridePercentMultiplication:K===$i.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:qe,setTimeZone:Tt,outTimeZone:At,errorStrings:w}),$z({axis:t,isRotated:we,chartConfig:m}),Nz({axis:t,timeIntervalInfo:h,dateBaseInterval:te,xFieldIsTimeOnly:qe}),Fo({element:xi,lineSymbol:{color:[...q.color],...F??KA()},visible:T}),Fo({element:xi.ticks.template,lineSymbol:F,visible:T}),Fo({element:xi.grid.template,lineSymbol:U,visible:T}),U===void 0&&(t.get("renderer").grid.template.set("strokeWidth",q.lineWidth),t.markDirtyValues()),mG({axis:t,axisConfig:o,chartType:z,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d}),LG({axis:t,axisTitleConfig:L,isSecondValueAxis:f}),Uz(t,o),uG({axis:t,chartType:z,labelConfig:$,horizontalAxisLabelsBehavior:c,isSecondValueAxis:f,tickSpacing:ee}),Vz({root:le,axis:t,displayCursorTooltip:P}),lG({axis:t,guideConfigs:Y,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),DG({axis:t,data:e,chartConfig:m,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:s})}function IG(a){let{chart:t,errorStrings:e}=a,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:s}=r.series[0],n=us(r),{axes:o}=r,l=ze(r.series);Pl({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:s,chartType:l},c=n?o?.[1]:o?.[0],u=n?o?.[0]:o?.[1],d=c?.valueFormat,A=u?.valueFormat;if(d!==void 0&&A!==void 0&&(pu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:as.new(i,{}),isXAxis:!n,x:s}),pu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:ya.new(i,{}),isXAxis:n,x:s}),o?.[2]!==void 0)){let p=n?as:ya;pu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:s})}}}function kG(a){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:s}=a,{root:n}=t,o=i?.[0],l=i?.[1];if(Pl({chartType:e,axesConfig:i,errorStrings:s}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};pu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Vs.new(n,{}),isXAxis:!0,x:r}),pu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:au.new(n,{}),isXAxis:!1,x:r})}}function n$(a){let{chart:t,chartConfig:e,errorStrings:i}=a,{axes:r}=e,{x:s}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof Da&&BG({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:FG({chart:t,axesConfig:r,x:s,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:IG({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof Da&&kG({chart:t,axesConfig:r,chartType:n,x:s,errorStrings:i});break}}function $G(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:s,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:c,xAxisLabelFormatter:u,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:f,errorStrings:m,queryObject:g}=a,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=us(e),T=ze(e.series),F=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),$=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Pl({chartType:T,axesConfig:w,errorStrings:m});let U=S?1:0,P=S?0:1,Q=w?.[U],G=w?.[P];[{axis:L,axisConfig:Q,externalAxisLabelFormatter:S?d:u,axisConfigIndex:U},{axis:$,axisConfig:G,externalAxisLabelFormatter:S?u:d,axisConfigIndex:P},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(Y=>{let{axis:ee,axisConfig:te,axisConfigIndex:le,externalAxisLabelFormatter:z,isSecondValueAxis:K}=Y;ee!==void 0&&!ee.isDisposed()&&te!==void 0&&sB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:c,axisConfig:te,axisConfigIndex:le,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:s,isNonAggregatedChart:F,isSecondValueAxis:K,utilsStrings:f,chartConfig:e,externalAxisLabelFormatter:z,guideTooltipFormatter:p,errorStrings:m,queryObject:g})}),Lv(t,n)}function o$(a){let{chart:t,chartConfig:e}=a,i=ze(e.series);i===V.GaugeSeries&&t instanceof Da?wG(a):i===V.HistogramSeries?SG(a):$G(a)}function OG(a,t){let e=Xt(q.backgroundColor);t.set("background",or.new(a,{fill:e.color,fillOpacity:e.opacity}))}function l$(a,t){let e=Xt(t??q.backgroundColor);a.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function h$(a,t){let e=ze(t.series);return a instanceof vi&&e!==V.GaugeSeries}function EG(a,t){let e=q.cursorCrosshair.style,i={type:Rt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=a.get("cursor")?.lineX,s=a.get("cursor")?.lineY;Fo({element:r,lineSymbol:i}),Fo({element:s,lineSymbol:i})}function u$(a){let{root:t,chart:e,config:i,queryObject:r,errorStrings:s}=a,n;if(h$(e,i)){let o=e instanceof Da?Al:Yn;n=e.set("cursor",o.new(t,{})),iz({chart:e,queryObject:r,errorStrings:s})}return n}function c$(a){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:s,errorStrings:n}=a;if(h$(e,r)){let o=e.get("cursor")??u$({root:t,chart:e,config:r,queryObject:s,errorStrings:n});o&&(EG(e,i?.style),o.lineX.set("visible",i?.verticalLineVisible??q.cursorCrosshair.verticalLineVisible),o.lineY.set("visible",i?.horizontalLineVisible??q.cursorCrosshair.horizontalLineVisible))}}function MG(a){let{chart:t,enabled:e}=a,i=e?"pointer":"default";t instanceof fs&&t.series.each(r=>{switch(!0){case r instanceof Ri:r.columns.template.set("cursorOverStyle",i);break;case r instanceof ei:let s=bi(r.uid,"bulletTemplate");s!==void 0&&!rh(r)&&s.set("cursorOverStyle",i);break;case r instanceof Ur:r.slices.template.setAll({cursorOverStyle:i});break}})}function RG(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=fe(t.uid,"isRotated"),s=fe(t.uid,"config"),n=ze(s?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&ba(s?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&ud(s?.axes?.[0]?.valueFormat),c=(n===V.LineSeries||n===V.RadarSeries)&&ro(s?.axes?.[0]?.valueFormat),u,d=!1,A=e??fe(t.uid,"actionMode")??q.actionMode;if(fe(t.uid,"filterBySelection")===!0)u=Hi.None,d=!1;else if(i!==void 0)u=ZI({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:o||l||c?u=Hi.ZoomXY:u=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?u=r===!0?Hi.SelectY:Hi.SelectX:u=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:u=Hi.None,d=!0;break;case Ut.None:u=Hi.None,d=!1;break}t instanceof vi&&t.get("cursor")!==void 0&&u!==void 0&&t.get("cursor")?.set("behavior",u),MG({chart:t,enabled:d})}function UG(a,t){t!==void 0&&(t.width!==void 0&&a.set("width",lI(t.width)),t.height!==void 0&&a.set("height",lI(t.height)),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom))}function fw(a){let{root:t,defaults:e,parent:i,id:r,index:s}=a,n=Re.new(t,{});return UG(n,e),i!==void 0&&i.children.insertIndex(s??i.children.length,n),r!==void 0&&n.set("id",r),n}function mw(a,t){t?a.hide():a.show()}function VG(a,t){let e=fw({root:a,defaults:q.headerContainer,parent:t,id:Qs(Gv,t.uid),index:0}),i=fw({root:a,defaults:q.headerContainer,parent:t,id:Qs(Yw,t.uid),index:1}),r=vA({root:a,parent:e,defaults:q.titleLabel,id:Qs(Bk,e.uid)}),s=vA({root:a,parent:i,defaults:q.subtitleLabel,id:Qs(Sk,i.uid)});Qc({chart:t,label:r,labelType:Wt.ChartTitle}),Qc({chart:t,label:s,labelType:Wt.ChartSubTitle})}function d$(a,t){let{title:e,subtitle:i}=t??{},r=fe(a.uid,"config"),s=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:q.headerContainer.paddingBottom??0,n=Di({childId:Gv,parent:a});if(n!==void 0){n.set("paddingBottom",s);let l=Di({childId:Bk,parent:n});l!==void 0&&(Cn({label:l,labelConfig:e,defaults:q.titleLabel}),gl({chart:a,label:l,labelType:Wt.ChartTitle}),mw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Di({childId:Yw,parent:a});if(o!==void 0){o.set("paddingBottom",s),n!==void 0&&n.set("paddingBottom",q.titleAndSubtitlePaddingBottom);let l=Di({childId:Sk,parent:o});l!==void 0&&(Cn({label:l,labelConfig:i,defaults:q.subtitleLabel}),gl({chart:a,label:l,labelType:Wt.ChartSubTitle}),mw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function NG(a){let{root:t}=a,e=fw({root:t,defaults:q.footerContainer,parent:a,id:Qs(Yv,a.uid)}),i=vA({root:t,parent:e,id:Qs(Fk,e.uid)});Qc({chart:a,label:i,labelType:Wt.ChartFooter})}function A$(a,t){let e=Di({childId:Yv,parent:a});if(e!==void 0){let i=Di({childId:Fk,parent:e});i!==void 0&&(Cn({label:i,labelConfig:t,defaults:q.footer}),gl({chart:a,label:i,labelType:Wt.ChartFooter}),mw(e,i.get("disabled")||(t?.content.text??"")===""))}}function p$(a){if(!(a instanceof Da)&&a instanceof vi){let{root:t}=a,e=ll.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=ll.new(t,{orientation:"vertical",visible:!1});a.setAll({scrollbarX:e,scrollbarY:i})}}function QG(a,t){if(t!==void 0){let e=Xt(t),i=t[3]/255,r=i/2;[{element:a.get("background"),specificOpacity:r},{element:a.startGrip.get("background")},{element:a.endGrip.get("background")},{element:a.thumb}].forEach(s=>{let{element:n,specificOpacity:o}=s;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:a.get("background"),stateName:"default",specificOpacity:r},{element:a.startGrip.get("background"),stateName:"default"},{element:a.startGrip.get("background"),stateName:"hover"},{element:a.startGrip.get("background"),stateName:"down"},{element:a.endGrip.get("background"),stateName:"default"},{element:a.endGrip.get("background"),stateName:"hover"},{element:a.endGrip.get("background"),stateName:"down"},{element:a.thumb,stateName:"default"},{element:a.thumb,stateName:"hover"},{element:a.thumb,stateName:"down"}].forEach(s=>{let{element:n,stateName:o,specificOpacity:l}=s;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function HG(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.setAll({height:t,minHeight:t}):a.setAll({width:t,minWidth:t}))}function jG(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.set("scale",e),a.endGrip.set("scale",e)}}function II(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.set("marginBottom",t):a.set("marginLeft",t),a.markDirtyBounds())}function f$(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(!(t instanceof Da)&&t instanceof vi){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&p$(t);let s=t.get("scrollbarX"),n=t.get("scrollbarY");[s,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(Li(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;II(o,A??c??q.scrollbarPadding),QG(o,u),jG(o,d),HG(o,c)}else II(o,0)}})}}function WG(a){fk(a)}function kI(a){return a.get("legendDataItem")?.get("marker").children.getIndex(0)}function XG(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function zG(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=i,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,i),f=rT(e),m=Ri.new(t,{id:h,name:c,stacked:f,turboMode:!0,xAxis:r,yAxis:s,[A]:u,[p]:d,maskBullets:!1});ns(m.columns.template,n?.selectionTheme);let g=It.new({});return Gr(m.uid,{bulletTemplate:g}),To({element:m.columns.template,series:m,queryObject:o,errorStrings:l}),m.bullets.push(y=>{let x=ft.new(y,{},g);return fa.new(y,{sprite:x})}),m.columns.template.set("width",Bt(100)),tB(m),mk(m,n?.tooltipFormatter),Nk(m),TA(m,e),m.appear(),m}function GG(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.root,h=zf(t),c=new Set,u,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},f={},m={},g=Jb(i),y=bi(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==vs.Solid&&vu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:q1(t.chart)??[...q.backgroundColor]}),t.columns.length===0?f=Ja({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o});let S=w[q.xAxisField]===q.nullValue,T=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;f=Ja({...p,seriesSymbol:T,element:x,colorMatch:n,rendererSymbol:d}),mA(x,f.stylingInfo),S||(c.add(JSON.stringify(f.symbolWithColorInfo)),m=f)}}),r>1){let x=kI(t);if(x!==void 0)Ja({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),mA(x,m.stylingInfo);else if(t.chart instanceof vi){let w=t.chart.children.values.find(S=>S instanceof nl);w!==void 0&&w.events.once(Ji.BoundsChanged,()=>{mA(kI(t),m.stylingInfo)})}Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return c.size<=1&&(u=m.symbolWithColorInfo??A),XG(t,h),u}function YG(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n,interactionsDisabled:o}=a,l=a.seriesConfig,h=t.chart;if(h!==void 0){let c=fe(h.uid,"config"),u=c?.series.length??0,d=kt(c?.series);xA(t,!1);let A=GG({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:u,chartSubType:d,colorMatch:s,rendererType:n});o&&xA(t,!0),e.set(i?.get(l.id)??r,A),e.size===u&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:PA(h)})}}function KG(a){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c}=a,u=r.series[i];if(e&&u?.type===V.BarSeries&&(o===!0||s===!0||c===!0||l===!0||h||n===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=SA(r,u);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function ZG(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:c,seriesWereReinitialized:u,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:f}=a,m=i.series[s],g=i.rotated;if(t.set("id",m.id),Li(t,m.visible),ns(t.columns.template,r?.selectionTheme),_u(t.columns.template,e?.dataItems?.length),Jw({series:t,chartConfig:i,isRotated:g}),WG({seriesType:V.BarSeries,series:t,seriesConfig:m,isRotated:g,dataLabelsConfig:m.dataLabels,autoInverseDataLabelTextColor:d,externalDataLabelFormatter:r?.dataLabelFormatter}),KG({columnSeries:t,data:e,seriesIndex:s,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:u,rotationChanged:o,stackedTypeChanged:f,sortChanged:p}),Gw({series:t,seriesConfig:m,fieldList:A,queryObject:h,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:c}),sh(a)){let y={series:t,seriesConfig:m,seriesIndex:s,colorMatch:a.colorMatch,seriesIndexMapper:a.seriesIndexMapper,seriesSymbolMapForEvent:a.seriesSymbolMapForEvent,rendererType:a.rendererType,interactionsDisabled:r?.interactionsDisabled};ah({styleCallback:()=>YG(y),series:t,seriesConfig:m})}eB({chartConfig:i,series:t,seriesIndex:s,queryObject:h})}function qG(a){let{chartConfig:t,seriesConfig:e}=a,i=us(t),r=t.showOutliers,s=t.standardizeValues,n=oa(t),{y:o}=e,l=hg(t),h=kt(l.series),c=n?void 0:e?.query?.where,u={y:h===ke.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:c,showOutliers:r,standardizeValues:pd(h)?s:!1},d=qv({chartConfig:t,seriesConfig:e,key:Yt.ThirdQuartile});return{properties:{...d.properties,low:Zi({...u,key:Yt.Min}),open:Zi({...u,key:Yt.FirstQuartile}),high:Zi({...u,key:Yt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function JG(a){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function e5(a){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,showMean:n,rendererType:o,options:l}=a,{root:h}=t,c=e.fillSymbol??zm(i),u={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:s,isChartFillSymbol:!0};xA(t,!1),t.columns.length===0?u=Ja({...d,seriesSymbol:c,element:ft.new(h,{})}):t.columns.each(A=>{u=Ja({...d,seriesSymbol:c,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:o})})}),Ja({...d,seriesSymbol:u?.symbolWithColorInfo??c,element:t.columns.template,colorMatch:s}),l?.interactionsDisabled&&xA(t,!0)}function t5(a){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=a;ns(t.columns.template,r?.selectionTheme),_u(t.columns.template,i?.dataItems?.length),FA(t,e.name),JG(a),sh(a)&&ah({styleCallback:()=>e5(a),series:t,seriesConfig:e})}function i5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.BoxPlotSeries){let u=qG({chartConfig:r,seriesConfig:h});c=La.new(t,{id:h.id,turboMode:!0,xAxis:e,yAxis:i,[u.dataFields.low]:u.properties.low,[u.dataFields.open]:u.properties.open,[u.dataFields.high]:u.properties.high,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.columns.template.setAll({themeTags:[],width:Bt(80)}),ns(c.columns.template,n?.selectionTheme),To({element:c.columns.template,series:c,queryObject:o,errorStrings:l})}return c}function r5(a){let{chartConfig:t,seriesConfig:e}=a,i=kt(t.series),{showOutliers:r,standardizeValues:s}=t,{y:n}=e,o=e?.query?.where,l=hg(t),h=qv({chartConfig:l,seriesConfig:e,key:Yt.Average}),c=Zi({y:i===ke.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:pd(i)?s:!1,key:Yt.Average});return h.properties.value=c,h}function s5(a){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function a5(a){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a,h=bi(t.uid,"bulletTemplate");h&&ns(h,l?.selectionTheme),_u(h,i?.meanLines?.length),FA(t,e?.name),s5({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o})}function n5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.LineSeries){let u=r5({chartConfig:r,seriesConfig:h});c=ei.new(t,{id:h.id,xAxis:e,yAxis:i,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.appear();let d=It.new({});Gr(c.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:d}),ns(d,n?.selectionTheme),c.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return c&&To({element:p,series:c,queryObject:o,errorStrings:l}),f}),c.strokes.template.set("lineJoin",q.lineJoin)}return c}function o5(a,t){return a.get("id")===`${t}_${ji.Outliers}`}function l5(a){let{chartConfig:t,seriesConfig:e}=a;return qv({chartConfig:t,seriesConfig:e,key:Yt.Outlier})}function h5(a){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function u5(a,t){return(a??q.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function c5(a){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:s}=a;if(bi(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Rt.SMS,style:YA.Circle,color:o?.color,size:q.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let c=h.bullets?.[0]?.get("sprite");if(c!==void 0){let u=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});Ja({root:t.root,seriesSymbol:l,element:c,colorMatch:r,rendererSymbol:u})}})}let n=u5(s,i.visible);Li(t,n)}function d5(a){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a;if(t&&i.type===V.BoxPlotSeries){let h=bi(t.uid,"bulletTemplate");h&&ns(h,l?.selectionTheme),_u(h,e?.outliers?.length),h5({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:o}),sh(a)&&ah({styleCallback:()=>c5(a),series:t,seriesConfig:i})}}function A5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.BoxPlotSeries){let u=l5({chartConfig:r,seriesConfig:h});c=ei.new(t,{id:`${h.id}_${ji.Outliers}`,xAxis:e,yAxis:i,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.strokes.template.set("forceHidden",!0);let d=It.new({});Gr(c.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:d}),ns(d,n?.selectionTheme),c.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return c&&To({element:p,series:c,queryObject:o,errorStrings:l}),v5({outlierSeries:c,bullet:f,seriesConfigId:h.id}),f}),c.appear()}return c}function p5(a){let{chartConfig:t,seriesConfig:e,type:i}=a,r="";switch(i){case ji.Top:r=Yt.Max;break;case ji.Median:r=Yt.Median;break;case ji.Bottom:r=Yt.Min;break}return qv({chartConfig:t,seriesConfig:e,key:r})}function f5(a){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function m5(a){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:s,chartSubType:n,rendererType:o}=a;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=s1({data:e.dataItems,colorMatch:s,chartSubType:n,rendererType:o}),c=(i.fillSymbol??zm(r)).color,u={type:Rt.SLS,width:q.boxPlot.boxPlotLineWidth,color:h?q.boxPlot.boxPlotWhiskersColor:c};Ja({root:l,seriesIndex:r,seriesSymbol:u,element:t,colorMatch:s})}}function g5(a){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}=a,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(Li(t,l),sh(a)&&ah({styleCallback:()=>m5(a),series:t,seriesConfig:i}),f5({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}))}function ZC(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,type:n,options:o,queryObject:l,errorStrings:h}=a,c=r.series[s],u;if(c.type===V.BoxPlotSeries){let d=p5({chartConfig:r,seriesConfig:c,type:n});u=Bo.new(t,{id:`${c.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[d.dataFields.value]:d.properties.value,[d.dataFields.category]:d.properties.category}),ns(u.strokes.template,o?.selectionTheme),To({element:u.strokes.template,series:u,queryObject:l,errorStrings:h})}return u}function qv(a){let{chartConfig:t,seriesConfig:e,key:i}=a,r=us(t),s=t.showOutliers,n=t.standardizeValues,o=oa(t),l=kt(t.series),{x:h,y:c}=e,u=o?void 0:e?.query?.where,d={y:l===ke.BoxPlotMultiFieldsAndCategory&&typeof c=="string"?c:void 0,chartSubType:l,splitBy:u,showOutliers:s,standardizeValues:pd(l)?n:!1},A=l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy?jm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:Zi({key:i,...d}),category:A}}}function y5(a,t){return a.series.values.find(e=>o5(e,t))}function m$(a,t){let e=a.series.values.find(s=>s.get("id")===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.get("id")===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.get("id")===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function g$(a){return a!==ke.BoxPlotMonoField&&a!==ke.BoxPlotMultiFields&&a!==ke.BoxPlotMonoFieldAndCategory}function y$(a){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=a,r,s,n=fe(t.uid,"config");if(n){let o=us(n),l=oa(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),c=h?.get("cellStartLocation"),u=h?.get("cellEndLocation");if(c&&u){let d=c/(l?1:n.series.length);r=c+e/i*(u-c)+d,s=c+(e+1)/i*(u-c)-d}}return{startLocation:r,endLocation:s}}function v5(a){let{outlierSeries:t,bullet:e,seriesConfigId:i}=a;if(t){let{chart:r}=t;if(r){let s=fe(r.uid,"config");if(s){let n=kt(s.series);if(g$(n)){let o=r.series.values.filter(h=>h instanceof La),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:c}=y$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&c!==void 0&&e.set("locationX",(h+c)/2)}}}}}}function b5(a){let t=fe(a.uid,"config");if(t){let e=kt(t.series),i=t.series.length,r=us(t)?a.yAxes.getIndex(0)?.get("renderer"):a.xAxes.getIndex(0)?.get("renderer"),s=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(s&&n){let o=a.series.values.filter(l=>l instanceof La);o.forEach((l,h)=>{let{topStepLineSeries:c,medianStepLineSeries:u,bottomStepLineSeries:d}=m$(a,l.get("id")??"");if(g$(e)){let{startLocation:A,endLocation:p}=y$({chart:a,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[c,u,d].forEach(f=>{f!==void 0&&(f.set("stepWidth",Bt(60/i)),A&&p&&f.set("locationX",(A+p)/2))})}else[c,u,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function x5(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries)[i5(a),ZC({...a,type:ji.Top}),ZC({...a,type:ji.Median}),ZC({...a,type:ji.Bottom}),A5(a)].forEach(n=>{n&&s.push(n)});else if(r===V.LineSeries){let n=n5(a);n&&s.push(n)}return s}function _5(a){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=a;if(t&&e)if(b5(t),i instanceof La&&r.type===V.BoxPlotSeries){i.set("id",r.id);let s=i.get("id")??"";t5({...a,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=m$(t,s),h=[ji.Top,ji.Median,ji.Bottom];[n,o,l].forEach((u,d)=>{u&&(u.set("id",`${r.id}_${h[d]}`),g5({...a,stepLineSeries:u}))});let c=y5(t,s);c&&(c.set("id",`${r.id}_${ji.Outliers}`),d5({...a,outlierSeries:c}))}else i instanceof ei&&r.type===V.LineSeries&&a5({...a,meanLineSeries:i})}function C5(a){fk(a)}function aB(a){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=a,r=e?QC:Oc;return t&&(r=e?NC:i?UC:RC),r}function w5(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0)break}return n}function B5(a){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t.root,l=w5({series:t,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:n});return Ja({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Zb(i),element:t,colorMatch:s,rendererSymbol:l}).symbolWithColorInfo}function S5(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n}=a,o=!1,l,h=bi(t.uid,"bulletTemplate");if(h!==void 0){Li(t.bulletsContainer,r.markerVisible!==!1&&r.visible!==!1);let{markerSymbol:c}=r;c===void 0&&(c=Kb(),c.color=n),s?c.color=n:c.color??=n;let u=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s});u?.outline&&(c.outline??=u.outline,c.outline.color=u.outline.color),hk({element:h,markerSymbol:c});let d=new Set,A;t.dataItems.forEach(p=>{let f=p.bullets?.[0]?.get("sprite");if(f!==void 0){let m=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s}),g=Ja({root:t.root,seriesIndex:e,seriesSymbol:c,element:f,colorMatch:s,rendererSymbol:m});l=g.symbolWithColorInfo,A=g.stylingInfo,mA(f,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function F5(a,t){if(a.showArea===!0){let{color:e,opacity:i}=a.areaColor?Xt(a.areaColor):{color:t.get("stroke"),opacity:q.lineSeries.areaOpacity};t.set("fill",e),t.fills.template.set("fillOpacity",i)}t.fills.template.set("visible",a.showArea===!0)}function v$(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:c}=a,{chart:u,root:d}=t;if(u){let A=t instanceof pl;Li(t,e.visible);let p=aB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:c});t.set("curveFactory",p);let f=B5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,rendererType:n}),m=S5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,lineColor:f.color});F5(e,t),h.set(l?.get(e.id)??i,{lineSymbol:f,markerSymbol:m}),h.size===r&&(nn({data:_r(h),htmlContainer:d.dom,chartId:t.chart?.get("id"),colorMatchApplied:PA(u)}),h.clear())}}function T5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=s,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,s),f=ei.new(t,{id:h,name:c,xAxis:i,yAxis:r,[A]:u,[p]:d,maskBullets:!1,curveFactory:aB({isRadarLineSeries:!1,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.lineSeries});f.appear();let m=It.new({});return ns(m,n?.selectionTheme),Gr(f.uid,{bulletTemplate:m}),f.bullets.push(g=>{let y=ft.new(g,{role:q.aria.defaultChartItemRole,ariaLabel:sp(),hoverOnFocus:!0,tooltip:zv({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),qk(y,f),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",q.lineJoin),tB(f),TA(f,e),f}function P5(a){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c}=a,u=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&u.type===V.LineSeries&&(o===!0||s===!0||l===!0||h||n===!0||c===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=SA(r,u);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function D5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=kt(c?.series);v$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function L5(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.set("connect",e!==!1&&r!==Wb.Null)}function I5(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:c,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p}=a,f=i.series[s],m=i.rotated;t.set("id",f.id),Li(t,f.visible),Li(t.bulletsContainer,f.markerVisible!==!1&&f.visible!==!1);let g=bi(t.uid,"bulletTemplate");g&&ns(g,r?.selectionTheme),_u(g,e?.dataItems?.length),Jw({series:t,chartConfig:i,isRotated:m}),C5({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:m,dataLabelsConfig:f.dataLabels,externalDataLabelFormatter:r?.dataLabelFormatter}),L5(t,f),P5({lineSeries:t,seriesIndex:s,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:c,stackedTypeChanged:p,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A}),Gw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),sh(a)&&ah({styleCallback:()=>D5(a),series:t,seriesConfig:f}),eB({chartConfig:i,series:t,seriesIndex:s,queryObject:o})}function k5(a,t){let e=a.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";e.adapters.add(i,(r,s)=>{let n=r??"",o=bi(a.uid,"pieChartDataLabelFormatter");if(o){let l=s.dataItem;if(l){let h=l?.get("valuePercentTotal"),c=l?.get("value"),u=l?.get("category")??r??"";n=o(u,c,h)}}return i==="html"?Zr(n):n})}function $5(a){let t=a.dataItem?.component,e;if(t instanceof Ur){let i=fe(t.chart?.uid??Number.NaN,"config");if(i?.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??q.pieChart.dataLabelsInside,s=Xt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??Xt(q.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??pt.options.autoInverseDataLabelTextColor,l=a.dataItem?.dataContext?.[pt.pieChart.technicalFieldSliceId],h=t.slices.values.find(u=>(u.dataItem?.dataContext)[pt.pieChart.technicalFieldSliceId]===l)?.get("fill")??Xt(i.series[0].fillSymbol?.color).color,c=s??a.text.get("fill");e=c,c&&h&&o&&r&&(e=Ak({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function O5(a,t){let e=a.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:q.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:q.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:je,centerY:je}),k5(a,t),e.adapters.add("fill",(i,r,s)=>$5(r))}function E5(a,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,{chart:d}=a,A;if(d){let p=zw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??q.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??q.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),f=tg(u),m=Ra(fe(a.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=s??q.pieChart.displayCategoryOnDataLabel?f(g):"",T=zi(S)?"":`${S}${m}`;return T=`${T}${w}`,t.dataLabels?.content!==void 0&&(T=xa({textSymbol:{...t.dataLabels.content,text:T},format:"amChartsV5",defaults:{...q.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??q.pieChart.dataLabels.wrap}})),T}}return A}function M5(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??q.pieChart.dataLabelsOffset,n=e.dataLabelsInside??q.pieChart.dataLabelsInside;Gr(t.uid,{pieChartDataLabelFormatter:i??E5(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...q.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??q.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??q.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!(r&&r?.visible!==!1),breakWords:h?!1:void 0,textAlign:o?"right":"left"});let c=t.labels.template.get("radius"),u=t.labels.template.get("baseRadius");n&&u!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),s!==void 0&&Number.isFinite(s)&&c!==s&&t.labels.template.set("radius",s))}var qC;function R5(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??KA({color:Hm});i&&(r.width=0),Fo({element:a.ticks.template,lineSymbol:r,visible:!i})}function U5(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=a;t.slices.each((r,s)=>{let n=r.dataItem?.dataContext,o=Cw({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});vu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:s,isChartFillSymbol:!0})})}function V5(a,t){let e=new Map(a.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function N5(a){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:s,seriesWereReinitialized:n,labelUpdateNeeded:o,groupOfSlicesUpdateNeeded:l}=a,{x:h,y:c}=i,u=kt([i]),d=u===ke.PieFromFields?ao:h;if(e&&(r===!0||n===!0||s===!0||l===!0))t.setAll({categoryField:d,valueField:u===ke.PieFromFields?Ru:c}),t.data.setAll(e.dataItems);else if(e&&o){let A=t.dataItems,p=A.map(m=>m.dataContext),f=V5(p,e.dataItems);A.forEach((m,g)=>{let y=f[g];if(typeof y[d]=="string"){let x=y[d];m.set("category",x);let w=m.dataContext;w&&(w[d]=x)}}),t.markDirty()}}function Q5(a,t){let{innerRadius:e}=t;a.set("innerRadius",e?Bt(e):0)}function H5(a,t){let{startAngle:e,endAngle:i}=t;a.setAll({startAngle:e??q.pieChart.min,endAngle:i??360+(a.get("startAngle")??0)})}function j5(a){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:s,errorStrings:n}=a,{id:o,name:l,x:h,y:c}=e,u=kt([e]),d=Ur.new(t,{id:o,name:l,categoryField:u===ke.PieFromFields?ao:h,valueField:u===ke.PieFromFields?Ru:c});return O5(d,i?.dataLabelFormatter),vk(d,i?.tooltipFormatter),d.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),ns(d.slices.template,i?.selectionTheme),To({element:d.slices.template,series:d,queryObject:s,errorStrings:n}),d.appear(),r instanceof Us&&b$(r,d),d}function W5(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,options:o,labelUpdateNeeded:l,utilsStrings:h,groupOfSlicesUpdateNeeded:c}=a,{dataLabelFormatter:u,tooltipFormatter:d}=o??{};t.set("id",e.id),Li(t,e.visible),ns(t.slices.template,o?.selectionTheme),N5({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:c}),sh(a)&&ah({styleCallback:()=>U5(a),series:t,seriesConfig:e}),M5({pieSeries:t,seriesConfig:e,dataLabelFormatter:u}),Q5(t,e),H5(t,e),R5(t,e),U4({series:t,seriesConfig:e,tooltipFormatter:d});let{chart:A}=t;A instanceof Us&&b$(A,t)}function b$(a,t){if(!a.isDisposed()){let e=a.radius();Xr(a.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(a.uid,"pieChartRadius")??q.pieChart.chartOptimizedRadius),s=r,n=a.series?.values?.[0]??t,o=fe(a.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:c,alignDataLabels:u,dataLabelsOffset:d=q.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&u===!0&&c===!0&&p!==!0){let f=q.pieChart.chartOptimizedRadius/100,m=500,g=150,y=.6,x=.5,w=1,S=a.seriesContainer.width()-d*2,T=Math.max(S-g,0)/(m-g),F=T<1?Math.max(T**w*y,.4):Math.min(T**x*y,f);s=Bt(F*100)}else s=Bt(q.pieChart.chartRadius);r.value.toFixed(1)!==s.value.toFixed(1)&&(Xr(a.uid,{pieChartRadius:s.percent}),qC&&clearTimeout(qC),qC=yu(()=>{let f=a.chartContainer.height();if(a.chartContainer.set("height",f+.1),a.set("radius",s),h&&!Number.isNaN(h)&&h>0){let m=(h??q.pieChart.innerRadius)*s.value;a.set("innerRadius",Bt(m))}a.markDirty(),n.markDirty(),a.root.resize(),X5(a)})),n instanceof Ur&&n.labels.template.setAll({maxWidth:z5({seriesConfig:o?.series[0],chart:a,newChartRadius:s})})}return s};a.events.onDebounced(Ji.BoundsChanged,()=>i(),q.debounceTime),i()}}function X5(a){yu(()=>{a.chartContainer.set("height",Bt(100)),a.root.resize()})}function z5(a){let{seriesConfig:t,chart:e,newChartRadius:i}=a,r=q.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:s,dataLabelsOffset:n=q.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&s===!0&&h!==!0&&o===!0){let c=e.seriesContainer.width(),u=e.seriesContainer.height(),d=i.value*Math.min(c,u),A=5,p=Math.floor((c-d)/2)-A-n;r=Math.min(p,r-A);let f=q.pieChartDataLabel.minWidth;r<f&&(r=f)}}return r}function G5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=s,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,s),f=pl.new(t,{id:h,name:c,xAxis:i,yAxis:r,[A]:u,[p]:d,curveFactory:aB({isRadarLineSeries:!0,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.lineSeries});f.appear();let m=It.new({});return Gr(f.uid,{bulletTemplate:m}),ns(m,n?.selectionTheme),f.bullets.push(g=>{let y=ft.new(g,{tooltip:zv({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",q.lineJoin),tB(f),TA(f,e),f}function Y5(a){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l}=a,h=r.series[i];if(e!==void 0&&h?.type===V.RadarSeries&&(s||l||n||o)){let{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(r,h);t.setAll({[d]:c,[A]:u}),t.data.setAll(e.dataItems)}}function K5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=kt(c?.series);v$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function Z5(a){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:s,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:c,queryObject:u,utilsStrings:d}=a,A=r.series[n];t.set("id",A.id),Li(t,A.visible),Li(t.bulletsContainer,A.markerVisible!==!1&&A.visible!==!1);let p=bi(t.uid,"bulletTemplate");p&&ns(p,s?.selectionTheme),_u(p,e?.dataItems?.length),Jw({series:t,chartConfig:r,isRotated:!1}),Gw({series:t,seriesConfig:A,fieldList:c,queryObject:u,seriesIndex:n,tooltipFormatter:s?.tooltipFormatter,utilsStrings:d}),sh(a)&&ah({styleCallback:()=>K5(a),series:t,seriesConfig:A}),eB({chartConfig:r,series:t,seriesIndex:n,queryObject:u}),Y5({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i})}function nB(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:s,errorStrings:n}=a,{rotated:o}=e,{root:l}=t,h=ze(e.series);t.series.clear();let c={root:l,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:s,errorStrings:n},u=[];for(let d=0;d<e.series.length;d+=1){let A=e.series[d],{assignToSecondValueAxis:p,type:f}=A,m=t instanceof vi?wz({chart:t,chartType:h,rotated:o,assignToSecondValueAxis:p}):void 0,{xAxis:g,xAxisForHistogramOverlaySeries:y,yAxis:x}=m??{};switch(!0){case f===V.HeatSeries:{io(s),g&&x&&u.push(iX({...c,queryObject:s,xAxis:g,yAxis:x}));break}case h===V.BoxPlotSeries:{g&&x&&Dl(e)&&u.push(...x5({...c,xAxis:g,yAxis:x,seriesIndex:d,seriesConfig:e.series[d],chartConfig:e}));break}case f===V.HistogramSeries:{g&&x&&u.push(...uz({...c,seriesConfig:A,xAxis:g,xAxisForOverlaySeries:y,yAxis:x}));break}case f===V.PieSeries:{u.push(j5({...c,seriesConfig:A}));break}case(h===V.ComboLineAndBarSeries||h===V.BarSeries||h===V.LineSeries):{g&&x&&(f===V.BarSeries?u.push(zG({...c,seriesConfig:A,xAxis:g,yAxis:x})):f===V.LineSeries&&u.push(T5({...c,seriesConfig:A,xAxis:g,yAxis:x})));break}case f===V.RadarSeries:{g&&x&&u.push(G5({...c,seriesConfig:A,xAxis:g,yAxis:x}));break}case f===V.ScatterSeries:{g&&x&&u.push(...WX({...c,seriesConfig:A,xAxis:g,yAxis:x}));break}}}u.forEach(d=>{d instanceof ga&&d.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(u)}function Jv(a){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:s,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:f,queryObject:m,utilsStrings:g,errorStrings:y,groupOfSlicesUpdateNeeded:x,labelUpdateNeeded:w}=a,{chartRenderer:S}=e,{root:T}=t,{series:F}=e,L=ze(e.series),$=kt(e.series),I=t.series.values,U=Fl(e),P=e.series.length,Q=new Map,G=_a(m,i?.popupTemplateFieldInfosEnabled),Y=$s(m),ee=bs(Y)?void 0:rg(S,Y.renderer),te=l||n||o||h||u,le={root:T,chartConfig:e,queryObject:m,options:i,colorMatch:U,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:G,rendererType:ee,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:g,chartSubType:$,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??q.options.autoInverseDataLabelTextColor},z={...le,numberOfSeries:P,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,seriesIndexMapper:s,seriesSymbolMapForEvent:Q,timeZoneChanged:A};for(let K=0;K<F.length;K++){let we=F[K],se=I[K],de=we.type;switch(!0){case L===V.HeatSeries:{se instanceof Ri&&t instanceof vi&&so(e)&&nX({...z,series:se,data:r,seriesConfig:e.series[K],chartConfig:e});break}case L===V.BoxPlotSeries:{se=I.find($e=>$e.get("id")===we.id),t instanceof vi&&Dl(e)&&(se instanceof La||se instanceof ei)&&(de===V.BoxPlotSeries||de===V.LineSeries)&&_5({...z,chart:t,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e,showMean:oa(e),showOutliers:Eo(e)});break}case de===V.HistogramSeries:{se instanceof Ri&&t instanceof vi&&fT(r)&&pz({...z,series:se,allChartSeries:I,data:r,seriesIndex:K,seriesConfig:we,axes:e.axes});break}case de===V.PieSeries:{se instanceof Ur&&t instanceof Us&&fg(r)&&W5({...le,series:se,seriesConfig:we,data:r,pieSlicesSymbols:f,groupOfSlicesUpdateNeeded:x,seriesStyleChanged:d,colorMatchChanged:c,labelUpdateNeeded:w});break}case(L===V.ComboLineAndBarSeries||L===V.BarSeries||L===V.LineSeries):t instanceof vi&&fg(r)&&(de===V.BarSeries&&se instanceof Ri?ZG({...z,series:se,data:r,seriesIndex:K}):de===V.LineSeries&&se instanceof ei&&I5({...z,series:se,seriesIndex:K,seriesConfig:we,data:r}));break;case de===V.ScatterSeries:{se=QX(t);let $e=Wk(t);se instanceof ei&&$e instanceof ei&&mT(r)&&YX({...z,series:se,seriesConfig:we,trendLineSeries:$e,sizePolicyChanged:p,data:r});break}case de===V.RadarSeries:{se instanceof pl&&t instanceof Da&&fg(r)&&Z5({...z,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e});break}}te&&L&&se&&q4({chartType:L,series:se,tooltipFormatter:i?.tooltipFormatter})}_z({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:m,errorStrings:y})}function q5(a){rh(a)||a.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=yl(i.uid,"selected")!==!0;ra({element:i,selected:r})}})}function J5(a){a.columns.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}function eY(a){a.slices.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}async function tY(a){let{chart:t,queryObject:e,errorStrings:i}=a;if(jw(t)){let r=fe(t.uid,"actionMode");r!==Ut.MonoSelection&&r!==Ut.None&&(t.series.each(s=>{switch(!0){case s instanceof Ri:J5(s);break;case s instanceof ei:q5(s);break;case s instanceof Ur:eY(s);break}}),await qw({chart:t,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}))}}function iY(a,t){let e=!1,i=a.series,r=t.series,s=ze(r),n=(u,d)=>u.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let f=A;p.push(f.fillSymbol),f.slices?.forEach(m=>{p.push(m.fillSymbol)}),f.sliceGrouping&&p.push(f.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;s===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!rn(o,l),c=!1;switch(s){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:c=r.filter(u=>u.type===V.LineSeries||u.type===V.RadarSeries).some(u=>{let d=i.find(A=>A.id===u.id);return(u.showArea??q.lineSeries.showArea)!==(d?.showArea??q.lineSeries.showArea)||(u.lineSmoothed??q.lineSeries.lineSmoothed)!==(d?.lineSmoothed??q.lineSeries.lineSmoothed)||(u.markerVisible??q.lineSeries.markerVisible)!==(d?.markerVisible??q.lineSeries.markerVisible)||u.showArea&&!rn(u.areaColor,d?.areaColor)});break}return e=h||c,e}function rY(){Y_(WW)}function sY(a){a.dispose()}function aY(a){let{chart:t,chartContainer:e,chartLocale:i}=a,{root:r}=t,{t9nLocale:s}=Lu(e??document.documentElement),n=Ad(e??document.documentElement);r.locale=i,Xr(t.uid,{locale:s,formatLocale:n,rtl:Um(e??document.documentElement)==="rtl"})}function gw(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(jw(t)){let r=e??fe(t.uid,"actionMode")??q.actionMode;Xr(t.uid,{actionMode:r}),r===Ut.None&&Yc({chart:t,selectionSource:Tr.ClearSelection}),RG({chart:t,actionMode:r,cursorRange:i})}}function nY(a){return Ta.rootElements.find(t=>t.dom===a)?.dispose(),Pc.new(a)}function oY(a,t){a.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=Da;break;case V.PieSeries:i=Us;break;default:i=vi;break}return a.container.children.push(i.new(a,{id:`${t?.id}`,layout:a.verticalLayout,paddingBottom:q.chartPadding,paddingTop:q.chartPadding,paddingRight:q.chartPadding,paddingLeft:q.chartPadding}))}function lY(a){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:s,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:c,queryObject:u,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f}=a;Jv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:r,sortChanged:s,queryObject:u,pieSlicesSymbols:h,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function hY(a){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:s,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:c,queryObject:u,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:f,heatChartHideEmptyRowsAndColumnsChanged:m,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,utilsStrings:T,errorStrings:F,gaugeMinMaxFromData:L}=a,{axisLabelsBehaviorChanged:$}=a,I=Ez({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:$,timeIntervalInfoWasReset:x}),U=I||Bz({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:f});I&&(n$({chart:t,chartConfig:e,errorStrings:F}),$=[!0,!0]),U&&(t.series.clear(),nB({chart:t,chartConfig:e,options:c,utilsStrings:T,queryObject:u,errorStrings:F}),t.gridContainer?.toBack?.()),o$({chart:t,chartConfig:e,queryObject:u,data:i,dataWasUpdated:s,axesInitializationNeeded:I,heatChartHideEmptyRowsAndColumnsChanged:m,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:$,anyGuideAboveChanged:r,xAxisLabelFormatter:c?.xAxisLabelFormatter,yAxisLabelFormatter:c?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:c?.secondaryYAxisLabelFormatter,guideTooltipFormatter:c?.guideTooltipFormatter,gaugeInnerLabelFormatter:c?.gaugeInnerLabelFormatter,utilsStrings:T,errorStrings:F,gaugeMinMaxFromData:L}),Jv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:s,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:U,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:u,utilsStrings:T,errorStrings:F}),ze(e.series)===V.HeatSeries&&Pk(t),f$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}function uY(a){let{chart:t,legend:e,updateProps:i,gaugeMinMaxFromData:r}=a,{chartConfig:s,options:n,dataWasUpdated:o,dataUpdateDetails:l,hasSeriesFilteredOut:h,pieSlicesSymbols:c,colorMatchApplied:u,rendererFieldNames:d,configWithAllSeries:A,t9nStrings:p,queryObject:f,dataInfo:m}=i,{data:g}=m,{utilsStrings:y,errorStrings:x}=p,{root:w}=t,{popupTemplateFieldInfosEnabled:S}=n??{};if(s===void 0)throw new Error;let T=fe(t.uid,"config");if(t.isDisposed()||!yx(T,s))throw new Tl(cd.ChartDisposed);T??=s,Xr(t.uid,{queryObject:f});let F=kt(s.series),L=us(s);Xr(t.uid,{config:_r(s),options:n,isNonAggregatedChart:!rp(F),isRotated:L,filterBySelection:n?.filterBySelection,colorMatchApplied:u,rendererFieldNames:d});let $=_a(f,S),I=MF(T,s),U=Ax(T,s),P=ux(T,s),Q=TF(T,s),G=iY(T,s),Y=JSON.stringify(ZA(T.series))!==JSON.stringify(ZA(s.series)),ee=eg(T,s),te=VF(T,s),le=dx(T,s),z=NF(T,s),K=QF(T,s),we=tp({oldConfig:h?A:T,newConfig:s,dataWasUpdated:o}),se=!1,de=!1,$e=!1,Ye=!1;so(T)&&so(s)&&(se=IF(T,s),de=DF(T,s),$e=PF(T,s)||LF(T,s)||se,Ye=FF(T,s));let He=sx({oldConfig:T,newConfig:s,rotationChanged:U}),qe=T.series,Tt=s.series;if(o){let{queryConfig:R,count:Be}=m??{};Xr(t.uid,{fieldList:$,queryConfig:R,elementCount:Be,timeIntervalInfo:g!==void 0&&"timeIntervalInfo"in g?g.timeIntervalInfo:void 0})}t instanceof fs&&ZW({chartSeries:t.series,oldSeries:qe,newSeries:Tt});let At=t instanceof Us?_w(qe,Tt):!1,xi=cx({oldConfig:T,newConfig:s}),wi=new Map;switch((A??s).series.forEach((R,Be)=>{wi.set(R.id,Be)}),l$(t,s.background),d$(t,{title:s.title,subtitle:s.subtitle}),A$(t,s.footer),c$({root:w,chart:t,cursorCrosshair:s.cursorCrosshair,config:s,queryObject:f,errorStrings:x}),ze(s.series)){case V.PieSeries:{t instanceof Us&&(io(f),lY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,slicesConfigChangedSinceLastUpdate:xi,pieSlicesSymbols:c,chartRendererChanged:ee,sortChanged:we,queryObject:f,colorMatchChanged:P,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:At,seriesStyleChanged:G}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof vi&&hY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,seriesIndexMapper:wi,dataUpdateDetails:l,seriesFilteredOut:h,heatChartHideEmptyRowsAndColumnsChanged:Ye,sortChanged:we,axisLabelsBehaviorChanged:He,anyGuideAboveChanged:I,rotationChanged:U,colorMatchChanged:P,stackedTypeChanged:Q,seriesStyleChanged:G,seriesCompositionChanged:Y,timeZoneChanged:te,timeIntervalInfoWasReset:le,sizePolicyChanged:z,sizePolicyChangesRequireSeriesReinit:K,queryObject:f,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:r});break}t instanceof fs&&jk({chart:t,chartConfig:s,legend:e,showEmptySeries:n?.showEmptySeries??n?.hideEmptySeries===!1,seriesConfig:s.series,heatChartLegendUpdatedNeeded:$e,heatRulesTypeChanged:se,heatLegendPositionChanged:de,queryObject:f}),gw({chart:t,actionMode:n?.actionMode,cursorRange:n?.cursorRange}),tk({chart:t,chartConfig:s,delayCallback:o})}function cY(a){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:s,queryObject:n,utilsStrings:o,errorStrings:l}=a;nB({chart:t,chartConfig:i,options:s,utilsStrings:o,queryObject:n,errorStrings:l}),Jv({chart:t,chartConfig:i,options:s,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,utilsStrings:o,errorStrings:l}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function dY(a){let{chart:t,data:e,chartConfig:i,options:r,queryObject:s,seriesIndexMapper:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a;p$(t),f$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),n$({chart:t,chartConfig:i,errorStrings:l}),o$({chart:t,chartConfig:i,queryObject:s,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}),nB({chart:t,chartConfig:i,options:r,utilsStrings:o,queryObject:s,errorStrings:l}),t.gridContainer?.toBack?.(),Jv({chart:t,chartConfig:i,seriesIndexMapper:n,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:s,utilsStrings:o,errorStrings:l}),ze(i.series)===V.HeatSeries&&Pk(t)}function AY(a){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:s,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:c}=a,{errorStrings:u,utilsStrings:d,amChartsStrings:A}=l,{data:p,queryConfig:f,count:m,gaugeMinMaxFromData:g={}}=c??{};rY();let y=nY(t);r4(y,o?.animationEnabled),i4(y,o?.enableResponsiveFeatures);let x=oY(y,e);aY({chart:x,chartContainer:t,chartLocale:A});let w;if(!x.isDisposed()){let T=kt(e.series),F=us(e);Xr(x.uid,{options:i,filterBySelection:i?.filterBySelection,config:e,queryObject:h,isNonAggregatedChart:!rp(T),isRotated:F,colorMatchApplied:r,rendererFieldNames:s}),u$({root:y,chart:x,config:e,queryObject:h,errorStrings:u}),c$({root:y,chart:x,cursorCrosshair:e.cursorCrosshair,config:e,queryObject:h,errorStrings:u});let{title:L,subtitle:$,footer:I}=e;VG(y,x),d$(x,{title:L,subtitle:$}),NG(x),A$(x,I),OG(y,x),l$(x,e.background);let U=_a(h,i?.popupTemplateFieldInfosEnabled);Xr(x.uid,{fieldList:U}),Xr(x.uid,{options:i,queryConfig:f,elementCount:m,timeIntervalInfo:p!==void 0&&"timeIntervalInfo"in p?p.timeIntervalInfo:void 0});let P=new Map;e.series.forEach((Q,G)=>{P.set(Q.id,G)}),Xr(x.uid,{queryConfig:f,elementCount:m}),x instanceof vi?dY({chart:x,data:p,chartConfig:e,options:i,queryObject:h,utilsStrings:d,errorStrings:u,gaugeMinMaxFromData:g}):x instanceof Us&&p&&"dataItems"in p&&(io(h),cY({chart:x,data:p,chartConfig:e,pieSlicesSymbols:n,options:i,queryObject:h,utilsStrings:d,errorStrings:u})),x instanceof fs&&(w=gI(x,e),jk({chart:x,chartConfig:e,legend:w,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:e.series,queryObject:h})),gw({chart:x,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),ZX(x),tk({chart:x,chartConfig:e,delayCallback:!0})}function S(){Kz(x)}return{update:T=>{w===void 0&&(w=gI(x,T.chartConfig)),uY({chart:x,legend:w,updateProps:T,gaugeMinMaxFromData:g})},dispose:()=>sY(y),resetZoom:S,clearSelection:()=>Yc({chart:x}),switchSelection:async()=>await tY({chart:x,queryObject:h,errorStrings:l.errorStrings}),exportImage:async T=>await _4({root:y,exportOptions:T}),setActionMode:(T,F)=>gw({chart:x,actionMode:T,cursorRange:F})}}function $I(a){let t="";for(let i=0;i<a.length;i+=1){let r=a[i];if(r.message&&r.message.trim()!==""){let s=a.length>1?"li":"p";t+=`<${s}>${r.message}</${s}>`}}let e=a.length>1?"ol":"div";return`<${e}>${t}</${e}>`}function pY(a){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=a,{schemaErrors:s,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):s.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=$I(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${$I(o)}`),{title:h,message:l}}function fY(a,t){let e;switch(a){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function $f(a){let t;if(a){let e=J1(a);e&&(t=[e.r,e.g,e.b,255])}return t}function mY(a,t){let e=window.getComputedStyle(a);return{backgroundColor:$f(e.getPropertyValue(t.background)),textColor:$f(e.getPropertyValue(t.text)),lineColor:$f(e.getPropertyValue(t.line)),secondaryLineColor:$f(e.getPropertyValue(t.secondaryLine)),spinnerColor:$f(e.getPropertyValue(t.spinner))}}function gY(a){let{config:t,themeColors:e}=a,i=Eu().toString();t?.axes?.forEach(r=>{e.textColor&&(r?.title?.content&&(!r.title.content.color||r.title.content.color.toString()===i)&&(r.title.content.color=e.textColor),r?.labels?.content&&(!r.labels.content.color||r.labels.content.color.toString()===i)&&(r.labels.content.color=e.textColor));let s=Eu();s[3]=Gb,r?.grid&&e.secondaryLineColor&&(!r.grid.color||r.grid.color.toString()===s.toString())&&(r.grid.color=e.secondaryLineColor,r.grid.color[3]=Gb),r?.lineSymbol&&e.lineColor&&(!r.lineSymbol.color||r.lineSymbol.color.toString()===lF.toString())&&(r.lineSymbol.color=e.lineColor),r?.guides?.forEach(n=>{n.label&&e.textColor&&(!n.label.color||n.label.color.toString()===i)&&(n.label.color=e.textColor),e.lineColor&&(n.style?.type===Rt.SLS&&(!n.style.color||n.style.color.toString()===Xx.style.color?.toString())?n.style.color=e.lineColor:n.style?.type===Rt.SFS&&n.style?.outline&&(!n.style.outline.color||n.style.outline.color.toString()===Xx.style.color?.toString())&&(n.style.outline.color=e.lineColor))})})}function yY(a){let{config:t,themeColors:e}=a;t&&e.backgroundColor&&(!t.background||t.background.toString()===dF().toString())&&(t.background=e.backgroundColor)}function vY(a){let{config:t,themeColors:e}=a,i=Eu().toString();e.textColor&&(t?.title?.content&&(!t.title.content.color||t.title.content.color.toString()===i)&&(t.title.content.color=e.textColor),t?.subtitle?.content&&(!t.subtitle.content.color||t.subtitle.content.color.toString()===i)&&(t.subtitle.content.color=e.textColor),t?.footer?.content&&(!t.footer.content.color||t.footer.content.color.toString()===i)&&(t.footer.content.color=e.textColor))}function bY(a){let{config:t,themeColors:e}=a;t&&e.textColor&&t.series.forEach(i=>{i.dataLabels?.content&&(!i.dataLabels.content.color||i.dataLabels.content.color.toString()===Eu().toString())&&(i.dataLabels.content.color=e.textColor)})}function xY(a){let{config:t,themeColors:e}=a,i=t?.series[0];i?.type===V.PieSeries&&i.ticks?.lineSymbol&&e.secondaryLineColor&&(!i.ticks.lineSymbol.color||i.ticks.lineSymbol.color.toString()===Hm.toString())&&(i.ticks.lineSymbol.color=e.secondaryLineColor)}function _Y(a){let{config:t,themeColors:e}=a,i=Eu().toString();t?.legend&&e.textColor&&(t.legend.title?.content&&(!t.legend.title.content.color||t.legend.title.content.color.toString()===i)&&(t.legend.title.content.color=e.textColor),t.legend.body&&(!t.legend.body.color||t.legend.body.color.toString()===i)&&(t.legend.body.color=e.textColor))}function CY(a){let{config:t,themeColors:e}=a;if(gd(t)&&e.textColor){let i=Eu().toString();t.axes?.forEach(r=>{r.innerLabel?.content&&(!r.innerLabel.content.color||r.innerLabel.content.color.toString()===i)&&(r.innerLabel.content.color=e.textColor),r.needle?.symbol&&(!r.needle.symbol.color||r.needle.symbol.color.toString()===i)&&(r.needle.symbol.color=e.textColor)})}}function wY(a){let{config:t,themeColors:e}=a;so(t)&&e.lineColor&&t.series.forEach(i=>{i.gridLine&&!i.gridLine.color&&(i.gridLine.color=e.lineColor)})}function BY(a,t){let e=_r(a),i={config:e,themeColors:t};return yY(i),vY(i),gY(i),bY(i),_Y(i),CY(i),xY(i),wY(i),e}function SY(){return!0}function FY(a){let{layer:t}=a,e,i=$s(t),r=qm(i);return r!==void 0&&"definitionExpression"in r&&a.layerFilterChangePolicy===$x.Refresh&&(e=Ia.watch(()=>r.definitionExpression,()=>{a.refresh({updateData:!0,resetAxesBounds:!0})})),e}function TY(a){let{layer:t}=a,e;if(t){let i=$s(t);e=Ia.watch(()=>i.renderer,()=>{let{model:r}=a,s=Ro(r)?r.config:r;if(Fl(s)&&a.layerRendererChangePolicy===Ox.Refresh){let n=SY();a.refresh({updateData:n})}})}return e}async function PY(a){let{view:t,layer:e,model:i,filterByExtent:r,filterByViewExtent:s}=a,n=Ro(i)?i.config:i,o;if(t&&n){let l=await bx({chartConfig:n,view:t,layer:e,filterByViewExtent:r||s}),h;if(yh(l)?h=l:bs(l)&&(h=await t.whenLayerView(l)),h){await Ia.whenOnce(()=>!h.updating);let c=async()=>{(a.filterByExtent||a.filterByViewExtent)&&t.stationary&&(h.updating&&await Ia.whenOnce(()=>!h.updating),await a.refresh({updateData:!0,resetAxesBounds:!0}))};o=[],yh(h)?(o.push(Ia.when(()=>t.stationary,c)),o.push(Ia.when(()=>!h.dataUpdating,c))):o.push(Ia.when(()=>t.stationary,c)),await c()}}return o}function DY(a){let{view:t}=a,e;return t&&(e=Ia.watch(()=>t.timeExtent,()=>{let{model:i}=a,r=Ro(i)?i.config:i,s=ze(r?.series);(a.viewTimeExtentChangePolicy===Mx.Refresh||a.syncViewTimeExtent)&&s!==V.HistogramSeries&&a.refresh({updateData:!0})})),e}function bv(a){let{syncViewTimeZone:t,syncViewTimeZoneInclusionList:e,chartConfig:i}=a,r=ze(i?.series);return(t||(r&&e.includes(r))===!0)&&(so(i)||bh(i?.series[0])&&i.axes?.[0].valueFormat?.type===V.DateAxisFormat)}function LY(a){let{view:t,syncViewTimeZone:e,syncViewTimeZoneInclusionList:i}=a,r;return t&&"timeZone"in t&&(r=Ia.watch(()=>t.timeZone,()=>{let{model:s}=a,n=Ro(s)?s.config:s;bv({syncViewTimeZone:e,syncViewTimeZoneInclusionList:i,chartConfig:n})&&(a.timeZone=t.timeZone,a.refresh({updateData:!0}))})),r}function IY(a){let{layer:t}=a,e,i=$s(t),r=qm(i);return r!==void 0&&"fields"in r&&(e=Ia.watch(()=>[r.fields],()=>{a.layerFieldsChangePolicy===Ex.Refresh&&a.refresh({updateData:!0})})),e}function x$(a,t){return Ia.watch(()=>t.selections,e=>{(a.syncViewSelection||a.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)&&(Array.isArray(e)&&e?.length===0?a.clearSelection():a.applySelectionFromSelectionManager())})}function kY(a){let{view:t}=a,e;return t?.selectionManager&&(e=x$(a,t.selectionManager)),e}function $Y(a){let{selectionManager:t}=a,e;return t&&(e=x$(a,t)),e}async function OY(a){let t=sF(`assets/common/t9n/messages.${a}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function EY(a=Lu(document.documentElement).t9nLocale){let t=(await import("./VT4WJZN6.js")).default;switch(a){case"ar":t=(await import("./DNTLH5RT.js")).default;break;case"bs":t=(await import("./D3CFPMAR.js")).default;break;case"bg":t=(await import("./5ZGALYWZ.js")).default;break;case"ca":t=(await import("./JQKRGUBU.js")).default;break;case"cs":t=(await import("./XG2KN6YJ.js")).default;break;case"da":t=(await import("./YJ6TRXMU.js")).default;break;case"de":t=(await import("./ZQDADGLQ.js")).default;break;case"el":t=(await import("./CNFBNAPJ.js")).default;break;case"es":t=(await import("./CHLE2QGU.js")).default;break;case"et":t=(await import("./4ZIZEJXS.js")).default;break;case"fi":t=(await import("./II2ZPEUZ.js")).default;break;case"fr":t=(await import("./ZYOWZCR7.js")).default;break;case"he":t=(await import("./C5K6XOCR.js")).default;break;case"hr":t=(await import("./AY6IOQ3H.js")).default;break;case"hu":t=(await import("./NAXNRCMZ.js")).default;break;case"id":t=(await import("./ZFJFTDJF.js")).default;break;case"it":t=(await import("./WMPWOPRZ.js")).default;break;case"ja":t=(await import("./P5AO3V3M.js")).default;break;case"ko":t=(await import("./J5NHXQLA.js")).default;break;case"lt":t=(await import("./TXB2I2U5.js")).default;break;case"lv":t=(await import("./OJ5X6I3H.js")).default;break;case"no":t=(await import("./H2A5GZ55.js")).default;break;case"nl":t=(await import("./VE3GFNNM.js")).default;break;case"pl":t=(await import("./LUSFGRHV.js")).default;break;case"pt-BR":t=(await import("./7LYAWWOE.js")).default;break;case"pt-PT":t=(await import("./4Z23HWDH.js")).default;break;case"ro":t=(await import("./7UQHB6KY.js")).default;break;case"ru":t=(await import("./244ZX2UP.js")).default;break;case"sr":t=(await import("./AZOBLYAP.js")).default;break;case"sk":t=(await import("./BXYNEUQY.js")).default;break;case"sv":t=(await import("./6B7JCDQC.js")).default;break;case"th":t=(await import("./ETOGNYFU.js")).default;break;case"tr":t=(await import("./TACQVUBU.js")).default;break;case"uk":t=(await import("./TYUVXRBO.js")).default;break;case"vi":t=(await import("./4C6KWLWN.js")).default;break;case"zh-CN":t=(await import("./XMPLEHTW.js")).default;break;case"zh-HK":t=(await import("./BJ7Q7LCT.js")).default;break;case"zh-TW":t=(await import("./BJ7Q7LCT.js")).default;break}return t}async function MY(a=Lu(document.documentElement).t9nLocale){let t=(await import("./YFQHZWLO.js")).default;switch(a){case"ar":t=(await import("./PS7IL5JZ.js")).default;break;case"bs":t=(await import("./7XZZ5OZL.js")).default;break;case"bg":t=(await import("./5HRLHWQ5.js")).default;break;case"ca":t=(await import("./4DSO7LUF.js")).default;break;case"cs":t=(await import("./7IS6QE6S.js")).default;break;case"da":t=(await import("./T4NEEFOY.js")).default;break;case"de":t=(await import("./ZMQTYGGT.js")).default;break;case"el":t=(await import("./J5QUGI2J.js")).default;break;case"es":t=(await import("./ASUGYCJ6.js")).default;break;case"et":t=(await import("./MMO2QPOA.js")).default;break;case"fi":t=(await import("./732EZ6WJ.js")).default;break;case"fr":t=(await import("./YXH22GJ6.js")).default;break;case"he":t=(await import("./C2I4WPWM.js")).default;break;case"hr":t=(await import("./C47AIJTI.js")).default;break;case"hu":t=(await import("./W5SPX6WM.js")).default;break;case"id":t=(await import("./V454JYTQ.js")).default;break;case"it":t=(await import("./YBTVIOHQ.js")).default;break;case"ja":t=(await import("./S2R72ISR.js")).default;break;case"ko":t=(await import("./R2RRMPOC.js")).default;break;case"lt":t=(await import("./V7JF5I5M.js")).default;break;case"lv":t=(await import("./DPV2ZJLF.js")).default;break;case"no":t=(await import("./BICQEJYZ.js")).default;break;case"nl":t=(await import("./X33RIIGI.js")).default;break;case"pl":t=(await import("./YX4EVVJM.js")).default;break;case"pt-BR":t=(await import("./RV6E7KKQ.js")).default;break;case"pt-PT":t=(await import("./X2IOJECM.js")).default;break;case"ro":t=(await import("./FJNRPAMO.js")).default;break;case"ru":t=(await import("./VIZWWEG5.js")).default;break;case"sr":t=(await import("./JPEN5TFK.js")).default;break;case"sk":t=(await import("./3YOOX2CV.js")).default;break;case"sl":t=(await import("./GI54JT4O.js")).default;break;case"sv":t=(await import("./LEMJA72W.js")).default;break;case"th":t=(await import("./3HAB3JR6.js")).default;break;case"tr":t=(await import("./TEERYUCS.js")).default;break;case"uk":t=(await import("./C5YJ7J3A.js")).default;break;case"vi":t=(await import("./KBQM3DLQ.js")).default;break;case"zh-CN":t=(await import("./RYLXJPKL.js")).default;break;case"zh-HK":t=(await import("./AN2NRYQV.js")).default;break;case"zh-TW":t=(await import("./AN2NRYQV.js")).default;break}return t}async function RY(a=Lu(document.documentElement).t9nLocale,t){let e=t?await MY(a):await EY(a),i=(await OY(a)).customAmchartsStrings;return{...e,...i}}var UY=({message:a,heading:t,options:e})=>ld`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?ld`<div slot=title>${t}</div>`:null}${a!==void 0?ld`<div slot=message>${a}</div>`:null}</calcite-alert>`,VY=ZS`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`,yw=class extends eF{constructor(t){super(t)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=FY(this.component),this.layerRendererWatchHandler=TY(this.component),this.layerFieldsWatchHandler=IY(this.component)}async setViewExtentChangeWatchHandler(t){(t??(this.component.filterByExtent||this.component.filterByViewExtent))&&(this.removeViewExtentChangeWatchHandlers(),this.viewExtentChangeWatchHandlers=await PY(this.component))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=LY(this.component)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=DY(this.component)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=kY(this.component)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=$Y(this.component)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeViewExtentChangeWatchHandlers(){this.viewExtentChangeWatchHandlers?.forEach(t=>t.remove()),this.viewExtentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.component.runtimeDataFilters?.timeExtent&&delete this.component.runtimeDataFilters.timeExtent}},vw=class extends iF{constructor(){super(),this._messages=Qx(),this._chartRef=tF(),this._commonStrings=Qx({name:"common",blocking:!0}),this._watchHandlersController=new yw(this),this._updateQueue=OI.promise(async t=>await this._renderChart(t.changes),WF),this._rotated=!1,this._legendVisibility=!1,this._filterByExtent=!1,this._filterByViewExtent=!1,this._showLoader=!1,this._noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage","disableInteractions","interactionsDisabled"],this._loadQueryObject=new In(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent,this.filterByViewExtent],task:async([t,e,i,r,s],{signal:n})=>{let o=await bx({chartConfig:t,layer:e,view:i,filterByViewExtent:r||s,abortSignal:n});if(o){let l=$s(o);await ng(l,n)}return o},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._loadFeatureLayerView=new In(this,{args:()=>[this._loadQueryObject.value],task:async([t],{signal:e})=>yh(t)?await Ia.whenOnce(()=>!t.updating,{signal:e}):!1,onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._setLayerFromLayerItemId=new In(this,{args:()=>[this.layerItemId,this.view,this.chartIndex],task:async([t,e])=>{if(t&&t.trim()!==""&&!xx({view:e,portalItemId:t})){let i=await BN.fromPortalItem({portalItem:new SN({id:t})});(bF(i)||bs(i))&&(this.layer=i,await this._createModelFromLayer(this.chartIndex))}},onComplete:async()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._checkIfDataUpdateIsNeeded=new In(this,{args:()=>{let t=[this.forceDataUpdateTick,this.runtimeDataFilters,this.returnFeaturesExtent,this.chartLimits,this.updateSplitBySeries,this.timeZone];return[this._chart,this.config,this.usePopupTemplateFieldsInfo,this.layer,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.chartLimits,this._loadQueryObject.value,...t]},task:([t,e,i,r,s,n,o,l,h])=>{if(h){let c=t===void 0,u=_a(h,i),d=this._lastRenderedProps?.chartConfig,A=this._lastRenderedProps?.options?.selectionData?.selectionOIDs,p=this._lastRenderedProps?.dataUpdateNeededProps,f=this._lastRenderedProps?.extraProps?.layer,m=this._lastRenderedProps?.extraProps?.filterBySelection,g=c,y;p&&Object.keys(p).forEach(w=>{let S=p?p[w]:void 0,T=this[w];g=g||!rn(S,T)});let x=yh(f)!==yh(r);if(g=g||x,y={common:{layerChanged:x}},e&&d){let w=HF({previousConfig:d,newConfig:e,previousFilterBySelection:m,previousSelectionOIDs:A,fieldList:u,queryObject:h,filterBySelection:s,selectionData:n,setTimeBinningInfoWhenNotProvided:o,chartLimits:l});y={...y,...w.dataUpdateDetails},g=g||w.dataUpdateNeeded}return{dataUpdateNeeded:g,dataUpdateDetails:y}}else return this._checkIfDataUpdateIsNeeded.value??{dataUpdateNeeded:!1,dataUpdateDetails:void 0}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._prepareConfigForRendering=new In(this,{args:()=>[this.config,this._chart,this.updateSplitBySeries,this.updateSplitBySeries?.addMissingSeries,this.runtimeDataFilters,this.view,this.viewTimeExtentChangePolicy,this.syncViewTimeExtent,this.ignoreViewExtent,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this._commonStrings?.errorStrings,this.timeZone,this._loadQueryObject.value,this._checkIfDataUpdateIsNeeded.value?.dataUpdateNeeded],task:async([t,e,i,r,s,n,o,l,h,c,u,d,A,p,f,m],{signal:g})=>{let y=e===void 0,x=this.layer!==this._lastRenderedProps?.extraProps?.layer,w=this.filterByExtent!==this._lastRenderedProps?.extraProps?.filterByExtent||this.filterByViewExtent!==this._lastRenderedProps?.extraProps?.filterByViewExtent,S=r===!0&&(y||m||x||w),T=Nx({runtimeDataFilters:s,view:n,viewTimeExtentChangePolicy:o,syncViewTimeExtent:l}),F,L=this.view&&"timeZone"in this.view&&this.view.timeZone?this.view.timeZone:void 0;(p||bv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:this._config})&&L)&&(F=p??L);let{alteredConfig:$,preFetchedQueryResponse:I}=await BT({configToAlter:t,updateSplitBySeries:i,addMissingSeries:S,chartContainer:this.el,queryObject:f,layer:this.layer,abortSignal:g,runtimeDataFilters:T,ignoreViewExtent:h,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,timeZone:F,chartLimits:d,errorStrings:A});return JSON.stringify(this.alteredConfig)!==JSON.stringify($)&&(this.alteredConfig=$,this.model&&$&&!Ro(this.model)&&(this.model.series=$.series)),I},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._isChartSupportedByDataSource=new In(this,{args:()=>[this.config,this.layer],task:async([t,e],{signal:i})=>await wT({config:t,layer:e,abortSignal:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._validateWebChart=new In(this,{args:()=>[this.alteredConfig,this._gatherComponentOptions().allowUsingObjectIdStat,this._commonStrings?.errorStrings,this._loadQueryObject.value],task:async([t,e,i,r])=>await Lx({input:t,queryObject:r,allowUsingObjectIdStat:e,errorStrings:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._getData=new In(this,{args:()=>[this.alteredConfig,this._unsanitizedSelectionDataItems,this._commonStrings?.errorStrings,this.usePopupTemplateFieldsInfo,this.popupTemplateFieldInfosEnabled,this.runtimeDataFilters,this.ignoreViewExtent,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.hideZeroCountCategories,this.replaceNoValueCategoryWithZero,this._gatherComponentOptions().view,this.filterByExtent||this.filterByViewExtent,this.syncViewTimeZone,this.syncViewTimeZoneInclusionList,this._loadQueryObject.value,this._prepareConfigForRendering.value,this._checkIfDataUpdateIsNeeded.value],task:async([t,e,i,r,s,n,o,l,h,c,u,d,A,p,f,m,g,y,x,w,S],{signal:T})=>{let F,{dataUpdateNeeded:L,dataUpdateDetails:$}=S??{};if(L&&t&&x&&!_h(t)){let I=_a(x,r||s),U=bv({syncViewTimeZone:g,syncViewTimeZoneInclusionList:y,chartConfig:t});this.showLoader=!0,F=await oT({chartConfig:t,preFetchedQueryResponse:w,queryObject:x,runtimeDataFilters:n,ignoreViewExtent:o,filterBySelection:l,selectionData:h,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,chartLimits:d,popupTemplateFieldInfosEnabled:s,hideZeroCountCategories:A,replaceNoValueCategoryWithZero:p,view:f,filterByViewExtent:m,syncViewTimeZone:U,fieldList:I,currentSelectionDataItems:e,dataForFilterBySelectionChanged:$?.common?.dataForFilterBySelectionChanged,errorStrings:i,abortSignal:T}),jx(this._model)&&ET(OT,F.data)}return{dataInfo:F,dataWasUpdated:!!F}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this.forceDataUpdateTick=0,this.taskCompletionTick=0,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.configurationEnabled=!1,this.calciteThemingCSSVariables={background:"--calcite-color-foreground-1",text:"--calcite-color-text-1",line:"--calcite-color-border-1",secondaryLine:"--calcite-color-text-3",spinner:"--calcite-color-brand-hover"},this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.disableInteractions=!1,this.interactionsDisabled=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=lp.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.syncViewTimeZoneInclusionList=[V.HeatSeries],this.syncViewTimeZone=!1,this.layerFilterChangePolicy=$x.Refresh,this.viewTimeExtentChangePolicy=Mx.Ignore,this.syncViewTimeExtent=!1,this.layerRendererChangePolicy=Ox.Refresh,this.layerFieldsChangePolicy=Ex.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=md.Disabled,this.syncViewSelection=!1,this.syncSelection=!1,this.syncChartsSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=Xs(),this.arcgisBadDataWarningRaise=Xs(),this.arcgisChartNotFoundWarning=Xs(),this.arcgisConfigChange=Xs(),this.arcgisDataFetchComplete=Xs(),this.arcgisDataProcessComplete=Xs(),this.arcgisDataProcessError=Xs(),this.arcgisInvalidConfigWarningRaise=Xs(),this.arcgisLegendItemVisibilityChange=Xs(),this.arcgisNoRenderPropChange=Xs(),this.arcgisRenderingComplete=Xs(),this.arcgisRuntimeError=Xs(),this.arcgisSelectionComplete=Xs(),this.arcgisSeriesColorChange=Xs(),this.arcgisSeriesOrder=Xs(),this.arcgisUpdateComplete=Xs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this._handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this._handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this._handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this._handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this._handleTooManySelectedElements),this.listen("calciteAlertClose",this._handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this._handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this._handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this._handleRenderingComplete),this._addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this._handleExternalSelection)}static{this.properties={alteredConfig:16,forceDataUpdateTick:16,taskCompletionTick:16,infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,configurationEnabled:5,calciteThemingCSSVariables:0,rotation:[5,{hasChanged:()=>!1}],rotated:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],filterByViewExtent:[5,{hasChanged:()=>!1}],disableInteractions:5,interactionsDisabled:5,queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,animationEnabled:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:0,tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,togglingLegendItemsDisabled:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,syncViewTimeZoneInclusionList:0,syncViewTimeZone:5,popupTemplateFieldInfosEnabled:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,syncViewTimeExtent:5,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,syncSelection:5,syncChartsSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=VY}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=!this.hideLoaderAnimation&&t}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&BF(e,t)&&this.forceDataUpdateTick++,this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this._lastModelSetterCalled}),this._lastModelSetterCalled=void 0,this._actionBarElement&&!_h(t)&&(this._actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotated}set rotation(t){this.rotated=t}get rotated(){return this._rotated}set rotated(t){this._rotatedChange(t),this._handleNoRenderPropChange("rotated",t),this._rotated=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this._legendPositionChange(t),this._handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this._legendVisibilityChange(t),this._handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this._viewChange(t,e),this._handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this._filterByViewExtentChanged(t),this._handleNoRenderPropChange("filterByExtent",t)}get filterByViewExtent(){return this._filterByViewExtent}set filterByViewExtent(t){this._filterByViewExtent=t,this._filterByViewExtentChanged(t),this._handleNoRenderPropChange("filterByViewExtent",t)}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this._featureIndexChange(t,e),this._handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}async clearSelection(){this._chart!==void 0&&(this._unsanitizedSelectionDataItems=void 0,this._chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this._chart?.dispose()}async errorAlert(t){this.errorPolicy===lp.Throw&&(this._actionBarElement&&(this._actionBarElement.forceDisableActions=!0),this.notify(t,this._commonStrings?.errorStrings.errorHeading))}async exportAsCSV(t){let e,i,r={xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter};if(this._sanitizedChartData){let s=await this._loadQueryObject.taskComplete,n=s?_a(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled):void 0,o=this._model?.config??this.config,l=this._processedChartData??this._sanitizedChartData,h=await iT($s(s)),c=o?.chartRenderer?zF(o.chartRenderer):[],u=[...new Set([...h,...c])],d=Qu(o,u),A=Ro(this.model)?this.model.titleText:this.config?.title?.content?.text??this._commonStrings.utilsStrings.chartType.chart;if(Object.values(l).filter(p=>Array.isArray(p)&&p.length>0).length>1){let p=new MI.default;Object.entries(l).forEach(([m,g])=>{if(Array.isArray(g)&&g.length>0){let y=Vx({rawData:g,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this._commonStrings.utilsStrings}),x=Ux(y,t),w=`${A}-${m}.csv`;p.file(w,x)}});let f=await p.generateAsync({type:"blob"});e=URL.createObjectURL(f),i=`${A}.zip`}else{let p;if("bins"in l?p=l.bins:"dataItems"in l&&(p=l.dataItems),p){let f=Vx({rawData:p,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this._commonStrings.utilsStrings}),m=Ux(f,t);e=URL.createObjectURL(new Blob([m],{type:"text/csv;charset=utf-8;"})),i=`${A}.csv`}}e!==void 0&&i!==void 0&&Wx(e,i)}}async exportAsImage(t=XF.PNG){let e=this._chartRef.value;e?(await(0,EI.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),s=`${this.model.titleText??this._commonStrings.utilsStrings.chartType.chart}.${t}`;Wx(r,s)}},t):this.notify(this._commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this._resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this._infoModalHeading=e,this.showLoader=!1}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};e&&this.forceDataUpdateTick++,i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this._chart!==void 0&&this._chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this._chart!==void 0&&!this.filterBySelection&&t&&await this._chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled){let t=this._getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this._modelChange(),t.has("selectionData")&&!rn(t.get("selectionData")?.selectionOIDs,this.selectionData?.selectionOIDs)&&this._selectionDataChange(),t.has("layer")&&this._layerChange(),t.has("filterBySelection")&&t.get("filterBySelection")!==void 0&&this._filterBySelectionChanged(),t.has("selectionManager")&&(this._setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager())}updated(t){Array.from(t.keys()).filter(e=>!this._noRenderingUpdateProps.includes(e)).length>0&&!this._isAnyTaskPending()&&this._updatedAsync(t),this._actionBarElement!==void 0&&RT({actionBar:this._actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0}),t.has("aria")&&this.aria&&this._chartRef.value&&(this._chartRef.value.ariaLabel=this.aria.label??this._chartRef.value.ariaLabel,this._chartRef.value.ariaDescription=this.aria.description??this._chartRef.value.ariaDescription,this._chartRef.value.ariaLabelledByElements=this.aria.labelledByElements??this._chartRef.value.ariaLabelledByElements,this._chartRef.value.ariaDescribedByElements=this.aria.describedByElements??this._chartRef.value.ariaDescribedByElements)}disconnectedCallback(){super.disconnectedCallback(),this._removeLayerWatchHandlers(),this._removeViewExtentChangeWatchHandlers(),this._removeViewWatchHandlers(),this._removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this._chart?.dispose()}applySelectionFromView(){this.applySelectionFromSelectionManager()}applySelectionFromSelectionManager(){let t=this._getSelectionFromSelectionManager();t&&!rn(t,this.selectionData?.selectionOIDs)&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}_handleRuntimeError(t){if(t instanceof Tl&&t.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Tl&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Tl?t.message:this._commonStrings?.errorStrings.errors.simpleError;this.notify(e,this._commonStrings?.errorStrings.errorHeading)}}_synchronizeModelConfig(){this._config&&(Ro(this.model)?this.model.config=_r(this._config):JSON.stringify(this._config)!==JSON.stringify(this.model)&&(this.model=_r(this._config)))}_isAnyTaskPending(){return[this._loadQueryObject,this._loadFeatureLayerView,this._setLayerFromLayerItemId,this._checkIfDataUpdateIsNeeded,this._prepareConfigForRendering,this._isChartSupportedByDataSource,this._validateWebChart,this._getData].some(t=>t.status===mg.PENDING)}_hideInfoModal(){this.infoModalMessage=void 0}async _generateHeatChartClassBreaks(t){if(!bs(this.layer)&&jx(this._model)&&t?.data&&"dataItems"in t.data){let e=await yT({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,colorRampName:this._model.colorRampName,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos,isColorRampFlipped:this._model.isColorRampFlipped});vT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:xr.valueField})}}async _updatedAsync(t){if(this.config!==void 0&&this._chart!==void 0)try{(!this.config&&!this.layer||Ix(this.config,this.layer)&&!_h(this.config)&&await this._isChartSupportedByDataSource.taskComplete)&&await this._updateQueue?.push({changes:t})}catch(e){this._chartRef.value!==void 0&&(e instanceof Tl&&e.name===cd.ChartDisposed?(this._chart?.dispose(),this._chart=void 0,this._chartRef.value.innerHTML="",await this._createChartInstance(t,!1)):this._handleRuntimeError(e))}else this._chart===void 0&&await this._createChartInstance(t);this.placeholder!==void 0?await this.notify(this.placeholder):(this.enableConfiguration||this.configurationEnabled)&&_h(this.config)&&this._applyPlaceholderForPartialConfig(this.config)}_useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}_handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}_handleExternalSelection(t){if(!bs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,s=this.layer&&r?.layer?.id===Nu(this.layer).id;(this.syncSelection||this.syncChartsSelection)&&s&&t.target!==this.el&&!rn(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}}_configPanelNumberChange(t){let e=t,{panelNumber:i,modelList:r}=e.detail;this._actionBarElement&&(this.enableConfiguration||this.configurationEnabled)&&this._ourModelExistsIn(r)&&(this._actionBarElement.editChartToggle=i===1?kx.Active:kx.Inactive)}_configDataChangeError(t){let e=t,{error:i,model:r}=e.detail;(this.enableConfiguration||this.configurationEnabled)&&r?.isSameChartAs(this._model)&&this.notify(i.message)}_modelConfigChange(t){let e=t;this._lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!rn(this.config?.iLayer,i?.iLayer)&&(this.layer=new QL(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=_r(i))}_modelDataChange(){this.setTimeBinningInfoWhenNotProvided&&kT(this._model)&&this._model?.resetTimeInterval()}_actionBarSlotRef(t){this._actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0}_checkForInvalidContainer(){this._chartRef.value||Km("divNode",this._commonStrings?.errorStrings)}_handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}_handleLegendItemVisibilityChanged(t){yF(t,this.config),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}_handleUpdateCompleted(t){if(this.enableConfiguration||this.configurationEnabled){let e=this._commonStrings?.errorStrings.notifications;if(this.placeholder===void 0)if(t.schemaErrors.length>0&&!_h(this.config))this.notify(e?.invalidConfig,void 0);else if(t.customErrors.length>0&&!_h(this.config)){let i=t.customErrors.find(r=>r.keyword===cd.LayerFieldsNotFound);if(bs(this.layer)&&i){let r=Uc(e?.invalidConfigForRaster??"",{errorMessage:i.message});this.notify(r,e?.invalidConfigTitle)}else this.notify(e?.invalidConfig,void 0)}else t.warnings.length>0&&t.warnings.some(i=>i.keyword===KF.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields);if((DT(this._model)||LT(this._model)||Hx(this._model)||IT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Nu(this.layer),r=xh(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&(this.showLoader=!1),this.arcgisUpdateComplete.emit(t)}_handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}_handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}_handleSelection(t){let e={...t.detail};this._unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=_r(e.selectionItems);r&&(r=dT(r,this.config?.series),r=r.map(AT),r=cT(r,this.config?.series),i.selectionItems=r),rn(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}_handleTooManySelectedElements(){this.errorPolicy===lp.Throw&&(this._infoModalHeading=this._commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this._commonStrings?.errorStrings.tooManySelectedElements?.message,this._notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}_handleAlertClosed(t){t.target===this.el&&(this._notifyHeading=void 0,this.notifyMessage=void 0)}_handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}_handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}_modelChange(){if(Ro(this.model)){this._model=this.model,this.config=_r(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this._addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this._resolveModelSetup=="function"&&this._resolveModelSetup()})}else this.config=_r(this.model);if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}_selectionDataChange(){this.layer!==void 0&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)&&this.view!==void 0&&this._setSelectionInSelectionManager()}async _viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=xx({view:this.view,portalItemId:this.layerItemId})??new QL({portalItem:{id:this.layerItemId}})),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this._setViewSelectionsChangeWatchHandler():this._removeViewSelectionsChangeWatchHandler()}async _layerChange(){this._addLayerWatchHandlers(),this.layer&&(await ng(Nu(this.layer)),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler())}_featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.forceDataUpdateTick++}_rotatedChange(t){t!==void 0&&(this.config=_T(t,this._config),this._synchronizeModelConfig())}_legendPositionChange(t){t!==void 0&&(this.config=bT(t,this._config),this._synchronizeModelConfig())}_legendVisibilityChange(t){t!==void 0&&(this.config=xT(t,this._config),this._synchronizeModelConfig())}_filterBySelectionChanged(){this.config=CT(this._config),this._synchronizeModelConfig()}async _filterByViewExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this._setViewExtentChangeWatchHandler(t):this._removeViewExtentChangeWatchHandlers()}_addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this._configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this._configDataChangeError)}_getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!bs(this.layer)){let e=Nu(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}_setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!bs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Tr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Nu(this.layer),e)}}_addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this._modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this._modelDataChange)}_addLayerWatchHandlers(){this._watchHandlersController.addLayerWatchHandlers()}async _setViewExtentChangeWatchHandler(t){await this._watchHandlersController.setViewExtentChangeWatchHandler(t)}_setViewTimeZoneWatchHandler(){this._watchHandlersController.setViewTimeZoneWatchHandler()}_setViewTimeExtentChangeWatchHandler(){this._watchHandlersController.setViewTimeExtentChangeWatchHandler()}_setViewSelectionsChangeWatchHandler(){this._watchHandlersController.setViewSelectionsChangeWatchHandler()}_setSelectionManagerChangeWatchHandler(){this._watchHandlersController.setSelectionManagerChangeWatchHandler()}_removeLayerWatchHandlers(){this._watchHandlersController.removeLayerWatchHandlers()}_removeViewWatchHandlers(){this._watchHandlersController.removeViewWatchHandlers()}_removeViewExtentChangeWatchHandlers(){this._watchHandlersController.removeViewExtentChangeWatchHandlers()}_removeViewSelectionsChangeWatchHandler(){this._watchHandlersController.removeViewSelectionsChangeWatchHandler()}_removeSelectionManagerChangeWatchHandler(){this._watchHandlersController.removeSelectionManagerChangeWatchHandler()}async _createModelFromLayer(t){if(this.layer){let e=Nu(this.layer);await ng(e);let i=t??0,r="charts"in e?e?.charts?.[i]:void 0;if(r)this.model=await $T({layer:e,config:r,commonStrings:this._commonStrings});else{let s=Uc(this._messages?.chartNotFoundWarning??"",{chartIndex:i.toString(),layerTitle:e.title});this.arcgisChartNotFoundWarning.emit(s),JS("warn",this,s)}}}_applyPlaceholderForPartialConfig(t){let e=Hx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=fY(e,this._commonStrings?.errorStrings);this.notify(i)}_checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===lp.Throw&&xF(t).versionStatus===nF.Newer&&(this._notifyHeading=this._commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this._commonStrings?.errorStrings.incompatibleChartVersion?.message?Uc(this._commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this._notifyOptions={kind:"warning",autoClose:!0,active:!0})}_ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}_gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart,animationEnabled:this.animationEnabled||this.useAnimatedCharts}}_addMutationObserverForCalciteTheme(){aF(this.el,["class"],()=>{let t=Qb(this.el);t!==this._calciteThemeApplied&&(this._calciteThemeApplied=t,this.refresh({updateData:!1}))})}_gatherComponentOptions(t=!0){let e=Nx({runtimeDataFilters:this.runtimeDataFilters,view:this.view,viewTimeExtentChangePolicy:this.viewTimeExtentChangePolicy,syncViewTimeExtent:this.syncViewTimeExtent}),i=this.filterByExtent||this.filterByViewExtent,r,s=Ro(this.model)?this.model.config:this.model;if(bs(this.layer))r=i?this.view:void 0;else{let n=ze(s?.series);r=i||n!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:r,viewExtentUpdated:t&&i&&(this.view!==void 0||yh(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,runtimeDataFilters:e,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:bs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter,syncViewTimeZone:bv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:s}),interactionsDisabled:this.interactionsDisabled||this.disableInteractions,togglingLegendItemsDisabled:this.togglingLegendItemsDisabled||this.disableTogglingLegendItems,popupTemplateFieldInfosEnabled:this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled}}_raiseLogScaleNotCompatibleWarning(t,e){let i=!0;return this.config?.axes?.forEach((r,s)=>{dg({chartConfig:this.config,axisConfigIndex:s,chartData:Ln(e?.data??this._sanitizedChartData)})||(i=!1,this._raiseInvalidDataWarning({invalidType:s===0?Ll.NegativeValueInXAxisLogScale:Ll.NegativeValueInYAxisLogScale,queryObject:t}))}),i}_raiseNoDataWarning(t){let{dataInfo:e,config:i,queryObject:r}=t,s=!1;if(e?.data){let n=Ln(e.data),o=Ll.EmptyDataSet;hT({chartConfig:i,nullAsValid:this.nullAsValid,dataSet:n})&&(gd(this.config)&&Hu(this.config)&&e.count&&e.count>0&&(o=Ll.NoValue),s=!0,this._raiseInvalidDataWarning({invalidType:o,elementCount:e.count,queryObject:r}))}return s}_raiseInvalidDataWarning(t){let{invalidType:e,elementCount:i,queryObject:r}=t,s=this._gatherComponentOptions(),n=this.config!==void 0&&Jm({seriesConfig:this.config.series[0],xAxisValueFormatType:vF(this.config),queryObject:r}),o=gd(this.config)&&Hu(this.config),l=sT({invalidType:e,elementCount:i,seriesCount:this.config?.series?.length,chartLimits:s?.chartLimits,filterBySelection:s?.filterBySelection,queryObject:r,formatLocale:Ad(this.el),isTemporalChart:n,isGaugeChartByFeature:o,errorStrings:this._commonStrings?.errorStrings});(l.keyword!==Ll.EmptyDataSet||this.infoModalMessage===void 0||l.keyword===Ll.EmptyDataSet&&o)&&(this.arcgisBadDataWarningRaise.emit(l),this.notify(l.message,l.header))}_processInvalidConfigStatus(t,e){if(this.enableConfiguration||this.configurationEnabled)this._handleUpdateCompleted(t);else{this.showLoader=!1;let{title:i,message:r}=pY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this._commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ll.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async _createChartInstance(t,e=!0){if(this.config)try{this._addMutationObserverForCalciteTheme(),await this._renderChart(t),e&&this._chart&&(this._addLayerWatchHandlers(),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler(),this._setViewSelectionsChangeWatchHandler(),this._setSelectionManagerChangeWatchHandler())}catch(i){this._handleRuntimeError(i),this._chart?.dispose(),this._chart=void 0}}_notifyDataProcessComplete(t){if(t&&this._config){let e=Ag({data:t,seriesConfig:this._config.series});e&&(this._sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}_notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=_r(t);e.dataItems=qN(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async _renderChart(t){if(_h(this.config))this._applyPlaceholderForPartialConfig(this.config);else if(this.config){let e=this._chart===void 0;if(e||t.size>0){this._checkForInvalidContainer(),e&&this._checkForIncompatibleChartVersion();let i=await this._loadQueryObject.taskComplete;if(i){let r=this._gatherComponentOptions(),s=_a(i,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled),n=await this._checkIfDataUpdateIsNeeded.taskComplete,{dataUpdateDetails:o}=n,l=n.dataUpdateNeeded;l&&!e&&this._hideInfoModal();let h=this.alteredConfig?{...this.alteredConfig}:void 0,c=this._lastRenderedProps?.chartConfig;if(o?.common&&c?.series&&h?.series&&(o.common.numberOfSeriesChanged=SF(c.series,h.series)),!h&&!this.layer||Ix(h,this.layer)&&await this._isChartSupportedByDataSource.taskComplete){let u=await this._validateWebChart.taskComplete;if(!u.valid)this._processInvalidConfigStatus(u,h);else if(h){await this._loadFeatureLayerView.taskComplete;let d=await this._getData.taskComplete,A=d.dataInfo??{valid:!0,data:this._processedChartData??this._sanitizedChartData},p=d.dataWasUpdated;if(ze(h.series)===V.PieSeries){let f=XL({creation:e,previousConfig:c,newConfig:h,dataInfo:A,dataUpdateNeeded:p,utilsStrings:this._commonStrings.utilsStrings});p=p||f}if(!A.valid)this._raiseInvalidDataWarning({invalidType:A.invalidType,elementCount:A.count,queryObject:i});else{if(ze(h.series)===V.PieSeries){let g=XL({creation:e,previousConfig:c,newConfig:h,dataInfo:A,dataUpdateNeeded:p,utilsStrings:this._commonStrings.utilsStrings});p=p||g}let f,m=_r(h);if({filteredConfig:h,seriesFilteredOut:f}=ST({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:h,data:A?.data}),this._getData.status===mg.COMPLETE&&!this._raiseNoDataWarning({dataInfo:A,config:h,queryObject:i})&&this._raiseLogScaleNotCompatibleWarning(i,A)){let g=tp({oldConfig:f?m:c,newConfig:h,dataWasUpdated:p});g&&aT({alteredConfig:h,dataInfo:A,fieldList:s,options:r,queryObject:i}),eg(c,h)&&(p=!0);let y=Dl(h)?h.showMean:void 0,x=A?.data??this._sanitizedChartData,w=x&&y&&"meanLines"in x?x.meanLines:Ln(x);w&&(e||p)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await Bx({data:w,queryObject:i,chartConfig:h,allowColorMatch:mx({chartConfig:h,queryObject:i})})),this._calciteThemeColors&&(h=BY(h,this._calciteThemeColors),this._calciteThemeApplied=Qb(this.el));let S=!1,T;if(h.series[0].type===V.PieSeries){let L=Ln(this._processedChartData),$=Ln(A.data);S=zI(L,$),T=XI({creation:e,dataInfo:A,pieChartDataActuallyChanged:S,chartConfig:h,previousConfig:c,queryObject:i,popupTemplateFieldInfosEnabled:r?.usePopupTemplateFieldsInfo||r?.popupTemplateFieldInfosEnabled,utilsStrings:this._commonStrings.utilsStrings})}let F=await XN({creation:e,dataInfo:A,pieChartDataActuallyChanged:S,chartConfig:h,previousConfig:c,pieSlicesSymbols:T,queryObject:i,options:r,utilsStrings:this._commonStrings?.utilsStrings});if(F?.changesApplied&&(u=await Lx({input:F?.alteredConfig,queryObject:i,allowUsingObjectIdStat:r?.allowUsingObjectIdStat,errorStrings:this._commonStrings?.errorStrings}),u.valid&&(h=F?.alteredConfig,T=F.alteredPieSlicesSymbols,this._colorMatchApplied=F.colorMatchApplied,this._rendererFieldNames=F.rendererFieldNames)),h.series[0].type===V.PieSeries&&A.data&&"dataItems"in A.data&&eQ({data:A.data.dataItems,newChartConfig:h,pieSlicesSymbols:T,fieldList:s}),this._processedChartData=_r(A.data),!u.valid)this._processInvalidConfigStatus(u,h);else{if((l||g)&&(this._notifyDataProcessComplete(A.data),this._notifyDataFetchComplete(A.data)),!this.filterBySelection&&!bs(i)){let P=this._lastRenderedProps?.options?.selectionData,Q=!rn(P?.selectionOIDs,this.selectionData?.selectionOIDs),G=await pT({chartConfig:h,chartData:this._processedChartData,dataWasUpdated:l,queryObject:i,selectionData:r?.selectionData,replaceNoValueCategoryWithZero:r?.replaceNoValueCategoryWithZero,hideZeroCountCategories:r?.hideZeroCountCategories,chartLimits:r?.chartLimits,setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,returnFeaturesExtent:r?.returnFeaturesExtent,popupTemplateFieldInfosEnabled:r?.popupTemplateFieldInfosEnabled,view:r?.view,viewExtentUpdated:r?.viewExtentUpdated,returnSelectionOIDs:r?.returnSelectionOIDs,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent,errorStrings:this._commonStrings?.errorStrings,selectionIDsChanged:Q});G&&r&&(r.selectionData={...r?.selectionData,selectionItems:G})}this._hideInfoModal();let{t9nLocale:L}=Lu(this._chartRef.value??document.documentElement),$=await RY(L,this._useAmCharts5()),I=h.series?.[0]?.query;gd(h)&&I&&(A.gaugeMinMaxFromData=await nT({queryObject:i,chartConfig:h,queryConfig:I,errorStrings:this._commonStrings?.errorStrings}));let U={chartConfig:h,options:r,globalOptions:this._gatherComponentGlobalOptions(),dataUpdateDetails:o,configWithAllSeries:m,dataWasUpdated:p,chartContainer:this._chartRef.value,queryObject:i,dataInfo:A,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:f,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this._commonStrings?.errorStrings,utilsStrings:this._commonStrings?.utilsStrings,amChartsStrings:$},dataUpdateNeededProps:{forceDataUpdateTick:this.forceDataUpdateTick,runtimeDataFilters:this.runtimeDataFilters,returnFeaturesExtent:this.returnFeaturesExtent,chartLimits:this.chartLimits,updateSplitBySeries:this.updateSplitBySeries},extraProps:{layer:this.layer,filterBySelection:this.filterBySelection,filterByExtent:this.filterByExtent,filterByViewExtent:this.filterByViewExtent}};if(e){let P=this._useAmCharts5()?AY:jW;this._chart=P(U)}else this._chart?.update(U),this._handleUpdateCompleted(u);if(gd(h)&&Hu(h)&&h.series[0].type===V.GaugeSeries){let P=A?.data&&"dataItems"in A.data?A.data.dataItems:[],Q=Ew({featureIndex:h.series[0].featureIndex,chartData:P,chartConfig:h,gaugeMinMaxFromData:A.gaugeMinMaxFromData??{},queryConfig:I});Number.isNaN(Q.dataValue)&&this._raiseInvalidDataWarning({invalidType:Ll.NoValue,elementCount:P.length,queryObject:i})}this._lastRenderedProps=U,await this._generateHeatChartClassBreaks(A)}}}}}}}}}render(){this._calciteThemeColors=mY(this.el,this.calciteThemingCSSVariables);let t=this.notifyMessage?UY({heading:this._notifyHeading,message:this.notifyMessage,options:this._notifyOptions}):null,e=this._isAnyTaskPending()&&!this.hideLoaderAnimation||this.showLoader,i=this.infoModalMessage!==void 0&&this.showUIMessages!==!1&&!this.hideUIMessages||e,r=this.notifyMessage&&this._notifyOptions?.kind==="danger"||i,s={[sn.ChartWrapper]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r},n={[sn.ChartContainer]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r,[sn.DisableInteractions]:this.interactionsDisabled||this.disableInteractions},o=this.notifyMessage!==void 0?{[sn.NotifyPanel]:!0,[sn.Show]:!0}:{[sn.Hide]:!0};return ld`<slot name=${gT.actionBar} @slotchange=${l=>{this._actionBarElement=MT(l,this.el,this.config)}} ${Nb(this._actionBarSlotRef)}></slot>${i?ld`<arcgis-charts-info-modal .heading=${this._infoModalHeading} .message=${this.infoModalMessage} .showLoader=${e} .loaderColors=${this.loaderColors} .calciteThemeColors=${this._calciteThemeColors}></arcgis-charts-info-modal>`:null}<div class=${Rm(s)}><div class=${Rm(n)} ${Nb(this._chartRef)}></div></div><div class=${Rm(o)}>${t}</div>`}};rF("arcgis-chart",vw);return vw},"core/reactiveUtils","intl","layers/FeatureLayer","layers/Layer","portal/PortalItem",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
|
|
58
|
+
Value: {${xr.valueField}}`,width:ge,height:ge}),_k(l,r?.tooltipFormatter),TA(l,s),ns(l.columns.template,r?.selectionTheme),To({element:l.columns.template,series:l,queryObject:n,errorStrings:o}),l}function rX(a,t){t?.dataItems&&a.data.setAll(t.dataItems)}function sX(a){let{columnSeries:t,seriesConfig:e}=a,{gradientHeatRules:i}=q.heatChart,{gradientRules:r,heatRulesType:s,gridLine:n}=e,o=e.emptyCells?.symbol??q.heatChart.emptyCells?.symbol,l=r?.colorList?.[0]??i.minColor,h=r?.colorList?.[1]??i.maxColor,c=r?.outsideRangeLowerColor??i.outsideRangeLowerColor,u=r?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:A}=r??{},{color:p,opacity:f}=Xt(l),{color:m,opacity:g}=Xt(h),y=Xt(c),x=Xt(u);t.set("heatRules",[{target:t.columns.template,dataField:"value",key:"fill",customFunction:(w,S,T,F)=>{let L=w.dataItem?.dataContext;if(w instanceof ft){let $,I,U,P=!1;if(s===ku.Renderer){let Q=L?.[pt.rendererSymbolField];if(fd(Q)){U=_r(Q);let{outlineSymbol:G}=Dv(n);U.outline=G}else P=!0}if((!Number.isFinite(F)||P)&&o){U=_r(o);let{outlineSymbol:Q}=Dv(n);U.outline=Q}if(U){let Q=vu({root:t.root,element:w,fillSymbol:U});mA(w,Q)}else typeof d=="number"&&F<d?{color:$,opacity:I}=y:typeof A=="number"&&F>A?{color:$,opacity:I}=x:S===T?($=p,I=f):($=ot.interpolate((F-S)/(T-S),p,m,"rgb"),I=f+(F-S)/(T-S)*(g-f)),$&&w.set("fill",$),I!==void 0&&w.set("fillOpacity",I)}}}])}function aX(a,t){t?.color?Fo({element:a.columns.template,lineSymbol:t}):a.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function nX(a){let{series:t,data:e,dataWasUpdated:i,sortChanged:r,timeZoneChanged:s,seriesWereReinitialized:n,seriesConfig:o,autoInverseDataLabelTextColor:l,options:h,queryObject:c,chartConfig:u}=a,d=i===!0||r===!0||s||n===!0;t.set("id",o.id),Li(t,o.visible),xA(t,!1),ns(t.columns.template,h?.selectionTheme),_u(t.columns.template,e?.dataItems?.length),tX(a),aX(t,o.gridLine),sX({columnSeries:t,seriesConfig:o}),d&&rX(t,e),I4({seriesType:V.HeatSeries,series:t,seriesConfig:o,dataLabelsConfig:o.dataLabels,autoInverseDataLabelTextColor:l,externalDataLabelFormatter:h?.dataLabelFormatter});let{chart:A}=t;A&&oX({seriesConfig:o,queryObject:c,chartConfig:u,chart:A}),h?.interactionsDisabled&&xA(t,!0)}function oX(a){let{seriesConfig:t,queryObject:e,chartConfig:i,chart:r}=a,s;if(t.heatRulesType===ku.Renderer)s={heatRulesType:ku.Renderer,seriesColors:wk({queryObject:e,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=q.heatChart,{gradientRules:o}=t;s={heatRulesType:ku.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}nn({chartId:r.get("id"),data:s,colorMatchApplied:!1,htmlContainer:r.root.dom})}function Ck(a,t){let e="",i,r,s;return a&&typeof a=="object"&&(e="label"in a&&typeof a.label=="string"?a.label:"",i="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"color"in a.symbol&&Array.isArray(a.symbol.color)?a.symbol.color:void 0,s="symbol"in a&&a.symbol&&typeof a.symbol=="object"&&"outline"in a.symbol&&Array.isArray(a.symbol.outline)?a.symbol.outline:void 0,t&&(Array.isArray(i)&&({color:i,opacity:r}=Xt(i)),Array.isArray(s)&&(s=Xt(s).color))),{legendItemLabel:e,legendItemColor:i,legendItemColorOpacity:r,legendItemStrokeColor:s}}function lX(a){let t,{outlineColor:e,outlineOpacity:i,dataItems:r,valueField:s,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:l,evaluateUpTo:h}=a,{legendItemLabel:c,legendItemColor:u,legendItemColorOpacity:d}=Ck(n,!0);if(n&&typeof n=="object"&&u&&!Array.isArray(u)){let A=!0;if(r&&s){let p="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,f="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,m=o===l-1;A=r.some(g=>{let y=g[s];return m||h?typeof y=="number"&&y>=p&&y<=f:typeof y=="number"&&y>=p&&y<f})}A&&(t={[Ts.nameField]:c,[Ts.fillField]:u,[Ts.strokeField]:e,[Ts.fillOpacityField]:d,[Ts.strokeOpacityField]:i})}return t}function hX(a){let t,{legendItemLabel:e,legendItemColor:i,legendItemStrokeColor:r}=Ck(a,!1);return Array.isArray(i)&&(!r||Array.isArray(r))&&(t={label:e,symbol:{type:Rt.SFS,style:vs.Solid,color:i,outline:{type:Rt.SLS,color:r??i}}}),t}function wk(a){let{queryObject:t,chartConfig:e,forLegend:i,series:r}=a,s,n=$s(t),o=e.series?.[0],l=e.chartRenderer??n?.renderer?.toJSON(),{outlineColor:h,outlineOpacity:c}=Dv(o?.gridLine);if((l?.type==="classBreaks"||l?.type==="class-breaks")&&"classBreakInfos"in l){let u=r?.data.values,d=r?.get("valueField")??xr.valueField,A=l.classBreakInfos?.[0],p=A?A.classMinValue===A.classMaxValue:!1;s=l.classBreakInfos.map((f,m)=>{let g;return i?g=lX({outlineColor:h,outlineOpacity:c,dataItems:u,valueField:d,classBreakInfo:f,classBreakIndex:m,numberOfClassBreaks:l.classBreakInfos.length,evaluateUpTo:p}):g=hX(f),g}).filter(Boolean)}return s}var Gv="arcgis_charts_title_container",Yw="arcgis_charts_subtitle_container",Yv="arcgis_charts_footer_container",Bk="arcgis_charts_title",Sk="arcgis_charts_subtitle",Fk="arcgis_charts_footer",va="arcgis_charts_legend_container",eo="arcgis_charts_legend_title",cw="arcgis_charts_axis_title_id";function uX(a){let t=a.yAxes.getIndex(0);if(t){let e=Di({childId:`${cw}_y_${t.uid}`,parent:t});e instanceof Kt&&e.set("dx",0)}}function cX(a,t){let e=q.axisLabelSpacing.verticalAxisLabelSidePadding,i=q.heatChart.legend.legendPadding+e;t.set("marginRight",i),a.leftAxesContainer.setAll({paddingLeft:e});let r=a.leftAxesContainer.children.values[0];r instanceof Sr&&r.set("paddingLeft",e)}function Tk(a,t){let{root:e}=a,i=fe(a.uid,"rtl")??!1,r=fe(a.uid,"config")??t,s=r?.series[0],{start:n,end:o}=Kv(i,s),l=r?.legend?.position??q.heatChart.legend.position,h=l===st.Top||l===st.Bottom;return xo.new(e,{orientation:h?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:r?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function dX(a,t){let e=fe(t.uid,"rtl")??!1,i=fe(t.uid,"config");if(i?.series[0].type===V.HeatSeries){let r=i?.series[0],{start:s,end:n}=Kv(e,r);a.setAll({startColor:s.color,endColor:n.color,startOpacity:s.opacity,endOpacity:n.opacity})}}function Kv(a=!1,t){let e=q.heatChart.gradientHeatRules,i=t.gradientRules?.colorList??[...a?[e.maxColor,e.minColor]:[e.minColor,e.maxColor]],{color:r,opacity:s}=Xt(i[0]),{color:n,opacity:o}=Xt(i[1]);return{start:{color:r,opacity:s},end:{color:n,opacity:o}}}function AI(a,t){let e=fe(a.uid,"rtl")??!1,i=fe(a.uid,"config")?.series[0],{start:r,end:s}=Kv(e,i);t.setAll({startColor:r.color,endColor:s.color})}function Pk(a){let t=fe(a.uid,"config");if(t?.series?.[0]?.type===V.HeatSeries&&t?.legend?.visible!==!1){let e=q.heatChart.legend,i=t?.legend?.position??e.position,r=Qs(va,a.uid),s,n=!1;switch(i){case st.Top:s=a.topAxesContainer,n=!0;break;case st.Bottom:s=a.bottomAxesContainer,n=!1;break;case st.Left:s=a.leftAxesContainer,n=!0;break;case st.Right:s=a.rightAxesContainer,n=!1;break;default:s=void 0}if(s!==void 0){let o=Di({childId:r,parent:s,useChildId:!0});if(o!==void 0){let{children:l}=s,h=l.indexOf(o);h!==-1&&(n&&h!==0?(l.removeValue(o),l.unshift(o),s.markDirty()):!n&&h!==l.length-1&&(l.removeValue(o),l.push(o),s.markDirty()))}}}}function Dk(a){let{chart:t,legend:e,legendContainer:i}=a,{root:r}=t,s=fe(t.uid,"config"),n=q.heatChart.legend,o=s?.legend?.position??n.position,l,h,c,u=o===st.Left||o===st.Top,d=Di({childId:eo,parent:i}),A=s?.legend?s.legend.visible??!0:!1,p=s?.legend?.title?s.legend.title.visible??!0:!1,f=d instanceof Kt&&A&&p?d.height()>0?d.height():n.titleHeight:0,m=o===st.Left||o===st.Right;switch(e.setAll({orientation:m?"vertical":"horizontal",width:ge}),o){case st.Left:i.setAll({layout:r.verticalLayout,paddingRight:n.legendPadding,width:n.width}),cX(t,i),l=t.leftAxesContainer;break;case st.Right:i.setAll({layout:r.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),t.rightAxesContainer.setAll({paddingRight:n.chartPadding}),l=t.rightAxesContainer;break;case st.Top:c=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:ge}),l=t.topAxesContainer;break;case st.Bottom:{h=n.chartPadding,i.setAll({layout:r.verticalLayout,paddingTop:n.legendPadding,width:ge}),t.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+f});let g=Di({childId:Yv,parent:t});g instanceof Re&&g.set("paddingBottom",n.chartPadding+f),l=t.bottomAxesContainer}break}uX(t),e.markDirty(),Lk(t,{chartPaddingTop:c,chartPaddingBottom:h}),yu(()=>{l&&(u?l.children.unshift(i):l.children.push(i),t.markDirty(),e.markDirty(),l.markDirty())})}function Lk(a,t){let{chartPaddingTop:e,chartPaddingLeft:i,chartPaddingRight:r,chartPaddingBottom:s}=t;a.setAll({paddingTop:e,paddingLeft:i,paddingRight:r,paddingBottom:s})}function Ik(a,t){let e=a.root.events.on(Ji.FrameEnded,()=>{a.markerContainer.children.length>0&&(t(),e.dispose())})}function kk(a){let{series:t,legend:e,chart:i}=a,r=fe(i.uid,"config"),s=n=>{let o=n.getPrivate("valueLow"),l=n.getPrivate("valueHigh");o!==void 0&&l!==void 0&&(e.get("orientation")==="vertical"?(e.set("startValue",l),e.set("endValue",o)):(e.set("startValue",o),e.set("endValue",l))),yu(()=>{Ik(e,()=>{$k({legend:e,series:n,chartConfig:r})})})};t!==void 0&&(t.events.on("datavalidated",()=>{s(t)}),s(t)),Ok(e,r?.legend)}function $k(a){let{legend:t,series:e,chartConfig:i}=a,r=i?.series[0],s=r?.gradientRules;if(s&&(s.minValue!==void 0||s.maxValue!==void 0)){let n=e.getPrivate("valueLow"),o=e.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let l=n,h=o,c=h-l,u=s.minValue??l,d=s.maxValue??h,A=(u-l)/c,p=(d-l)/c;A=Math.max(0,Math.min(1,A)),p=Math.max(0,Math.min(1,p));let{start:f,end:m}=Kv(!1,r),{color:g,opacity:y}=Xt(s.outsideRangeLowerColor??q.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:x,opacity:w}=Xt(s.outsideRangeUpperColor??q.heatChart.gradientHeatRules.outsideRangeUpperColor),S=[{color:g,opacity:y,offset:0},{color:g,opacity:y,offset:A},{color:f.color,opacity:f.opacity,offset:A},{color:m.color,opacity:m.opacity,offset:p},{color:x,opacity:w,offset:p},{color:x,opacity:w,offset:1}],T=(L,$,I)=>{let U=Qs(`heatLegendLabel${I}`,t.uid),P=t.markerContainer.children.values.find(Y=>Y instanceof Kt&&Y.get("id")===U),Q=P&&!P.isDisposed()?P:void 0,G=t.startLabel;if(Q||(Q=Kt.new(t.root,{id:U,position:"absolute",isMeasured:!1,centerX:je,centerY:je,paddingLeft:0}),t.markerContainer.children.push(Q)),Q.setAll({fill:G.get("fill"),fontSize:G.get("fontSize"),fontFamily:G.get("fontFamily")}),Q.set("text",L.toString()),t.get("orientation")==="vertical"){let Y=G.localBounds().top,ee=G.get("fontSize")??0;if(typeof ee=="number"){let te=q.heatChart.legend.minMaxLabelPadding;Q.set("x",Y-ee*2-te)}else Q.set("x",Y);Q.set("y",Bt($*100)),Q.set("centerY",je)}else{Q.set("x",Bt($*100));let Y=t.startLabel.localBounds().bottom,ee=q.heatChart.legend.minMaxLabelPadding;Q.set("y",-Y-ee),Q.set("centerX",Hr)}};A>0&&A<1&&T(u,A,"Min"),p>0&&p<1&&T(d,p,"Max");let F=()=>{let L;if(t.markerContainer.children.length>0&&t.markerContainer.children.each($=>{$ instanceof or&&(L=$)}),L){let $=0;t.get("orientation")==="vertical"&&($=90),L.set("fillGradient",al.new(t.root,{stops:S,rotation:$}))}};if(t.markerContainer.children.length>0)F();else{let L=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(L.dispose(),F())})}}}else{let n=()=>{if(t.get("orientation")==="vertical"){let o;t.markerContainer.children.length>0&&t.markerContainer.children.each(l=>{l instanceof or&&(o=l)}),o&&o.set("rotation",180)}};if(t.markerContainer.children.length>0)n();else{let o=t.markerContainer.children.events.once("push",()=>{t.markerContainer.children.length>0&&(o.dispose(),n())})}}}function Ok(a,t){if(a!==void 0){let e={type:V.Text,visible:t?.visible,content:{...t?.body,type:Rt.TS,text:" "}};[a.startLabel,a.endLabel].forEach(i=>{Cn({label:i,labelConfig:e,skipSettingText:!0,skipSettingXAndY:!0})})}}function Kw(a){let t=Qs(va,a.uid);[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(e=>{let i=Di({childId:t,parent:e,useChildId:!0});i&&(i.children.values.filter(r=>r instanceof xo).forEach(r=>{r.dispose()}),e.children.removeValue(i),i.dispose()),e.markDirty()}),Lk(a,{}),pX(a)}function Zw(a,t){let e=vA({root:t.root,parent:t,index:0,id:Qs(eo,t.uid)});return e.set("paddingTop",q.heatChart.legend.titlePadding),Qc({chart:a,label:e,labelType:Wt.LegendTitle}),e}function dw(a){let{chart:t,legendConfig:e,container:i}=a,r=Qs(va,t.uid),s=i;if(s||[t.bottomAxesContainer,t.rightAxesContainer,t.leftAxesContainer,t.topAxesContainer].forEach(n=>{let o=Di({childId:r,parent:n,useChildId:!0});o&&(s=o)}),s!==void 0){let n=Di({childId:eo,parent:s})??Zw(t,s);if(e!==void 0){let{title:o,visible:l}=e,{legendTitle:h}=q.legendProperties;if(o!==void 0){Cn({label:n,labelConfig:{...o,visible:l!==!1&&o.visible!==!1},defaults:{...h,verticalCenter:"top"}});let c=fe(t.uid,"config")?.legend?.position??q.heatChart.legend.position;c===st.Left||c===st.Right?(n.set("maxWidth",250),gl({chart:t,label:n,labelType:Wt.LegendTitle})):n.set("maxWidth",void 0),Ek({legendContainer:s,chart:t})}else Li(n,!1)}}}function AX(a,t){let{root:e}=a,i=fe(a.uid,"config"),r=i?.legend,s=a.series.values[0];Kw(a);let n=Tk(a,i??t),o=Re.new(e,{id:Qs(va,a.uid),layout:e.verticalLayout});return o.children.push(n),Zw(a,o),dw({chart:a,legendConfig:r,container:o}),kk({series:s,legend:n,chart:a}),r!==void 0&&r.visible!==!1&&(Dk({chart:a,legend:n,legendContainer:o}),Aw({legend:n,chart:a,legendContainer:o})),n}function Aw(a){let{legend:t,chart:e,legendContainer:i}=a,r=fe(e.uid,"config"),s=q.heatChart.legend,n=r?.legend?.position??s.position;if(n===st.Left||n===st.Right)t.set("height",ge),i.set("height",ge),Ek({legendContainer:i,chart:e});else{let o=Di({childId:eo,parent:i}),l=r?.legend?r.legend.visible??!0:!1,h=r?.legend?.title?r.legend.title.visible??!0:!1,c=o instanceof Kt&&l&&h?o.height()>0?o.height():s.titleHeight+s.titlePadding:0,u=n===st.Top?s.topHeight:s.bottomHeight;t.set("height",u),i.set("height",u+c+20)}}function Ek(a){let{legendContainer:t,chart:e}=a,i=fe(e.uid,"config"),r=q.heatChart.legend,s=i?.legend?.position??r.position;if(s!==st.Left&&s!==st.Right)return;let n=Di({childId:eo,parent:t}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof Kt&&o){let l=()=>{let h=n.width(),c=r.width,u=Math.max(h+r.legendPadding*2,c);t.set("width",u)};n.width()>0?l():n.events.once("boundschanged",l)}else t.set("width",r.width)}function pX(a){let t=Di({childId:Gv,parent:a});t instanceof Re&&t.set("marginTop",0)}function fX(a){let t,e=Qs(va,a.uid);return[a.bottomAxesContainer,a.rightAxesContainer,a.leftAxesContainer,a.topAxesContainer].forEach(i=>{let r=Di({childId:e,parent:i,useChildId:!0});if(r){let n=r.children.values.find(o=>o instanceof xo);if(n){t=n;return}}let s=i.children.values.find(n=>n instanceof xo);if(s){t=s;return}}),t}function mX(a){let{chart:t,chartConfig:e,heatLegendPositionChanged:i,heatRulesTypeChanged:r}=a,{legend:s}=e,n=s!==void 0&&s.visible!==!1,o=t.series.values[0];if(i||r)Kw(t),n&&o instanceof Ri&&yu(()=>{let l=Tk(t),h=Re.new(t.root,{id:Qs(va,t.uid),layout:t.root.verticalLayout});h.children.push(l),Zw(t,h),dw({chart:t,legendConfig:s,container:h}),AI(t,l),Dk({chart:t,legend:l,legendContainer:h}),kk({series:o,legend:l,chart:t}),Aw({legend:l,chart:t,legendContainer:h})});else if(o instanceof Ri){let l=fX(t);if(l){AI(t,l),dw({chart:t,legendConfig:s}),Ok(l,s);let h=l.parent;h?.get("id")===Qs(va,t.uid)&&Li(h,n),Li(l,n),dX(l,t),h&&Aw({legend:l,chart:t,legendContainer:h}),yu(()=>{Ik(l,()=>{$k({legend:l,series:o,chartConfig:e})})})}}}function gX(a,t){let e=!1;if(t===st.Right||t===st.Left)e=!0;else{let i=a.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(e=!a.dataItems.some(r=>r.get("itemContainer").bounds().left!==i))}return e}function yX(a){let t=!1,e=a.dataItems[0]?.get("itemContainer").bounds().bottom;return e!==void 0&&(t=!a.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==e)),t}function vX(a){Hw(a.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapters.add("text",(t,e)=>{let i=t??"",r=XW(a.uid,"pieChartLegendValueLabelsFormatter");return r!==void 0&&(i=r(e.dataItem?.get("value")??0,e.dataItem?.get("valuePercentTotal")??0)),i}),a.valueLabels.template.set("text","")}function Mk(a){let{legend:t,seriesConfig:e,webChartLegend:i,pieChartLegendValueLabelFormatter:r,chart:s}=a,{visible:n,body:o,displayNumericValue:l,displayPercentage:h}=i??{};if(ze(e)===V.PieSeries){let{numericValueFormat:c,percentValueFormat:u,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f}=e[0],m=l??q.pieChart.displayNumericValueOnLegend,g=h??q.pieChart.displayPercentageOnLegend,y=r;if(r===void 0){let $=zw({pieChart:s,valueIntlOptions:c?.intlOptions,percentageIntlOptions:u?.intlOptions,displayNumericValue:m,displayPercentage:g,valuePrefix:d,valueSuffix:A,percentagePrefix:p,percentageSuffix:f});y=(I,U)=>$("",I,U)}zW(t.uid,{pieChartLegendValueLabelsFormatter:y});let x=fe(s?.uid??0,"config")?.legend?.position??q.legendProperties.position,w=i?.valueLabelMaxWidth,S=gX(t,x),T={type:V.Text,visible:n,content:{...o,type:Rt.TS,text:".",verticalAlignment:"middle",horizontalAlignment:S?"right":"center"}};Cn({label:t.valueLabels.template,labelConfig:T,defaults:q.legendProperties.valueLabels});let F=fe(s?.uid??0,"rtl")??!1,L=w!==void 0&&!Number.isNaN(w);t.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:F?"right":"left",disabled:m===!1&&g===!1,width:L?w:null,oversizedBehavior:L?"wrap":"none"})}}function bX(a,t){a.labels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.labelMaxWidth,n=r?.legend?.position??q.legendProperties.position;if(n===st.Right||n===st.Left)i=s??q.legendProperties.legendLabels.maxWidth;else if(s!==void 0)i=s;else{let o=0;a.valueLabels.template.get("forceHidden")||a.valueLabels.each(h=>{let c=h.get("width",0);typeof c=="number"&&(o=Math.max(o,c))});let l=a.get("width",200);typeof l=="number"&&(i=l+o)}return i}),a.valueLabels.template.adapters.add("maxWidth",e=>{let i=e,r=fe(t.uid,"config"),s=r?.legend?.valueLabelMaxWidth,n=r?.legend?.position??q.legendProperties.position;return n===st.Right||n===st.Left?i=s??q.legendProperties.valueLabels.maxWidth:i=s??Number.NaN,i})}function Rk(a,t){let e=0;for(let i of a.dataItems){let r=i.get("label")?._contentWidth??0;e=Math.max(e,r)}return t&&e>t?t:e}function xX(a,t){for(let e of a.dataItems)e.get("label")?.set("width",t)}function _X(a,t){let e=0;for(let i of a.dataItems){let r=i.get("marker")?._contentWidth??0,s=i.get("valueLabel")?._contentWidth??0,n=r+t+s;e=Math.max(e,n)}return Math.ceil(e)+q.legendPadding}function Uk(a,t){yu(()=>{let e=yX(a),i=t===st.Right||t===st.Left||!e;xX(a,i?Rk(a):void 0)})}function CX(a){let{legend:t,chart:e,seriesConfig:i,legendConfig:r}=a,{displayCategory:s}=r??{},n=s??q.pieChart.displayCategoryOnLegend,o=fe(e?.uid??0,"rtl")??!1;t.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:r?.labelMaxWidth!==void 0&&!Number.isNaN(r.labelMaxWidth)?"wrap":"none"}),yu(()=>{let l=Rk(t,r?.labelMaxWidth),h=_X(t,l);t.itemContainers.template.setAll({width:h,layout:e.root.horizontalLayout}),bX(t,e),Mk({legend:t,seriesConfig:i,webChartLegend:r,chart:e});let c=r.position??q.legendProperties.position;Uk(t,c),t.markDirty()})}function Vk(a){return a?.[0].type===V.HeatSeries&&a[0].heatRulesType!==ku.Renderer}function Nk(a){let t=a.get("id");a.on("visible",(e,i)=>{if(i){let{chart:r}=i;if(r instanceof fs){let s=Di({childId:va,parent:r});s!==void 0&&s.dataItems?.forEach(n=>{n.get("id")===t&&s.set("opacity",e?1:q.legendProperties.legendLabelReducedOpacity)})}}})}function wX(a){let t=a.target.dataItem;if(t?.dataContext!==void 0){let{dataContext:e}=t,i=typeof e=="object"&&e!==null&&"component"in e?e.component:e;if(i instanceof Wr){let r={visible:!i.get("visible")};rh(i)||Kf(i)?r.overlayType=bi(i.uid,"type"):r.seriesId=i.get("id"),ox(r,i.root.dom)}}}function BX(a){a.itemContainers.template.events.on(Ji.Click,wX)}function SX(a,t){let e=fe(t.uid,"rtl")??!1;a.itemContainers.template.setAll({reverseChildren:e})}function FX(a){let{chart:t,legend:e,chartConfig:i,showEmptySeries:r,queryObject:s}=a,n=ze(i.series);if(t.series.length>1||n===V.PieSeries||n===V.HeatSeries){let o=[],l=kt(i.series);switch(n){case V.BoxPlotSeries:{let h=oa(i);o=t.series.values.filter(c=>{let u=!1;return h?u=c instanceof ei&&!(c instanceof Bo):u=c instanceof La,u});break}case V.HistogramSeries:{o=t.series.values.filter(h=>{let c=!1;if(bi(h.uid,"isOverlay")){let u=i.series[0].type===V.HistogramSeries?i.series[0].overlays:void 0,d=bi(h.uid,"type"),A;switch(d){case vr.Mean:A=u?.mean?.created;break;case vr.Median:A=u?.median?.created;break;case vr.Normal:A=u?.comparisonDistribution?.created;break;case vr.StdDev:A=u?.standardDeviation?.created;break}c=A===!0}return c});break}case V.PieSeries:{o=t.series.getIndex(0)?.dataItems??[];break}case V.ComboLineAndBarSeries:case V.LineSeries:case V.RadarSeries:case V.BarSeries:o=t.series.values.filter(h=>{let c=!0;if(!r){let u=i.series.find(d=>d.id===h.get("id"));if(u!==void 0&&"y"in u&&typeof u.y=="string"){let{x:d,y:A}=u,p=l===ke.BarAndLineSplitByNoAggregation?`${A}_${vh({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:A;c=h.data.values.some(f=>lT({dataItem:f,x:d,y:p,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))}}return c});break;case V.ScatterSeries:{let h=Wk(t);h!==void 0&&(o=[h]);break}case V.HeatSeries:{let h=t.series.getIndex(0);if(h instanceof Ri&&so(i)&&!bs(s)){let c=wk({queryObject:s,chartConfig:i,forLegend:!0,series:h});if(c){o=[...c];let u=VX(t);u!==void 0&&o.push(u)}}break}}e.data.setAll(o)}}function pI(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("itemContainer").width();t=Math.max(i,t)}),Math.ceil(t)}function fI(a){let t=0;if(a instanceof Kt&&a.get("visible")!==!1&&a.get("forceHidden")!==!0){let e=a.width();Number.isFinite(e)&&(t=e)}return t}function mI(a){let t=0;return a.series.values.forEach(e=>{let i=e.bulletsContainer;i&&i.children.values.forEach(r=>{t=Math.max(t,fI(r))}),t===0&&e.dataItems.forEach(r=>{let s=r.bullets;if(s)for(let n of s)t=Math.max(t,fI(n.get("sprite")))})}),Math.ceil(t)}function Rc(a,t){let{root:e}=a,i=Di({childId:va,parent:a});if(i!==void 0){let r=fe(a.uid,"config"),s=fe(a.uid,"rtl"),n=us(r),o=ze(r?.series),l=ks(r),h=r?.series?.some(He=>He.dataLabels&&He.dataLabels?.visible!==!1)??!1,c=r?.title?r.title.visible??!0:!1,u=r?.subtitle?r.subtitle.visible??!0:!1,d=r?.footer?r.footer.visible??!0:!1,A=r?.legend?r.legend.visible??!0:!1,p=r?.legend?.title?r.legend.title.visible??!0:!1,f=Di({childId:Gv,parent:a}),m=f instanceof Re&&c?f.height():0,g=Di({childId:Yw,parent:a}),y=g instanceof Re&&u?g.height():0,x=Di({childId:Yv,parent:a}),w=x instanceof Re&&d?x.height():0,S=Di({childId:eo,parent:i}),T=S instanceof Kt&&A&&p?S?.height():0,F=r?.legend?.position??q.legendProperties.position,L,$=t.get("verticalScrollbar"),I=je,U=je,P=e.verticalLayout,Q=je,G=je,Y=je,ee=je,te=0,le,z=t.height()+T,K=0,we=0,se=h&&!n?q.chartContainer.paddingTop??0:0,de=0,$e,Ye;switch(F){case st.Left:P=e.verticalLayout,Q=Hr,Y=Hr,G=Hr,ee=Hr,le=void 0,I=Hr,U=Hr,K=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=pI(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Right:P=e.verticalLayout,Q=ge,Y=ge,G=Hr,ee=Hr,le=void 0,I=Hr,U=Hr,we=i.width(),te=m+y,z<a.seriesContainer.height()&&(te+=a.seriesContainer.height()/2-z/2),L=pI(t),$?.width()!==void 0&&L&&$.isVisible()&&(L+=$.width()+q.scrollbarPadding),s&&($e=ge,Ye=L);break;case st.Top:P=e.gridLayout,Q=je,Y=je,G=Hr,ee=Hr,le=ge,I=je,U=je,se+=z,te+=m+y,L=void 0,s&&($e=void 0);break;case st.Bottom:P=e.gridLayout,Q=je,Y=je,G=ge,ee=ge,le=ge,I=je,U=je,de=z,te=-de-w,L=void 0,s&&($e=void 0);break}if(n&&h&&(o===V.LineSeries||o===V.ComboLineAndBarSeries||o===V.BarSeries&&l===$i.Side)){let He=mI(a);if(He>0)we+=He;else if(a.series.length>0){let qe=t.root.events.on(Ji.FrameEnded,()=>{let Tt=mI(a);Tt>0&&(s?K+=Tt:we+=Tt,qe.dispose(),Rc(a,t))})}}(L===void 0||L>0)&&(t.setPrivate("width",L),s&&t.itemContainers.template.setAll({centerX:$e,dx:Ye})),t.setAll({layout:P,x:I,centerX:U}),i.setAll({x:Q,y:G,centerX:Y,centerY:ee,dy:te,width:le,height:0}),a.chartContainer.setAll({paddingBottom:de,paddingTop:se,paddingLeft:K,paddingRight:we}),le===void 0&&(i.setPrivate("width",void 0),i.markDirty()),a instanceof Us&&Uk(t,F)}}function TX(a){let{chart:t,legend:e,legendContainer:i}=a,r=Di({childId:eo,parent:i});r&&r.on("visible",()=>{e.root.events.once(Ji.FrameEnded,()=>{Rc(t,e)})}),i.events.on(Ji.BoundsChanged,()=>{Rc(t,e)}),e.events.on(Ji.BoundsChanged,()=>{Rc(t,e)}),t.seriesContainer.onPrivate("height",()=>{Rc(t,e)}),t.series.each(s=>{s.events.on(Ji.DataValidated,()=>{Rc(t,e)})})}function Qk(a,t){let e=vA({root:t.root,parent:t,index:0,id:Qs(eo,t.uid)});return e.set("paddingTop",10),Qc({chart:a,label:e,labelType:Wt.LegendTitle}),e}function PX(a,t){t.markers.template.setAll({width:q.legendProperties.legendMarkersSize,height:q.legendProperties.legendMarkersSize}),t.markerRectangles.template.adapters.add("fillOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ts.fillOpacityField in r?r[Ts.fillOpacityField]:e;return typeof s=="number"?s:e}),t.markerRectangles.template.adapters.add("strokeOpacity",(e,i)=>{let r=i.parent?.dataItem?.dataContext,s=r&&Ts.strokeOpacityField in r?r[Ts.strokeOpacityField]:e;return typeof s=="number"?s:e}),t.labels.template.adapters.add("text",(e,i)=>{let r=e,s=fe(a.uid,"config");if(ze(s?.series)!==V.HeatSeries){let n=i.dataItem?.component;if(n instanceof Ur){let o=n.get("categoryField")??"",l=i.dataItem,h=l?.get("category"),c=l?.dataContext;r=h??(c?.[o]??e)?.toString()}else n instanceof Wr&&(r=n.get("name"))}if(s!==void 0){let{legend:n}=s,o={...n?.body,type:Rt.TS,text:r};r=xa({textSymbol:o,format:"amChartsV5"})}return r})}function DX(a,t){t.seriesContainer.onPrivate("height",e=>{let i=0,r=fe(t.uid,"config"),s=r?.legend,n=Di({childId:va,parent:t});if(n!==void 0){let l=Di({childId:eo,parent:n});l!==void 0&&s?.visible!==!1&&s?.title?.visible!==!1&&(i=l.height())}let o=r?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(r?.legend?.position===st.Top||r?.legend?.position===st.Bottom?o=q.legendProperties.maxHeight:typeof e=="number"&&(o=e-i)),a.set("maxHeight",o)})}function LX(a,t,e){a.events.on(Ji.DataValidated,()=>{a.dataItems.length>0&&Hk(a,t,e)})}function IX(a){let t;if(a!==void 0){let e=fe(a?.uid,"config");t=fe(a.uid,"rtl")&&(e?.legend?.position===st.Top||e?.legend?.position===st.Bottom)}return t??!1}function kX(a){let t="";if(a instanceof vi){let e=fe(a.uid,"config"),i=us(e),r=i?B.Rotated:B.NonRotated,s=ks(e),n=B.SideBySide;s===$i.Stacked?n=B.Stacked:s===$i.Stacked100&&(n=B.Stacked100);let o=fe(a.uid,"rtl")?B.RTL:B.LTR,l;switch(e?.legend?.position){case st.Left:l=B.LegendLeft;break;case st.Top:l=B.LegendTop;break;case st.Bottom:l=B.LegendBottom;break;case st.Right:default:l=B.LegendRight;break}let h=i?a.yAxes.getIndex(0):a.xAxes.getIndex(0),c;h instanceof hr?c=B.DateAxis:h instanceof ti?c=B.ValueAxis:c=B.CategoryAxis;let u=e?.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===zA.Descending?B.OrderByFieldsDESC:B.OrderByFieldsASC;t=`${r}-${o}-${n}-${l}-${c}-${u}`}return t}function $X(a){let t=kX(a);return _1.has(t)}function Hk(a,t,e){switch(e){case V.HistogramSeries:case V.PieSeries:a.set("reverseChildren",IX(t));break;case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:a.set("reverseChildren",$X(t));break}}function OX(a,t){let e=Di({childId:va,parent:a});if(e!==void 0){let i=Di({childId:eo,parent:e})??Qk(a,e);if(t!==void 0){let{title:r,visible:s}=t,{legendTitle:n}=q.legendProperties;r!==void 0?(Cn({label:i,labelConfig:{...r,visible:s!==!1&&r.visible!==!1},defaults:{...n,verticalCenter:"top"}}),gl({chart:a,label:i,labelType:Wt.LegendTitle})):Li(i,!1)}}}function EX(a,t=!1){let e=t?q.legendProperties.roundedMarkerRadius:q.legendProperties.rectangleMarkerRadius;a.markerRectangles.template.setAll({cornerRadiusTL:e,cornerRadiusTR:e,cornerRadiusBL:e,cornerRadiusBR:e})}function MX(a){let{legend:t,legendConfig:e,chartType:i,seriesConfig:r,chart:s}=a;if(t!==void 0){let n={type:V.Text,visible:e?.visible,content:{...e?.body,type:Rt.TS,text:" "}};if(i===V.PieSeries){let o=Di({childId:va,parent:s});o!==void 0&&Di({childId:eo,parent:o})!==void 0&&Mk({legend:t,seriesConfig:r,webChartLegend:e,chart:s})}Cn({label:t.labels.template,labelConfig:n}),t.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function RX(a,t){t===!0&&a.itemContainers.each(e=>{e.events.disableType(Ji.Click)})}function UX(a){let{legend:t,chart:e,seriesConfig:i}=a;i?.[0].type!==V.HeatSeries&&t.itemContainers.template.adapters.add("cursorOverStyle",()=>fe(e.uid,"options")?.togglingLegendItemsDisabled===!0?"default":"pointer")}function gI(a,t){let{root:e}=a,i;if(Vk(t?.series))i=AX(a,t);else{let r=Re.new(e,{id:Qs(va,a.uid),layout:e.verticalLayout}),s=t?.series?.[0].type===V.HeatSeries?{nameField:Ts.nameField,fillField:Ts.fillField,strokeField:Ts.strokeField,fillOpacityField:Ts.fillOpacityField,strokeOpacityField:Ts.strokeOpacityField}:{};i=nl.new(e,{...s,verticalScrollbar:ll.new(e,{orientation:"vertical"})}),a instanceof Us?vX(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),PX(a,i),Qk(a,r),BX(i),SX(i,a),TX({chart:a,legend:i,legendContainer:r}),DX(i,a),LX(i,a,ze(t?.series)),UX({legend:i,chart:a,seriesConfig:t?.series}),r.children.push(i),a.children.push(r)}return i}function VX(a){let t=fe(a.uid??NaN,"config"),e=t?.series[0].heatRulesType===ku.Renderer,i=a.series.values[0].data.values.some(s=>s[xr.valueField]===null||e&&!s[pt.rendererSymbolField]),r;if(i){let s=t?.series[0].emptyCells,n=s?.symbol?.color??q.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:l}=Dv(t?.series[0].gridLine);r={[Ts.nameField]:s?.text??q.heatChart.emptyCells?.text??"",[Ts.fillField]:Xt(n).color,[Ts.fillOpacityField]:Xt(n).opacity,[Ts.strokeField]:o,[Ts.strokeOpacityField]:l}}return r}function yI(a){let{chart:t,legend:e,showLegend:i}=a,r=Di({childId:va,parent:t});r&&(Li(r,i),Li(e,i))}function vI(a){let{chart:t,showLegend:e,legendConfig:i}=a;if(i){let{title:r,visible:s}=i,n=r!==void 0&&s!==!1&&r.visible!==!1,o=Di({childId:va,parent:t});if(o){let l=Di({childId:eo,parent:o});l&&(r?Li(l,n):Li(l,e))}}}function jk(a){let{chart:t,chartConfig:e,legend:i,heatChartLegendUpdatedNeeded:r,showEmptySeries:s,seriesConfig:n,queryObject:o,heatRulesTypeChanged:l,heatLegendPositionChanged:h}=a,{legend:c,series:u}=e;if(Vk(n)&&r)l&&i&&(yI({chart:t,legend:i,showLegend:!1}),vI({chart:t,showLegend:!1,legendConfig:c})),mX({chart:t,chartConfig:e,heatLegendPositionChanged:h,heatRulesTypeChanged:l});else if(i instanceof nl&&(n?.[0].type===V.HeatSeries&&Kw(t),Di({childId:va,parent:t})!==void 0)){let d=ix(u)&&c!==void 0&&c.visible!==!1;if(yI({chart:t,legend:i,showLegend:d}),vI({chart:t,showLegend:d,legendConfig:c}),d){EX(i,c?.roundMarkers),MX({legend:i,legendConfig:c,chartType:ze(u),seriesConfig:n,chart:t}),Hk(i,t,ze(u)),FX({chart:t,legend:i,chartConfig:e,showEmptySeries:s,queryObject:o}),OX(t,c),Rc(t,i);let A=fe(t.uid,"options");RX(i,A?.togglingLegendItemsDisabled),t instanceof Us&&CX({legend:i,chart:t,seriesConfig:n,legendConfig:c})}}}function NX(a){let{seriesConfig:t,series:e,sizePolicyChanged:i}=a,{sizePolicy:r}=t,s=e.get("heatRules")?.[0],n=bi(e.uid,"bulletTemplate");if(n!==void 0)if(r!==void 0){let{scaleType:o,field:l,minSize:h,maxSize:c}=r,u=AF(),d=t.markerSymbol?.size??qb().size??1,A=(h??u.minSize)/d,p=(c??u.maxSize)/d;s!==void 0?i&&(s.min=A,s.max=p,s.logarithmic=o===Xb.Logarithmic,e.set("valueField",l),e.markDirtySize()):e.setAll({valueField:l,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:A,max:p,dataField:"value",logarithmic:o===Xb.Logarithmic}]})}else e.get("heatRules")?.pop(),e.setAll({valueField:void 0,calculateAggregates:!1})}function rh(a){return a.get("id")===q.overlayId.scatterplotTrendLine}function QX(a){return a.series.values.find(t=>!rh(t))}function Wk(a){return a.series.values.find(t=>rh(t))}function HX(a){let{root:t,xAxis:e,yAxis:i,seriesConfig:r}=a,{x:s,y:n}=r,o=ei.new(t,{xAxis:e,yAxis:i,valueXField:s,valueYField:n,layer:q.zIndexes.scatterplotTrendLine});return o.set("id",q.overlayId.scatterplotTrendLine),Gr(o.uid,{type:vr.Trendline}),o}function jX(a){let{markerSeries:t,options:e,queryObject:i,errorStrings:r}=a,s=It.new({});Gr(t.uid,{bulletTemplate:s}),ns(s,e?.selectionTheme),t.bullets.push(n=>{let o=ft.new(n,{nonScalingStroke:!0,tooltip:zv({series:t,tooltipFormatter:e?.tooltipFormatter})},s);return To({element:o,series:t,queryObject:i,errorStrings:r}),qk(o,t),fa.new(n,{sprite:o})})}function WX(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{x:h,y:c,id:u}=i,d=[],A=ei.new(t,{xAxis:r,yAxis:s,valueXField:h,valueYField:c,id:u,opacity:0,valueField:"value",maskBullets:!1,layer:q.zIndexes.lineSeries});A.strokes.template.set("forceHidden",!0),jX({markerSeries:A,options:n,queryObject:o,errorStrings:l}),TA(A,e),d.push(A);let p=HX({root:t,xAxis:r,yAxis:s,seriesConfig:i});return Nk(p),d.push(p),A.appear(),d}function XX(a){let{root:t,trendLineSeries:e,data:i,dataWasUpdated:r,seriesWereReinitialized:s,valueFormat:n,defaultR2Value:o,chartConfig:l}=a,{chart:h}=e,c=l.series[0],u=c.overlays?.trendLine,d=u?.symbol??{type:Rt.SLS},A=u?.created===!0&&u.visible!==!1;if(i&&(r||s)){let p=q.scatterplotSeries,f=h!==void 0?fe(h.uid,"formatLocale"):void 0,{x:m,y:g}=c;e.setAll({valueXField:m,valueYField:g}),e.data.setAll(i.trendLinePoints??q.scatterplotSeries.trendLinePoints);let y=Number.isFinite(i.r2)?bA({root:t,value:i.r2??p.r2,valueFormat:n,formatLocale:f}):void 0,x=y!==void 0?`R\xB2 = ${y}`:o;e.set("name",x)}d.color===void 0&&(d.color=gh({colorIndex:1})),Fo({element:e,lineSymbol:d,visible:A})}function zX(a){let{root:t,chartConfig:e,markerSeries:i}=a,r=i.chart;if(r){let s=e.series[0],n=Fl(e),o,l,h=qb(),c=new Set;i.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");if(A!==void 0){let p=on({dataItem:d?.dataContext,seriesConfig:s,chartSubType:ke.NonSpecific,colorMatch:n}),f=Ja({root:t,element:A,seriesSymbol:s.markerSymbol??h,rendererSymbol:p,colorMatch:n});o=f.symbolWithColorInfo,l=f.stylingInfo,mA(A,l),c.add(JSON.stringify(l))}}),o=c.size>1?void 0:o;let u=new Map;u.set(0,o),nn({data:u,htmlContainer:t.dom,chartId:i.chart?.get("id"),colorMatchApplied:PA(r)})}}function GX(a){let{dataWasUpdated:t,seriesWereReinitialized:e,data:i,series:r,chartConfig:s}=a;if((t||e)&&i){let{x:n,y:o}=s.series[0];if(r.setAll({valueXField:n,valueYField:o}),s.series[0].type===V.ScatterSeries&&s.series[0].sizePolicy){let{field:l}=s.series[0].sizePolicy;i.dataItems=i.dataItems.sort((h,c)=>typeof c[l]=="number"&&typeof h[l]=="number"?c[l]-h[l]:0)}r.data.setAll(i.dataItems)}}function YX(a){let{root:t,chartConfig:e,seriesConfig:i,options:r,fieldList:s,series:n,trendLineSeries:o,data:l,dataWasUpdated:h,seriesWereReinitialized:c,sizePolicyChanged:u,utilsStrings:d}=a,{axes:A}=e,{tooltipFormatter:p}=r??{};n.set("id",i.id);let f=bi(n.uid,"bulletTemplate");f&&ns(f,r?.selectionTheme),Li(n.bulletsContainer,i.visible),XX({root:t,trendLineSeries:o,chartConfig:e,data:l,dataWasUpdated:h,seriesWereReinitialized:c,valueFormat:Yb(),defaultR2Value:d.notAvailable}),NX({seriesConfig:i,series:n,sizePolicyChanged:u}),sh(a)&&ah({styleCallback:()=>zX({root:t,chartConfig:e,markerSeries:n}),series:n,seriesConfig:i}),Q4({axesConfig:A,seriesConfig:i,series:n,fieldList:s,tooltipFormatter:p}),GX({dataWasUpdated:h,seriesWereReinitialized:c,data:l,series:n,chartConfig:e})}function KX(a){a.series.each(t=>{t instanceof ei?t.dataItems.forEach(e=>{let i=e.bullets?.[0];i&&ra({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):t instanceof Ri?t.columns.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})}):t instanceof Ur&&t.slices.each(e=>{ra({element:e,selected:!1,backToDefaultState:!0})})})}function Yc(a){let{chart:t,selectionSource:e}=a,i=fe(t.uid,"currentSelectionDataItems");Xr(t.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Ww(t)&&KX(t),i&&Vu({data:{selectionSource:e??Tr.ClearSelection},htmlContainer:t.root.dom})}function Xk(a){let t=a?.selection.width();return t!==void 0&&t>0&&t!==2e7}function To(a){let{element:t,series:e,queryObject:i,errorStrings:r}=a;t.events.on(Ji.PointerUp,async s=>{let{chart:n}=e;if(n){let o=n.get("cursor");if(!Xk(o)){let l=fe(e.chart?.uid??Number.NaN,"actionMode");if(!fe(e.chart?.uid??Number.NaN,"filterBySelection")&&l!==Ut.None&&l!==Ut.Zoom){let h=s.target,c=x4(s,e);ra({element:h,selected:yl(h.uid,"selected")!==!0}),c&&n.series.each(u=>{u instanceof ei?u.dataItems.forEach(d=>{let A=d.bullets?.[0]?.get("sprite");A!==h&&ra({element:A,selected:!1})}):u instanceof Ri?u.columns.each(d=>{d!==h&&ra({element:d,selected:!1})}):u instanceof Ur&&u.slices.each(d=>{d!==h&&ra({element:d,selected:!1})})}),await qw({chart:n,selectionSource:Tr.SelectionByClick,queryObject:i,errorStrings:r})}}}})}function bI(a,t){let e=Number.NaN,i=Number.NaN;if(a instanceof Al){let r=t.get("renderer")instanceof Vs,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");if(s!==void 0&&n!==void 0)if(t instanceof Sr)e=t.axisPositionToIndex(t.toAxisPosition(s)),i=t.axisPositionToIndex(t.toAxisPosition(n));else if(t instanceof hr){e=t.positionToDate(t.toAxisPosition(s)).getTime(),i=t.positionToDate(t.toAxisPosition(n)).getTime();let o=t.getPrivate("baseInterval"),l=Dc.getDuration(o.timeUnit,o.count)*(t.chart?.series.getIndex(0)?.get("locationX")??1);e-=l,i-=l}else t instanceof ti&&(e=t.positionToValue(t.toAxisPosition(s)),i=t.positionToValue(t.toAxisPosition(n)))}else{let r=t.get("renderer")instanceof as,s=a.getPrivate(r?"downPositionX":"downPositionY"),n=a.getPrivate(r?"positionX":"positionY");s!==void 0&&n!==void 0&&(e=s*(r?t.width():t.height()),i=n*(r?t.width():t.height()))}return{value1:e,value2:i}}function ZX(a){let t=()=>{let e=a instanceof vi?a.get("cursor"):void 0,i=fe(a.uid,"filterBySelection");(e===void 0||!Xk(e))&&!i&&Yc({chart:a})};a.get("background")?.events.on(Ji.Click,t),a instanceof vi&&a.plotContainer.events.on(Ji.PointerUp,t)}function qX(a){let{series:t,cursorBounds:e,multiSelect:i}=a,r=fe(t.chart?.uid??NaN,"config"),s=ze(r?.series);t.columns.each(n=>{let o=n.get("x"),l=n.get("y"),h=n.height()<0&&s!==V.HeatSeries,c=h?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof l=="number"){let u=h?l-c:l,d={left:o,right:o+n.width(),top:u,bottom:u+c};if(s===V.HeatSeries){let p=d.top;d.top=d.bottom,d.bottom=p}let A=!(d.left>e.right||d.right<e.left||d.top>e.bottom||d.bottom<e.top)||i&&yl(n.uid,"selected")===!0;ra({element:n,selected:A})}})}function JX(a){let{series:t,cursorBounds:e,multiSelect:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0]?.get("sprite");if(s){let n=r.bullets?.[0]?.get("sprite").get("x"),o=r.bullets?.[0]?.get("sprite").get("y"),l=typeof n=="number"&&typeof o=="number"&&n>=e.left&&n<=e.right&&o>=e.top&&o<=e.bottom||i&&yl(s.uid,"selected")===!0;ra({element:s,selected:l})}})}function ez(a){let{xAxis:t,series:e,cursorBounds:i,multiSelect:r}=a;e.dataItems.forEach(s=>{let n=s.bullets?.[0]?.get("sprite");if(n){let o=s.dataContext,l=s.get("valueX"),h=s.get("valueY");if(t instanceof Sr){let A=o?.[q.xAxisField];typeof A=="string"&&(l=t.categoryToIndex(A))}let c=typeof l=="number"&&l>=i.left&&l<=i.right,u=typeof h=="number"&&h>=i.top&&h<=i.bottom,d=c&&u||r&&yl(n.uid,"selected")===!0;ra({element:n,selected:d})}})}function tz(a){let{cursor:t,xAxis:e,yAxis:i}=a,r=t.get("behavior"),{value1:s,value2:n}=bI(t,e),{value1:o,value2:l}=bI(t,i),h={left:s>n?n:s,right:s>n?s:n,top:o<l?o:l,bottom:o<l?l:o};return r==="selectX"?(h.top=Number.NEGATIVE_INFINITY,h.bottom=Number.POSITIVE_INFINITY):r==="selectY"&&(h.right=Number.POSITIVE_INFINITY,h.left=Number.NEGATIVE_INFINITY),h}function iz(a){let{chart:t,queryObject:e,errorStrings:i}=a;t.get("cursor")?.events.on(Ji.SelectEnded,async r=>{let s=fe(t.uid,"actionMode");if(s===Ut.MultiSelection||s===Ut.MultiSelectionWithCtrlKey){let n=t.xAxes.getIndex(0),o=t.yAxes.getIndex(0);if(n&&o){let l=fe(t.uid,"config"),h=ze(l?.series),c=t.get("cursor"),u=tz({cursor:c,xAxis:n,yAxis:o}),d=uk(r);t.series.each(A=>{!rh(A)&&!Kf(A)&&(A instanceof Ri?qX({series:A,cursorBounds:u,multiSelect:d}):A instanceof ei&&(h===V.RadarSeries?ez({xAxis:n,series:A,cursorBounds:u,multiSelect:d}):JX({series:A,cursorBounds:u,multiSelect:d})))}),Li(c.selection,!1),await qw({chart:t,selectionSource:Tr.SelectionByRange,queryObject:e,errorStrings:i})}}})}function rz(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i,seriesType:r}=a;t.bullets.push(()=>{let s=fe(t.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??a.dataLabelsConfig,n=fa.new(t.root,{locationY:1,sprite:Kt.new(t.root,{populateText:!0,oversizedBehavior:"hide",centerY:ge,centerX:je,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:Xt(s?.content.color).color,fontSize:s?.content.font?.size})}),o=n.get("sprite");return o&&(sz({dataLabel:o,series:t,externalDataLabelFormatter:i}),t.chart&&s&&s?.visible!==!1&&dk({label:o,chart:t.chart,seriesType:r}),Xv({...a,dataLabel:o,dataLabelsConfig:s,labelDefaults:e,defaultDataLabelFormatter:zk})),n})}function sz(a){let{dataLabel:t,series:e,externalDataLabelFormatter:i}=a;t.adapters.remove("text"),t.adapters.remove("html");let r=i!==void 0?"html":"text";t.adapters.add(r,(s,n)=>{let o=s??"",l=bi(e.uid,"histogramDataLabelFormatter"),h=n.dataItem;if(h&&"dataContext"in h&&h.dataContext!==void 0&&l!==void 0){let{count:c,minValue:u,maxValue:d}=h.dataContext;o=l(c,u,d)}return r==="html"?Zr(o):o})}function zk(a){let{numberFormatter:t,dataLabelsConfigContent:e,externalDataLabelFormatter:i}=a;return(r,s,n)=>xa({textSymbol:{...e,text:t.format(r)},format:i===void 0?"amChartsV5":"html"})}function az(a){let{series:t,labelDefaults:e,externalDataLabelFormatter:i}=a;t.dataItems.forEach(r=>{let s=r.bullets?.[0];if(s){let n=s.get("sprite");n&&Xv({...a,dataLabel:n,labelDefaults:e,defaultDataLabelFormatter:zk,externalDataLabelFormatter:i})}})}function Gk(a){let{series:t,dataLabelsConfig:e}=a,i=e&&e?.visible!==!1,r=t.bullets.hasIndex(0);i?(r||rz(a),az(a)):r&&Xw(t,0)}function Kf(a){return[q.overlayId.histogramMean,q.overlayId.histogramMedian,q.overlayId.histogramStdDev,q.overlayId.histogramNormalDistribution].includes(a.get("id")??"")}function nz(a){let t="";switch(a){case vr.Mean:t=q.overlayId.histogramMean;break;case vr.Median:t=q.overlayId.histogramMedian;break;case vr.StdDev:t=q.overlayId.histogramStdDev;break;case vr.Normal:t=q.overlayId.histogramNormalDistribution;break}return t}function oz(a){let{series:t,seriesConfig:e,colorMatch:i,rendererSymbol:r}=a,{root:s}=t,n=t.chart;if(n){let o=e.fillSymbol??mF(),l=Ja({root:t.root,element:t.columns.template,seriesSymbol:o,rendererSymbol:r,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(l!==void 0){let h=new Map;h.set(0,l),nn({data:h,htmlContainer:s.dom,chartId:n.get("id"),colorMatchApplied:PA(n)})}}}function lz(a){let{series:t,data:e,dataWasUpdated:i,seriesWereReinitialized:r}=a;e&&(i===!0||r===!0)&&t.data.setAll(e.bins)}function yv(a){let{root:t,xAxis:e,yAxis:i,type:r,utilsStrings:s}=a,n=ei.new(t,{id:nz(r),valueXField:"x",valueYField:"y",xAxis:e,yAxis:i,visible:!1});return r===vr.Normal&&FA(n,s.overlays.normal),Gr(n.uid,{isOverlay:!0,type:r}),n.set("connect",!1),n.appear(),n}function hz(a){let{root:t,seriesConfig:e,xAxis:i,yAxis:r,options:s,chartConfig:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=e,u=Ri.new(t,{id:h,name:c,xAxis:i,yAxis:r,categoryXField:dd.Start,valueYField:dd.Count,maskBullets:!1});return ns(u.columns.template,s?.selectionTheme),To({element:u.columns.template,series:u,queryObject:o,errorStrings:l}),u.columns.template.setAll({width:ge}),Gk({series:u,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:s?.dataLabelFormatter}),TA(u,n),u.appear(),u}function uz(a){let{root:t,seriesConfig:e,xAxis:i,xAxisForOverlaySeries:r,yAxis:s,utilsStrings:n,options:o,chartConfig:l,queryObject:h,errorStrings:c}=a,u=[],d=hz({root:t,seriesConfig:e,xAxis:i,yAxis:s,options:o,chartConfig:l,queryObject:h,errorStrings:c});return u.push(d),yk(d,o?.tooltipFormatter),r&&(u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Mean,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Median,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.StdDev,utilsStrings:n})),u.push(yv({root:t,xAxis:r,yAxis:s,type:vr.Normal,utilsStrings:n}))),u}function cz(a){let{lineSeries:t,overlayConfig:e,data:i,utilsStrings:r}=a;if(!e)Li(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=bi(t.uid,"type"),h=s??{type:Rt.SLS},c=n===!0&&o!==!1;if(Li(t,c),e.symbol?.color===void 0&&(h.color=gh({colorIndex:rx(l),histogramOverlays:!0})),Fo({element:t,lineSymbol:h,visible:c}),i&&"bins"in i){let d=i.bins.map(w=>w.count),A=Math.max(...d),{mean:p,stddev:f,median:m}=i,g=p-f,y=p+f,x=[];switch(l){case vr.Mean:x=[{x:p,y:0},{x:p,y:A}];break;case vr.Median:x=[{x:m,y:0},{x:m,y:A}];break;case vr.StdDev:x=[{x:g,y:0},{x:g,y:A},{x:null,y:null},{x:y,y:0},{x:y,y:A}];break}t.data.setAll(x)}let u=t.data.getIndex(0)?.x;if(l===vr.StdDev&&(u=i?.stddev??bi(t.uid,"stddev"),Gr(t.uid,{stddev:u})),typeof u=="number"){let d=l;switch(l){case vr.Mean:d=r.overlays.mean;break;case vr.Median:d=r.overlays.median;break;case vr.StdDev:d=r.overlays.stdDev;break}let A=fe(t.chart?.uid??Number.NaN,"formatLocale"),p=bA({root:t.root,value:u,valueFormat:Yb(),formatLocale:A}),f=`${d}: ${p}`;FA(t,f)}}}function dz(a){let{lineSeries:t,overlayConfig:e,data:i,numberOfPoints:r}=a;if(!e)Li(t,!1);else{let{symbol:s,created:n,visible:o}=e,l=s??{type:Rt.SLS},h=n===!0&&o!==!1;if(Li(t,h),e?.symbol?.color===void 0&&(l.color=gh({colorIndex:rx(vr.Normal),histogramOverlays:!0})),Fo({element:t,lineSymbol:l,visible:h}),i&&"bins"in i){let{mean:c,stddev:u,min:d,max:A}=i,p=b4(i.bins),f=y4(d,A,r??q.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:v4({x:m,mean:c,stddev:u,scalingFactor:p})}));t.data.setAll(f)}}}function Az(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,data:s,options:n}=a;t.set("id",e.id),Li(t,e.visible),ns(t.columns.template,n?.selectionTheme),_u(t.columns.template,s?.bins?.length),FA(t,e.name);let o=s?.bins.find(l=>"symbol"in l)?.symbol;sh(a)&&ah({styleCallback:()=>oz({...a,rendererSymbol:o}),series:t,seriesConfig:e}),lz({series:t,seriesWereReinitialized:i,dataWasUpdated:r,data:s})}function pz(a){let{allChartSeries:t,seriesConfig:e,data:i,utilsStrings:r,fieldList:s,axes:n,options:o,dataLabelFormatter:l,chartConfig:h}=a,{tooltipFormatter:c}=o??{};for(let u=0;u<t.length;u++){let d=t[u];if(d instanceof ei&&bi(d.uid,"isOverlay")){let A=bi(d.uid,"type");if(A===vr.Normal)dz({lineSeries:d,overlayConfig:e.overlays?.comparisonDistribution,data:i});else{let p;switch(A){case vr.Mean:p=e.overlays?.mean;break;case vr.Median:p=e.overlays?.median;break;case vr.StdDev:p=e.overlays?.standardDeviation;break}cz({lineSeries:d,overlayConfig:p,data:i,utilsStrings:r})}}else d instanceof Ri&&(Az({...a,series:d}),Gk({series:d,seriesConfig:e,seriesType:V.HistogramSeries,dataLabelsConfig:e.dataLabels,externalDataLabelFormatter:l}),O4({axes:n,series:d,seriesConfig:e,fieldList:s,tooltipFormatter:c,utilsStrings:r,axesConfig:h.axes}))}}function fz(a){vx(),lx(a.root.dom),Yc({chart:a})}function mz(a){let{chart:t,chartType:e,showMean:i}=a;return t.series.values.filter(r=>{let s=!0;return rh(r)||Kf(r)||bi(r.uid,"isOverlay")===!0?s=!1:e===V.BoxPlotSeries&&(i?s=bi(r.uid,"isBoxPlotMeanLineSeries")===!0:s=r instanceof La),s}).every(r=>bi(r.uid,"isSelectionApplied")===!0)}function gz(a){a.series.each(t=>Gr(t.uid,{isSelectionApplied:void 0}))}function yz(a){let t=[];if(!rh(a)&&!Kf(a))switch(!0){case a instanceof Ur:t=a.slices.values;break;case a instanceof Ri:let{chart:e}=a;if(e){let i=fe(e.uid,"config");if(i){let r=ze(i?.series),s=[];r===V.HistogramSeries?s=[dd.Count]:r===V.HeatSeries?s=[xr.valueField]:s=Mo(i?.series,[a.get("id")??""]),t=a.columns.values.filter(n=>{let o=!1,l=n.dataItem?.dataContext;return l&&(o=r===V.HeatSeries||s.some(h=>h in l&&Number.isFinite(l[h]))),o})}}break;case a instanceof ei:t=Array.from(a.dataItems.values());break}return t}function Yk(a,t){let e=fe(a.uid,"actionMode");(e===Ut.MonoSelection||e===Ut.None)&&t.length>1?Yc({chart:a}):t.forEach(i=>{ra({element:i,selected:!0})})}function vz(a){let{chart:t,selectionIndexes:e,queryObject:i}=a,r=[],s=[],n=fe(t.uid,"config"),o=Eo(n),l=Mo(n?.series??[]),h=kt(n?.series),c=ze(n?.series);return t.series.each((u,d)=>{if(n&&u.get("visible")===!0&&u.get("id")!==q.overlayId.scatterplotTrendLine){let A=n.series[0].x,p=zf(u),f=e.get(d);if(f!==void 0){let m;if(u instanceof ei&&(m=u.dataItems.map(g=>g?.bullets?.[0]?.get("sprite")).filter(g=>g!==void 0)),m!==void 0){let{indexesToSelect:g}=f;m.forEach((y,x)=>{if(g===void 0||g.includes(x)){let w=th({dataContext:y.dataItem?.dataContext,yList:l,yAxisField:p,xAxisField:A,chartType:c,chartSubType:h,showOutliers:o,isFeatureCollectionLayer:Oo(i)});w!==void 0&&r.push(w),s.push(y)}else ra({element:y,selected:!1})})}}}}),Yk(t,s),r}function bz(a){let{chart:t,chartConfig:e,options:i,elementsToApplySelectionTo:r,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,splitBy:h,queryObject:c}=a,u=ze(e.series),d=kt(e.series),A=Eo(e),p=[],f=[],m=[],g=Mo(e.series);return r.forEach((y,x)=>{let w=y instanceof mr||y instanceof ma?y:y.bullets?.[0]?.get("sprite");if(w!==void 0){let S=y instanceof mr||y instanceof ma?w.dataItem?.dataContext:y.dataContext;if(S!==void 0&&u===V.BoxPlotSeries&&S[q.boxPlot.boxPlotOutlierId]!==!0&&(S=th({dataContext:S,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)})),kv({elementDataContext:S,options:i,selectionDataItems:s,layerOidField:n,xAxisField:o,yAxisField:l,chartType:u,splitBy:h,chartSubType:d,showOutliers:A}))if(p.push(w),f.push(x),w?.dataItem instanceof Wa&&S!==void 0)m.push(S);else{let T=new Set;u===V.PieSeries&&ih(S)?(Qf({groupOfSlicesDataContext:S})??[]).forEach(F=>{s.forEach(L=>{ww({layerOidField:n,sliceDataContext:F,selectionDataContext:L,xAxisField:o})&&T.add(F)})}):T.add(S),Array.from(T)?.forEach(F=>{let L=th({dataContext:F,yAxisField:l,yList:g,xAxisField:o,splitBy:h,chartType:u,chartSubType:d,showOutliers:A,isFeatureCollectionLayer:Oo(c)});L!==void 0&&m.push(L)})}else ra({element:w,selected:!1})}}),Yk(t,p),{selectedIndexes:f,newSelectionDataItems:m}}function xz(a){let{series:t,seriesIndex:e,queryObject:i,dataWasUpdated:r,sortChanged:s,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:l,splitBy:h,rotationChanged:c}=a,{chart:u}=t;if(u instanceof fs){let d=fe(u.uid,"options"),{filterBySelection:A,selectionData:p,returnSelectionIndexes:f,returnSelectionOIDs:m}=d??{},{selectionIndexes:g}=p??{},y=fe(u.uid,"config"),x=oa(y),w=ze(y?.series),S=kt(y?.series),T=yz(t);if(A!==!0&&y!==void 0){let F=$s(i),L=xh(F).idField,$=fe(u.uid,"currentSelectionDataItems"),I=!1,U=!1,P,Q=!1;if(T?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){P=d?.selectionData?.selectionItems??$;let G=fe(u.uid,"currentSelectionIndexes");Q=Sx({itemsA:P,itemsB:$,isPieFromFields:S===ke.PieFromFields,x:o,y:l,outStatisticFieldName:y.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let Y=g?.keys.length!==G?.keys.length||!rn(g,G);I=s===!0||r===!0||n===!0||c===!0||P!==void 0&&Q;let ee=!0;if(g!==void 0&&g.size>0){let{indexesToSelect:te}=g.get(e??0)??{};ee=te!==void 0&&te[0]===void 0}U=r===!0||n===!0||c===!0||!ee&&Y}if(I&&P!==void 0&&P.length>0){let{selectedIndexes:G,newSelectionDataItems:Y}=bz({chart:u,chartConfig:y,options:d,elementsToApplySelectionTo:T,selectionDataItems:P,layerOidField:L,xAxisField:o,yAxisField:l,splitBy:h,queryObject:i}),ee=fe(u.uid,"computedSelectionDataItems")??[];if(ee.push(...Y),y.series.length>1&&S!==ke.BarAndLineNoAggregation&&S!==ke.BarAndLineSplitByNoAggregation&&(ee=ap({data:ee,x:y.series[0].x,splitByField:Dn(y.series[0].query?.where)})),Xr(u.uid,{computedSelectionDataItems:ee}),f===!0){let te=Array.from(new Set(G)),le=fe(u.uid,"computedSelectionIndexes");le===void 0&&(le=new Map),te.length===T.length?le.set(e??0,{}):le.set(e??0,{indexesToSelect:te}),Xr(u.uid,{computedSelectionIndexes:le})}}else if(g!==void 0&&U)P=vz({chart:u,selectionIndexes:g,queryObject:i});else{let G=Y=>{let ee=Y.dataItem?.dataContext;return kv({elementDataContext:ee,options:d,selectionDataItems:P??$??[],layerOidField:L,xAxisField:o,yAxisField:l,chartType:w,splitBy:h,chartSubType:S})};T.forEach(Y=>{let ee=Y instanceof mr||Y instanceof ma?Y:Y.bullets?.[0]?.get("sprite");ee!==void 0&&ra({element:ee,selected:yl(ee.uid,"selected")===!0||G(ee),backToDefaultState:P===void 0||P.length===0})})}}if(Gr(t.uid,{isSelectionApplied:!0}),mz({chart:u,chartType:w,showMean:x})&&(gz(u),Q||U)){let G=fe(u.uid,"computedSelectionDataItems")??P;G=Array.from(new Set(G?.map(ee=>JSON.stringify(ee)))).map(ee=>JSON.parse(ee)),P!==void 0&&Xr(u.uid,{currentSelectionDataItems:G}),p?.selectionOIDs!==void 0&&Xr(u.uid,{currentSelectionOIDs:p.selectionOIDs});let Y;if(f===!0&&(Y=fe(u.uid,"computedSelectionIndexes")??g,Y!==void 0&&Xr(u.uid,{currentSelectionIndexes:Y})),G===void 0||G.length===0)Yc({chart:u,selectionSource:Tr.ProgrammaticSelection});else{let ee={selectionItems:G,selectionSource:Tr.ProgrammaticSelection};f===!0&&(ee.selectionIndexes=Y),m!==!1&&(ee.selectionOIDs=p?.selectionOIDs??fe(u.uid,"currentSelectionOIDs")),Vu({data:ee,htmlContainer:u.root.dom})}Xr(u.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function _z(a){let{chart:t,chartConfig:e,queryObject:i}=a;!fe(t.uid,"filterBySelection")&&!bs(i)&&t.series.values.filter(r=>!rh(r)&&!Kf(r)).forEach(r=>{let{seriesConfig:s,seriesIndex:n}=Zf(r,e);if(s){let o=s.x,l=s.type===V.BoxPlotSeries||s.type===V.HeatSeries?s.y.toString():zf(r),h=s.query?.where??"";Cz({callbackProps:{...a,series:r,seriesIndex:n,xAxisField:o,yAxisField:l,splitBy:h},series:r,seriesConfig:s})}})}async function qw(a){let{chart:t,selectionSource:e,queryObject:i,errorStrings:r}=a,s=fe(t.uid,"config"),n=bs(i);if(s){let o=fe(t.uid,"options"),l=ze(s.series),h=kt(s.series),c=Eo(s),u=Mo(s.series),d=s.series[0].x,A=yh(i),p=n?void 0:qm($s(i))?.dateFieldsTimeZone,f;so(s)?f=s.outTimeZone:bh(s.series[0])&&(f=s.series[0].temporalBinning?.outTimeZone);let m=_a(i).find(g=>g.name===d)?.type;try{let g=new Set,y=[],x=new Map,w=[],S=[],T=0;if(t.series.each((F,L)=>{let{seriesConfig:$}=Zf(F,s),I=$?.query?.where??"",U=$?.type===V.BoxPlotSeries?$.y.toString():zf(F),P;F instanceof ei?P=F.dataItems:F instanceof Ri?P=F.columns.values:F instanceof Ur&&(P=F.slices.values),P?.forEach((Q,G)=>{let Y=Q instanceof mr||Q instanceof ma?Q:Q.bullets?.[0]?.get("sprite");if(Y!==void 0&&yl(Y.uid,"selected")===!0){T+=1;let ee=Q instanceof mr||Q instanceof ma?Q.dataItem?.dataContext:Q.dataContext;if(ee!==void 0){if(ee=th({dataContext:ee,yAxisField:U,yList:u,xAxisField:d,splitBy:I,chartType:l,chartSubType:h,showOutliers:c,isFeatureCollectionLayer:Oo(i)}),g.has(JSON.stringify(ee))||(g.add(JSON.stringify(ee)),y.push(ee)),G!==void 0){let le=x.get(L)?.indexesToSelect??[];le.push(G),x.set(L,{indexesToSelect:Array.from(new Set(le))})}let te=ee[Ou.uniqueIdsName]!==void 0?[ee[Ou.uniqueIdsName]].flat():[];if(te.length>0)S.push(...te);else if(!n&&o?.returnSelectionOIDs!==!1){let le=Fx({dataContext:ee,options:o,xAxisField:d,yAxisField:U??"",splitBy:I,xAxisFieldType:m,chartConfig:s,outTimeZone:f,dataTimeZone:p,runsOnClientQueryEngine:A,queryObject:i});w.push(le)}}}})}),T===0)Yc({chart:t,selectionSource:e});else{if(!n&&o?.returnSelectionOIDs!==!1&&w.length>0){let L={...fe(t.uid,"queryConfig")};delete L.groupByFieldsForStatistics,delete L.orderByFields,delete L.outStatistics;let $=await r1({whereList:w,queryObject:i,queryConfig:L,errorStrings:r});if(w.length===T)S=$;else for(let I=0;I<$.length;I+=1)S.push($[I])}S=Array.from(new Set(S)),s.series.length>1&&h!==ke.BarAndLineNoAggregation&&h!==ke.BarAndLineSplitByNoAggregation&&(y=ap({data:y,x:s.series[0].x,splitByField:Dn(s.series[0].query?.where)})),Xr(t.uid,{currentSelectionDataItems:y,currentSelectionOIDs:S,currentSelectionIndexes:x});let F={selectionItems:y,selectionSource:e};o?.returnSelectionIndexes===!0&&(F.selectionIndexes=x),o?.returnSelectionOIDs!==!1&&(F.selectionOIDs=S),n&&(F.selectionPixelTarget=sg({chartConfig:s,layer:i,selectionDataItems:y})),Vu({data:F,htmlContainer:t.root.dom})}}catch(g){Xr(t.uid,{pendingSelectionQueries:!1});let{httpStatus:y}=g instanceof Tl?g.details.details:g.details??{};if(y===429)fz(t);else throw g}Xr(t.uid,{pendingSelectionQueries:!1})}}function SA(a,t){let{y:e,query:i}=t,r=kt(a.series)===ke.BarAndLineSplitByNoAggregation?`${e.toString()}_${vh({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[e].flat()[0],s=q.xAxisField,n=a.rotated===!0?"categoryYField":"categoryXField",o=a.rotated===!0?"valueYField":"valueXField",l=a.axes?.[0]?.valueFormat?.type===V.CategoryAxisFormat?n:o,h=a.rotated===!0?"valueXField":"valueYField";return{xField:s,yField:r,xAxisField:l,yAxisField:h}}function sh(a){let{chartConfig:t,seriesWereReinitialized:e,dataWasUpdated:i,colorMatchChanged:r,seriesStyleChanged:s,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:l}=a,h=t.series.length===1,c=ze(t.series),u=!!(e||i||r||s||l),d=!1;switch(c){case V.BarSeries:d=!!(h&&n);break;case V.PieSeries:d=!!(o||n);break}return u||d}function Kk(a){let{series:t,callbackInfo:e,seriesConfig:i}=a,r=n=>{let{type:o}=n;o==="selection"?xz(n.callbackProps):(Li(t,i.visible),n.styleCallback())},s=fe(t.chart?.uid??Number.NaN,"config");s&&q1({series:t,chartConfig:s,whenReadyCallback:()=>r(e)})}function Cz(a){let{series:t,callbackProps:e,seriesConfig:i}=a;Kk({callbackInfo:{callbackProps:e,type:"selection"},series:t,seriesConfig:i})}function ah(a){let{series:t,styleCallback:e,seriesConfig:i}=a;Kk({callbackInfo:{styleCallback:e,type:"style"},series:t,seriesConfig:i})}function Zk(a){let t;return a&&a.series.length>0&&(t=a.series.values.map(e=>e.get("visible")!==!1?`${e.get("id")}`:"").filter(e=>e!=="")),t}function Jw(a){let{series:t,chartConfig:e,isRotated:i}=a,r=ks(e),s=e.series[0],n=t.chart?.xAxes.getIndex(0),o=t.chart?.yAxes.getIndex(0),l=i&&(r===$i.Stacked||r===$i.Stacked100)?o:n;switch(r){case $i.Stacked:{t.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:l}),t instanceof ei&&t.set("stackToNegative",s.stackNegativeValuesToBaseline??q.lineSeries.stackNegativeValuesToBaseline);break}case $i.Stacked100:{t.setAll({stacked:!0,baseAxis:l}),i===!0?(t.setAll({valueXShow:"valueXTotalPercent"}),n instanceof ti&&n.set("calculateTotals",!0)):(t.setAll({valueYShow:"valueYTotalPercent"}),o instanceof ti&&o.set("calculateTotals",!0));break}case $i.Side:default:{t.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function FA(a,t){a.set("name",t)}function wz(a){let{chart:t,chartType:e,rotated:i,assignToSecondValueAxis:r}=a,s=t.xAxes.getIndex(0),n=t.yAxes.getIndex(0),o=[s,n,t.xAxes.getIndex(1)??t.yAxes.getIndex(1)],l,h;i!==!0?(l=o[0],h=r===!0&&o[2]?o[2]:o[1]):(l=r===!0&&o[2]?o[2]:o[0],h=o[1]);let c=e===V.HistogramSeries?t.xAxes.getIndex(1):void 0;return{xAxis:l,xAxisForHistogramOverlaySeries:c,yAxis:h}}function TA(a,t){let{series:e}=t,i=ze(e);a instanceof Ri&&(a.columns.template.setAll({hoverOnFocus:!0}),i===V.HeatSeries?a.columns.template.set("ariaLabel",Tz()):a.columns.template.set("ariaLabel",sp()))}function _u(a,t){a&&a.set("focusable",(t??0)<q.focusableThreshold)}function Bz(a){let{currentChartSeriesCount:t,chartConfig:e,dataUpdateDetails:i,seriesCompositionChanged:r,seriesFilteredOut:s,sizePolicyChangesRequireSeriesReinit:n}=a,o=!1,l=ze(e.series);switch(l){case V.BarSeries:case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:case V.BoxPlotSeries:let h=e.series.length;l===V.BoxPlotSeries&&(oa(e)?h+=4:h*=5),o=s||r||i?.common?.numberOfSeriesChanged===!0||t!==h;break;case V.ScatterSeries:o=n===!0;break}return o}function eB(a){let{chartConfig:t,series:e,seriesIndex:i,queryObject:r}=a,s=t.series[i];if(s){let n=kt(t.series),o=s.name;if(n===ke.BarAndLineSplitBy||n===ke.BarAndLineSplitByNoAggregation){let l=Dn(s.query?.where);o=ag({queryObject:r,fieldName:l,fieldValue:o})??o}FA(e,o)}}function Zf(a,t){let e=ze(t?.series),i,r;return t?.series.forEach((s,n)=>{let o=!1;e!==V.BoxPlotSeries||a instanceof La?o=a.get("id")===s.id:a instanceof Bo?o=a.get("id")?.replace(`_${ji.Top}`,"")===s.id||a.get("id")?.replace(`_${ji.Median}`,"")===s.id||a.get("id")?.replace(`_${ji.Bottom}`,"")===s.id:a instanceof ei&&(o=a.get("id")?.replace(`_${ji.Outliers}`,"")===s.id),o&&(i=s,r=n)}),{seriesConfig:i,seriesIndex:r}}function Sz(a,t){let e=a.get("valueXShow"),i=a.get("valueYShow"),r=t,s=e==="valueXTotalPercent"?r.get("valueXTotalPercent"):t.get("valueX"),n=i==="valueYTotalPercent"?r.get("valueYTotalPercent"):t.get("valueY");return{markerValueX:typeof s=="number"?s:void 0,markerValueY:typeof n=="number"?n:void 0}}function pA(a,t){let e=a;if(t instanceof ti&&t.get("logarithmic")===!0&&a===0){let i=t.get("treatZeroAs");e=typeof i=="number"&&i>0?i:q.treatZeroValueAs}return e}function Fz(a,t){let{chart:e}=t,i;if(e instanceof vi){let r=t.get("xAxis"),s=t.get("yAxis"),n=a.dataItem;if(n===void 0)i=!1;else{let{markerValueX:o,markerValueY:l}=Sz(t,n);if(typeof o!="number"||typeof l!="number")i=!1;else{let h=r?.getPrivate("min",0),c=r?.getPrivate("max",0),u=s?.getPrivate("min",0),d=s?.getPrivate("max",0),A=r?.get("start",0),p=r?.get("end",1),f=s?.get("start",0),m=s?.get("end",1),g=h+A*(c-h),y=h+p*(c-h),x=u+f*(d-u),w=u+m*(d-u),S=pA(o,r),T=pA(l,s),F=pA(g,r),L=pA(y,r),$=pA(x,s),I=pA(w,s);i=S<F||S>L||T<$||T>I}}}i!==void 0&&a.set("forceHidden",i)}function qk(a,t){let e=(i,r)=>{r!==void 0&&Fz(r,t)};a.on("x",e),a.on("y",e)}function PA(a,t){let e=t;e===void 0&&(e=fe(a.uid,"config"));let i=fe(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&i}function xA(a,t){a.set("turboMode",t===!0)}function Tz(){return`{${xr.xField}} {${xr.yField}} {${xr.valueField}}`}function Jk(a){let{root:t,intlOptions:e,formatLocale:i,overridePercentMultiplication:r}=a,s=qn({root:t,intlOptions:e,type:V.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(s!==void 0&&n!==null&&!(n instanceof Date)){let l=typeof n=="number"?n:wx(n,s.get("intlLocales"));r===!0&&e.style==="percent"&&(l/=100),o=s.format(l)}else n instanceof Date&&(o=n.toLocaleString(void 0,e));return o}}function Pz(a){let{axis:t,intlOptions:e,overridePercentMultiplication:i,valueAxisFormatter:r}=a,{chart:s,root:n}=t,o=s!==void 0?fe(s.uid,"formatLocale"):void 0,l=r??Jk({root:n,intlOptions:e,formatLocale:o,overridePercentMultiplication:i});return BA(t.uid,{numberFormatter:l}),l}function Dz(a){let{chart:t,formatOptions:e,isNonAggregatedChart:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(typeof s=="number"&&e.type===V.NumberAxisFormat)n=Jk({root:r,intlOptions:e.intlOptions,formatLocale:o})(s);else if(i===!0&&e.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:e.intlOptions,formatLocale:o}).format(n,e.intlOptions);else if(e.type===V.CategoryAxisFormat){let h=kt(l?.series);if([ke.BoxPlotMonoField,ke.BoxPlotMultiFields,ke.BoxPlotMonoFieldAndSplitBy,ke.BoxPlotMultiFieldsAndSplitBy,ke.BarAndLineFromFields].includes(h)&&typeof s=="string"){let u=fe(t.uid,"fieldList");s=Or(u,s)}let{characterLimit:c}=e;n=s?.toString()??"",!zi(n)&&n!==q.htmlEmptyContent&&(n=fx({stringToTruncate:n,characterLimit:c}))}return n.toString()}}function Lz(a){let{chart:t,isXAxis:e=!0,formatOptions:i}=a,{root:r}=t;return s=>{let n=s??"",o=fe(t.uid,"formatLocale"),l=fe(t.uid,"config");if(so(l)){let h=oF(l.series[0],e);if(h&&s!==void 0&&s!==""){if(i.type===V.DateAxisFormat&&i.intlOptions)switch(h.unit){case Vm.DayOfWeek:n=TT({weekdayNumber:Number(s),format:i.intlOptions,firstDayOfWeek:l.firstDayOfWeek,locale:o});break;case Vm.MonthOfYear:n=PT({monthNumber:Number(s),format:i.intlOptions,locale:o});break;case Vm.HourOfDay:n=FT({hour:Number(s),format:i.intlOptions,locale:o});break}}else if(s!==void 0&&s!==""){if(i.type===V.DateAxisFormat)n=qn({root:r,type:V.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===V.CategoryAxisFormat&&(n=s?.toString()??"",!zi(n)&&n!==q.htmlEmptyContent)){let{characterLimit:c}=i;n=fx({stringToTruncate:n,characterLimit:c})}}}return n.toString()}}function Iz(a){let{axis:t,formatOptions:e,isTimeOnlyField:i,setTimeZone:r,outTimeZone:s}=a,n={...$o(e)},o=["year","month","day","hour","minute","second"],l={hour:{hour:"numeric",minute:"numeric"},minute:{hour:"numeric",minute:"numeric"},second:{hour:"numeric",minute:"numeric",second:"numeric"}},h={week:{month:"short",day:"numeric"},day:{month:"short",day:"numeric"}},c=i?l:h,u=i?l:h;if(r){let d=Fc.new(s??n.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);r&&t.root.timezone?.name!==d.name&&(t.root.timezone=d),delete n.timeZone;for(let A=0;A<o.length;A+=1){let p=o[A],f=A===0?p:o[A-1],m=e?.formatPerDateTimeUnit?.[p]??n,g=e?.formatPerDateTimeUnit?.[f];m&&Object.values(m).find(y=>y!==void 0&&(typeof y!="string"||!zi(y)))&&(c[p]=m,u[p]=g??m)}Object.keys(c).length>0&&t.set("dateFormats",c),Object.keys(u).length>0&&t.set("periodChangeDateFormats",u)}}function xI(a){let{axis:t,valueFormat:e,chartType:i}=a,r=rB({isXAxis:!0,chartType:i,valueFormat:e}),s=ro(e)&&t instanceof hr,n=ba(e)&&t instanceof ti&&!(t instanceof hr),o=r&&t instanceof Sr;return!s&&!n&&!o}function e$(a){let{dataContext:t,defaultValue:e,chartUID:i}=a,r=oo(t),s=fe(i,"config"),n=fe(i,"rendererFieldNames"),o=ze(s?.series),l=kt(s?.series);return o===V.BoxPlotSeries&&(l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy)?r=t?.[jm]:o===V.HistogramSeries?r=t?.[dd.Start]:(o===V.BarSeries||o===V.LineSeries||o===V.RadarSeries||o===V.ComboLineAndBarSeries)&&s!==void 0?r=no({value:qA(l,s?.series?.[0]),dataContext:t,useRendererLabel:Qu(s,n),config:s}):r=no({value:e??"",dataContext:t,useRendererLabel:Qu(s,n),specificField:pt.xAxisField}),{labelValue:r,originalLabelValue:oo(t)}}function kz(a,t){let{chart:e}=a;if(e!==void 0){let i=a.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html");let r=t!==void 0?"html":"text";i.adapters.add(r,(s,n)=>{let o=s,l=gu(a.uid,"labelFormatter");if(!ka(n.uid,"isGuide")&&l!==void 0){let h,c;switch(!0){case a instanceof hr:case a instanceof ti:h=n.dataItem?._settings?.value;break;case a instanceof Sr:{let u=s,d=n.dataItem?.dataContext,A=fe(a.chart?.uid??Number.NaN,"config");if(ze(A?.series)===V.HeatSeries){let f=bu(a.get("renderer"))?d?.[xr.xField]:d?.[xr.yField];typeof f=="string"&&(u=f)}let p=e$({dataContext:d,defaultValue:u,chartUID:e.uid});h=p.labelValue,c=p.originalLabelValue}break}h!==void 0&&(o=l(h,c),r==="html"&&(o=Zr(o)))}return o}),i.adapters.add(r,(s,n)=>{let o=s,l=fe(e.uid,"config");if(!ka(n.uid,"isGuide")&&l!==void 0){let h=us(l),c=bu(a.get("renderer"),h),u=l.axes?.[c?0:1],d=i.get("maxWidth"),A=r==="html"?{wrap:i.get("oversizedBehavior")==="wrap",maxWidth:typeof d=="number"?d:void 0}:void 0,p={type:Rt.TS,...u?.labels.content,text:s};o=xa({textSymbol:p,format:r==="text"?"amChartsV5":"html",defaults:A})}return o}),r==="html"&&i.set("html",q.htmlEmptyContent)}}function $z(a){let{axis:t,isRotated:e,chartConfig:i}=a,r=t.get("renderer");if(r===void 0)return;let s=t instanceof Sr||t instanceof hr,n=t instanceof ti&&!(t instanceof hr)&&e===!0&&bu(r,e);if(s||n){let o=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===zA.Descending:!1,l=e===!0;o&&t instanceof hr&&(l=!l),r.set("inversed",l)}}function Oz(a){let{axis:t,isXAxis:e,chartType:i,formatOptions:r,isNonAggregatedChart:s,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c,errorStrings:u}=a,{chart:d}=t;if(d!==void 0){let A=rB({isXAxis:e,chartType:i,valueFormat:r}),p=t instanceof ti&&!(t instanceof hr)&&ba(r),f=t instanceof hr&&ro(r),m=t instanceof Sr&&A;if(!(p||f||m))Km("mismatchAxisAndValueFormat",u);else{kz(t,o);let g=o;o===void 0&&(i===V.HeatSeries?g=Lz({chart:d,isXAxis:e,formatOptions:r}):m?g=Dz({chart:d,formatOptions:r,isNonAggregatedChart:s}):p?g=Pz({axis:t,intlOptions:r.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):f&&Iz({axis:t,formatOptions:r,isTimeOnlyField:l,setTimeZone:h,outTimeZone:c})),BA(t.uid,{labelFormatter:g})}}}function Ez(a){let{chart:t,chartConfig:{axes:e,series:i},rotationChanged:r,axisLabelsBehaviorChanged:s,timeIntervalInfoWasReset:n}=a,o=ze(i),l=us(a.chartConfig),h=l?1:0,c=l?0:1,u=e?.[h]?.valueFormat,d=e?.[c]?.valueFormat,A=t.xAxes.getIndex(0),p=t.yAxes.getIndex(0),f=A===void 0||r||u!==void 0&&xI({axis:A,valueFormat:u,chartType:o}),m=p===void 0||r||d!==void 0&&xI({axis:p,valueFormat:d,chartType:o});return n||s?.[0]||s?.[1]||f||m}function bu(a,t){return a instanceof as&&!t||a instanceof ya&&t||a instanceof Vs}function Zv(a){return a instanceof as}function Mz(a){return a instanceof ya}function Rz(a){let{axis:t,isLogarithmic:e,axisConfigIndex:i}=a,r=fe(t.chart?.uid??Number.NaN,"config"),s=e===!0&&dg({chartConfig:r,axisConfigIndex:i,chartData:t.chart?.series.getIndex(0)?.data.values});(t instanceof hr||t instanceof ti)&&t.setAll({logarithmic:s,treatZeroAs:s?q.treatZeroValueAs:0,maxPrecision:s?0:void 0})}function Uz(a,t){if(a instanceof ti){let{integerOnlyValues:e,valueFormat:i}=t,r=Dx(i)?i.intlOptions.maximumFractionDigits:void 0;a.set("maxPrecision",e===!0||r===0?0:Number.NaN)}}function t$(a,t){let{chart:e}=t,i=ps.new(a,{forceHidden:!0});return t.set("tooltip",i),i.adapters.add("labelText",(r,s)=>{let n=r??"",o=gu(t.uid,"labelFormatter");if(!s.isHidden()&&o&&e){let{label:l}=s,h=l.get("text")??"";if(t instanceof ti){let c=Number.parseFloat(h.replace(/,/gu,""));n=o(Number.isNaN(c)?h:c,r)}else if(t instanceof Sr){let c=l.dataItem?.dataContext,u=e$({dataContext:c,defaultValue:r,chartUID:e.uid});n=o(u.labelValue??h,r??u.originalLabelValue)}}return n}),i}function Vz(a){let{root:t,axis:e,displayCursorTooltip:i}=a;(e.get("tooltip")??t$(t,e)).set("forceHidden",i!==!0)}function Nz(a){let{axis:t,timeIntervalInfo:e,dateBaseInterval:i,xFieldIsTimeOnly:r}=a;if(t instanceof hr){let s,n=1;if(r)s="second";else{let{size:o,unit:l}=e??{};if(l||({size:o,unit:l}=i??{}),o&&l!==void 0){switch(l){case er.Second:s="second";break;case er.Minute:s="minute";break;case er.Hour:s="hour";break;case er.Day:s="day";break;case er.Week:s="week";break;case er.Month:s="month";break;case er.Year:s="year";break}n=o}}s!==void 0&&t.set("baseInterval",{timeUnit:s,count:n})}}function Qz(a,t){let{buffer:e}=t??{};return e??=q.buffer,a instanceof ti&&!(a instanceof hr)&&!e}function Hz(a,t){let e=!1;return a instanceof ti&&!(a instanceof hr)&&(e=Qz(a,t),a.set("strictMinMax",e)),e}function _I(a,t){let e=a;if(a){let i=(t?Math.ceil:Math.floor)(Math.log10(a));e=Math.pow(10,i)}return e}function jz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,chartType:r,stackedType:s,isLogarithmic:n}=a,o=!1,l=[V.BarSeries,V.LineSeries,V.RadarSeries];if(r!==void 0&&l.includes(r)&&s===$i.Stacked100&&!n&&t instanceof ti&&!e){let h=fe(t.chart?.uid??Number.NaN,"config"),c=t.chart?.series.getIndex(0)?.data.values;if(h&&c){let u=Zk(t.chart),d=cg({chartConfig:h,isSecondValueAxis:i,seriesIds:u});o=!uT({seriesConfig:h.series,filteredData:c,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function Wz(a){let{dataMinMax:t,chartType:e,stackedType:i,isXAxis:r,minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o}=a,{minX:l,maxX:h,minY:c,maxY:u}=t,[d,A]=r?[l??Number.NaN,h??Number.NaN]:[c,u],p=d,f=A;return i===$i.Stacked100?(p=Number.NaN,f=Number.NaN):((e===V.BarSeries||e===V.ComboLineAndBarSeries||e===V.HistogramSeries&&!r||(e===V.LineSeries||e===V.RadarSeries)&&i===$i.Stacked&&!r)&&(p=Math.min(d,0),f=Math.max(A,0)),p=s??p,f=n??f),o===!0&&(p=Number.isFinite(p)?_I(p,!1):p,f=Number.isFinite(f)?_I(f,!0):f),{min:p??Number.NaN,max:f??Number.NaN}}function Xz(a){let{axis:t,xAxis:e,isSecondValueAxis:i,data:r,minimumFromConfig:s,maximumFromConfig:n}=a,o=s,l=n,{chart:h}=t;if(h){let c=fe(h.uid,"config");if(h instanceof vi&&c){let u=ze(c.series),d=ks(c)??$i.Side,A=Zk(h),p=cg({chartConfig:c,isSecondValueAxis:i,seriesIds:A}),f=Ln(r),m=Tx({chartConfig:c,chartData:f??h.series.getIndex(0)?.data.values??[],filteredSeriesIds:p}),g=Wz({dataMinMax:m,chartType:u,stackedType:d,isXAxis:e,minimumFromConfig:s,maximumFromConfig:n});o=g.min,l=g.max}}return{min:o,max:l}}function zz(a){let{axis:t,axisConfig:e,minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s,chartType:n,stackedType:o,isRotated:l,data:h,isSecondValueAxis:c}=a,{chart:u}=t;if(u&&(t instanceof ti||t instanceof hr))if(Hz(t,e)){let d=i,A=r,p=bu(t.get("renderer"),l);if(jz({chartType:n,stackedType:o,isLogarithmic:s,axis:t,xAxis:p}))d=d??0,A=A??100;else if(KI({minimumFromConfig:i,maximumFromConfig:r,isLogarithmic:s})){let f=Xz({axis:t,xAxis:p,data:h,minimumFromConfig:d,maximumFromConfig:A,isSecondValueAxis:c});d=f.min,A=f.max}A=A??Number.NaN,d=d??Number.NaN,s&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?q.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(A)||d<A?t.setAll({min:d,max:A}):t.setAll({min:Number.NaN,max:Number.NaN}),n===V.GaugeSeries&&t.markDirty()}else t.setAll({min:Number.NaN,max:Number.NaN})}function Lv(a,t){if(a!==void 0){let e=fe(a.uid,"config");if(e!==void 0){let i=ze(e?.series),r=ks(e)??$i.Side,s=us(e),n=a.xAxes.getIndex(0),o=e.axes?.[0],l=e.axes?.[1],h=e.axes?.[2],c=a.yAxes.getIndex(0),u=a.xAxes.getIndex(1)??a.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:c,axisConfig:l},{axis:u,axisConfig:i===V.HistogramSeries?o:h,isSecondValueAxis:i!==V.HistogramSeries}].forEach(d=>{let{axis:A,axisConfig:p,isSecondValueAxis:f}=d;if(A!==void 0){let{minimum:m,maximum:g,buffer:y,isLogarithmic:x}=p??{};zz({axis:A,axisConfig:p,data:t,chartType:i,stackedType:r,isRotated:s,minimumFromConfig:m,maximumFromConfig:g,isLogarithmic:x,isSecondValueAxis:f})}})}}}function Gz(a){a.get("renderer").grid.template.adapters.add("strokeWidth",(t,e)=>{let i=gu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.strokeWidth??q.lineWidth;return e.get("themeTags")?.includes("base")&&r&&(s=(s===0?1:s)*1.5),s}),a.get("renderer").grid.template.adapters.add("strokeOpacity",(t,e)=>{let i=gu(a.uid,"zeroGridLine"),r=i?.displayZeroLine===!0,s=i?.visible===!0?t:0;return e.get("themeTags")?.includes("base")&&r&&(s=1),s})}function tB(a){a.on("visible",()=>{a.chart instanceof vi&&Lv(a.chart)}),a.events.on(Ji.DataValidated,()=>{a.chart instanceof vi&&Lv(a.chart)})}function Yz(a){let t=0;return a.dataItems.forEach(e=>{let i=e.get("label");i!==void 0&&ka(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>t&&i.isVisible()&&(t=i.height())}),t}function CI(a,t){if(t){let{chart:e}=t;if(e){let i=fe(e.uid,"isRotated"),r=fe(e.uid,"config"),s=ze(r?.series),n=[],o=(l,h)=>{if(l instanceof ti){let c=l.get("renderer")instanceof Vs;n.push({isXAxis:bu(l.get("renderer"),i),isSecondValueAxis:h===1&&s!==V.HistogramSeries,minimum:c?l.get("min"):l.getPrivate("min"),maximum:c?l.get("max"):l.getPrivate("max")})}};e.xAxes.each(o),e.yAxes.each(o),n.length>0&&n.every(l=>!Number.isNaN(l.minimum)&&!Number.isNaN(l.maximum))&&hx(n,e.root.dom)}}}function i$(a){a.ghostLabel?.set("forceHidden",!0)}function wI(a){let{axis:t,start:e,end:i}=a;t.zoom(e??0,i??1)}function BI(a){a!==void 0&&a.setAll({start:0,end:1})}function Kz(a){a instanceof vi&&(a.xAxes.each(t=>wI({axis:t})),a.yAxes.each(t=>wI({axis:t})),BI(a.get("scrollbarX")),BI(a.get("scrollbarY")))}function Zz(a){let{axis:t,guide:e,guideIndex:i}=a,{root:r,chart:s}=t,n=e.get("axisFill");n?.set("tooltip",ps.new(r,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&s!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(q.tooltipWidth,s.seriesContainer.width())),o.get("background")?.set("fillOpacity",Qm);let l=fe(s.uid,"rtl");o.label.set("direction",l?"rtl":"ltr")}if(n!==void 0){n.setAll({tooltipPosition:q.guideTooltipPosition}),n.adapters.add("tooltipText",(h,c)=>{let u=h,{dataItem:d}=c;if(!(t.get("renderer")instanceof Vs)){let A=gu(t.uid,"guideTooltipFormatter");if(A!==void 0&&d instanceof ss){let p,f;switch(!0){case t instanceof hr:case t instanceof ti:p=d.get("value"),f=d.get("endValue");break;case t instanceof Sr:p=d.get("category"),f=d.get("endCategory");break}u=A({guideName:YW(d.uid,"name")??"",start:p??"",end:f,guideIndex:i})}}return u??""});let l=n.getTooltip();l&&(bk(l),l.adapters.add("x",(h,c)=>{let{chart:u}=t;if(u&&c){let d=fe(u.uid,"config"),A=fe(u.uid,"isRotated");if(d){let p=bu(t.get("renderer"),A)?0:1,f=d?.axes?.[p]?.guides?.[i];if(f){let{tooltipReverseColor:m}=f;xk(c,m)}}}return h}))}}function qz(a,t){return e=>{let{guideName:i,start:r,end:s}=e,{chart:n,root:o}=a,l="";if(n!==void 0){let h=fe(n.uid,"config"),c=fe(n.uid,"isRotated"),u=bu(a.get("renderer"),c)?0:1,d=h?.axes?.[u]?.guides,A=r,p=s;if(a instanceof hr){let x;if(n!==void 0){let w=fe(a.chart?.uid??Number.NaN,"formatLocale");x=qn({root:a.root,type:V.DateAxisFormat,formatLocale:w});let S=h?.axes?.[0]?.valueFormat?.type===V.DateAxisFormat?h.axes[0].valueFormat.intlOptions:void 0;A=x.format(r,S),s!==void 0&&(p=x.format(s,S))}}else if(a instanceof ti&&!(r instanceof Date)&&!(s instanceof Date)){let x=d?.find(F=>F.name===i),{start:w,end:S}=r$(a,x);Number.isFinite(w)&&(A=w),Number.isFinite(S)&&(p=S);let T=gu(a.uid,"numberFormatter")??(F=>Zh.new(o,{}).format(F));A=T(A),p!==void 0&&(p=T(p))}else a instanceof Sr&&(A=r,p=s);let f=A.toString(),m=p?.toString()??"";!zi(m)&&f!==m?l=Uc(t.guideTooltipLabel,{guideStart:f,guideEnd:m}):l=f;let g=fe(n.uid,"rtl"),y=Ra(g??!1);l=`${i}${y} ${l}`}return l}}function Jz(a){let{axis:t,guideTooltipFormatter:e,utilsStrings:i}=a;BA(t.uid,{guideTooltipFormatter:e??qz(t,i)})}function SI(a){let{inputValue:t,axis:e,axisMin:i,axisMax:r}=a,s=t;if(t!=null)switch(!0){case e instanceof hr:s=t;break;case e instanceof Sr:s=t.toString();break;case e instanceof ti:if(typeof t!="number"){let n=t.toString().trim(),o=ip(n);o!==void 0?i!==void 0&&r!==void 0?s=o/100*(r-i)+i:s=null:s=Number.parseFloat(n)}break}return s}function iB(a,t){return a.axisRanges?.values?.filter(e=>{let i=e.get("label"),r=ka(i?.uid??Number.NaN,"isGuide")??!1,s=ka(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(t){case gr.Ticks:n=!r;break;case gr.Guides:n=r;break;case gr.GaugeTicksWithLabels:n=s&&"value"in e&&e.value!==void 0;break}return n})??[]}function eG(a){let{axis:t,guideConfig:e,above:i}=a,r=e!==void 0,s=t.axisRanges.length,n=t.axisRanges.insertIndex(s,t.makeDataItem({above:i}));r&&(i===!0&&n.get("axisFill")?.setAll({layer:q.zIndexes.guide}),p4({guide:n,axis:t,guideLabelConfig:e?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let l=n.get("grid");return l!==void 0&&r&&l.set("strokeOpacity",0),n}function tG(a){let{axis:t,guideIndex:e,guideConfig:i}=a,r=eG({axis:t,guideConfig:i,above:i?.above});Zz({axis:t,guide:r,guideIndex:e});let s=r.get("tick"),n=r.get("label"),o=r.get("grid");s!==void 0&&s.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function iG(a,t){let e=iB(a,gr.Guides).length,i=(t?.length??e)-e;for(let r=0;r<i;r+=1)tG({axis:a,guideIndex:r,guideConfig:t?.[r]})}function rG(a,t){let{start:e,end:i}=t,r=e!==null?e:void 0,s=i!==null?i:void 0,{chart:n}=a,o=fe(n?.uid??Number.NaN,"config");if(o!==void 0){let l=lg(o),h=a.data.values,c=h.find(u=>u[q.originalCategoryValue]===e)?.[l];if((typeof c=="string"||typeof c=="number"||c instanceof Date)&&(r=c),s!==void 0)for(let u=h.length-1;u>=0;u-=1){let d=h[u],A=d[l];if(d[q.originalCategoryValue]===i&&(typeof A=="string"||typeof A=="number"||A instanceof Date)){s=A;break}}}return{modifiedStart:r,modifiedEnd:s}}function r$(a,t){let{start:e,end:i}=t??{},r;if(t!==void 0&&e!==void 0&&e!==null){let s=a instanceof ti?a.get("min"):void 0,n=a instanceof ti?a.get("max"):void 0,o=SI({inputValue:e,axis:a,axisMin:s,axisMax:n}),l=t.style?.type===Rt.SFS&&i!==null&&i!==void 0?SI({inputValue:i,axis:a,axisMin:s,axisMax:n}):o;r={isValidGuide:o!=null&&(i===void 0||l!=null),start:o,end:l}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function sG(a){let{axis:t,guide:e,guideConfig:i}=a,{start:r,end:s}=i;if(r!==void 0){let{chart:n}=t,o;if(t instanceof Sr&&n instanceof vi&&fe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:l,modifiedEnd:h}=rG(t,i);o={isValidGuide:!0,start:l??r,end:h??s}}else o=r$(t,i);if(o.isValidGuide){let l,h;switch(!0){case t instanceof hr:case t instanceof ti:l="value",h="endValue";break;case t instanceof Sr:l="category",h="endCategory";break}l!==void 0&&o.start!==void 0&&e.setAll({[l]:o.start}),h!==void 0&&o.end!==void 0&&e.setAll({[h]:o.end})}}}function aG(a){let{axis:t,guide:e,guideConfig:i}=a;if(e){let r=e.get("axisFill"),s=e.get("label");if(i!==void 0){KW(e.uid,{name:i.name}),Li(e,i.visible),sG({axis:t,guide:e,guideConfig:i}),i.style.type===Rt.SLS?vu({root:t.root,element:r,fillSymbol:{type:Rt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Rt.SFS&&vu({root:t.root,element:r,fillSymbol:i.style,visible:i.visible}),f4({axis:t,guide:e,guideConfig:i,guideType:i.style.type}),e.get("axisFill")?.setAll({layer:i.above?q.zIndexes.guide:0});let{chart:n}=t}else r!==void 0&&r.set("disabled",!0),s!==void 0&&s.set("disabled",!0)}}function nG(a){let{axis:t,guideConfigs:e,guideTooltipFormatter:i,utilsStrings:r}=a;if(e!==void 0){let s=iB(t,gr.Guides);e.forEach((n,o)=>{aG({axis:t,guide:s[o],guideConfig:n})}),Jz({axis:t,guideTooltipFormatter:i,utilsStrings:r})}}function oG(a){let{axis:t,tickOrGuide:e,numberOfElementsToBeDeleted:i}=a,r=[],s=t.axisRanges.length-1,n=i;for(;n>0&&s>=0;){let o=t.axisRanges.getIndex(s);o!==void 0&&(ka(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&e===gr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)t.axisRanges.removeValue(r[o])}function FI(a,t){let e=iB(a,gr.Guides).length,i=t?.length??0,r=e-i;oG({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:gr.Guides})}function lG(a){let{axis:t,guideConfigs:e,anyGuideAboveChanged:i}=a;i&&FI(t),iG(t,e),nG(a),FI(t,e)}function s$(a){return a.getCellWidthPosition()*a.width()}function hG(a,t){let e=a.get("renderer");if(a!==void 0){let i=Number.NaN;if(t===tr.Wrap){let r=Number.MAX_SAFE_INTEGER;e.labels.each(n=>{ka(n.uid,"isGuide")!==!0&&n.width()>0&&(r=Math.min(r,n.innerWidth()))});let s=a instanceof hr?a.width()/q.maxNumberOfXAxisLabelsInWrapModeForDateAxis:a.width()/q.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(r,s)}else if(t===tr.Hide){let r=Number.MIN_SAFE_INTEGER;e.labels.each(s=>{ka(s.uid,"isGuide")!==!0&&s.width()>0&&(r=Math.max(r,s.innerWidth()))}),i=r+2}Number.isFinite(i)&&i>q.shortestMinGridDistance&&e.set("minGridDistance",i)}}function uG(a){let{axis:t,chartType:e,labelConfig:i,isSecondValueAxis:r,tickSpacing:s}=a,{horizontalAxisLabelsBehavior:n}=a;n===void 0&&(n=e!==V.HistogramSeries?tr.Rotate:tr.Hide);let o=t.get("renderer"),l=o.get("minGridDistance");if(typeof s=="number"&&Number.isFinite(s))l=s;else if(e!==V.RadarSeries)if(o instanceof Vs)l=q.gauge.gaugeMinGridDistance;else if(t instanceof ti)l=o instanceof as?q.xAxisMinGridDistance:q.yAxisMinGridDistance;else if(o instanceof as)if(r===!0)l=q.secondRotatedValueAxisMinGridDistance;else if(n===tr.Rotate){let h=i.content.font?.size??q.generalFontSize,c=t instanceof Sr?q.categoryAxisLabelPadding:q.axisLabelPadding;l=h*c}else if(n===tr.Wrap||n===tr.Hide){n===tr.Hide&&(l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance);let h=gu(t.uid,"minGridDistanceCallbackDisposer");h!==void 0&&h.dispose(),h=t.events.on(Ji.BoundsChanged,()=>{hG(t,n)}),BA(t.uid,{minGridDistanceCallbackDisposer:h})}else n===tr.Stagger?l=q.staggerMinGridDistance:l=t instanceof Sr?q.xCategoryAxisMinGridDistance:q.xAxisMinGridDistance;else l=t instanceof Sr?q.yCategoryAxisMinGridDistance:q.yAxisMinGridDistance;o.set("minGridDistance",l)}function TI(a=1,t){let e=t.get("renderer"),i=s$(t),r=0;e.labels.each(o=>{ka(o.uid,"isGuide")!==!0&&o.getText()!==void 0&&o.width()>0&&(r+=1)});let s=r>0?t.width()/r:0,n=Math.max(i,s)*a;if(Number.isFinite(n)&&n>0){let o=e.labels.template;o.get("maxWidth")!==n&&(o.set("maxWidth",n),o.get("html")!==void 0&&(o.set("html",void 0),o.set("html",q.htmlEmptyContent)))}}function PI(a,t=1){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),a.events.on(Ji.BoundsChanged,()=>TI(t,a)),TI(t,a)}function cG(a){let t=a.get("renderer").labels.template;t.adapters.add("rotation",(e,i)=>{let r=ka(i.uid,"isGuide")!==!0?gu(a.uid,"rotation")??0:e??0;return t.set("centerX",r===0?je:ge),r})}function KC(a){if(a?.chart!==void 0){let t=a.get("renderer");if(fe(a.chart.uid,"config")?.axes?.[0].labels!==void 0&&t.labels.length>1){let e=t.labels.getIndex(0)?.get("rotation"),i=0;t.labels.each(s=>{if(ka(s.uid,"isGuide")!==!0&&s.width()>0){let n=e===q.rotatedAxisLabel.rotation?Math.sqrt(s.innerHeight()**2+s.innerWidth()**2):s.innerWidth();n>i&&(i=n)}});let r=s$(a)>=i+5;if(!r&&e===0||r&&e===q.rotatedAxisLabel.rotation){let s=r?q.axisLabel.rotation:q.rotatedAxisLabel.rotation;t.labels.template.setAll({rotation:s,centerX:r?je:ge,centerY:Hr,paddingTop:r?q.axisLabel.paddingTop:q.rotatedAxisLabel.paddingTop,paddingLeft:r?q.axisLabel.paddingLeft:q.rotatedAxisLabel.paddingLeft,paddingRight:r?q.axisLabel.paddingRight:q.rotatedAxisLabel.paddingRight}),BA(a.uid,{rotation:s})}}}}function DI(a){let t=a.get("renderer");cG(a),t.labels.template.setAll({oversizedBehavior:"hide"}),a instanceof hr||(t.labels.template.setAll({multiLocation:.5}),t.ticks.template.setAll({multiLocation:.5})),a.events.on(Ji.BoundsChanged,()=>KC(a)),a.events.on(Ji.DataValidated,()=>KC(a)),KC()}function LI(a){if(a&&fe(a.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let t=0;a.dataItems.forEach((e,i)=>{let r=e.get("label");r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0&&i%2===0&&r.innerHeight()>t&&(t=r.innerHeight())}),t=Math.round(t),t>0&&(a.dataItems.filter(e=>{let i=e.get("tick"),r=e.get("label");return i!==void 0&&r!==void 0&&ka(r.uid,"isGuide")!==!0&&r.getText()!==void 0&&r.width()>0}).forEach((e,i)=>{let r=e.get("tick"),s=e.get("label"),n=i%2===1;r&&r.set("length",n?t+5:q.axisTickLength),s&&s.set("dy",n?t:0)}),t&&a.get("renderer").labels.template.get("paddingBottom")!==t+5&&a.get("renderer").labels.template.set("paddingBottom",t+5))}}function dG(a){a.get("renderer").labels.template.set("oversizedBehavior","wrap"),a.events.on(Ji.BoundsChanged,()=>LI(a)),LI(a)}function AG(a){a.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:q.yAxisLabelMaxWidth,textAlign:"end"})}function pG(a){let{axis:t,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:r,labelConfig:s,chartType:n}=a,o=t.get("renderer");if(!(o instanceof Vs))if(Zv(o)&&r?.[0]===!0)switch(n===V.HistogramSeries&&e===void 0?tr.Hide:e){case tr.Hide:break;case tr.Stagger:dG(t),PI(t,2);break;case tr.Wrap:PI(t);break;case tr.Rotate:DI(t);break;default:s.content.angle!==null&&s.content.angle===void 0&&DI(t);break}else Mz(o)&&i!==tr.Hide&&AG(t)}function fG(a){let{renderer:t,axisConfig:e,labelConfig:i}=a;switch(e.labelsOrientation){case zb.Horizontal:t.labels.template.setAll({textType:"adjusted"}),t.labels.template.remove("radius");break;case zb.Radial:t.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment="middle";break;default:t.labels.template.setAll({textType:"circular"}),t.labels.template.remove("radius")}}function mG(a){let{axis:t,axisConfig:{labels:e},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,chartType:n}=a,o={...e},l=t.get("renderer"),h=l?.get("opposite");Zv(l)?(o.content.horizontalAlignment="center",o.content.verticalAlignment=h?"bottom":"top"):(o.content.horizontalAlignment=h?"left":"right",o.content.verticalAlignment="middle"),l instanceof Vs?fG({renderer:l,axisConfig:a.axisConfig,labelConfig:e}):o.content.angle=o.content.angle??l.labels.template.get("rotation"),Cn({label:l.labels.template,labelConfig:o}),pG({axis:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:r,labelConfig:e,axisLabelsBehaviorChanged:s,chartType:n})}function gG(a){let{axis:t,isHorizontalAxis:e,label:i}=a,{chart:r}=t;if(r){let s=e?"width":"height",n=e?Wt.XAxisTitle:Wt.YAxisTitle;gl({chart:r,label:i,labelType:n}),t.onPrivate(s,Is(()=>gl({chart:r,label:i,labelType:n}),q.debounceTime))}}function yG(a){let{x:t,data:e,chart:i,valueFormat:r,minimum:s,maximum:n}=a,o=Number.NaN;if(e!==void 0&&t!==void 0){let l=e.find(c=>t in c),h=Number.parseFloat(l[t]);Number.isFinite(h)&&(o=h,Xr(i.uid,{gaugeData:o}))}else{let l=fe(i.uid,"gaugeData");Number.isFinite(l)&&(o=l)}return Mu(r)&&s!==void 0&&n!==void 0&&s!==null&&n!==null&&o!==null&&n-s!==0&&(o=Nf({value:o,axisMin:s,axisMax:n})),o}function vG(a,t){let e=t??null;if(t!=null){let i=a.xAxes.getIndex(0),r=fe(a.uid,"config"),s=i.get("min")??r?.axes?.[0].minimum??q.gauge.axisMinimum,n=i.get("max")??r?.axes?.[0].maximum??q.gauge.axisMaximum;t<s?e=s:t>n&&(e=n)}return e??void 0}function bG(a){let{root:t}=a,e=dl.new(t,{radius:Bt(100)}),i=a.makeDataItem({value:0,bullet:ou.new(t,{sprite:e})});return a.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),e}function xG(a){let{chart:t,axis:e,needleConfig:i,gaugeValue:r}=a,s=e.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof dl),n=s?.get("bullet")?.get("sprite");if(s&&n instanceof dl){let{startWidth:o,endWidth:l,innerRadius:h}=q.gaugeNeedle;vu({root:e.root,element:n.hand,fillSymbol:i?.symbol}),vu({root:e.root,element:n.pin,fillSymbol:i?.symbol}),s.set("value",vG(t,r)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Bt(i?.innerRadius??h),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??l})}}function _G(a,t){let e=Number.isFinite(t?.innerRadius)?t?.innerRadius:q.gauge.innerRadius;typeof e=="number"&&Number.isFinite(e)&&a.set("innerRadius",Bt(e))}function CG(a,t){let e=Number.isFinite(t?.startAngle)?t?.startAngle:q.gauge.startAngle,i=Number.isFinite(t?.endAngle)?t?.endAngle:q.gauge.endAngle;typeof e=="number"&&Number.isFinite(e)&&a.set("startAngle",e),typeof i=="number"&&Number.isFinite(i)&&a.set("endAngle",i)}function wG(a){let{chart:t,chartConfig:e,data:i,queryObject:r,xAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,gaugeMinMaxFromData:l}=a,{axes:h,series:c}=e,u=Hu(e),{featureIndex:d,x:A}=c[0],p=h?.[0],f=t.xAxes.getIndex(0),m={...p};if(f instanceof ti&&f.get("renderer")instanceof Vs&&m!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:y}=m;_G(t,e),CG(t,e);let x=Ew({featureIndex:d,chartData:i.dataItems,chartConfig:e,gaugeMinMaxFromData:l,queryConfig:fe(t.uid,"queryConfig")});m.minimum=x.minimum,m.maximum=x.maximum;let{min:w,max:S}=V1(m),T={...m};Mu(g)?(T.minimum=0,T.maximum=1,N1({axisConfig:T,axisMin:m.minimum,axisMax:m.maximum})):(T.minimum=w,T.maximum=S),sB({chartConfig:e,axis:f,axisConfig:T,axisConfigIndex:0,externalAxisLabelFormatter:s,utilsStrings:n,errorStrings:o,queryObject:r});let F=u?x?.dataValue:yG({x:A,data:i.dataItems,chart:t,minimum:m.minimum,maximum:m.maximum,valueFormat:g});xG({chart:t,axis:f,needleConfig:y,gaugeValue:F})}}function BG(a){let{chart:t,axesConfig:e,errorStrings:i}=a,{root:r}=t;Pl({chartType:V.GaugeSeries,axesConfig:e,errorStrings:i});let s=t.xAxes.push(ti.new(r,{min:0,max:100,renderer:Vs.new(r,{})}));bG(s),i$(s)}function SG(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,data:s,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:l,xAxisLabelFormatter:h,guideTooltipFormatter:c,utilsStrings:u,errorStrings:d,queryObject:A}=a,{horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axes:m}=e,g=V.HistogramSeries,y=t.xAxes.getIndex(0),x=t.yAxes.getIndex(0);Pl({chartType:g,axesConfig:m,errorStrings:d}),[{axis:y,axisConfig:m?.[0],externalAxisLabelFormatter:h},{axis:x,axisConfig:m?.[1],externalAxisLabelFormatter:l}].forEach((w,S)=>{let{axis:T,axisConfig:F,externalAxisLabelFormatter:L}=w;T!==void 0&&!T.isDisposed()&&F!==void 0&&sB({axis:T,data:s,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:r,axisConfig:F,axisConfigIndex:S,horizontalAxisLabelsBehavior:p,verticalAxisLabelsBehavior:f,axisLabelsBehaviorChanged:i,utilsStrings:u,chartConfig:e,externalAxisLabelFormatter:L,guideTooltipFormatter:c,errorStrings:d,queryObject:A})}),Lv(t,s)}function FG(a){let{chart:t,axesConfig:e,x:i,errorStrings:r}=a,{root:s}=t,n=V.HistogramSeries;Pl({chartType:n,axesConfig:e,errorStrings:r});let o={root:s,x:i,chartType:n},l=e?.[0]?.valueFormat,h=e?.[1]?.valueFormat;if(l!==void 0&&h!==void 0){let c=pu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:as.new(s,{}),isXAxis:!0,x:i}),u=pu({...o,axes:t.xAxes,valueFormat:l,axisRenderer:as.new(s,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});pu({...o,axes:t.yAxes,valueFormat:h,axisRenderer:ya.new(s,{}),isXAxis:!1,x:i}),c&&(c.get("renderer").grid.template.set("location",0),c.get("renderer").ticks.template.set("location",0),c.get("renderer").labels.template.set("location",0)),u&&(u.set("visible",!1),u.get("renderer").grid.template.set("visible",!1),u.get("renderer").ticks.template.set("visible",!1),u.get("renderer").labels.template.set("visible",!1))}}function rB(a){let{isXAxis:t,chartType:e,valueFormat:i,isAxisForHistogramOverlaySeries:r}=a;return e===V.HeatSeries||t&&(ud(i)||e===V.HistogramSeries&&!r||e===V.BarSeries&&ba(i))}function a$(a,t){return t?`${cw}_x_${a.uid}`:`${cw}_y_${a.uid}`}function pw(a,t){let e=fe(a.chart?.uid??Number.NaN,"config"),i=us(e)?1:0,r=e?.axes?.[i]?.title?.content?.verticalAlignment,s=Yz(a),n=s;switch(r){case"baseline":case"middle":n=s/2;break;case"bottom":n=Math.min(s,0);break}t?.set("dy",n)}function TG(a){a instanceof ti&&(a.onPrivate("min",CI),a.onPrivate("max",CI))}function PG(a){let{axis:t,isHorizontalAxis:e,isSecondValueAxis:i}=a,{root:r}=t,s=e?{...q.xAxisTitleLabel,verticalCenter:"top"}:q.yAxisTitleLabel,n=vA({root:r,id:a$(t,e),defaults:s});return t.get("renderer")instanceof ya&&i!==!0||t.get("renderer")instanceof as&&i===!0?t.children.unshift(n):t.children.push(n),e&&i!==!0&&(t.events.onDebounced(Ji.BoundsChanged,()=>pw(t,n),q.debounceTime),t.events.onDebounced(Ji.DataValidated,()=>pw(t,n),q.debounceTime),gG({axis:t,isHorizontalAxis:e,label:n})),!e&&t.chart&&Qc({chart:t.chart,label:n,labelType:Wt.YAxisTitle}),n}function pu(a){let{root:t,axes:e,isXAxis:i,valueFormat:r,axisRenderer:s,isSecondValueAxis:n=!1,chartType:o,x:l,isAxisForHistogramOverlaySeries:h}=a,c;if(rB({isXAxis:i,chartType:o,valueFormat:r,isAxisForHistogramOverlaySeries:h})&&!n){let u;switch(o){case V.HeatSeries:u=i?xr.xField:xr.yField;break;case V.HistogramSeries:u=dd.Start;break;case V.BoxPlotSeries:u=l;break;default:u=q.xAxisField;break}u&&(c=e.push(Sr.new(t,{categoryField:u,renderer:s})))}else if(ro(r))c=e.push(hr.new(t,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:s}));else if(ba(r)&&(c=e.push(ti.new(t,{strictMinMax:!0,renderer:s})),n&&c instanceof ti)){let u=e.getIndex(0);u instanceof ti&&c.set("syncWithAxis",u)}if(c!==void 0&&!h){Gz(c),t$(t,c);let u=o===V.HistogramSeries||o===V.HeatSeries?0:.1,d=o===V.HistogramSeries||o===V.HeatSeries?1:.9;c.get("renderer").setAll({cellStartLocation:u,cellEndLocation:d}),o===V.HeatSeries&&(s instanceof as||s instanceof ya)&&s.setAll({layer:q.zIndexes.axisLineLayer}),i$(c),TG(c),Zv(c.get("renderer"))?c.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",q.axisLabelSpacing.horizontalAxisLabelPaddingTop):s instanceof ya&&c.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",q.axisLabelSpacing.verticalAxisLabelSidePadding)}return c}function DG(a){let{axis:t,data:e,chartConfig:i,dataWasUpdated:r,axesInitializationNeeded:s,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=a;if(e&&(r||s||n||o)){let l=Ln(e);if(so(i)){let h=qW(t),c=e?.heatChartAxesData,u=h===xr.xField?c?.xAxisData:c?.yAxisData;t.data.setAll(u??[])}else t.data.setAll(l??[])}}function LG(a){let{axis:t,axisTitleConfig:e,isSecondValueAxis:i}=a,r=t.get("renderer"),{chart:s}=t,n=Zv(r),o=Di({childId:a$(t,n),parent:t,useChildId:!0})??PG({axis:t,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof Kt){let l=n?{...q.xAxisTitleLabel,verticalCenter:"top"}:q.yAxisTitleLabel;if(Cn({label:o,labelConfig:e,defaults:l}),n&&i!==!0&&pw(t,o),s){let h={chart:s,label:o,labelType:n?Wt.XAxisTitle:Wt.YAxisTitle};gl(h)}}}function sB(a){let{axis:t,data:e,dataWasUpdated:i,axesInitializationNeeded:r,sortChanged:s,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:l,timeIntervalInfo:h,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:A,isNonAggregatedChart:p,isSecondValueAxis:f,chartConfig:m,externalAxisLabelFormatter:g,guideTooltipFormatter:y,utilsStrings:x,errorStrings:w,queryObject:S}=a,{visible:T,lineSymbol:F,title:L,labels:$,isLogarithmic:I,grid:U,displayCursorTooltip:P,displayZeroLine:Q,valueFormat:G,guides:Y,tickSpacing:ee,dateBaseInterval:te}=o,{root:le}=t,z=ze(m.series),K=ks(m),we=us(m),{chart:se}=t,de=se?fe(se.uid,"config"):void 0,$e=se?fe(se.uid,"options"):void 0,Ye=$s(S),He=_a(Ye).find(wi=>wi.name===de?.series?.[0]?.x),qe=tT(He),Tt=ep({chartConfig:m,queryObject:S,options:$e}),At=bh(m.series[0])?m.series[0].temporalBinning?.outTimeZone:void 0,xi=t.get("renderer");BA(t.uid,{zeroGridLine:{displayZeroLine:Q,strokeWidth:U?.width??q.lineWidth,visible:U!==void 0}}),Rz({axis:t,isLogarithmic:I,axisConfigIndex:l}),Oz({axis:t,isXAxis:bu(t.get("renderer"),we),chartType:z,formatOptions:G,isNonAggregatedChart:p,overridePercentMultiplication:K===$i.Stacked100,externalAxisLabelFormatter:g,isTimeOnlyField:qe,setTimeZone:Tt,outTimeZone:At,errorStrings:w}),$z({axis:t,isRotated:we,chartConfig:m}),Nz({axis:t,timeIntervalInfo:h,dateBaseInterval:te,xFieldIsTimeOnly:qe}),Fo({element:xi,lineSymbol:{color:[...q.color],...F??KA()},visible:T}),Fo({element:xi.ticks.template,lineSymbol:F,visible:T}),Fo({element:xi.grid.template,lineSymbol:U,visible:T}),U===void 0&&(t.get("renderer").grid.template.set("strokeWidth",q.lineWidth),t.markDirtyValues()),mG({axis:t,axisConfig:o,chartType:z,horizontalAxisLabelsBehavior:c,verticalAxisLabelsBehavior:u,axisLabelsBehaviorChanged:d}),LG({axis:t,axisTitleConfig:L,isSecondValueAxis:f}),Uz(t,o),uG({axis:t,chartType:z,labelConfig:$,horizontalAxisLabelsBehavior:c,isSecondValueAxis:f,tickSpacing:ee}),Vz({root:le,axis:t,displayCursorTooltip:P}),lG({axis:t,guideConfigs:Y,guideTooltipFormatter:y,anyGuideAboveChanged:A,utilsStrings:x}),DG({axis:t,data:e,chartConfig:m,dataWasUpdated:i,axesInitializationNeeded:r,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:s})}function IG(a){let{chart:t,errorStrings:e}=a,{root:i}=t,r=fe(t.uid,"config");if(r){let{x:s}=r.series[0],n=us(r),{axes:o}=r,l=ze(r.series);Pl({chartType:l,axesConfig:o,errorStrings:e});let h={root:i,x:s,chartType:l},c=n?o?.[1]:o?.[0],u=n?o?.[0]:o?.[1],d=c?.valueFormat,A=u?.valueFormat;if(d!==void 0&&A!==void 0&&(pu({...h,axes:t.xAxes,valueFormat:d,axisRenderer:as.new(i,{}),isXAxis:!n,x:s}),pu({...h,axes:t.yAxes,valueFormat:A,axisRenderer:ya.new(i,{}),isXAxis:n,x:s}),o?.[2]!==void 0)){let p=n?as:ya;pu({...h,axes:n?t.xAxes:t.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:p.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:s})}}}function kG(a){let{chart:t,chartType:e,axesConfig:i,x:r,errorStrings:s}=a,{root:n}=t,o=i?.[0],l=i?.[1];if(Pl({chartType:e,axesConfig:i,errorStrings:s}),o?.valueFormat!==void 0&&l?.valueFormat!==void 0){let h={root:n,x:r,chartType:e};pu({...h,axes:t.xAxes,valueFormat:o.valueFormat,axisRenderer:Vs.new(n,{}),isXAxis:!0,x:r}),pu({...h,axes:t.yAxes,valueFormat:l.valueFormat,axisRenderer:au.new(n,{}),isXAxis:!1,x:r})}}function n$(a){let{chart:t,chartConfig:e,errorStrings:i}=a,{axes:r}=e,{x:s}=e.series[0],n=ze(e.series);switch(t.xAxes.clear(),t.yAxes.clear(),n){case V.GaugeSeries:t instanceof Da&&BG({chart:t,axesConfig:r,errorStrings:i});break;case V.HistogramSeries:FG({chart:t,axesConfig:r,x:s,errorStrings:i});break;case V.HeatSeries:case V.BarSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.LineSeries:case V.BoxPlotSeries:IG({chart:t,errorStrings:i});break;case V.RadarSeries:t instanceof Da&&kG({chart:t,axesConfig:r,chartType:n,x:s,errorStrings:i});break}}function $G(a){let{chart:t,chartConfig:e,axisLabelsBehaviorChanged:i,sortChanged:r,anyGuideAboveChanged:s,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,timeIntervalInfo:c,xAxisLabelFormatter:u,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:A,guideTooltipFormatter:p,utilsStrings:f,errorStrings:m,queryObject:g}=a,{horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axes:w}=e,S=us(e),T=ze(e.series),F=fe(t.uid,"isNonAggregatedChart"),L=t.xAxes.getIndex(0),$=t.yAxes.getIndex(0),I=t.xAxes.getIndex(1)??t.yAxes.getIndex(1);Pl({chartType:T,axesConfig:w,errorStrings:m});let U=S?1:0,P=S?0:1,Q=w?.[U],G=w?.[P];[{axis:L,axisConfig:Q,externalAxisLabelFormatter:S?d:u,axisConfigIndex:U},{axis:$,axisConfig:G,externalAxisLabelFormatter:S?u:d,axisConfigIndex:P},{axis:I,axisConfig:w?.[2],externalAxisLabelFormatter:A,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(Y=>{let{axis:ee,axisConfig:te,axisConfigIndex:le,externalAxisLabelFormatter:z,isSecondValueAxis:K}=Y;ee!==void 0&&!ee.isDisposed()&&te!==void 0&&sB({axis:ee,data:n,dataWasUpdated:o,axesInitializationNeeded:l,heatChartHideEmptyRowsAndColumnsChanged:h,sortChanged:r,timeIntervalInfo:c,axisConfig:te,axisConfigIndex:le,horizontalAxisLabelsBehavior:y,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:s,isNonAggregatedChart:F,isSecondValueAxis:K,utilsStrings:f,chartConfig:e,externalAxisLabelFormatter:z,guideTooltipFormatter:p,errorStrings:m,queryObject:g})}),Lv(t,n)}function o$(a){let{chart:t,chartConfig:e}=a,i=ze(e.series);i===V.GaugeSeries&&t instanceof Da?wG(a):i===V.HistogramSeries?SG(a):$G(a)}function OG(a,t){let e=Xt(q.backgroundColor);t.set("background",or.new(a,{fill:e.color,fillOpacity:e.opacity}))}function l$(a,t){let e=Xt(t??q.backgroundColor);a.get("background")?.setAll({fill:e.color,fillOpacity:e.opacity})}function h$(a,t){let e=ze(t.series);return a instanceof vi&&e!==V.GaugeSeries}function EG(a,t){let e=q.cursorCrosshair.style,i={type:Rt.SLS,style:t?.style??e.style,color:t?.color??e.color,width:t?.width??e.width},r=a.get("cursor")?.lineX,s=a.get("cursor")?.lineY;Fo({element:r,lineSymbol:i}),Fo({element:s,lineSymbol:i})}function u$(a){let{root:t,chart:e,config:i,queryObject:r,errorStrings:s}=a,n;if(h$(e,i)){let o=e instanceof Da?Al:Yn;n=e.set("cursor",o.new(t,{})),iz({chart:e,queryObject:r,errorStrings:s})}return n}function c$(a){let{root:t,chart:e,cursorCrosshair:i,config:r,queryObject:s,errorStrings:n}=a;if(h$(e,r)){let o=e.get("cursor")??u$({root:t,chart:e,config:r,queryObject:s,errorStrings:n});o&&(EG(e,i?.style),o.lineX.set("visible",i?.verticalLineVisible??q.cursorCrosshair.verticalLineVisible),o.lineY.set("visible",i?.horizontalLineVisible??q.cursorCrosshair.horizontalLineVisible))}}function MG(a){let{chart:t,enabled:e}=a,i=e?"pointer":"default";t instanceof fs&&t.series.each(r=>{switch(!0){case r instanceof Ri:r.columns.template.set("cursorOverStyle",i);break;case r instanceof ei:let s=bi(r.uid,"bulletTemplate");s!==void 0&&!rh(r)&&s.set("cursorOverStyle",i);break;case r instanceof Ur:r.slices.template.setAll({cursorOverStyle:i});break}})}function RG(a){let{chart:t,actionMode:e,cursorRange:i}=a,r=fe(t.uid,"isRotated"),s=fe(t.uid,"config"),n=ze(s?.series),o=n===V.ScatterSeries,l=(n===V.LineSeries||n===V.RadarSeries)&&ba(s?.axes?.[0]?.valueFormat),h=(n===V.LineSeries||n===V.RadarSeries)&&ud(s?.axes?.[0]?.valueFormat),c=(n===V.LineSeries||n===V.RadarSeries)&&ro(s?.axes?.[0]?.valueFormat),u,d=!1,A=e??fe(t.uid,"actionMode")??q.actionMode;if(fe(t.uid,"filterBySelection")===!0)u=Hi.None,d=!1;else if(i!==void 0)u=ZI({actionMode:A,cursorRange:i,isRotated:r});else switch(A){case Ut.Zoom:o||l||c?u=Hi.ZoomXY:u=r===!0?Hi.ZoomY:Hi.ZoomX,d=!1;break;case Ut.MultiSelection:case Ut.MultiSelectionWithCtrlKey:h?u=r===!0?Hi.SelectY:Hi.SelectX:u=Hi.SelectXY,d=!0;break;case Ut.MonoSelection:u=Hi.None,d=!0;break;case Ut.None:u=Hi.None,d=!1;break}t instanceof vi&&t.get("cursor")!==void 0&&u!==void 0&&t.get("cursor")?.set("behavior",u),MG({chart:t,enabled:d})}function UG(a,t){t!==void 0&&(t.width!==void 0&&a.set("width",lI(t.width)),t.height!==void 0&&a.set("height",lI(t.height)),t.paddingTop!==void 0&&a.set("paddingTop",t.paddingTop),t.paddingBottom!==void 0&&a.set("paddingBottom",t.paddingBottom))}function fw(a){let{root:t,defaults:e,parent:i,id:r,index:s}=a,n=Re.new(t,{});return UG(n,e),i!==void 0&&i.children.insertIndex(s??i.children.length,n),r!==void 0&&n.set("id",r),n}function mw(a,t){t?a.hide():a.show()}function VG(a,t){let e=fw({root:a,defaults:q.headerContainer,parent:t,id:Qs(Gv,t.uid),index:0}),i=fw({root:a,defaults:q.headerContainer,parent:t,id:Qs(Yw,t.uid),index:1}),r=vA({root:a,parent:e,defaults:q.titleLabel,id:Qs(Bk,e.uid)}),s=vA({root:a,parent:i,defaults:q.subtitleLabel,id:Qs(Sk,i.uid)});Qc({chart:t,label:r,labelType:Wt.ChartTitle}),Qc({chart:t,label:s,labelType:Wt.ChartSubTitle})}function d$(a,t){let{title:e,subtitle:i}=t??{},r=fe(a.uid,"config"),s=r?.legend?.visible!==!1&&r?.legend?.position===st.Top?0:q.headerContainer.paddingBottom??0,n=Di({childId:Gv,parent:a});if(n!==void 0){n.set("paddingBottom",s);let l=Di({childId:Bk,parent:n});l!==void 0&&(Cn({label:l,labelConfig:e,defaults:q.titleLabel}),gl({chart:a,label:l,labelType:Wt.ChartTitle}),mw(n,l.get("disabled")===!0||(e?.content.text??"")===""))}let o=Di({childId:Yw,parent:a});if(o!==void 0){o.set("paddingBottom",s),n!==void 0&&n.set("paddingBottom",q.titleAndSubtitlePaddingBottom);let l=Di({childId:Sk,parent:o});l!==void 0&&(Cn({label:l,labelConfig:i,defaults:q.subtitleLabel}),gl({chart:a,label:l,labelType:Wt.ChartSubTitle}),mw(o,l.get("disabled")===!0||(i?.content.text??"")===""))}}function NG(a){let{root:t}=a,e=fw({root:t,defaults:q.footerContainer,parent:a,id:Qs(Yv,a.uid)}),i=vA({root:t,parent:e,id:Qs(Fk,e.uid)});Qc({chart:a,label:i,labelType:Wt.ChartFooter})}function A$(a,t){let e=Di({childId:Yv,parent:a});if(e!==void 0){let i=Di({childId:Fk,parent:e});i!==void 0&&(Cn({label:i,labelConfig:t,defaults:q.footer}),gl({chart:a,label:i,labelType:Wt.ChartFooter}),mw(e,i.get("disabled")||(t?.content.text??"")===""))}}function p$(a){if(!(a instanceof Da)&&a instanceof vi){let{root:t}=a,e=ll.new(t,{orientation:"horizontal",visible:!1,marginTop:0}),i=ll.new(t,{orientation:"vertical",visible:!1});a.setAll({scrollbarX:e,scrollbarY:i})}}function QG(a,t){if(t!==void 0){let e=Xt(t),i=t[3]/255,r=i/2;[{element:a.get("background"),specificOpacity:r},{element:a.startGrip.get("background")},{element:a.endGrip.get("background")},{element:a.thumb}].forEach(s=>{let{element:n,specificOpacity:o}=s;n!==void 0&&n.setAll({fill:e.color,fillOpacity:o??i})}),[{element:a.get("background"),stateName:"default",specificOpacity:r},{element:a.startGrip.get("background"),stateName:"default"},{element:a.startGrip.get("background"),stateName:"hover"},{element:a.startGrip.get("background"),stateName:"down"},{element:a.endGrip.get("background"),stateName:"default"},{element:a.endGrip.get("background"),stateName:"hover"},{element:a.endGrip.get("background"),stateName:"down"},{element:a.thumb,stateName:"default"},{element:a.thumb,stateName:"hover"},{element:a.thumb,stateName:"down"}].forEach(s=>{let{element:n,stateName:o,specificOpacity:l}=s;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:e.color,fillOpacity:l??i})})}}function HG(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.setAll({height:t,minHeight:t}):a.setAll({width:t,minWidth:t}))}function jG(a,t){if(typeof t=="number"&&Number.isFinite(t)){let e=t/30;a.startGrip.set("scale",e),a.endGrip.set("scale",e)}}function II(a,t){typeof t=="number"&&Number.isFinite(t)&&(a.get("orientation")==="horizontal"?a.set("marginBottom",t):a.set("marginLeft",t),a.markDirtyBounds())}function f$(a){let{chart:t,scrollbarXConfig:e,scrollbarYConfig:i}=a;if(!(t instanceof Da)&&t instanceof vi){let r=fe(t.uid,"isRotated");(t.get("scrollbarX")===void 0||t.get("scrollbarY")===void 0)&&p$(t);let s=t.get("scrollbarX"),n=t.get("scrollbarY");[s,n].forEach(o=>{if(o!==void 0){let l=o.get("orientation")==="horizontal"&&r!==!0||o.get("orientation")==="vertical"&&r===!0?e:i,h=l?.visible!==!0;if(Li(o,!h),l!==void 0&&!h){let{width:c,color:u,gripSize:d,margin:A}=l;II(o,A??c??q.scrollbarPadding),QG(o,u),jG(o,d),HG(o,c)}else II(o,0)}})}}function WG(a){fk(a)}function kI(a){return a.get("legendDataItem")?.get("marker").children.getIndex(0)}function XG(a,t){a.columns.each(e=>{(e.dataItem?.dataContext)[t]===0&&e.set("strokeOpacity",0)})}function zG(a){let{root:t,chartConfig:e,seriesConfig:i,xAxis:r,yAxis:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=i,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,i),f=rT(e),m=Ri.new(t,{id:h,name:c,stacked:f,turboMode:!0,xAxis:r,yAxis:s,[A]:u,[p]:d,maskBullets:!1});ns(m.columns.template,n?.selectionTheme);let g=It.new({});return Gr(m.uid,{bulletTemplate:g}),To({element:m.columns.template,series:m,queryObject:o,errorStrings:l}),m.bullets.push(y=>{let x=ft.new(y,{},g);return fa.new(y,{sprite:x})}),m.columns.template.set("width",Bt(100)),tB(m),mk(m,n?.tooltipFormatter),Nk(m),TA(m,e),m.appear(),m}function GG(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,chartSubType:s,colorMatch:n,rendererType:o}=a,l=t.root,h=zf(t),c=new Set,u,d,A=e.fillSymbol,p={root:l,seriesConfig:e,seriesIndex:i,seriesSymbol:A,isChartFillSymbol:!0},f={},m={},g=Jb(i),y=bi(t.uid,"bulletTemplate");if(y&&A?.style&&A.style!==vs.Solid&&vu({root:l,element:y,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:nk(t.chart)??[...q.backgroundColor]}),t.columns.length===0?f=Ja({root:l,seriesIndex:i,colorMatch:n,seriesSymbol:A??g,element:ft.new(l,{}),isChartFillSymbol:!0}):t.columns.each(x=>{let w=x.dataItem?.dataContext;if(Number.isFinite(w?.[h])){d=on({dataItem:w,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:o});let S=w[q.xAxisField]===q.nullValue,T=(S&&e.nullCategory?.symbol!==void 0?e.nullCategory.symbol:A)??g;f=Ja({...p,seriesSymbol:T,element:x,colorMatch:n,rendererSymbol:d}),mA(x,f.stylingInfo),S||(c.add(JSON.stringify(f.symbolWithColorInfo)),m=f)}}),r>1){let x=kI(t);if(x!==void 0)Ja({...p,seriesSymbol:A??g,element:x,colorMatch:n,rendererSymbol:d}),mA(x,m.stylingInfo);else if(t.chart instanceof vi){let w=t.chart.children.values.find(S=>S instanceof nl);w!==void 0&&w.events.once(Ji.BoundsChanged,()=>{mA(kI(t),m.stylingInfo)})}Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),Ja({...p,seriesSymbol:m.symbolWithColorInfo??A??g,element:t.columns.template,colorMatch:n,rendererSymbol:d})}return c.size<=1&&(u=m.symbolWithColorInfo??A),XG(t,h),u}function YG(a){let{series:t,seriesSymbolMapForEvent:e,seriesIndexMapper:i,seriesIndex:r,colorMatch:s,rendererType:n,interactionsDisabled:o}=a,l=a.seriesConfig,h=t.chart;if(h!==void 0){let c=fe(h.uid,"config"),u=c?.series.length??0,d=kt(c?.series);xA(t,!1);let A=GG({series:t,seriesConfig:l,seriesIndex:r,numberOfSeries:u,chartSubType:d,colorMatch:s,rendererType:n});o&&xA(t,!0),e.set(i?.get(l.id)??r,A),e.size===u&&nn({data:e,htmlContainer:t.root.dom,chartId:h.get("id"),colorMatchApplied:PA(h)})}}function KG(a){let{columnSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c}=a,u=r.series[i];if(e&&u?.type===V.BarSeries&&(o===!0||s===!0||c===!0||l===!0||h||n===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=SA(r,u);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function ZG(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:l,queryObject:h,utilsStrings:c,seriesWereReinitialized:u,autoInverseDataLabelTextColor:d,fieldList:A,sortChanged:p,stackedTypeChanged:f}=a,m=i.series[s],g=i.rotated;if(t.set("id",m.id),Li(t,m.visible),ns(t.columns.template,r?.selectionTheme),_u(t.columns.template,e?.dataItems?.length),Jw({series:t,chartConfig:i,isRotated:g}),WG({seriesType:V.BarSeries,series:t,seriesConfig:m,isRotated:g,dataLabelsConfig:m.dataLabels,autoInverseDataLabelTextColor:d,externalDataLabelFormatter:r?.dataLabelFormatter}),KG({columnSeries:t,data:e,seriesIndex:s,chartConfig:i,dataWasUpdated:n,timeZoneChanged:l,seriesWereReinitialized:u,rotationChanged:o,stackedTypeChanged:f,sortChanged:p}),Gw({series:t,seriesConfig:m,fieldList:A,queryObject:h,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:c}),sh(a)){let y={series:t,seriesConfig:m,seriesIndex:s,colorMatch:a.colorMatch,seriesIndexMapper:a.seriesIndexMapper,seriesSymbolMapForEvent:a.seriesSymbolMapForEvent,rendererType:a.rendererType,interactionsDisabled:r?.interactionsDisabled};ah({styleCallback:()=>YG(y),series:t,seriesConfig:m})}eB({chartConfig:i,series:t,seriesIndex:s,queryObject:h})}function qG(a){let{chartConfig:t,seriesConfig:e}=a,i=us(t),r=t.showOutliers,s=t.standardizeValues,n=oa(t),{y:o}=e,l=hg(t),h=kt(l.series),c=n?void 0:e?.query?.where,u={y:h===ke.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:h,splitBy:c,showOutliers:r,standardizeValues:pd(h)?s:!1},d=qv({chartConfig:t,seriesConfig:e,key:Yt.ThirdQuartile});return{properties:{...d.properties,low:Zi({...u,key:Yt.Min}),open:Zi({...u,key:Yt.FirstQuartile}),high:Zi({...u,key:Yt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function JG(a){let{candleStickSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function e5(a){let{candleStickSeries:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,showMean:n,rendererType:o,options:l}=a,{root:h}=t,c=e.fillSymbol??zm(i),u={},d={root:h,seriesConfig:e,seriesIndex:i,colorMatch:s,isChartFillSymbol:!0};xA(t,!1),t.columns.length===0?u=Ja({...d,seriesSymbol:c,element:ft.new(h,{})}):t.columns.each(A=>{u=Ja({...d,seriesSymbol:c,element:A,rendererSymbol:n?void 0:on({dataItem:A.dataItem?.dataContext,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:o})})}),Ja({...d,seriesSymbol:u?.symbolWithColorInfo??c,element:t.columns.template,colorMatch:s}),l?.interactionsDisabled&&xA(t,!0)}function t5(a){let{candleStickSeries:t,seriesConfig:e,data:i,options:r}=a;ns(t.columns.template,r?.selectionTheme),_u(t.columns.template,i?.dataItems?.length),FA(t,e.name),JG(a),sh(a)&&ah({styleCallback:()=>e5(a),series:t,seriesConfig:e})}function i5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.BoxPlotSeries){let u=qG({chartConfig:r,seriesConfig:h});c=La.new(t,{id:h.id,turboMode:!0,xAxis:e,yAxis:i,[u.dataFields.low]:u.properties.low,[u.dataFields.open]:u.properties.open,[u.dataFields.high]:u.properties.high,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.columns.template.setAll({themeTags:[],width:Bt(80)}),ns(c.columns.template,n?.selectionTheme),To({element:c.columns.template,series:c,queryObject:o,errorStrings:l})}return c}function r5(a){let{chartConfig:t,seriesConfig:e}=a,i=kt(t.series),{showOutliers:r,standardizeValues:s}=t,{y:n}=e,o=e?.query?.where,l=hg(t),h=qv({chartConfig:l,seriesConfig:e,key:Yt.Average}),c=Zi({y:i===ke.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:r,standardizeValues:pd(i)?s:!1,key:Yt.Average});return h.properties.value=c,h}function s5(a){let{meanLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.meanLines??[])}function a5(a){let{meanLineSeries:t,seriesConfig:e,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a,h=bi(t.uid,"bulletTemplate");h&&ns(h,l?.selectionTheme),_u(h,i?.meanLines?.length),FA(t,e?.name),s5({meanLineSeries:t,data:i,dataWasUpdated:r,sortChanged:s,rotationChanged:n,seriesWereReinitialized:o})}function n5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.LineSeries){let u=r5({chartConfig:r,seriesConfig:h});c=ei.new(t,{id:h.id,xAxis:e,yAxis:i,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.appear();let d=It.new({});Gr(c.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:d}),ns(d,n?.selectionTheme),c.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return c&&To({element:p,series:c,queryObject:o,errorStrings:l}),f}),c.strokes.template.set("lineJoin",q.lineJoin)}return c}function o5(a,t){return a.get("id")===`${t}_${ji.Outliers}`}function l5(a){let{chartConfig:t,seriesConfig:e}=a;return qv({chartConfig:t,seriesConfig:e,key:Yt.Outlier})}function h5(a){let{outlierSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.outliers??[])}function u5(a,t){return(a??q.boxPlot.boxPlotOutliersVisibility)&&t!==!1}function c5(a){let{outlierSeries:t,chartSubType:e,seriesConfig:i,colorMatch:r,showOutliers:s}=a;if(bi(t.uid,"bulletTemplate")&&i.type===V.BoxPlotSeries){let o=i.fillSymbol,l={type:Rt.SMS,style:YA.Circle,color:o?.color,size:q.boxPlot.boxPlotOutliersSize};t.dataItems.forEach(h=>{let c=h.bullets?.[0]?.get("sprite");if(c!==void 0){let u=on({dataItem:h.dataContext,seriesConfig:i,chartSubType:e,colorMatch:r});Ja({root:t.root,seriesSymbol:l,element:c,colorMatch:r,rendererSymbol:u})}})}let n=u5(s,i.visible);Li(t,n)}function d5(a){let{outlierSeries:t,data:e,seriesConfig:i,sortChanged:r,dataWasUpdated:s,rotationChanged:n,seriesWereReinitialized:o,options:l}=a;if(t&&i.type===V.BoxPlotSeries){let h=bi(t.uid,"bulletTemplate");h&&ns(h,l?.selectionTheme),_u(h,e?.outliers?.length),h5({outlierSeries:t,data:e,rotationChanged:n,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:o}),sh(a)&&ah({styleCallback:()=>c5(a),series:t,seriesConfig:i})}}function A5(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,options:n,queryObject:o,errorStrings:l}=a,h=r.series[s],c;if(h.type===V.BoxPlotSeries){let u=l5({chartConfig:r,seriesConfig:h});c=ei.new(t,{id:`${h.id}_${ji.Outliers}`,xAxis:e,yAxis:i,[u.dataFields.value]:u.properties.value,[u.dataFields.category]:u.properties.category}),c.strokes.template.set("forceHidden",!0);let d=It.new({});Gr(c.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:d}),ns(d,n?.selectionTheme),c.bullets.push(A=>{let p=ft.new(A,{},d),f=fa.new(A,{sprite:p});return c&&To({element:p,series:c,queryObject:o,errorStrings:l}),v5({outlierSeries:c,bullet:f,seriesConfigId:h.id}),f}),c.appear()}return c}function p5(a){let{chartConfig:t,seriesConfig:e,type:i}=a,r="";switch(i){case ji.Top:r=Yt.Max;break;case ji.Median:r=Yt.Median;break;case ji.Bottom:r=Yt.Min;break}return qv({chartConfig:t,seriesConfig:e,key:r})}function f5(a){let{stepLineSeries:t,data:e,rotationChanged:i,sortChanged:r,dataWasUpdated:s,seriesWereReinitialized:n}=a;(i===!0||s===!0||r===!0||n===!0)&&t.data.setAll(e?.dataItems??[])}function m5(a){let{stepLineSeries:t,data:e,seriesConfig:i,seriesIndex:r,colorMatch:s,chartSubType:n,rendererType:o}=a;if(i.type===V.BoxPlotSeries){let{root:l}=t,h=s1({data:e.dataItems,colorMatch:s,chartSubType:n,rendererType:o}),c=(i.fillSymbol??zm(r)).color,u={type:Rt.SLS,width:q.boxPlot.boxPlotLineWidth,color:h?q.boxPlot.boxPlotWhiskersColor:c};Ja({root:l,seriesIndex:r,seriesSymbol:u,element:t,colorMatch:s})}}function g5(a){let{stepLineSeries:t,data:e,seriesConfig:i,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}=a,l=i.visible!==!1;t!==void 0&&i.type===V.BoxPlotSeries&&(Li(t,l),sh(a)&&ah({styleCallback:()=>m5(a),series:t,seriesConfig:i}),f5({stepLineSeries:t,data:e,rotationChanged:r,sortChanged:s,dataWasUpdated:n,seriesWereReinitialized:o}))}function ZC(a){let{root:t,xAxis:e,yAxis:i,chartConfig:r,seriesIndex:s,type:n,options:o,queryObject:l,errorStrings:h}=a,c=r.series[s],u;if(c.type===V.BoxPlotSeries){let d=p5({chartConfig:r,seriesConfig:c,type:n});u=Bo.new(t,{id:`${c.id}_${n}`,xAxis:e,yAxis:i,noRisers:!0,[d.dataFields.value]:d.properties.value,[d.dataFields.category]:d.properties.category}),ns(u.strokes.template,o?.selectionTheme),To({element:u.strokes.template,series:u,queryObject:l,errorStrings:h})}return u}function qv(a){let{chartConfig:t,seriesConfig:e,key:i}=a,r=us(t),s=t.showOutliers,n=t.standardizeValues,o=oa(t),l=kt(t.series),{x:h,y:c}=e,u=o?void 0:e?.query?.where,d={y:l===ke.BoxPlotMultiFieldsAndCategory&&typeof c=="string"?c:void 0,chartSubType:l,splitBy:u,showOutliers:s,standardizeValues:pd(l)?n:!1},A=l===ke.BoxPlotMonoField||l===ke.BoxPlotMultiFields||l===ke.BoxPlotMonoFieldAndSplitBy||l===ke.BoxPlotMultiFieldsAndSplitBy?jm:h;return{dataFields:{value:r?"valueXField":"valueYField",category:r?"categoryYField":"categoryXField"},properties:{value:Zi({key:i,...d}),category:A}}}function y5(a,t){return a.series.values.find(e=>o5(e,t))}function m$(a,t){let e=a.series.values.find(s=>s.get("id")===`${t}_${ji.Top}`),i=a.series.values.find(s=>s.get("id")===`${t}_${ji.Median}`),r=a.series.values.find(s=>s.get("id")===`${t}_${ji.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:i,bottomStepLineSeries:r}}function g$(a){return a!==ke.BoxPlotMonoField&&a!==ke.BoxPlotMultiFields&&a!==ke.BoxPlotMonoFieldAndCategory}function y$(a){let{chart:t,candleSeriesIndex:e,numberOfCandleStickSeries:i}=a,r,s,n=fe(t.uid,"config");if(n){let o=us(n),l=oa(n),h=o?t.yAxes.getIndex(0)?.get("renderer"):t.xAxes.getIndex(0)?.get("renderer"),c=h?.get("cellStartLocation"),u=h?.get("cellEndLocation");if(c&&u){let d=c/(l?1:n.series.length);r=c+e/i*(u-c)+d,s=c+(e+1)/i*(u-c)-d}}return{startLocation:r,endLocation:s}}function v5(a){let{outlierSeries:t,bullet:e,seriesConfigId:i}=a;if(t){let{chart:r}=t;if(r){let s=fe(r.uid,"config");if(s){let n=kt(s.series);if(g$(n)){let o=r.series.values.filter(h=>h instanceof La),l=o?.findIndex(h=>h.get("id")===i);if(l&&l!==-1&&o[l]){let{startLocation:h,endLocation:c}=y$({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});h!==void 0&&c!==void 0&&e.set("locationX",(h+c)/2)}}}}}}function b5(a){let t=fe(a.uid,"config");if(t){let e=kt(t.series),i=t.series.length,r=us(t)?a.yAxes.getIndex(0)?.get("renderer"):a.xAxes.getIndex(0)?.get("renderer"),s=r?.get("cellStartLocation"),n=r?.get("cellEndLocation");if(s&&n){let o=a.series.values.filter(l=>l instanceof La);o.forEach((l,h)=>{let{topStepLineSeries:c,medianStepLineSeries:u,bottomStepLineSeries:d}=m$(a,l.get("id")??"");if(g$(e)){let{startLocation:A,endLocation:p}=y$({chart:a,candleSeriesIndex:h,numberOfCandleStickSeries:o.length});[c,u,d].forEach(f=>{f!==void 0&&(f.set("stepWidth",Bt(60/i)),A&&p&&f.set("locationX",(A+p)/2))})}else[c,u,d].forEach(A=>{A!==void 0&&A.setAll({stepWidth:Bt(60/i)})})})}}}function x5(a){let{chartConfig:t,seriesIndex:e}=a,i=t.series[e],r=ze([i]),s=[];if(r===V.BoxPlotSeries)[i5(a),ZC({...a,type:ji.Top}),ZC({...a,type:ji.Median}),ZC({...a,type:ji.Bottom}),A5(a)].forEach(n=>{n&&s.push(n)});else if(r===V.LineSeries){let n=n5(a);n&&s.push(n)}return s}function _5(a){let{chart:t,chartConfig:e,series:i,seriesConfig:r}=a;if(t&&e)if(b5(t),i instanceof La&&r.type===V.BoxPlotSeries){i.set("id",r.id);let s=i.get("id")??"";t5({...a,seriesConfig:r,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:l}=m$(t,s),h=[ji.Top,ji.Median,ji.Bottom];[n,o,l].forEach((u,d)=>{u&&(u.set("id",`${r.id}_${h[d]}`),g5({...a,stepLineSeries:u}))});let c=y5(t,s);c&&(c.set("id",`${r.id}_${ji.Outliers}`),d5({...a,outlierSeries:c}))}else i instanceof ei&&r.type===V.LineSeries&&a5({...a,meanLineSeries:i})}function C5(a){fk(a)}function aB(a){let{isLineSmoothed:t,isRadarLineSeries:e,isRotated:i}=a,r=e?QC:Oc;return t&&(r=e?NC:i?UC:RC),r}function w5(a){let{series:t,seriesConfig:e,chartSubType:i,colorMatch:r,rendererType:s}=a,n;for(let o of t.dataItems){let l=o.dataContext;if(n=on({seriesConfig:e,dataItem:l,chartSubType:i,colorMatch:r,rendererType:s}),n!==void 0)break}return n}function B5(a){let{series:t,seriesConfig:e,seriesIndex:i,chartSubType:r,colorMatch:s,rendererType:n}=a,o=t.root,l=w5({series:t,seriesConfig:e,chartSubType:r,colorMatch:s,rendererType:n});return Ja({root:o,seriesIndex:i,seriesSymbol:e.lineSymbol??Zb(i),element:t,colorMatch:s,rendererSymbol:l}).symbolWithColorInfo}function S5(a){let{series:t,seriesIndex:e,chartSubType:i,seriesConfig:r,colorMatch:s,lineColor:n}=a,o=!1,l,h=bi(t.uid,"bulletTemplate");if(h!==void 0){Li(t.bulletsContainer,r.markerVisible!==!1&&r.visible!==!1);let{markerSymbol:c}=r;c===void 0&&(c=Kb(),c.color=n),s?c.color=n:c.color??=n;let u=on({dataItem:t.dataItems[0]?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s});u?.outline&&(c.outline??=u.outline,c.outline.color=u.outline.color),hk({element:h,markerSymbol:c});let d=new Set,A;t.dataItems.forEach(p=>{let f=p.bullets?.[0]?.get("sprite");if(f!==void 0){let m=on({dataItem:p?.dataContext,seriesConfig:r,chartSubType:i,colorMatch:s}),g=Ja({root:t.root,seriesIndex:e,seriesSymbol:c,element:f,colorMatch:s,rendererSymbol:m});l=g.symbolWithColorInfo,A=g.stylingInfo,mA(f,A),d.add(JSON.stringify(A))}}),o=d.size>1}return o?void 0:l}function F5(a,t){if(a.showArea===!0){let{color:e,opacity:i}=a.areaColor?Xt(a.areaColor):{color:t.get("stroke"),opacity:q.lineSeries.areaOpacity};t.set("fill",e),t.fills.template.set("fillOpacity",i)}t.fills.template.set("visible",a.showArea===!0)}function v$(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,chartSubType:o,seriesIndexMapper:l,seriesSymbolMapForEvent:h,isRotated:c}=a,{chart:u,root:d}=t;if(u){let A=t instanceof pl;Li(t,e.visible);let p=aB({isRadarLineSeries:A,isLineSmoothed:e.lineSmoothed,isRotated:c});t.set("curveFactory",p);let f=B5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,rendererType:n}),m=S5({series:t,seriesConfig:e,seriesIndex:i,chartSubType:o,colorMatch:s,lineColor:f.color});F5(e,t),h.set(l?.get(e.id)??i,{lineSymbol:f,markerSymbol:m}),h.size===r&&(nn({data:_r(h),htmlContainer:d.dom,chartId:t.chart?.get("id"),colorMatchApplied:PA(u)}),h.clear())}}function T5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=s,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,s),f=ei.new(t,{id:h,name:c,xAxis:i,yAxis:r,[A]:u,[p]:d,maskBullets:!1,curveFactory:aB({isRadarLineSeries:!1,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.lineSeries});f.appear();let m=It.new({});return ns(m,n?.selectionTheme),Gr(f.uid,{bulletTemplate:m}),f.bullets.push(g=>{let y=ft.new(g,{role:q.aria.defaultChartItemRole,ariaLabel:sp(),hoverOnFocus:!0,tooltip:zv({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),qk(y,f),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",q.lineJoin),tB(f),TA(f,e),f}function P5(a){let{lineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:l,timeZoneChanged:h,sortChanged:c}=a,u=r.series[i];if(e!==void 0&&i>=0&&i<r.series.length&&u.type===V.LineSeries&&(o===!0||s===!0||l===!0||h||n===!0||c===!0)){let{xField:d,yField:A,xAxisField:p,yAxisField:f}=SA(r,u);t.setAll({[p]:d,[f]:A}),t.data.setAll(e.dataItems)}}function D5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=kt(c?.series);v$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function L5(a,t){let{connectLines:e,temporalBinning:i}=t,r=i?.nullPolicy;a.set("connect",e!==!1&&r!==Wb.Null)}function I5(a){let{series:t,data:e,chartConfig:i,options:r,seriesIndex:s,dataWasUpdated:n,queryObject:o,fieldList:l,utilsStrings:h,rotationChanged:c,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A,stackedTypeChanged:p}=a,f=i.series[s],m=i.rotated;t.set("id",f.id),Li(t,f.visible),Li(t.bulletsContainer,f.markerVisible!==!1&&f.visible!==!1);let g=bi(t.uid,"bulletTemplate");g&&ns(g,r?.selectionTheme),_u(g,e?.dataItems?.length),Jw({series:t,chartConfig:i,isRotated:m}),C5({seriesType:V.LineSeries,series:t,seriesConfig:f,isRotated:m,dataLabelsConfig:f.dataLabels,externalDataLabelFormatter:r?.dataLabelFormatter}),L5(t,f),P5({lineSeries:t,seriesIndex:s,data:e,chartConfig:i,dataWasUpdated:n,rotationChanged:c,stackedTypeChanged:p,seriesWereReinitialized:u,timeZoneChanged:d,sortChanged:A}),Gw({series:t,seriesConfig:f,fieldList:l,queryObject:o,seriesIndex:s,tooltipFormatter:r?.tooltipFormatter,utilsStrings:h}),sh(a)&&ah({styleCallback:()=>D5(a),series:t,seriesConfig:f}),eB({chartConfig:i,series:t,seriesIndex:s,queryObject:o})}function k5(a,t){let e=a.labels.template;e.adapters.remove("text"),e.adapters.remove("html");let i=t!==void 0?"html":"text";e.adapters.add(i,(r,s)=>{let n=r??"",o=bi(a.uid,"pieChartDataLabelFormatter");if(o){let l=s.dataItem;if(l){let h=l?.get("valuePercentTotal"),c=l?.get("value"),u=l?.get("category")??r??"";n=o(u,c,h)}}return i==="html"?Zr(n):n})}function $5(a){let t=a.dataItem?.component,e;if(t instanceof Ur){let i=fe(t.chart?.uid??Number.NaN,"config");if(i?.series[0].type===V.PieSeries){let r=i.series[0].dataLabelsInside??q.pieChart.dataLabelsInside,s=Xt(i?.series[0].dataLabels?.content?.color).color,n=t.chart?.get("background")?.get("fill")??Xt(q.backgroundColor).color,o=fe(t.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??pt.options.autoInverseDataLabelTextColor,l=a.dataItem?.dataContext?.[pt.pieChart.technicalFieldSliceId],h=t.slices.values.find(u=>(u.dataItem?.dataContext)[pt.pieChart.technicalFieldSliceId]===l)?.get("fill")??Xt(i.series[0].fillSymbol?.color).color,c=s??a.text.get("fill");e=c,c&&h&&o&&r&&(e=Ak({textBackgroundColor:h,chartBackgroundColor:n}))}}return e}function O5(a,t){let e=a.labels.template;e.set("cursorOverStyle","pointer"),e.setAll({cursorOverStyle:"pointer",maxWidth:q.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:q.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:je,centerY:je}),k5(a,t),e.adapters.add("fill",(i,r,s)=>$5(r))}function E5(a,t){let{numericValueFormat:e,percentValueFormat:i,displayNumericValueOnDataLabel:r,displayCategoryOnDataLabel:s,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c,dataLabelsCharacterLimit:u}=t,{chart:d}=a,A;if(d){let p=zw({pieChart:d,valueIntlOptions:e?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:r??q.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??q.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:l,percentagePrefix:h,percentageSuffix:c}),f=tg(u),m=Ra(fe(a.chart?.uid??Number.NaN,"rtl")??!1," ");A=(g,y,x)=>{let w=p(g,y,x),S=s??q.pieChart.displayCategoryOnDataLabel?f(g):"",T=zi(S)?"":`${S}${m}`;return T=`${T}${w}`,t.dataLabels?.content!==void 0&&(T=xa({textSymbol:{...t.dataLabels.content,text:T},format:"amChartsV5",defaults:{...q.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??q.pieChart.dataLabels.wrap}})),T}}return A}function M5(a){let{pieSeries:t,seriesConfig:e,dataLabelFormatter:i}=a,{dataLabels:r}=e,s=e.dataLabelsOffset??q.pieChart.dataLabelsOffset,n=e.dataLabelsInside??q.pieChart.dataLabelsInside;Gr(t.uid,{pieChartDataLabelFormatter:i??E5(t,e)}),Cn({label:t.labels.template,labelConfig:r,defaults:{...q.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??q.pieChart.alignDataLabels}});let o=fe(t.chart?.uid??0,"rtl"),l=!n&&(e.alignDataLabels??q.pieChart.alignDataLabels),h=e.optimizeDataLabelsOverlapping===!0;t.set("alignLabels",l),t.labels.template.setAll({forceHidden:!(r&&r?.visible!==!1),breakWords:h?!1:void 0,textAlign:o?"right":"left"});let c=t.labels.template.get("radius"),u=t.labels.template.get("baseRadius");n&&u!==Bt(60)?t.labels.template.setAll({radius:void 0,baseRadius:Bt(60),textType:"regular"}):!n&&!h&&!l&&(t.labels.template.setAll({baseRadius:ge,textType:"adjusted"}),s!==void 0&&Number.isFinite(s)&&c!==s&&t.labels.template.set("radius",s))}var qC;function R5(a,t){let{ticks:e}=t,i=e?.visible===!1||t.dataLabelsInside===!0||t.dataLabels===void 0||t.dataLabels?.visible===!1||t.dataLabelsOffset!==void 0&&t.dataLabelsOffset<=0;a.ticks.template.setAll({visible:!i,crisp:!1});let r=e?.lineSymbol??KA({color:Hm});i&&(r.width=0),Fo({element:a.ticks.template,lineSymbol:r,visible:!i})}function U5(a){let{series:t,pieSlicesSymbols:e,seriesConfig:i}=a;t.slices.each((r,s)=>{let n=r.dataItem?.dataContext,o=Cw({dataContext:n,pieSlicesSymbols:e,seriesConfig:i});vu({root:t.root,element:r,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:s,isChartFillSymbol:!0})})}function V5(a,t){let e=new Map(a.map((i,r)=>[i.arcgis_charts_original_category_value,r]));return[...t].sort((i,r)=>(e.get(i.arcgis_charts_original_category_value)??1/0)-(e.get(r.arcgis_charts_original_category_value)??1/0))}function N5(a){let{series:t,data:e,seriesConfig:i,dataWasUpdated:r,sortChanged:s,seriesWereReinitialized:n,labelUpdateNeeded:o,groupOfSlicesUpdateNeeded:l}=a,{x:h,y:c}=i,u=kt([i]),d=u===ke.PieFromFields?ao:h;if(e&&(r===!0||n===!0||s===!0||l===!0))t.setAll({categoryField:d,valueField:u===ke.PieFromFields?Ru:c}),t.data.setAll(e.dataItems);else if(e&&o){let A=t.dataItems,p=A.map(m=>m.dataContext),f=V5(p,e.dataItems);A.forEach((m,g)=>{let y=f[g];if(typeof y[d]=="string"){let x=y[d];m.set("category",x);let w=m.dataContext;w&&(w[d]=x)}}),t.markDirty()}}function Q5(a,t){let{innerRadius:e}=t;a.set("innerRadius",e?Bt(e):0)}function H5(a,t){let{startAngle:e,endAngle:i}=t;a.setAll({startAngle:e??q.pieChart.min,endAngle:i??360+(a.get("startAngle")??0)})}function j5(a){let{root:t,seriesConfig:e,options:i,chart:r,queryObject:s,errorStrings:n}=a,{id:o,name:l,x:h,y:c}=e,u=kt([e]),d=Ur.new(t,{id:o,name:l,categoryField:u===ke.PieFromFields?ao:h,valueField:u===ke.PieFromFields?Ru:c});return O5(d,i?.dataLabelFormatter),vk(d,i?.tooltipFormatter),d.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),ns(d.slices.template,i?.selectionTheme),To({element:d.slices.template,series:d,queryObject:s,errorStrings:n}),d.appear(),r instanceof Us&&b$(r,d),d}function W5(a){let{series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,options:o,labelUpdateNeeded:l,utilsStrings:h,groupOfSlicesUpdateNeeded:c}=a,{dataLabelFormatter:u,tooltipFormatter:d}=o??{};t.set("id",e.id),Li(t,e.visible),ns(t.slices.template,o?.selectionTheme),N5({series:t,seriesConfig:e,seriesWereReinitialized:i,dataWasUpdated:r,sortChanged:s,data:n,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:c}),sh(a)&&ah({styleCallback:()=>U5(a),series:t,seriesConfig:e}),M5({pieSeries:t,seriesConfig:e,dataLabelFormatter:u}),Q5(t,e),H5(t,e),R5(t,e),U4({series:t,seriesConfig:e,tooltipFormatter:d});let{chart:A}=t;A instanceof Us&&b$(A,t)}function b$(a,t){if(!a.isDisposed()){let e=a.radius();Xr(a.uid,{pieChartRadius:e});let i=()=>{let r=Bt(fe(a.uid,"pieChartRadius")??q.pieChart.chartOptimizedRadius),s=r,n=a.series?.values?.[0]??t,o=fe(a.uid,"config");if(o!==void 0){let{series:l}=o,{innerRadius:h,optimizeDataLabelsOverlapping:c,alignDataLabels:u,dataLabelsOffset:d=q.pieChart.dataLabelsOffset,dataLabels:A,dataLabelsInside:p}=l[0];if(A?.visible===!0&&u===!0&&c===!0&&p!==!0){let f=q.pieChart.chartOptimizedRadius/100,m=500,g=150,y=.6,x=.5,w=1,S=a.seriesContainer.width()-d*2,T=Math.max(S-g,0)/(m-g),F=T<1?Math.max(T**w*y,.4):Math.min(T**x*y,f);s=Bt(F*100)}else s=Bt(q.pieChart.chartRadius);r.value.toFixed(1)!==s.value.toFixed(1)&&(Xr(a.uid,{pieChartRadius:s.percent}),qC&&clearTimeout(qC),qC=yu(()=>{let f=a.chartContainer.height();if(a.chartContainer.set("height",f+.1),a.set("radius",s),h&&!Number.isNaN(h)&&h>0){let m=(h??q.pieChart.innerRadius)*s.value;a.set("innerRadius",Bt(m))}a.markDirty(),n.markDirty(),a.root.resize(),X5(a)})),n instanceof Ur&&n.labels.template.setAll({maxWidth:z5({seriesConfig:o?.series[0],chart:a,newChartRadius:s})})}return s};a.events.onDebounced(Ji.BoundsChanged,()=>i(),q.debounceTime),i()}}function X5(a){yu(()=>{a.chartContainer.set("height",Bt(100)),a.root.resize()})}function z5(a){let{seriesConfig:t,chart:e,newChartRadius:i}=a,r=q.pieChart.dataLabels.maxWidth??100;if(t!=null){let{alignDataLabels:s,dataLabelsOffset:n=q.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:l,dataLabelsInside:h}=t;if(l?.visible===!0&&s===!0&&h!==!0&&o===!0){let c=e.seriesContainer.width(),u=e.seriesContainer.height(),d=i.value*Math.min(c,u),A=5,p=Math.floor((c-d)/2)-A-n;r=Math.min(p,r-A);let f=q.pieChartDataLabel.minWidth;r<f&&(r=f)}}return r}function G5(a){let{root:t,chartConfig:e,xAxis:i,yAxis:r,seriesConfig:s,options:n,queryObject:o,errorStrings:l}=a,{id:h,name:c}=s,{xField:u,yField:d,xAxisField:A,yAxisField:p}=SA(e,s),f=pl.new(t,{id:h,name:c,xAxis:i,yAxis:r,[A]:u,[p]:d,curveFactory:aB({isRadarLineSeries:!0,isLineSmoothed:s.lineSmoothed,isRotated:e.rotated}),layer:q.zIndexes.lineSeries});f.appear();let m=It.new({});return Gr(f.uid,{bulletTemplate:m}),ns(m,n?.selectionTheme),f.bullets.push(g=>{let y=ft.new(g,{tooltip:zv({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:q.zIndexes.lineSeries},m);return To({element:y,series:f,queryObject:o,errorStrings:l}),fa.new(g,{sprite:y})}),f.strokes.template.set("lineJoin",q.lineJoin),tB(f),TA(f,e),f}function Y5(a){let{radarLineSeries:t,data:e,seriesIndex:i,chartConfig:r,dataWasUpdated:s,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:l}=a,h=r.series[i];if(e!==void 0&&h?.type===V.RadarSeries&&(s||l||n||o)){let{xField:c,yField:u,xAxisField:d,yAxisField:A}=SA(r,h);t.setAll({[d]:c,[A]:u}),t.data.setAll(e.dataItems)}}function K5(a){let{series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l}=a,{chart:h}=t;if(h!==void 0){let c=fe(h.uid,"config"),u=fe(h.uid,"isRotated")??!1,d=kt(c?.series);v$({series:t,seriesConfig:e,seriesIndex:i,numberOfSeries:r,colorMatch:s,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:l,isRotated:u})}}function Z5(a){let{series:t,data:e,seriesWereReinitialized:i,chartConfig:r,options:s,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,fieldList:c,queryObject:u,utilsStrings:d}=a,A=r.series[n];t.set("id",A.id),Li(t,A.visible),Li(t.bulletsContainer,A.markerVisible!==!1&&A.visible!==!1);let p=bi(t.uid,"bulletTemplate");p&&ns(p,s?.selectionTheme),_u(p,e?.dataItems?.length),Jw({series:t,chartConfig:r,isRotated:!1}),Gw({series:t,seriesConfig:A,fieldList:c,queryObject:u,seriesIndex:n,tooltipFormatter:s?.tooltipFormatter,utilsStrings:d}),sh(a)&&ah({styleCallback:()=>K5(a),series:t,seriesConfig:A}),eB({chartConfig:r,series:t,seriesIndex:n,queryObject:u}),Y5({radarLineSeries:t,data:e,seriesIndex:n,chartConfig:r,dataWasUpdated:o,timeZoneChanged:l,stackedTypeChanged:h,seriesWereReinitialized:i})}function nB(a){let{chart:t,chartConfig:e,options:i,utilsStrings:r,queryObject:s,errorStrings:n}=a,{rotated:o}=e,{root:l}=t,h=ze(e.series);t.series.clear();let c={root:l,chartConfig:e,options:i,chart:t,utilsStrings:r,queryObject:s,errorStrings:n},u=[];for(let d=0;d<e.series.length;d+=1){let A=e.series[d],{assignToSecondValueAxis:p,type:f}=A,m=t instanceof vi?wz({chart:t,chartType:h,rotated:o,assignToSecondValueAxis:p}):void 0,{xAxis:g,xAxisForHistogramOverlaySeries:y,yAxis:x}=m??{};switch(!0){case f===V.HeatSeries:{io(s),g&&x&&u.push(iX({...c,queryObject:s,xAxis:g,yAxis:x}));break}case h===V.BoxPlotSeries:{g&&x&&Dl(e)&&u.push(...x5({...c,xAxis:g,yAxis:x,seriesIndex:d,seriesConfig:e.series[d],chartConfig:e}));break}case f===V.HistogramSeries:{g&&x&&u.push(...uz({...c,seriesConfig:A,xAxis:g,xAxisForOverlaySeries:y,yAxis:x}));break}case f===V.PieSeries:{u.push(j5({...c,seriesConfig:A}));break}case(h===V.ComboLineAndBarSeries||h===V.BarSeries||h===V.LineSeries):{g&&x&&(f===V.BarSeries?u.push(zG({...c,seriesConfig:A,xAxis:g,yAxis:x})):f===V.LineSeries&&u.push(T5({...c,seriesConfig:A,xAxis:g,yAxis:x})));break}case f===V.RadarSeries:{g&&x&&u.push(G5({...c,seriesConfig:A,xAxis:g,yAxis:x}));break}case f===V.ScatterSeries:{g&&x&&u.push(...WX({...c,seriesConfig:A,xAxis:g,yAxis:x}));break}}}u.forEach(d=>{d instanceof ga&&d.setPrivate("doNotUpdateLegend",!0)}),t.series.pushAll(u)}function Jv(a){let{chart:t,chartConfig:e,options:i,data:r,seriesIndexMapper:s,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,timeZoneChanged:A,sizePolicyChanged:p,pieSlicesSymbols:f,queryObject:m,utilsStrings:g,errorStrings:y,groupOfSlicesUpdateNeeded:x,labelUpdateNeeded:w}=a,{chartRenderer:S}=e,{root:T}=t,{series:F}=e,L=ze(e.series),$=kt(e.series),I=t.series.values,U=Fl(e),P=e.series.length,Q=new Map,G=_a(m,i?.popupTemplateFieldInfosEnabled),Y=$s(m),ee=bs(Y)?void 0:rg(S,Y.renderer),te=l||n||o||h||u,le={root:T,chartConfig:e,queryObject:m,options:i,colorMatch:U,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:l,fieldList:G,rendererType:ee,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:g,chartSubType:$,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??q.options.autoInverseDataLabelTextColor},z={...le,numberOfSeries:P,rotationChanged:h,colorMatchChanged:c,stackedTypeChanged:u,seriesStyleChanged:d,seriesIndexMapper:s,seriesSymbolMapForEvent:Q,timeZoneChanged:A};for(let K=0;K<F.length;K++){let we=F[K],se=I[K],de=we.type;switch(!0){case L===V.HeatSeries:{se instanceof Ri&&t instanceof vi&&so(e)&&nX({...z,series:se,data:r,seriesConfig:e.series[K],chartConfig:e});break}case L===V.BoxPlotSeries:{se=I.find($e=>$e.get("id")===we.id),t instanceof vi&&Dl(e)&&(se instanceof La||se instanceof ei)&&(de===V.BoxPlotSeries||de===V.LineSeries)&&_5({...z,chart:t,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e,showMean:oa(e),showOutliers:Eo(e)});break}case de===V.HistogramSeries:{se instanceof Ri&&t instanceof vi&&fT(r)&&pz({...z,series:se,allChartSeries:I,data:r,seriesIndex:K,seriesConfig:we,axes:e.axes});break}case de===V.PieSeries:{se instanceof Ur&&t instanceof Us&&fg(r)&&W5({...le,series:se,seriesConfig:we,data:r,pieSlicesSymbols:f,groupOfSlicesUpdateNeeded:x,seriesStyleChanged:d,colorMatchChanged:c,labelUpdateNeeded:w});break}case(L===V.ComboLineAndBarSeries||L===V.BarSeries||L===V.LineSeries):t instanceof vi&&fg(r)&&(de===V.BarSeries&&se instanceof Ri?ZG({...z,series:se,data:r,seriesIndex:K}):de===V.LineSeries&&se instanceof ei&&I5({...z,series:se,seriesIndex:K,seriesConfig:we,data:r}));break;case de===V.ScatterSeries:{se=QX(t);let $e=Wk(t);se instanceof ei&&$e instanceof ei&&mT(r)&&YX({...z,series:se,seriesConfig:we,trendLineSeries:$e,sizePolicyChanged:p,data:r});break}case de===V.RadarSeries:{se instanceof pl&&t instanceof Da&&fg(r)&&Z5({...z,series:se,data:r,seriesIndex:K,seriesConfig:we,chartConfig:e});break}}te&&L&&se&&q4({chartType:L,series:se,tooltipFormatter:i?.tooltipFormatter})}_z({chart:t,options:i,dataWasUpdated:n,data:r,chartConfig:e,queryObject:m,errorStrings:y})}function q5(a){rh(a)||a.dataItems.forEach(t=>{let e=t.bullets?.[0];if(e){let i=e.get("sprite"),r=yl(i.uid,"selected")!==!0;ra({element:i,selected:r})}})}function J5(a){a.columns.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}function eY(a){a.slices.each(t=>{let e=yl(t.uid,"selected")!==!0;ra({element:t,selected:e})})}async function tY(a){let{chart:t,queryObject:e,errorStrings:i}=a;if(Ww(t)){let r=fe(t.uid,"actionMode");r!==Ut.MonoSelection&&r!==Ut.None&&(t.series.each(s=>{switch(!0){case s instanceof Ri:J5(s);break;case s instanceof ei:q5(s);break;case s instanceof Ur:eY(s);break}}),await qw({chart:t,selectionSource:Tr.ProgrammaticSelection,queryObject:e,errorStrings:i}))}}function iY(a,t){let e=!1,i=a.series,r=t.series,s=ze(r),n=(u,d)=>u.filter(A=>A.type===d).flatMap(A=>{let p=[];switch(d){case V.BarSeries:case V.HistogramSeries:p.push(A.fillSymbol);break;case V.LineSeries:case V.RadarSeries:p.push(A.lineSymbol,A.markerSymbol);break;case V.ScatterSeries:p.push(A.markerSymbol);break;case V.PieSeries:let f=A;p.push(f.fillSymbol),f.slices?.forEach(m=>{p.push(m.fillSymbol)}),f.sliceGrouping&&p.push(f.sliceGrouping.fillSymbol);break}return(A.type===V.BarSeries||A.type===V.LineSeries||A.type===V.RadarSeries)&&A.nullCategory?.symbol!==void 0&&p.push(A.nullCategory.symbol),p}),o,l;s===V.ComboLineAndBarSeries?(o=n(i,V.BarSeries).concat(n(i,V.LineSeries)),l=n(r,V.BarSeries).concat(n(r,V.LineSeries))):(o=n(i,i[0].type),l=n(r,r[0].type));let h=!rn(o,l),c=!1;switch(s){case V.LineSeries:case V.RadarSeries:case V.ComboLineAndBarSeries:c=r.filter(u=>u.type===V.LineSeries||u.type===V.RadarSeries).some(u=>{let d=i.find(A=>A.id===u.id);return(u.showArea??q.lineSeries.showArea)!==(d?.showArea??q.lineSeries.showArea)||(u.lineSmoothed??q.lineSeries.lineSmoothed)!==(d?.lineSmoothed??q.lineSeries.lineSmoothed)||(u.markerVisible??q.lineSeries.markerVisible)!==(d?.markerVisible??q.lineSeries.markerVisible)||u.showArea&&!rn(u.areaColor,d?.areaColor)});break}return e=h||c,e}function rY(){Y_(WW)}function sY(a){a.dispose()}function aY(a){let{chart:t,chartContainer:e,chartLocale:i}=a,{root:r}=t,{t9nLocale:s}=Lu(e??document.documentElement),n=Ad(e??document.documentElement);r.locale=i,Xr(t.uid,{locale:s,formatLocale:n,rtl:Um(e??document.documentElement)==="rtl"})}function gw(a){let{chart:t,actionMode:e,cursorRange:i}=a;if(Ww(t)){let r=e??fe(t.uid,"actionMode")??q.actionMode;Xr(t.uid,{actionMode:r}),r===Ut.None&&Yc({chart:t,selectionSource:Tr.ClearSelection}),RG({chart:t,actionMode:r,cursorRange:i})}}function nY(a){return Ta.rootElements.find(t=>t.dom===a)?.dispose(),Pc.new(a)}function oY(a,t){a.container.children.clear();let e=ze(t?.series),i;switch(e){case V.RadarSeries:case V.GaugeSeries:i=Da;break;case V.PieSeries:i=Us;break;default:i=vi;break}return a.container.children.push(i.new(a,{id:`${t?.id}`,layout:a.verticalLayout,paddingBottom:q.chartPadding,paddingTop:q.chartPadding,paddingRight:q.chartPadding,paddingLeft:q.chartPadding}))}function lY(a){let{chart:t,chartConfig:e,data:i,dataWasUpdated:r,sortChanged:s,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:l,pieSlicesSymbols:h,options:c,queryObject:u,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f}=a;Jv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:r,sortChanged:s,queryObject:u,pieSlicesSymbols:h,utilsStrings:d,errorStrings:A,groupOfSlicesUpdateNeeded:p,seriesStyleChanged:f,colorMatchChanged:l,labelUpdateNeeded:r||n||o||l}),nn({data:h,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function hY(a){let{chart:t,chartConfig:e,data:i,anyGuideAboveChanged:r,dataWasUpdated:s,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:l,sortChanged:h,options:c,queryObject:u,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesCompositionChanged:f,heatChartHideEmptyRowsAndColumnsChanged:m,seriesStyleChanged:g,timeZoneChanged:y,timeIntervalInfoWasReset:x,sizePolicyChanged:w,sizePolicyChangesRequireSeriesReinit:S,utilsStrings:T,errorStrings:F,gaugeMinMaxFromData:L}=a,{axisLabelsBehaviorChanged:$}=a,I=Ez({chart:t,chartConfig:e,rotationChanged:d,axisLabelsBehaviorChanged:$,timeIntervalInfoWasReset:x}),U=I||Bz({currentChartSeriesCount:t.series.length,chartConfig:e,dataUpdateDetails:n,seriesFilteredOut:l,sizePolicyChangesRequireSeriesReinit:S,seriesCompositionChanged:f});I&&(n$({chart:t,chartConfig:e,errorStrings:F}),$=[!0,!0]),U&&(t.series.clear(),nB({chart:t,chartConfig:e,options:c,utilsStrings:T,queryObject:u,errorStrings:F}),t.gridContainer?.toBack?.()),o$({chart:t,chartConfig:e,queryObject:u,data:i,dataWasUpdated:s,axesInitializationNeeded:I,heatChartHideEmptyRowsAndColumnsChanged:m,sortChanged:h,timeIntervalInfo:i?.timeIntervalInfo??fe(t.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:$,anyGuideAboveChanged:r,xAxisLabelFormatter:c?.xAxisLabelFormatter,yAxisLabelFormatter:c?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:c?.secondaryYAxisLabelFormatter,guideTooltipFormatter:c?.guideTooltipFormatter,gaugeInnerLabelFormatter:c?.gaugeInnerLabelFormatter,utilsStrings:T,errorStrings:F,gaugeMinMaxFromData:L}),Jv({chart:t,chartConfig:e,options:c,data:i,dataWasUpdated:s,sortChanged:h,seriesIndexMapper:o,seriesWereReinitialized:U,rotationChanged:d,colorMatchChanged:A,stackedTypeChanged:p,seriesStyleChanged:g,timeZoneChanged:y,sizePolicyChanged:w,queryObject:u,utilsStrings:T,errorStrings:F}),ze(e.series)===V.HeatSeries&&Pk(t),f$({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar})}function uY(a){let{chart:t,legend:e,updateProps:i,gaugeMinMaxFromData:r}=a,{chartConfig:s,options:n,dataWasUpdated:o,dataUpdateDetails:l,hasSeriesFilteredOut:h,pieSlicesSymbols:c,colorMatchApplied:u,rendererFieldNames:d,configWithAllSeries:A,t9nStrings:p,queryObject:f,dataInfo:m}=i,{data:g}=m,{utilsStrings:y,errorStrings:x}=p,{root:w}=t,{popupTemplateFieldInfosEnabled:S}=n??{};if(s===void 0)throw new Error;let T=fe(t.uid,"config");if(t.isDisposed()||!yx(T,s))throw new Tl(cd.ChartDisposed);T??=s,Xr(t.uid,{queryObject:f});let F=kt(s.series),L=us(s);Xr(t.uid,{config:_r(s),options:n,isNonAggregatedChart:!rp(F),isRotated:L,filterBySelection:n?.filterBySelection,colorMatchApplied:u,rendererFieldNames:d});let $=_a(f,S),I=MF(T,s),U=Ax(T,s),P=ux(T,s),Q=TF(T,s),G=iY(T,s),Y=JSON.stringify(ZA(T.series))!==JSON.stringify(ZA(s.series)),ee=eg(T,s),te=VF(T,s),le=dx(T,s),z=NF(T,s),K=QF(T,s),we=tp({oldConfig:h?A:T,newConfig:s,dataWasUpdated:o}),se=!1,de=!1,$e=!1,Ye=!1;so(T)&&so(s)&&(se=IF(T,s),de=DF(T,s),$e=PF(T,s)||LF(T,s)||se,Ye=FF(T,s));let He=sx({oldConfig:T,newConfig:s,rotationChanged:U}),qe=T.series,Tt=s.series;if(o){let{queryConfig:R,count:Be}=m??{};Xr(t.uid,{fieldList:$,queryConfig:R,elementCount:Be,timeIntervalInfo:g!==void 0&&"timeIntervalInfo"in g?g.timeIntervalInfo:void 0})}t instanceof fs&&ZW({chartSeries:t.series,oldSeries:qe,newSeries:Tt});let At=t instanceof Us?_w(qe,Tt):!1,xi=cx({oldConfig:T,newConfig:s}),wi=new Map;switch((A??s).series.forEach((R,Be)=>{wi.set(R.id,Be)}),l$(t,s.background),d$(t,{title:s.title,subtitle:s.subtitle}),A$(t,s.footer),c$({root:w,chart:t,cursorCrosshair:s.cursorCrosshair,config:s,queryObject:f,errorStrings:x}),ze(s.series)){case V.PieSeries:{t instanceof Us&&(io(f),lY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,slicesConfigChangedSinceLastUpdate:xi,pieSlicesSymbols:c,chartRendererChanged:ee,sortChanged:we,queryObject:f,colorMatchChanged:P,utilsStrings:y,errorStrings:x,groupOfSlicesUpdateNeeded:At,seriesStyleChanged:G}));break}case V.HeatSeries:case V.BarSeries:case V.LineSeries:case V.ComboLineAndBarSeries:case V.ScatterSeries:case V.RadarSeries:case V.GaugeSeries:case V.HistogramSeries:case V.BoxPlotSeries:t instanceof vi&&hY({chart:t,chartConfig:s,options:n,data:g,dataWasUpdated:o,seriesIndexMapper:wi,dataUpdateDetails:l,seriesFilteredOut:h,heatChartHideEmptyRowsAndColumnsChanged:Ye,sortChanged:we,axisLabelsBehaviorChanged:He,anyGuideAboveChanged:I,rotationChanged:U,colorMatchChanged:P,stackedTypeChanged:Q,seriesStyleChanged:G,seriesCompositionChanged:Y,timeZoneChanged:te,timeIntervalInfoWasReset:le,sizePolicyChanged:z,sizePolicyChangesRequireSeriesReinit:K,queryObject:f,utilsStrings:y,errorStrings:x,gaugeMinMaxFromData:r});break}t instanceof fs&&jk({chart:t,chartConfig:s,legend:e,showEmptySeries:n?.showEmptySeries??n?.hideEmptySeries===!1,seriesConfig:s.series,heatChartLegendUpdatedNeeded:$e,heatRulesTypeChanged:se,heatLegendPositionChanged:de,queryObject:f}),gw({chart:t,actionMode:n?.actionMode,cursorRange:n?.cursorRange}),J1({chart:t,chartConfig:s,delayCallback:o})}function cY(a){let{chart:t,data:e,chartConfig:i,pieSlicesSymbols:r,options:s,queryObject:n,utilsStrings:o,errorStrings:l}=a;nB({chart:t,chartConfig:i,options:s,utilsStrings:o,queryObject:n,errorStrings:l}),Jv({chart:t,chartConfig:i,options:s,data:e,dataWasUpdated:!0,pieSlicesSymbols:r,queryObject:n,utilsStrings:o,errorStrings:l}),nn({data:r,htmlContainer:t.root.dom,chartId:t.get("id"),colorMatchApplied:PA(t)})}function dY(a){let{chart:t,data:e,chartConfig:i,options:r,queryObject:s,seriesIndexMapper:n,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}=a;p$(t),f$({chart:t,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),n$({chart:t,chartConfig:i,errorStrings:l}),o$({chart:t,chartConfig:i,queryObject:s,axisLabelsBehaviorChanged:[!0,!0],data:e,dataWasUpdated:!0,timeIntervalInfo:e?.timeIntervalInfo,xAxisLabelFormatter:r?.xAxisLabelFormatter,yAxisLabelFormatter:r?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:r?.secondaryYAxisLabelFormatter,guideTooltipFormatter:r?.guideTooltipFormatter,gaugeInnerLabelFormatter:r?.gaugeInnerLabelFormatter,utilsStrings:o,errorStrings:l,gaugeMinMaxFromData:h}),nB({chart:t,chartConfig:i,options:r,utilsStrings:o,queryObject:s,errorStrings:l}),t.gridContainer?.toBack?.(),Jv({chart:t,chartConfig:i,seriesIndexMapper:n,options:r,data:e,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:s,utilsStrings:o,errorStrings:l}),ze(i.series)===V.HeatSeries&&Pk(t)}function AY(a){let{chartContainer:t,chartConfig:e,options:i,colorMatchApplied:r,rendererFieldNames:s,pieSlicesSymbols:n,globalOptions:o,t9nStrings:l,queryObject:h,dataInfo:c}=a,{errorStrings:u,utilsStrings:d,amChartsStrings:A}=l,{data:p,queryConfig:f,count:m,gaugeMinMaxFromData:g={}}=c??{};rY();let y=nY(t);i4(y,o?.animationEnabled),t4(y,o?.enableResponsiveFeatures);let x=oY(y,e);aY({chart:x,chartContainer:t,chartLocale:A});let w;if(!x.isDisposed()){let T=kt(e.series),F=us(e);Xr(x.uid,{options:i,filterBySelection:i?.filterBySelection,config:e,queryObject:h,isNonAggregatedChart:!rp(T),isRotated:F,colorMatchApplied:r,rendererFieldNames:s}),u$({root:y,chart:x,config:e,queryObject:h,errorStrings:u}),c$({root:y,chart:x,cursorCrosshair:e.cursorCrosshair,config:e,queryObject:h,errorStrings:u});let{title:L,subtitle:$,footer:I}=e;VG(y,x),d$(x,{title:L,subtitle:$}),NG(x),A$(x,I),OG(y,x),l$(x,e.background);let U=_a(h,i?.popupTemplateFieldInfosEnabled);Xr(x.uid,{fieldList:U}),Xr(x.uid,{options:i,queryConfig:f,elementCount:m,timeIntervalInfo:p!==void 0&&"timeIntervalInfo"in p?p.timeIntervalInfo:void 0});let P=new Map;e.series.forEach((Q,G)=>{P.set(Q.id,G)}),Xr(x.uid,{queryConfig:f,elementCount:m}),x instanceof vi?dY({chart:x,data:p,chartConfig:e,options:i,queryObject:h,utilsStrings:d,errorStrings:u,gaugeMinMaxFromData:g}):x instanceof Us&&p&&"dataItems"in p&&(io(h),cY({chart:x,data:p,chartConfig:e,pieSlicesSymbols:n,options:i,queryObject:h,utilsStrings:d,errorStrings:u})),x instanceof fs&&(w=gI(x,e),jk({chart:x,chartConfig:e,legend:w,showEmptySeries:i?.showEmptySeries??i?.hideEmptySeries===!1,seriesConfig:e.series,queryObject:h})),gw({chart:x,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),ZX(x),J1({chart:x,chartConfig:e,delayCallback:!0})}function S(){Kz(x)}return{update:T=>{w===void 0&&(w=gI(x,T.chartConfig)),uY({chart:x,legend:w,updateProps:T,gaugeMinMaxFromData:g})},dispose:()=>sY(y),resetZoom:S,clearSelection:()=>Yc({chart:x}),switchSelection:async()=>await tY({chart:x,queryObject:h,errorStrings:l.errorStrings}),exportImage:async T=>await _4({root:y,exportOptions:T}),setActionMode:(T,F)=>gw({chart:x,actionMode:T,cursorRange:F})}}function $I(a){let t="";for(let i=0;i<a.length;i+=1){let r=a[i];if(r.message&&r.message.trim()!==""){let s=a.length>1?"li":"p";t+=`<${s}>${r.message}</${s}>`}}let e=a.length>1?"ol":"div";return`<${e}>${t}</${e}>`}function pY(a){let{chartConfig:t,createMessage:e,status:i,errorStrings:r}=a,{schemaErrors:s,customErrors:n,warnings:o}=i,l="",h="";return t===void 0?(h=e===void 0?r.modalHeaders.newChart:"",l=e??r.errors.newChartRequest):s.length>0?(h=r.modalHeaders.error,l=r.errors.simpleError):n.length>0?(h=r.modalHeaders.error,l=$I(n)):o.length>0&&(h=r.modalHeaders.warning,l=`<p>${r.errors.warningRequest}</p>${$I(o)}`),{title:h,message:l}}function fY(a,t){let e;switch(a){case V.PieSeries:e=t?.placeholders.pieChartCreateMsg;break;case V.BarSeries:e=t?.placeholders.barChartCreateMsg;break;case V.BoxPlotSeries:e=t?.placeholders.boxPlotCreateMsg;break;case V.LineSeries:e=t?.placeholders.lineChartCreateMsg;break;case V.HistogramSeries:e=t?.placeholders.histogramCreateMsg;break;case V.ScatterSeries:e=t?.placeholders.scatterplotCreateMsg;break;case V.HeatSeries:e=t?.placeholders.calendarHeatChartCreateMsg;break;case V.ComboLineAndBarSeries:e=t?.placeholders.comboBarLineChartCreateMsg;break;case V.RadarSeries:e=t?.placeholders.radarChartCreateMsg;break;case V.GaugeSeries:e=t?.placeholders.gaugeCreateMsg;break}return e}function $f(a){let t;if(a){let e=ok(a);e&&(t=[e.r,e.g,e.b,255])}return t}function mY(a,t){let e=window.getComputedStyle(a);return{backgroundColor:$f(e.getPropertyValue(t.background)),textColor:$f(e.getPropertyValue(t.text)),lineColor:$f(e.getPropertyValue(t.line)),secondaryLineColor:$f(e.getPropertyValue(t.secondaryLine)),spinnerColor:$f(e.getPropertyValue(t.spinner))}}function gY(a){let{config:t,themeColors:e}=a,i=Eu().toString();t?.axes?.forEach(r=>{e.textColor&&(r?.title?.content&&(!r.title.content.color||r.title.content.color.toString()===i)&&(r.title.content.color=e.textColor),r?.labels?.content&&(!r.labels.content.color||r.labels.content.color.toString()===i)&&(r.labels.content.color=e.textColor));let s=Eu();s[3]=Gb,r?.grid&&e.secondaryLineColor&&(!r.grid.color||r.grid.color.toString()===s.toString())&&(r.grid.color=e.secondaryLineColor,r.grid.color[3]=Gb),r?.lineSymbol&&e.lineColor&&(!r.lineSymbol.color||r.lineSymbol.color.toString()===lF.toString())&&(r.lineSymbol.color=e.lineColor),r?.guides?.forEach(n=>{n.label&&e.textColor&&(!n.label.color||n.label.color.toString()===i)&&(n.label.color=e.textColor),e.lineColor&&(n.style?.type===Rt.SLS&&(!n.style.color||n.style.color.toString()===Xx.style.color?.toString())?n.style.color=e.lineColor:n.style?.type===Rt.SFS&&n.style?.outline&&(!n.style.outline.color||n.style.outline.color.toString()===Xx.style.color?.toString())&&(n.style.outline.color=e.lineColor))})})}function yY(a){let{config:t,themeColors:e}=a;t&&e.backgroundColor&&(!t.background||t.background.toString()===dF().toString())&&(t.background=e.backgroundColor)}function vY(a){let{config:t,themeColors:e}=a,i=Eu().toString();e.textColor&&(t?.title?.content&&(!t.title.content.color||t.title.content.color.toString()===i)&&(t.title.content.color=e.textColor),t?.subtitle?.content&&(!t.subtitle.content.color||t.subtitle.content.color.toString()===i)&&(t.subtitle.content.color=e.textColor),t?.footer?.content&&(!t.footer.content.color||t.footer.content.color.toString()===i)&&(t.footer.content.color=e.textColor))}function bY(a){let{config:t,themeColors:e}=a;t&&e.textColor&&t.series.forEach(i=>{i.dataLabels?.content&&(!i.dataLabels.content.color||i.dataLabels.content.color.toString()===Eu().toString())&&(i.dataLabels.content.color=e.textColor)})}function xY(a){let{config:t,themeColors:e}=a,i=t?.series[0];i?.type===V.PieSeries&&i.ticks?.lineSymbol&&e.secondaryLineColor&&(!i.ticks.lineSymbol.color||i.ticks.lineSymbol.color.toString()===Hm.toString())&&(i.ticks.lineSymbol.color=e.secondaryLineColor)}function _Y(a){let{config:t,themeColors:e}=a,i=Eu().toString();t?.legend&&e.textColor&&(t.legend.title?.content&&(!t.legend.title.content.color||t.legend.title.content.color.toString()===i)&&(t.legend.title.content.color=e.textColor),t.legend.body&&(!t.legend.body.color||t.legend.body.color.toString()===i)&&(t.legend.body.color=e.textColor))}function CY(a){let{config:t,themeColors:e}=a;if(gd(t)&&e.textColor){let i=Eu().toString();t.axes?.forEach(r=>{r.innerLabel?.content&&(!r.innerLabel.content.color||r.innerLabel.content.color.toString()===i)&&(r.innerLabel.content.color=e.textColor),r.needle?.symbol&&(!r.needle.symbol.color||r.needle.symbol.color.toString()===i)&&(r.needle.symbol.color=e.textColor)})}}function wY(a){let{config:t,themeColors:e}=a;so(t)&&e.lineColor&&t.series.forEach(i=>{i.gridLine&&!i.gridLine.color&&(i.gridLine.color=e.lineColor)})}function BY(a,t){let e=_r(a),i={config:e,themeColors:t};return yY(i),vY(i),gY(i),bY(i),_Y(i),CY(i),xY(i),wY(i),e}function SY(){return!0}function FY(a){let{layer:t}=a,e,i=$s(t),r=qm(i);return r!==void 0&&"definitionExpression"in r&&a.layerFilterChangePolicy===$x.Refresh&&(e=Ia.watch(()=>r.definitionExpression,()=>{a.refresh({updateData:!0,resetAxesBounds:!0})})),e}function TY(a){let{layer:t}=a,e;if(t){let i=$s(t);e=Ia.watch(()=>i.renderer,()=>{let{model:r}=a,s=Ro(r)?r.config:r;if(Fl(s)&&a.layerRendererChangePolicy===Ox.Refresh){let n=SY();a.refresh({updateData:n})}})}return e}async function PY(a){let{view:t,layer:e,model:i,filterByExtent:r,filterByViewExtent:s}=a,n=Ro(i)?i.config:i,o;if(t&&n){let l=await bx({chartConfig:n,view:t,layer:e,filterByViewExtent:r||s}),h;if(yh(l)?h=l:bs(l)&&(h=await t.whenLayerView(l)),h){await Ia.whenOnce(()=>!h.updating);let c=async()=>{(a.filterByExtent||a.filterByViewExtent)&&t.stationary&&(h.updating&&await Ia.whenOnce(()=>!h.updating),await a.refresh({updateData:!0,resetAxesBounds:!0}))};o=[],yh(h)?(o.push(Ia.when(()=>t.stationary,c)),o.push(Ia.when(()=>!h.dataUpdating,c))):o.push(Ia.when(()=>t.stationary,c)),await c()}}return o}function DY(a){let{view:t}=a,e;return t&&(e=Ia.watch(()=>t.timeExtent,()=>{let{model:i}=a,r=Ro(i)?i.config:i,s=ze(r?.series);(a.viewTimeExtentChangePolicy===Mx.Refresh||a.syncViewTimeExtent)&&s!==V.HistogramSeries&&a.refresh({updateData:!0})})),e}function bv(a){let{syncViewTimeZone:t,syncViewTimeZoneInclusionList:e,chartConfig:i}=a,r=ze(i?.series);return(t||(r&&e.includes(r))===!0)&&(so(i)||bh(i?.series[0])&&i.axes?.[0].valueFormat?.type===V.DateAxisFormat)}function LY(a){let{view:t,syncViewTimeZone:e,syncViewTimeZoneInclusionList:i}=a,r;return t&&"timeZone"in t&&(r=Ia.watch(()=>t.timeZone,()=>{let{model:s}=a,n=Ro(s)?s.config:s;bv({syncViewTimeZone:e,syncViewTimeZoneInclusionList:i,chartConfig:n})&&(a.timeZone=t.timeZone,a.refresh({updateData:!0}))})),r}function IY(a){let{layer:t}=a,e,i=$s(t),r=qm(i);return r!==void 0&&"fields"in r&&(e=Ia.watch(()=>[r.fields],()=>{a.layerFieldsChangePolicy===Ex.Refresh&&a.refresh({updateData:!0})})),e}function x$(a,t){return Ia.watch(()=>t.selections,e=>{(a.syncViewSelection||a.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)&&(Array.isArray(e)&&e?.length===0?a.clearSelection():a.applySelectionFromSelectionManager())})}function kY(a){let{view:t}=a,e;return t?.selectionManager&&(e=x$(a,t.selectionManager)),e}function $Y(a){let{selectionManager:t}=a,e;return t&&(e=x$(a,t)),e}async function OY(a){let t=sF(`assets/common/t9n/messages.${a}.json`),e=await fetch(t);if(!e.ok)throw new Error(`Failed to load t9n file: ${t}`);return await e.json()}async function EY(a=Lu(document.documentElement).t9nLocale){let t=(await import("./VT4WJZN6.js")).default;switch(a){case"ar":t=(await import("./DNTLH5RT.js")).default;break;case"bs":t=(await import("./D3CFPMAR.js")).default;break;case"bg":t=(await import("./5ZGALYWZ.js")).default;break;case"ca":t=(await import("./JQKRGUBU.js")).default;break;case"cs":t=(await import("./XG2KN6YJ.js")).default;break;case"da":t=(await import("./YJ6TRXMU.js")).default;break;case"de":t=(await import("./ZQDADGLQ.js")).default;break;case"el":t=(await import("./CNFBNAPJ.js")).default;break;case"es":t=(await import("./CHLE2QGU.js")).default;break;case"et":t=(await import("./4ZIZEJXS.js")).default;break;case"fi":t=(await import("./II2ZPEUZ.js")).default;break;case"fr":t=(await import("./ZYOWZCR7.js")).default;break;case"he":t=(await import("./C5K6XOCR.js")).default;break;case"hr":t=(await import("./AY6IOQ3H.js")).default;break;case"hu":t=(await import("./NAXNRCMZ.js")).default;break;case"id":t=(await import("./ZFJFTDJF.js")).default;break;case"it":t=(await import("./WMPWOPRZ.js")).default;break;case"ja":t=(await import("./P5AO3V3M.js")).default;break;case"ko":t=(await import("./J5NHXQLA.js")).default;break;case"lt":t=(await import("./TXB2I2U5.js")).default;break;case"lv":t=(await import("./OJ5X6I3H.js")).default;break;case"no":t=(await import("./H2A5GZ55.js")).default;break;case"nl":t=(await import("./VE3GFNNM.js")).default;break;case"pl":t=(await import("./LUSFGRHV.js")).default;break;case"pt-BR":t=(await import("./7LYAWWOE.js")).default;break;case"pt-PT":t=(await import("./4Z23HWDH.js")).default;break;case"ro":t=(await import("./7UQHB6KY.js")).default;break;case"ru":t=(await import("./244ZX2UP.js")).default;break;case"sr":t=(await import("./AZOBLYAP.js")).default;break;case"sk":t=(await import("./BXYNEUQY.js")).default;break;case"sv":t=(await import("./6B7JCDQC.js")).default;break;case"th":t=(await import("./ETOGNYFU.js")).default;break;case"tr":t=(await import("./TACQVUBU.js")).default;break;case"uk":t=(await import("./TYUVXRBO.js")).default;break;case"vi":t=(await import("./4C6KWLWN.js")).default;break;case"zh-CN":t=(await import("./XMPLEHTW.js")).default;break;case"zh-HK":t=(await import("./BJ7Q7LCT.js")).default;break;case"zh-TW":t=(await import("./BJ7Q7LCT.js")).default;break}return t}async function MY(a=Lu(document.documentElement).t9nLocale){let t=(await import("./YFQHZWLO.js")).default;switch(a){case"ar":t=(await import("./PS7IL5JZ.js")).default;break;case"bs":t=(await import("./7XZZ5OZL.js")).default;break;case"bg":t=(await import("./5HRLHWQ5.js")).default;break;case"ca":t=(await import("./4DSO7LUF.js")).default;break;case"cs":t=(await import("./7IS6QE6S.js")).default;break;case"da":t=(await import("./T4NEEFOY.js")).default;break;case"de":t=(await import("./ZMQTYGGT.js")).default;break;case"el":t=(await import("./J5QUGI2J.js")).default;break;case"es":t=(await import("./ASUGYCJ6.js")).default;break;case"et":t=(await import("./MMO2QPOA.js")).default;break;case"fi":t=(await import("./732EZ6WJ.js")).default;break;case"fr":t=(await import("./YXH22GJ6.js")).default;break;case"he":t=(await import("./C2I4WPWM.js")).default;break;case"hr":t=(await import("./C47AIJTI.js")).default;break;case"hu":t=(await import("./W5SPX6WM.js")).default;break;case"id":t=(await import("./V454JYTQ.js")).default;break;case"it":t=(await import("./YBTVIOHQ.js")).default;break;case"ja":t=(await import("./S2R72ISR.js")).default;break;case"ko":t=(await import("./R2RRMPOC.js")).default;break;case"lt":t=(await import("./V7JF5I5M.js")).default;break;case"lv":t=(await import("./DPV2ZJLF.js")).default;break;case"no":t=(await import("./BICQEJYZ.js")).default;break;case"nl":t=(await import("./X33RIIGI.js")).default;break;case"pl":t=(await import("./YX4EVVJM.js")).default;break;case"pt-BR":t=(await import("./RV6E7KKQ.js")).default;break;case"pt-PT":t=(await import("./X2IOJECM.js")).default;break;case"ro":t=(await import("./FJNRPAMO.js")).default;break;case"ru":t=(await import("./VIZWWEG5.js")).default;break;case"sr":t=(await import("./JPEN5TFK.js")).default;break;case"sk":t=(await import("./3YOOX2CV.js")).default;break;case"sl":t=(await import("./GI54JT4O.js")).default;break;case"sv":t=(await import("./LEMJA72W.js")).default;break;case"th":t=(await import("./3HAB3JR6.js")).default;break;case"tr":t=(await import("./TEERYUCS.js")).default;break;case"uk":t=(await import("./C5YJ7J3A.js")).default;break;case"vi":t=(await import("./KBQM3DLQ.js")).default;break;case"zh-CN":t=(await import("./RYLXJPKL.js")).default;break;case"zh-HK":t=(await import("./AN2NRYQV.js")).default;break;case"zh-TW":t=(await import("./AN2NRYQV.js")).default;break}return t}async function RY(a=Lu(document.documentElement).t9nLocale,t){let e=t?await MY(a):await EY(a),i=(await OY(a)).customAmchartsStrings;return{...e,...i}}var UY=({message:a,heading:t,options:e})=>ld`<calcite-alert .icon=${e?.icon??"exclamationMarkTriangle"} .open=${e?.active===!0} .autoClose=${e?.autoClose??!1} .autoCloseDuration=${e?.duration??"medium"} scale=m .kind=${e?.kind??"danger"} .ariaHidden=${e?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${t!==void 0?ld`<div slot=title>${t}</div>`:null}${a!==void 0?ld`<div slot=message>${a}</div>`:null}</calcite-alert>`,VY=ZS`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`,yw=class extends eF{constructor(t){super(t)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=FY(this.component),this.layerRendererWatchHandler=TY(this.component),this.layerFieldsWatchHandler=IY(this.component)}async setViewExtentChangeWatchHandler(t){(t??(this.component.filterByExtent||this.component.filterByViewExtent))&&(this.removeViewExtentChangeWatchHandlers(),this.viewExtentChangeWatchHandlers=await PY(this.component))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=LY(this.component)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=DY(this.component)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=kY(this.component)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=$Y(this.component)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeViewExtentChangeWatchHandlers(){this.viewExtentChangeWatchHandlers?.forEach(t=>t.remove()),this.viewExtentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.component.runtimeDataFilters?.timeExtent&&delete this.component.runtimeDataFilters.timeExtent}},vw=class extends iF{constructor(){super(),this._messages=Qx(),this._chartRef=tF(),this._commonStrings=Qx({name:"common",blocking:!0}),this._watchHandlersController=new yw(this),this._updateQueue=OI.promise(async t=>await this._renderChart(t.changes),WF),this._rotated=!1,this._legendVisibility=!1,this._filterByExtent=!1,this._filterByViewExtent=!1,this._showLoader=!1,this._noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage","disableInteractions","interactionsDisabled"],this._loadQueryObject=new In(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent,this.filterByViewExtent],task:async([t,e,i,r,s],{signal:n})=>{let o=await bx({chartConfig:t,layer:e,view:i,filterByViewExtent:r||s,abortSignal:n});if(o){let l=$s(o);await ng(l,n)}return o},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._loadFeatureLayerView=new In(this,{args:()=>[this._loadQueryObject.value],task:async([t],{signal:e})=>yh(t)?await Ia.whenOnce(()=>!t.updating,{signal:e}):!1,onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._setLayerFromLayerItemId=new In(this,{args:()=>[this.layerItemId,this.view,this.chartIndex],task:async([t,e])=>{if(t&&t.trim()!==""&&!xx({view:e,portalItemId:t})){let i=await BN.fromPortalItem({portalItem:new SN({id:t})});(bF(i)||bs(i))&&(this.layer=i,await this._createModelFromLayer(this.chartIndex))}},onComplete:async()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._checkIfDataUpdateIsNeeded=new In(this,{args:()=>{let t=[this.forceDataUpdateTick,this.runtimeDataFilters,this.returnFeaturesExtent,this.chartLimits,this.updateSplitBySeries,this.timeZone];return[this._chart,this.config,this.usePopupTemplateFieldsInfo,this.layer,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.chartLimits,this._loadQueryObject.value,...t]},task:([t,e,i,r,s,n,o,l,h])=>{if(h){let c=t===void 0,u=_a(h,i),d=this._lastRenderedProps?.chartConfig,A=this._lastRenderedProps?.options?.selectionData?.selectionOIDs,p=this._lastRenderedProps?.dataUpdateNeededProps,f=this._lastRenderedProps?.extraProps?.layer,m=this._lastRenderedProps?.extraProps?.filterBySelection,g=c,y;p&&Object.keys(p).forEach(w=>{let S=p?p[w]:void 0,T=this[w];g=g||!rn(S,T)});let x=yh(f)!==yh(r);if(g=g||x,y={common:{layerChanged:x}},e&&d){let w=HF({previousConfig:d,newConfig:e,previousFilterBySelection:m,previousSelectionOIDs:A,fieldList:u,queryObject:h,filterBySelection:s,selectionData:n,setTimeBinningInfoWhenNotProvided:o,chartLimits:l});y={...y,...w.dataUpdateDetails},g=g||w.dataUpdateNeeded}return{dataUpdateNeeded:g,dataUpdateDetails:y}}else return this._checkIfDataUpdateIsNeeded.value??{dataUpdateNeeded:!1,dataUpdateDetails:void 0}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._prepareConfigForRendering=new In(this,{args:()=>[this.config,this._chart,this.updateSplitBySeries,this.updateSplitBySeries?.addMissingSeries,this.runtimeDataFilters,this.view,this.viewTimeExtentChangePolicy,this.syncViewTimeExtent,this.ignoreViewExtent,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this._commonStrings?.errorStrings,this.timeZone,this._loadQueryObject.value,this._checkIfDataUpdateIsNeeded.value?.dataUpdateNeeded],task:async([t,e,i,r,s,n,o,l,h,c,u,d,A,p,f,m],{signal:g})=>{let y=e===void 0,x=this.layer!==this._lastRenderedProps?.extraProps?.layer,w=this.filterByExtent!==this._lastRenderedProps?.extraProps?.filterByExtent||this.filterByViewExtent!==this._lastRenderedProps?.extraProps?.filterByViewExtent,S=r===!0&&(y||m||x||w),T=Nx({runtimeDataFilters:s,view:n,viewTimeExtentChangePolicy:o,syncViewTimeExtent:l}),F,L=this.view&&"timeZone"in this.view&&this.view.timeZone?this.view.timeZone:void 0;(p||bv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:this._config})&&L)&&(F=p??L);let{alteredConfig:$,preFetchedQueryResponse:I}=await BT({configToAlter:t,updateSplitBySeries:i,addMissingSeries:S,chartContainer:this.el,queryObject:f,layer:this.layer,abortSignal:g,runtimeDataFilters:T,ignoreViewExtent:h,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,timeZone:F,chartLimits:d,errorStrings:A});return JSON.stringify(this.alteredConfig)!==JSON.stringify($)&&(this.alteredConfig=$,this.model&&$&&!Ro(this.model)&&(this.model.series=$.series)),I},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._isChartSupportedByDataSource=new In(this,{args:()=>[this.config,this.layer],task:async([t,e],{signal:i})=>await wT({config:t,layer:e,abortSignal:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._validateWebChart=new In(this,{args:()=>[this.alteredConfig,this._gatherComponentOptions().allowUsingObjectIdStat,this._commonStrings?.errorStrings,this._loadQueryObject.value],task:async([t,e,i,r])=>await Lx({input:t,queryObject:r,allowUsingObjectIdStat:e,errorStrings:i}),onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this._getData=new In(this,{args:()=>[this.alteredConfig,this._unsanitizedSelectionDataItems,this._commonStrings?.errorStrings,this.usePopupTemplateFieldsInfo,this.popupTemplateFieldInfosEnabled,this.runtimeDataFilters,this.ignoreViewExtent,this.filterBySelection,this.selectionData,this.setTimeBinningInfoWhenNotProvided,this.returnFeaturesExtent,this.chartLimits,this.hideZeroCountCategories,this.replaceNoValueCategoryWithZero,this._gatherComponentOptions().view,this.filterByExtent||this.filterByViewExtent,this.syncViewTimeZone,this.syncViewTimeZoneInclusionList,this._loadQueryObject.value,this._prepareConfigForRendering.value,this._checkIfDataUpdateIsNeeded.value],task:async([t,e,i,r,s,n,o,l,h,c,u,d,A,p,f,m,g,y,x,w,S],{signal:T})=>{let F,{dataUpdateNeeded:L,dataUpdateDetails:$}=S??{};if(L&&t&&x&&!_h(t)){let I=_a(x,r||s),U=bv({syncViewTimeZone:g,syncViewTimeZoneInclusionList:y,chartConfig:t});this.showLoader=!0,F=await oT({chartConfig:t,preFetchedQueryResponse:w,queryObject:x,runtimeDataFilters:n,ignoreViewExtent:o,filterBySelection:l,selectionData:h,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:u,chartLimits:d,popupTemplateFieldInfosEnabled:s,hideZeroCountCategories:A,replaceNoValueCategoryWithZero:p,view:f,filterByViewExtent:m,syncViewTimeZone:U,fieldList:I,currentSelectionDataItems:e,dataForFilterBySelectionChanged:$?.common?.dataForFilterBySelectionChanged,errorStrings:i,abortSignal:T}),jx(this._model)&&ET(OT,F.data)}return{dataInfo:F,dataWasUpdated:!!F}},onComplete:()=>{this.taskCompletionTick++},onError:async t=>{this._handleRuntimeError(t)}}),this.forceDataUpdateTick=0,this.taskCompletionTick=0,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.configurationEnabled=!1,this.calciteThemingCSSVariables={background:"--calcite-color-foreground-1",text:"--calcite-color-text-1",line:"--calcite-color-border-1",secondaryLine:"--calcite-color-text-3",spinner:"--calcite-color-brand-hover"},this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.hideUIMessages=!1,this.showEmptySeries=!1,this.autoInverseDataLabelTextColor=!1,this.hideZeroCountCategories=!1,this.ignoreSmoothRenderingLimit=!1,this.returnSelectionIndexes=!1,this.returnFeaturesExtent=!1,this.filterBySelection=!1,this.disableInteractions=!1,this.interactionsDisabled=!1,this.skipChartCreationQueue=!1,this.useAnimatedCharts=!1,this.showLicenseWatermark=!1,this.enableResponsiveFeatures=!1,this.autoDisposeChart=!1,this.setTimeBinningInfoWhenNotProvided=!1,this.errorPolicy=lp.Throw,this.disableTogglingLegendItems=!1,this.hideLoaderAnimation=!1,this.usePopupTemplateFieldsInfo=!1,this.syncViewTimeZoneInclusionList=[V.HeatSeries],this.syncViewTimeZone=!1,this.layerFilterChangePolicy=$x.Refresh,this.viewTimeExtentChangePolicy=Mx.Ignore,this.syncViewTimeExtent=!1,this.layerRendererChangePolicy=Ox.Refresh,this.layerFieldsChangePolicy=Ex.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=md.Disabled,this.syncViewSelection=!1,this.syncSelection=!1,this.syncChartsSelection=!1,this.ignoreViewExtent=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=Xs(),this.arcgisBadDataWarningRaise=Xs(),this.arcgisChartNotFoundWarning=Xs(),this.arcgisConfigChange=Xs(),this.arcgisDataFetchComplete=Xs(),this.arcgisDataProcessComplete=Xs(),this.arcgisDataProcessError=Xs(),this.arcgisInvalidConfigWarningRaise=Xs(),this.arcgisLegendItemVisibilityChange=Xs(),this.arcgisNoRenderPropChange=Xs(),this.arcgisRenderingComplete=Xs(),this.arcgisRuntimeError=Xs(),this.arcgisSelectionComplete=Xs(),this.arcgisSeriesColorChange=Xs(),this.arcgisSeriesOrder=Xs(),this.arcgisUpdateComplete=Xs(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this._handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this._handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this._handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this._handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this._handleTooManySelectedElements),this.listen("calciteAlertClose",this._handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this._handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this._handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this._handleRenderingComplete),this._addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this._handleExternalSelection)}static{this.properties={alteredConfig:16,forceDataUpdateTick:16,taskCompletionTick:16,infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,configurationEnabled:5,calciteThemingCSSVariables:0,rotation:[5,{hasChanged:()=>!1}],rotated:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideUIMessages:5,hideEmptySeries:5,showEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,hideZeroCountCategories:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],filterByViewExtent:[5,{hasChanged:()=>!1}],disableInteractions:5,interactionsDisabled:5,queueChartCreation:5,skipChartCreationQueue:5,useAnimatedCharts:5,animationEnabled:5,hideLicenseWatermark:5,showLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:0,tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,togglingLegendItemsDisabled:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,syncViewTimeZoneInclusionList:0,syncViewTimeZone:5,popupTemplateFieldInfosEnabled:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,syncViewTimeExtent:5,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,syncSelection:5,syncChartsSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=VY}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=!this.hideLoaderAnimation&&t}get config(){return this._config}set config(t){let e=this._config;this._config=t,e&&t&&BF(e,t)&&this.forceDataUpdateTick++,this.arcgisConfigChange.emit({newConfig:t,oldConfig:e,functionCalled:this._lastModelSetterCalled}),this._lastModelSetterCalled=void 0,this._actionBarElement&&!_h(t)&&(this._actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotated}set rotation(t){this.rotated=t}get rotated(){return this._rotated}set rotated(t){this._rotatedChange(t),this._handleNoRenderPropChange("rotated",t),this._rotated=t}get legendPosition(){return this._legendPosition}set legendPosition(t){this._legendPositionChange(t),this._handleNoRenderPropChange("legendPosition",t),this._legendPosition=t}get legendVisibility(){return this._legendVisibility}set legendVisibility(t){this._legendVisibilityChange(t),this._handleNoRenderPropChange("legendVisibility",t),this._legendVisibility=t}get view(){return this._view}set view(t){let e=this._view;this._view=t,this._viewChange(t,e),this._handleNoRenderPropChange("view",t)}get filterByExtent(){return this._filterByExtent}set filterByExtent(t){this._filterByExtent=t,this._filterByViewExtentChanged(t),this._handleNoRenderPropChange("filterByExtent",t)}get filterByViewExtent(){return this._filterByViewExtent}set filterByViewExtent(t){this._filterByViewExtent=t,this._filterByViewExtentChanged(t),this._handleNoRenderPropChange("filterByViewExtent",t)}get featureIndex(){return this._featureIndex}set featureIndex(t){let e=this.featureIndex;this._featureIndexChange(t,e),this._handleNoRenderPropChange("featureIndex",t),this._featureIndex=t}async clearSelection(){this._chart!==void 0&&(this._unsanitizedSelectionDataItems=void 0,this._chart.clearSelection(),this.filterBySelection&&await this.refresh())}async destroy(){this._chart?.dispose()}async errorAlert(t){this.errorPolicy===lp.Throw&&(this._actionBarElement&&(this._actionBarElement.forceDisableActions=!0),this.notify(t,this._commonStrings?.errorStrings.errorHeading))}async exportAsCSV(t){let e,i,r={xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter};if(this._sanitizedChartData){let s=await this._loadQueryObject.taskComplete,n=s?_a(s,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled):void 0,o=this._model?.config??this.config,l=this._processedChartData??this._sanitizedChartData,h=await iT($s(s)),c=o?.chartRenderer?zF(o.chartRenderer):[],u=[...new Set([...h,...c])],d=Qu(o,u),A=Ro(this.model)?this.model.titleText:this.config?.title?.content?.text??this._commonStrings.utilsStrings.chartType.chart;if(Object.values(l).filter(p=>Array.isArray(p)&&p.length>0).length>1){let p=new MI.default;Object.entries(l).forEach(([m,g])=>{if(Array.isArray(g)&&g.length>0){let y=Vx({rawData:g,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this._commonStrings.utilsStrings}),x=Ux(y,t),w=`${A}-${m}.csv`;p.file(w,x)}});let f=await p.generateAsync({type:"blob"});e=URL.createObjectURL(f),i=`${A}.zip`}else{let p;if("bins"in l?p=l.bins:"dataItems"in l&&(p=l.dataItems),p){let f=Vx({rawData:p,config:o,layer:s,fieldList:n,formatters:r,useRendererLabel:d,formatLocale:t?.locale,utilsStrings:this._commonStrings.utilsStrings}),m=Ux(f,t);e=URL.createObjectURL(new Blob([m],{type:"text/csv;charset=utf-8;"})),i=`${A}.csv`}}e!==void 0&&i!==void 0&&Wx(e,i)}}async exportAsImage(t=XF.PNG){let e=this._chartRef.value;e?(await(0,EI.default)(e,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let r=URL.createObjectURL(i),s=`${this.model.titleText??this._commonStrings.utilsStrings.chartType.chart}.${t}`;Wx(r,s)}},t):this.notify(this._commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(t=>{this._resolveModelSetup=t})}async notify(t,e){this.infoModalMessage=t,this._infoModalHeading=e,this.showLoader=!1}async refresh(t){let{updateData:e=!0,resetAxesBounds:i=!1}=t??{};e&&this.forceDataUpdateTick++,i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this._chart!==void 0&&this._chart.resetZoom()}async switchSelection(){let t=await this._loadQueryObject.taskComplete;this._chart!==void 0&&!this.filterBySelection&&t&&await this._chart.switchSelection(t)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled){let t=this._getSelectionFromSelectionManager();t&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection})}}willUpdate(t){t.has("model")&&this._modelChange(),t.has("selectionData")&&!rn(t.get("selectionData")?.selectionOIDs,this.selectionData?.selectionOIDs)&&this._selectionDataChange(),t.has("layer")&&this._layerChange(),t.has("filterBySelection")&&t.get("filterBySelection")!==void 0&&this._filterBySelectionChanged(),t.has("selectionManager")&&(this._setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager())}updated(t){Array.from(t.keys()).filter(e=>!this._noRenderingUpdateProps.includes(e)).length>0&&!this._isAnyTaskPending()&&this._updatedAsync(t),this._actionBarElement!==void 0&&RT({actionBar:this._actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0}),t.has("aria")&&this.aria&&this._chartRef.value&&(this._chartRef.value.ariaLabel=this.aria.label??this._chartRef.value.ariaLabel,this._chartRef.value.ariaDescription=this.aria.description??this._chartRef.value.ariaDescription,this._chartRef.value.ariaLabelledByElements=this.aria.labelledByElements??this._chartRef.value.ariaLabelledByElements,this._chartRef.value.ariaDescribedByElements=this.aria.describedByElements??this._chartRef.value.ariaDescribedByElements)}disconnectedCallback(){super.disconnectedCallback(),this._removeLayerWatchHandlers(),this._removeViewExtentChangeWatchHandlers(),this._removeViewWatchHandlers(),this._removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this._chart?.dispose()}applySelectionFromView(){this.applySelectionFromSelectionManager()}applySelectionFromSelectionManager(){let t=this._getSelectionFromSelectionManager();t&&!rn(t,this.selectionData?.selectionOIDs)&&(this.selectionData={selectionOIDs:t,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}_handleRuntimeError(t){if(t instanceof Tl&&t.name===cd.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof Tl&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t){let e=t instanceof Tl?t.message:this._commonStrings?.errorStrings.errors.simpleError;this.notify(e,this._commonStrings?.errorStrings.errorHeading)}}_synchronizeModelConfig(){this._config&&(Ro(this.model)?this.model.config=_r(this._config):JSON.stringify(this._config)!==JSON.stringify(this.model)&&(this.model=_r(this._config)))}_isAnyTaskPending(){return[this._loadQueryObject,this._loadFeatureLayerView,this._setLayerFromLayerItemId,this._checkIfDataUpdateIsNeeded,this._prepareConfigForRendering,this._isChartSupportedByDataSource,this._validateWebChart,this._getData].some(t=>t.status===mg.PENDING)}_hideInfoModal(){this.infoModalMessage=void 0}async _generateHeatChartClassBreaks(t){if(!bs(this.layer)&&jx(this._model)&&t?.data&&"dataItems"in t.data){let e=await yT({data:t.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,colorRampName:this._model.colorRampName,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos,isColorRampFlipped:this._model.isColorRampFlipped});vT({currentBreaks:e,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:e,type:"classBreaks",field:xr.valueField})}}async _updatedAsync(t){if(this.config!==void 0&&this._chart!==void 0)try{(!this.config&&!this.layer||Ix(this.config,this.layer)&&!_h(this.config)&&await this._isChartSupportedByDataSource.taskComplete)&&await this._updateQueue?.push({changes:t})}catch(e){this._chartRef.value!==void 0&&(e instanceof Tl&&e.name===cd.ChartDisposed?(this._chart?.dispose(),this._chart=void 0,this._chartRef.value.innerHTML="",await this._createChartInstance(t,!1)):this._handleRuntimeError(e))}else this._chart===void 0&&await this._createChartInstance(t);this.placeholder!==void 0?await this.notify(this.placeholder):(this.enableConfiguration||this.configurationEnabled)&&_h(this.config)&&this._applyPlaceholderForPartialConfig(this.config)}_useAmCharts5(){let t=ze(this.config?.series);return this.enableBetaFeatures||t===V.ScatterSeries||t===V.HistogramSeries||t===V.RadarSeries||t===V.HeatSeries}_handleNoRenderPropChange(t,e){this.arcgisNoRenderPropChange.emit({propName:t,value:e,model:this._model})}_handleExternalSelection(t){if(!bs(this.layer)){let e=t,{selectionData:i,model:r}=e.detail,s=this.layer&&r?.layer?.id===Nu(this.layer).id;(this.syncSelection||this.syncChartsSelection)&&s&&t.target!==this.el&&!rn(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:Tr.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}}_configPanelNumberChange(t){let e=t,{panelNumber:i,modelList:r}=e.detail;this._actionBarElement&&(this.enableConfiguration||this.configurationEnabled)&&this._ourModelExistsIn(r)&&(this._actionBarElement.editChartToggle=i===1?kx.Active:kx.Inactive)}_configDataChangeError(t){let e=t,{error:i,model:r}=e.detail;(this.enableConfiguration||this.configurationEnabled)&&r?.isSameChartAs(this._model)&&this.notify(i.message)}_modelConfigChange(t){let e=t;this._lastModelSetterCalled=e.detail.setterName;let i=this._model?.config;i?.iLayer&&!rn(this.config?.iLayer,i?.iLayer)&&(this.layer=new QL(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=_r(i))}_modelDataChange(){this.setTimeBinningInfoWhenNotProvided&&kT(this._model)&&this._model?.resetTimeInterval()}_actionBarSlotRef(t){this._actionBarElement=t&&"assignedElements"in t?t.assignedElements().find(e=>e.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0}_checkForInvalidContainer(){this._chartRef.value||Km("divNode",this._commonStrings?.errorStrings)}_handleRenderingComplete(t){this.arcgisRenderingComplete.emit(t.detail),this.showLoader=!1}_handleLegendItemVisibilityChanged(t){yF(t,this.config),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:t.detail,model:this._model})}_handleUpdateCompleted(t){if(this.enableConfiguration||this.configurationEnabled){let e=this._commonStrings?.errorStrings.notifications;if(this.placeholder===void 0)if(t.schemaErrors.length>0&&!_h(this.config))this.notify(e?.invalidConfig,void 0);else if(t.customErrors.length>0&&!_h(this.config)){let i=t.customErrors.find(r=>r.keyword===cd.LayerFieldsNotFound);if(bs(this.layer)&&i){let r=Uc(e?.invalidConfigForRaster??"",{errorMessage:i.message});this.notify(r,e?.invalidConfigTitle)}else this.notify(e?.invalidConfig,void 0)}else t.warnings.length>0&&t.warnings.some(i=>i.keyword===KF.NonNumericAggregation)&&this.notify(e?.validateAggregationTypeMsg,e?.missingNumericFields);if((DT(this._model)||LT(this._model)||Hx(this._model)||IT(this._model))&&this._model.aggregationType===Pn.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Nu(this.layer),r=xh(i).idField;r&&this._model.numericFields.includes(r)&&this.notify(e?.noAggregationRequiresNumericFields,e?.missingNumericFields)}}this.showLoader&&(this.showLoader=!1),this.arcgisUpdateComplete.emit(t)}_handleInvalidConfigWarningRaise(t){this.arcgisInvalidConfigWarningRaise.emit(t.detail),this.notify(t.detail.message,t.detail.header)}_handleSeriesColorsChange(t){this.arcgisSeriesColorChange.emit({data:t.detail.data,colorMatchApplied:t.detail.colorMatchApplied,model:this._model})}_handleSelection(t){let e={...t.detail};this._unsanitizedSelectionDataItems=e.selectionItems;let i={...e},r=_r(e.selectionItems);r&&(r=dT(r,this.config?.series),r=r.map(AT),r=cT(r,this.config?.series),i.selectionItems=r),rn(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}_handleTooManySelectedElements(){this.errorPolicy===lp.Throw&&(this._infoModalHeading=this._commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this._commonStrings?.errorStrings.tooManySelectedElements?.message,this._notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}_handleAlertClosed(t){t.target===this.el&&(this._notifyHeading=void 0,this.notifyMessage=void 0)}_handleAxesMinMaxChange(t){this.arcgisAxesMinMaxChange.emit({bounds:t.detail,model:this._model})}_handleSeriesOrder(t){this.arcgisSeriesOrder.emit(t.detail)}_modelChange(){if(Ro(this.model)){this._model=this.model,this.config=_r(this._model?.config);let t=this._model?.layer;!this.layerItemId&&t&&(this.layer=t),this._addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this._resolveModelSetup=="function"&&this._resolveModelSetup()})}else this.config=_r(this.model);if(this.enableBetaFeatures===void 0){let t=ze(this.config?.series);this.enableBetaFeatures=t===V.ScatterSeries||t===V.HistogramSeries}}_selectionDataChange(){this.layer!==void 0&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)&&this.view!==void 0&&this._setSelectionInSelectionManager()}async _viewChange(t,e){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=xx({view:this.view,portalItemId:this.layerItemId})??new QL({portalItem:{id:this.layerItemId}})),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler(),e!==void 0&&t===void 0&&await this.refresh(),this.view?this._setViewSelectionsChangeWatchHandler():this._removeViewSelectionsChangeWatchHandler()}async _layerChange(){this._addLayerWatchHandlers(),this.layer&&(await ng(Nu(this.layer)),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler())}_featureIndexChange(t,e){e===void 0&&typeof t=="number"&&this.forceDataUpdateTick++}_rotatedChange(t){t!==void 0&&(this.config=_T(t,this._config),this._synchronizeModelConfig())}_legendPositionChange(t){t!==void 0&&(this.config=bT(t,this._config),this._synchronizeModelConfig())}_legendVisibilityChange(t){t!==void 0&&(this.config=xT(t,this._config),this._synchronizeModelConfig())}_filterBySelectionChanged(){this.config=CT(this._config),this._synchronizeModelConfig()}async _filterByViewExtentChanged(t){t||await this.refresh({updateData:!0,resetAxesBounds:!0}),t?this._setViewExtentChangeWatchHandler(t):this._removeViewExtentChangeWatchHandlers()}_addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this._configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this._configDataChangeError)}_getSelectionFromSelectionManager(){let t;if((this.view||this.selectionManager)&&this.layer&&!bs(this.layer)){let e=Nu(this.layer);t=(this.selectionManager??this.view?.selectionManager)?.getSelection(e)}return t}_setSelectionInSelectionManager(){let t=this.selectionManager??this.view?.selectionManager;if(this.layer&&t&&!bs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===md.Enabled)){let e,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===Tr.ClearSelection,r=(this.selectionData?.selectionOIDs?.length??0)>0;i?e=[]:r&&this.selectionData&&(e=this.selectionData.selectionOIDs),e&&t.replace(Nu(this.layer),e)}}_addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this._modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this._modelDataChange)}_addLayerWatchHandlers(){this._watchHandlersController.addLayerWatchHandlers()}async _setViewExtentChangeWatchHandler(t){await this._watchHandlersController.setViewExtentChangeWatchHandler(t)}_setViewTimeZoneWatchHandler(){this._watchHandlersController.setViewTimeZoneWatchHandler()}_setViewTimeExtentChangeWatchHandler(){this._watchHandlersController.setViewTimeExtentChangeWatchHandler()}_setViewSelectionsChangeWatchHandler(){this._watchHandlersController.setViewSelectionsChangeWatchHandler()}_setSelectionManagerChangeWatchHandler(){this._watchHandlersController.setSelectionManagerChangeWatchHandler()}_removeLayerWatchHandlers(){this._watchHandlersController.removeLayerWatchHandlers()}_removeViewWatchHandlers(){this._watchHandlersController.removeViewWatchHandlers()}_removeViewExtentChangeWatchHandlers(){this._watchHandlersController.removeViewExtentChangeWatchHandlers()}_removeViewSelectionsChangeWatchHandler(){this._watchHandlersController.removeViewSelectionsChangeWatchHandler()}_removeSelectionManagerChangeWatchHandler(){this._watchHandlersController.removeSelectionManagerChangeWatchHandler()}async _createModelFromLayer(t){if(this.layer){let e=Nu(this.layer);await ng(e);let i=t??0,r="charts"in e?e?.charts?.[i]:void 0;if(r)this.model=await $T({layer:e,config:r,commonStrings:this._commonStrings});else{let s=Uc(this._messages?.chartNotFoundWarning??"",{chartIndex:i.toString(),layerTitle:e.title});this.arcgisChartNotFoundWarning.emit(s),JS("warn",this,s)}}}_applyPlaceholderForPartialConfig(t){let e=Hx(this._model)?V.ComboLineAndBarSeries:ze(t?.series),i=fY(e,this._commonStrings?.errorStrings);this.notify(i)}_checkForIncompatibleChartVersion(){let t=this.config?.version;this.errorPolicy===lp.Throw&&xF(t).versionStatus===nF.Newer&&(this._notifyHeading=this._commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this._commonStrings?.errorStrings.incompatibleChartVersion?.message?Uc(this._commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:t??""}):"",this._notifyOptions={kind:"warning",autoClose:!0,active:!0})}_ourModelExistsIn(t){return t.some(e=>this._model?.isSameChartAs(e))}_gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,skipChartCreationQueue:this.skipChartCreationQueue,hideLicenseWatermark:this.hideLicenseWatermark,showLicenseWatermark:this.showLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart,animationEnabled:this.animationEnabled||this.useAnimatedCharts}}_addMutationObserverForCalciteTheme(){aF(this.el,["class"],()=>{let t=Qb(this.el);t!==this._calciteThemeApplied&&(this._calciteThemeApplied=t,this.refresh({updateData:!1}))})}_gatherComponentOptions(t=!0){let e=Nx({runtimeDataFilters:this.runtimeDataFilters,view:this.view,viewTimeExtentChangePolicy:this.viewTimeExtentChangePolicy,syncViewTimeExtent:this.syncViewTimeExtent}),i=this.filterByExtent||this.filterByViewExtent,r,s=Ro(this.model)?this.model.config:this.model;if(bs(this.layer))r=i?this.view:void 0;else{let n=ze(s?.series);r=i||n!==V.HistogramSeries?this.view:void 0}return{layer:this.layer,view:r,viewExtentUpdated:t&&i&&(this.view!==void 0||yh(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,runtimeDataFilters:e,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:bs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,hideZeroCountCategories:this.hideZeroCountCategories,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter,syncViewTimeZone:bv({syncViewTimeZone:this.syncViewTimeZone,syncViewTimeZoneInclusionList:this.syncViewTimeZoneInclusionList,chartConfig:s}),interactionsDisabled:this.interactionsDisabled||this.disableInteractions,togglingLegendItemsDisabled:this.togglingLegendItemsDisabled||this.disableTogglingLegendItems,popupTemplateFieldInfosEnabled:this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled}}_raiseLogScaleNotCompatibleWarning(t,e){let i=!0;return this.config?.axes?.forEach((r,s)=>{dg({chartConfig:this.config,axisConfigIndex:s,chartData:Ln(e?.data??this._sanitizedChartData)})||(i=!1,this._raiseInvalidDataWarning({invalidType:s===0?Ll.NegativeValueInXAxisLogScale:Ll.NegativeValueInYAxisLogScale,queryObject:t}))}),i}_raiseNoDataWarning(t){let{dataInfo:e,config:i,queryObject:r}=t,s=!1;if(e?.data){let n=Ln(e.data),o=Ll.EmptyDataSet;hT({chartConfig:i,nullAsValid:this.nullAsValid,dataSet:n})&&(gd(this.config)&&Hu(this.config)&&e.count&&e.count>0&&(o=Ll.NoValue),s=!0,this._raiseInvalidDataWarning({invalidType:o,elementCount:e.count,queryObject:r}))}return s}_raiseInvalidDataWarning(t){let{invalidType:e,elementCount:i,queryObject:r}=t,s=this._gatherComponentOptions(),n=this.config!==void 0&&Jm({seriesConfig:this.config.series[0],xAxisValueFormatType:vF(this.config),queryObject:r}),o=gd(this.config)&&Hu(this.config),l=sT({invalidType:e,elementCount:i,seriesCount:this.config?.series?.length,chartLimits:s?.chartLimits,filterBySelection:s?.filterBySelection,queryObject:r,formatLocale:Ad(this.el),isTemporalChart:n,isGaugeChartByFeature:o,errorStrings:this._commonStrings?.errorStrings});(l.keyword!==Ll.EmptyDataSet||this.infoModalMessage===void 0||l.keyword===Ll.EmptyDataSet&&o)&&(this.arcgisBadDataWarningRaise.emit(l),this.notify(l.message,l.header))}_processInvalidConfigStatus(t,e){if(this.enableConfiguration||this.configurationEnabled)this._handleUpdateCompleted(t);else{this.showLoader=!1;let{title:i,message:r}=pY({chartConfig:e,createMessage:this.placeholder,status:t,errorStrings:this._commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:Ll.InvalidConfig,header:i,message:r}),this.notify(r,i)}}async _createChartInstance(t,e=!0){if(this.config)try{this._addMutationObserverForCalciteTheme(),await this._renderChart(t),e&&this._chart&&(this._addLayerWatchHandlers(),await this._setViewExtentChangeWatchHandler(),this._setViewTimeExtentChangeWatchHandler(),this._setViewTimeZoneWatchHandler(),this._setViewSelectionsChangeWatchHandler(),this._setSelectionManagerChangeWatchHandler())}catch(i){this._handleRuntimeError(i),this._chart?.dispose(),this._chart=void 0}}_notifyDataProcessComplete(t){if(t&&this._config){let e=Ag({data:t,seriesConfig:this._config.series});e&&(this._sanitizedChartData=e,this.arcgisDataProcessComplete.emit({chartData:e,model:this._model}))}}_notifyDataFetchComplete(t){if(t&&"dataItems"in t&&this._config&&ze(this._config?.series)===V.PieSeries){let e=_r(t);e.dataItems=qN(e.dataItems,this._config),this.arcgisDataFetchComplete.emit(e)}}async _renderChart(t){if(_h(this.config))this._applyPlaceholderForPartialConfig(this.config);else if(this.config){let e=this._chart===void 0;if(e||t.size>0){this._checkForInvalidContainer(),e&&this._checkForIncompatibleChartVersion();let i=await this._loadQueryObject.taskComplete;if(i){let r=this._gatherComponentOptions(),s=_a(i,this.usePopupTemplateFieldsInfo||this.popupTemplateFieldInfosEnabled),n=await this._checkIfDataUpdateIsNeeded.taskComplete,{dataUpdateDetails:o}=n,l=n.dataUpdateNeeded;l&&!e&&this._hideInfoModal();let h=this.alteredConfig?{...this.alteredConfig}:void 0,c=this._lastRenderedProps?.chartConfig;if(o?.common&&c?.series&&h?.series&&(o.common.numberOfSeriesChanged=SF(c.series,h.series)),!h&&!this.layer||Ix(h,this.layer)&&await this._isChartSupportedByDataSource.taskComplete){let u=await this._validateWebChart.taskComplete;if(!u.valid)this._processInvalidConfigStatus(u,h);else if(h){await this._loadFeatureLayerView.taskComplete;let d=await this._getData.taskComplete,A=d.dataInfo??{valid:!0,data:this._processedChartData??this._sanitizedChartData},p=d.dataWasUpdated;if(ze(h.series)===V.PieSeries){let f=XL({creation:e,previousConfig:c,newConfig:h,dataInfo:A,dataUpdateNeeded:p,utilsStrings:this._commonStrings.utilsStrings});p=p||f}if(!A.valid)this._raiseInvalidDataWarning({invalidType:A.invalidType,elementCount:A.count,queryObject:i});else{if(ze(h.series)===V.PieSeries){let g=XL({creation:e,previousConfig:c,newConfig:h,dataInfo:A,dataUpdateNeeded:p,utilsStrings:this._commonStrings.utilsStrings});p=p||g}let f,m=_r(h);if({filteredConfig:h,seriesFilteredOut:f}=ST({showEmptySeries:this.showEmptySeries??this.hideEmptySeries===!1,config:h,data:A?.data}),this._getData.status===mg.COMPLETE&&!this._raiseNoDataWarning({dataInfo:A,config:h,queryObject:i})&&this._raiseLogScaleNotCompatibleWarning(i,A)){let g=tp({oldConfig:f?m:c,newConfig:h,dataWasUpdated:p});g&&aT({alteredConfig:h,dataInfo:A,fieldList:s,options:r,queryObject:i}),eg(c,h)&&(p=!0);let y=Dl(h)?h.showMean:void 0,x=A?.data??this._sanitizedChartData,w=x&&y&&"meanLines"in x?x.meanLines:Ln(x);w&&(e||p)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await Bx({data:w,queryObject:i,chartConfig:h,allowColorMatch:mx({chartConfig:h,queryObject:i})})),this._calciteThemeColors&&(h=BY(h,this._calciteThemeColors),this._calciteThemeApplied=Qb(this.el));let S=!1,T;if(h.series[0].type===V.PieSeries){let L=Ln(this._processedChartData),$=Ln(A.data);S=zI(L,$),T=XI({creation:e,dataInfo:A,pieChartDataActuallyChanged:S,chartConfig:h,previousConfig:c,queryObject:i,popupTemplateFieldInfosEnabled:r?.usePopupTemplateFieldsInfo||r?.popupTemplateFieldInfosEnabled,utilsStrings:this._commonStrings.utilsStrings})}let F=await XN({creation:e,dataInfo:A,pieChartDataActuallyChanged:S,chartConfig:h,previousConfig:c,pieSlicesSymbols:T,queryObject:i,options:r,utilsStrings:this._commonStrings?.utilsStrings});if(F?.changesApplied&&(u=await Lx({input:F?.alteredConfig,queryObject:i,allowUsingObjectIdStat:r?.allowUsingObjectIdStat,errorStrings:this._commonStrings?.errorStrings}),u.valid&&(h=F?.alteredConfig,T=F.alteredPieSlicesSymbols,this._colorMatchApplied=F.colorMatchApplied,this._rendererFieldNames=F.rendererFieldNames)),h.series[0].type===V.PieSeries&&A.data&&"dataItems"in A.data&&eQ({data:A.data.dataItems,newChartConfig:h,pieSlicesSymbols:T,fieldList:s}),this._processedChartData=_r(A.data),!u.valid)this._processInvalidConfigStatus(u,h);else{if((l||g)&&(this._notifyDataProcessComplete(A.data),this._notifyDataFetchComplete(A.data)),!this.filterBySelection&&!bs(i)){let P=this._lastRenderedProps?.options?.selectionData,Q=!rn(P?.selectionOIDs,this.selectionData?.selectionOIDs),G=await pT({chartConfig:h,chartData:this._processedChartData,dataWasUpdated:l,queryObject:i,selectionData:r?.selectionData,replaceNoValueCategoryWithZero:r?.replaceNoValueCategoryWithZero,hideZeroCountCategories:r?.hideZeroCountCategories,chartLimits:r?.chartLimits,setTimeBinningInfoWhenNotProvided:r?.setTimeBinningInfoWhenNotProvided,returnFeaturesExtent:r?.returnFeaturesExtent,popupTemplateFieldInfosEnabled:r?.popupTemplateFieldInfosEnabled,view:r?.view,viewExtentUpdated:r?.viewExtentUpdated,returnSelectionOIDs:r?.returnSelectionOIDs,runtimeDataFilters:r?.runtimeDataFilters,ignoreViewExtent:r?.ignoreViewExtent,errorStrings:this._commonStrings?.errorStrings,selectionIDsChanged:Q});G&&r&&(r.selectionData={...r?.selectionData,selectionItems:G})}this._hideInfoModal();let{t9nLocale:L}=Lu(this._chartRef.value??document.documentElement),$=await RY(L,this._useAmCharts5()),I=h.series?.[0]?.query;gd(h)&&I&&(A.gaugeMinMaxFromData=await nT({queryObject:i,chartConfig:h,queryConfig:I,errorStrings:this._commonStrings?.errorStrings}));let U={chartConfig:h,options:r,globalOptions:this._gatherComponentGlobalOptions(),dataUpdateDetails:o,configWithAllSeries:m,dataWasUpdated:p,chartContainer:this._chartRef.value,queryObject:i,dataInfo:A,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:T,hasSeriesFilteredOut:f,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this._commonStrings?.errorStrings,utilsStrings:this._commonStrings?.utilsStrings,amChartsStrings:$},dataUpdateNeededProps:{forceDataUpdateTick:this.forceDataUpdateTick,runtimeDataFilters:this.runtimeDataFilters,returnFeaturesExtent:this.returnFeaturesExtent,chartLimits:this.chartLimits,updateSplitBySeries:this.updateSplitBySeries},extraProps:{layer:this.layer,filterBySelection:this.filterBySelection,filterByExtent:this.filterByExtent,filterByViewExtent:this.filterByViewExtent}};if(e){let P=this._useAmCharts5()?AY:jW;this._chart=P(U)}else this._chart?.update(U),this._handleUpdateCompleted(u);if(gd(h)&&Hu(h)&&h.series[0].type===V.GaugeSeries){let P=A?.data&&"dataItems"in A.data?A.data.dataItems:[],Q=Ew({featureIndex:h.series[0].featureIndex,chartData:P,chartConfig:h,gaugeMinMaxFromData:A.gaugeMinMaxFromData??{},queryConfig:I});Number.isNaN(Q.dataValue)&&this._raiseInvalidDataWarning({invalidType:Ll.NoValue,elementCount:P.length,queryObject:i})}this._lastRenderedProps=U,await this._generateHeatChartClassBreaks(A)}}}}}}}}}render(){this._calciteThemeColors=mY(this.el,this.calciteThemingCSSVariables);let t=this.notifyMessage?UY({heading:this._notifyHeading,message:this.notifyMessage,options:this._notifyOptions}):null,e=this._isAnyTaskPending()&&!this.hideLoaderAnimation||this.showLoader,i=this.infoModalMessage!==void 0&&this.showUIMessages!==!1&&!this.hideUIMessages||e,r=this.notifyMessage&&this._notifyOptions?.kind==="danger"||i,s={[sn.ChartWrapper]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r},n={[sn.ChartContainer]:!0,[sn.Hide]:r,[sn.Show]:!r,[sn.Chart]:!r,[sn.DisableInteractions]:this.interactionsDisabled||this.disableInteractions},o=this.notifyMessage!==void 0?{[sn.NotifyPanel]:!0,[sn.Show]:!0}:{[sn.Hide]:!0};return ld`<slot name=${gT.actionBar} @slotchange=${l=>{this._actionBarElement=MT(l,this.el,this.config)}} ${Nb(this._actionBarSlotRef)}></slot>${i?ld`<arcgis-charts-info-modal .heading=${this._infoModalHeading} .message=${this.infoModalMessage} .showLoader=${e} .loaderColors=${this.loaderColors} .calciteThemeColors=${this._calciteThemeColors}></arcgis-charts-info-modal>`:null}<div class=${Rm(s)}><div class=${Rm(n)} ${Nb(this._chartRef)}></div></div><div class=${Rm(o)}>${t}</div>`}};rF("arcgis-chart",vw);return vw},"core/reactiveUtils","intl","layers/FeatureLayer","layers/Layer","portal/PortalItem",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
|