chunk-cbf68ff6.53b06e0d.js 473 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbf68ff6"],{"0109":function(e,t,i){"use strict";i.d(t,"d",(function(){return s})),i.d(t,"e",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o}));i("1eae");function s(e){return Object.keys(e)}function a(e,t){return s(e).sort(t)}function r(e){return Object.assign({},e)}function n(e,t){s(e).forEach(i=>{t(i,e[i])})}function o(e,t){for(let i in e)if(l(e,i)&&!t(i,e[i]))break}function l(e,t){return{}.hasOwnProperty.call(e,t)}},"0504":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("e0f6"),a=i("9d71"),r=i("bf67"),n=i("be4b"),o=i("1eae");class l extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].new(this._root,{width:n["c"],height:n["c"],isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new r["b"]})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(t=>{if("clear"===t.type){o["c"](t.oldValues,e=>{this._removeSeries(e)});const e=this.get("colors");e&&e.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else{if("moveIndex"!==t.type)throw new Error("Unknown IListEvent type");e.moveValue(t.value,t.newIndex),this._processSeries(t.value)}}))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([l.className])})},"056f":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("7d61");class a extends s["a"]{}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"InterfaceColors"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},"08b0":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return h}));var s=i("69cf"),a=i("842e"),r=i("e28a");function n(e){return"#"===e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function o(e){e=e.replace(/[ ]/g,"");let t=e.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let i="";for(let s=1;s<=3;s++){let e=parseInt(t[s]).toString(16);1==e.length&&(e="0"+e),i+=e}return n(i)}function l(e){return h.fromAny(e)}class h{constructor(e){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=0|e}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+a["E"](this.r.toString(16),2)+a["E"](this.g.toString(16),2)+a["E"](this.b.toString(16),2)}toHSL(e=1){return a["H"]({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,i){const s=a["y"]({h:e,s:t,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(e){return new h(e)}static fromRGB(e,t,i){return new h((0|i)+(t<<8)+(e<<16))}static fromString(e){return new h(n(e))}static fromCSS(e){return new h(o(e))}static fromAny(e){if(r["g"](e)){if("#"==e[0])return h.fromString(e);if("rgb"==e.substr(0,3))return h.fromCSS(e)}else{if(r["e"](e))return h.fromHex(e);if(e instanceof h)return h.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,i){const s=a["b"]({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(e,t,i,a="rgb"){if("hsl"==a){const a=t.toHSL(),r=i.toHSL();return h.fromHSL(Object(s["d"])(e,a.h,r.h),Object(s["d"])(e,a.s,r.s),Object(s["d"])(e,a.l,r.l))}return h.fromRGB(Object(s["d"])(e,t.r,i.r),Object(s["d"])(e,t.g,i.g),Object(s["d"])(e,t.b,i.b))}static lighten(e,t){const i=a["B"]({r:e.r,g:e.g,b:e.b},t);return h.fromRGB(i.r,i.g,i.b)}static brighten(e,t){const i=a["d"]({r:e.r,g:e.g,b:e.b},t);return h.fromRGB(i.r,i.g,i.b)}static saturate(e,t){const i=a["J"]({r:e.r,g:e.g,b:e.b},t);return h.fromRGB(i.r,i.g,i.b)}}},"0e04":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("be4b"),a=i("bd57"),r=i("bdb1"),n=i("48ef"),o=i("842e");class l extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(r["a"].new(this._root,{}))}baseRadius(){const e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return t+o["F"](i,e-t)}radius(){const e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const e=this.get("textType","adjusted"),t=this.get("inside",!1),i=this.get("orientation");let a=n["l"](this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",t);const r=n["n"](a),o=n["e"](a);let l=this.baseRadius(),h=this.radius();if(this._display.angle=0,"circular"==e)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",h);else{0==l&&(a=0,h=0);let t=h*o,n=h*r;"radial"==e?(this.setRaw("x",t),this.setRaw("y",n),a<90||a>270||"auto"!=i?(this._display.angle=a,this._flipped=!1):(this._display.angle=a+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==e?(this.setRaw("centerX",s["d"]),this.setRaw("centerY",s["d"]),this.setRaw("x",t),this.setRaw("y",n)):"regular"==e&&(this.setRaw("x",t),this.setRaw("y",n))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const e=this.get("textType","regular"),t=this.get("inside",!1);let i=0,a=0,r=this.get("labelAngle",0),o=this.localBounds(),l=o.right-o.left,h=o.bottom-o.top;if("radial"==e){if(this._flipped){let e=this.get("centerX");e instanceof s["a"]&&(l*=1-2*e.value),i=l*n["e"](r),a=l*n["n"](r)}}else t||"adjusted"!=e||(i=l/2*n["e"](r),a=h/2*n["n"](r));this.setRaw("dx",i),this.setRaw("dy",a),super._updatePosition()}get text(){return this._text}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([l.className])})},"147a":function(e,t,i){"use strict";i.d(t,"a",(function(){return F}));var s=i("69cf"),a=i("9d71"),r=i("95f3"),n=i("38a8"),o=i("b88e"),l=i("f8ca"),h=i("9197"),c=i("1eae"),u=i("842e");class d{constructor(){Object.defineProperty(this,"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._observer=new ResizeObserver(e=>{c["c"](e,e=>{c["c"](this._targets,t=>{t.target===e.target&&t.callback()})})})}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),c["m"](this._targets,t=>t.target!==e)}}class g{constructor(){Object.defineProperty(this,"_timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]})}addTarget(e,t){if(null===this._timer){let e=null;const t=()=>{const i=Date.now();(null===e||i>e+g.delay)&&(e=i,c["c"](this._targets,e=>{let t=e.target.getBoundingClientRect();t.width===e.size.width&&t.height===e.size.height||(e.size=t,e.callback())})),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(t)};this._timer=requestAnimationFrame(t)}let i={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};this._targets.push({target:e,callback:t,size:i})}removeTarget(e){c["m"](this._targets,t=>t.target!==e),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}Object.defineProperty(g,"delay",{enumerable:!0,configurable:!0,writable:!0,value:200});let p=null;function b(){return null===p&&(p="undefined"!==typeof ResizeObserver?new d:new g),p}class m{constructor(e,t){Object.defineProperty(this,"_sensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._sensor=b(),this._element=e,this._listener=u["D"](t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var f=i("056f"),_=i("841d"),v=i("5f47"),y=i("f7ee"),x=i("8d36"),w=i("5cf0"),P=i("d5c2"),D=i("7d61"),k=i("0109"),T={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(e){let t="th";if(e<11||e>13)switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};class O extends D["a"]{_setDefaults(){this.setPrivate("defaultLocale",T),super._setDefaults()}translate(e,t,...i){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let s=e,a=t[e];if(null===a)s="";else if(null!=a)a&&(s=a);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...i);if(i.length)for(let r=i.length,n=0;n<r;++n)s=s.split("%"+(n+1)).join(i[n]);return s}translateAny(e,t,...i){return this.translate(e,t,...i)}setTranslationAny(e,t,i){const s=i||this._root.locale;s[e]=t}setTranslationsAny(e,t){k["b"](e,(e,i)=>{this.setTranslationAny(e,i,t)})}translateEmpty(e,t,...i){let s=this.translate(e,t,...i);return s==e?"":s}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:c["n"](e,e=>this.translate(e,t))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var M=i("61b6"),A=i("dab0"),S=i("be7c"),C=i("be4b"),j=i("08b0"),R=i("6104"),L=i("b595"),I=i("2180"),E=i("e28a");function B(e,t){null==e?requestAnimationFrame(t):setTimeout(()=>{requestAnimationFrame(t)},1e3/e)}class F{constructor(e,t={},i){if(Object.defineProperty(this,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyAnimation",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyBounds",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPositions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_ticker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tickers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_updateTick",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new M["a"]}),Object.defineProperty(this,"animationTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_animations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rootContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tooltipContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipContainerSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"language",{enumerable:!0,configurable:!0,writable:!0,value:O.new(this,{})}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:T}),Object.defineProperty(this,"utc",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timezone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberFormatter",{enumerable:!0,configurable:!0,writable:!0,value:x["a"].new(this,{})}),Object.defineProperty(this,"dateFormatter",{enumerable:!0,configurable:!0,writable:!0,value:w["a"].new(this,{})}),Object.defineProperty(this,"durationFormatter",{enumerable:!0,configurable:!0,writable:!0,value:P["a"].new(this,{})}),Object.defineProperty(this,"tabindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tabindexes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_a11yD",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusedSprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isShift",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_keyboardDragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_readerAlertElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_logo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nonce",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interfaceColors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verticalLayout",{enumerable:!0,configurable:!0,writable:!0,value:o["a"].new(this,{})}),Object.defineProperty(this,"horizontalLayout",{enumerable:!0,configurable:!0,writable:!0,value:n["a"].new(this,{})}),Object.defineProperty(this,"gridLayout",{enumerable:!0,configurable:!0,writable:!0,value:l["a"].new(this,{})}),Object.defineProperty(this,"_paused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoResize",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_fontHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_resizeSensorDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltips",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_htmlElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlEnabledContainers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,a;if(this._settings=t,0==t.accessible&&(this._a11yD=!0),null==t.useSafeResolution&&(t.useSafeResolution=!0),t.useSafeResolution&&(s=u["r"]()),this._renderer=new S["a"](s),a=e instanceof HTMLElement?e:document.getElementById(e),c["c"](L["a"].rootElements,e=>{if(e.dom===a)throw new Error("You cannot have multiple Roots on the same DOM node")}),this.interfaceColors=f["a"].new(this,{}),null===a)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=a;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",a.appendChild(r);const h=t.tooltipContainerBounds;h&&(this._tooltipContainerSettings=h),this._inner=r,this._updateComputedStyles(),L["a"].rootElements.push(this)}static new(e,t){const i=new F(e,t,!0);return i._init(),i}moveDOM(e){let t;if(t=e instanceof HTMLElement?e:document.getElementById(e),t){while(this.dom.childNodes.length>0)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const e=this.tooltipContainer.children.push(a["a"].new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:Object(C["e"])(100),centerY:C["c"],tooltipText:"Created using amCharts 5",tooltipX:C["c"],cursorOverStyle:"pointer",background:v["a"].new(this,{fill:Object(j["b"])(4671320),fillOpacity:0,tooltipY:5})})),t=y["a"].new(this,{pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});t.label.setAll({fontSize:12}),t.get("background").setAll({fill:this.interfaceColors.get("background"),stroke:this.interfaceColors.get("grid"),strokeOpacity:.3}),e.set("tooltip",t),e.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),e.states.create("hover",{});const i=e.children.push(_["a"].new(this,{stroke:Object(j["b"])(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6"}));i.states.create("hover",{stroke:Object(j["b"])(3976191)});const s=e.children.push(_["a"].new(this,{stroke:Object(j["b"])(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0"}));s.states.create("hover",{stroke:Object(j["b"])(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){const e=this._settings;!1!==e.accessible&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));const t=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),n=Math.floor(s.height),o=Math.floor(i.width),l=Math.floor(i.height),h=a["a"].new(this,{visible:!0,width:r,height:n});this._rootContainer=h,this._rootContainer._defaultThemes.push(A["a"].new(this));const c=h.children.push(a["a"].new(this,{visible:!0,width:C["c"],height:C["c"]}));this.container=c,t.resize(o,l,r,n),this._inner.appendChild(t.view),this._initResizeSensor();const d=document.createElement("div");if(this._htmlElementContainer=d,d.className="am5-html-container",d.style.position="absolute",d.style.pointerEvents="none",this._tooltipContainerSettings||(d.style.overflow="hidden"),this._inner.appendChild(d),!0!==this._a11yD){const e=document.createElement("div");e.className="am5-reader-container",e.setAttribute("role","alert"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=e,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=n+"px",i.setAttribute("role","graphics-document"),u["K"](i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u["O"]("keyboardevents")&&(this._disposers.push(u["a"](window,"keydown",e=>{const t=u["l"](e);"Shift"==t?this._isShift=!0:"Tab"==t&&(this._isShift=e.shiftKey)})),this._disposers.push(u["a"](window,"keyup",e=>{const t=u["l"](e);"Shift"==t&&(this._isShift=!1)})),this._disposers.push(u["a"](i,"click",()=>{const e=this._focusedSprite;if(e){const i=t.getEvent(new MouseEvent("click"));e.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!0,target:e})}})),this._disposers.push(u["a"](i,"keydown",e=>{const i=this._focusedSprite;if(i){"Escape"==e.key&&(u["c"](),this._focusedSprite=void 0);let s=0,a=0;const r=u["l"](e);switch(r){case"Enter":case" ":if(" "==r&&"checkbox"!=i.get("role"))return;e.preventDefault();const n=t.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:n.event,point:n.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":a=-6;break;case"ArrowDown":a=6;break;default:return}if(0!=s||0!=a){if(e.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const e=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));e.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:e.event,point:e.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=a;const n=t.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:n.event,point:n.point,simulated:!0,target:i})}}})),this._disposers.push(u["a"](i,"keyup",e=>{if(this._focusedSprite){const i=this._focusedSprite,s=u["l"](e);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowTop":case"ArrowDown":if(i.isDragging()){const e=this._keyboardDragPoint,s=t.getEvent(new MouseEvent("mouseup",{clientX:e.x,clientY:e.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const e=i.get("focusableGroup"),t=this._tabindexes.filter(t=>!(t.get("focusableGroup")!=e||!1===t.getPrivate("focusable")||!t.isVisibleDeep()));let a=t.indexOf(i);const r=t.length-1;a+="ArrowRight"==s||"ArrowDown"==s?1:-1,a<0?a=r:a>r&&(a=0),u["i"](t[a].getPrivate("focusElement").dom)}break}}})))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new m(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){const e=this._getRealSize(),t=this._getCalculatedSize(e),i=Math.floor(t.width),s=Math.floor(t.height);if(i>0&&s>0){const t=Math.floor(e.width),a=Math.floor(e.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const e=this._focusElementContainer;e.style.width=i+"px",e.style.height=s+"px"}this._renderer.resize(t,a,i,s);const n=this._rootContainer;n.setPrivate("width",i),n.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){c["c"](this._tickers,t=>{t(e)})}_runAnimations(e){let t=0;return c["m"](this._animations,i=>{const a=i._runAnimation(e);return a!==s["a"].Stopped&&(a!==s["a"].Playing||(++t,!0))}),this._isDirtyAnimation=!1,0===t}_runDirties(){let e={};while(this._isDirtyParents)this._isDirtyParents=!1,k["d"](this._dirtyParents).forEach(t=>{const i=this._dirtyParents[t];delete this._dirtyParents[t],i.isDisposed()||(e[i.uid]=i,i._prepareChildren())});k["d"](e).forEach(t=>{e[t]._updateChildren()});const t=[];k["d"](this._dirty).forEach(e=>{const i=this._dirty[e];i.isDisposed()?delete this._dirty[i.uid]:(t.push(i),i._beforeChanged())}),t.forEach(e=>{e._changed(),delete this._dirty[e.uid],e._clearDirty()}),this._isDirty=!1;const i={},s=[];k["d"](this._dirtyBounds).forEach(e=>{const t=this._dirtyBounds[e];delete this._dirtyBounds[e],t.isDisposed()||(i[t.uid]=t.depth(),s.push(t))}),this._positionHTMLElements(),s.sort((e,t)=>I["a"](i[t.uid],i[e.uid])),s.forEach(e=>{e._updateBounds()});const a=this._dirtyPositions;k["d"](a).forEach(e=>{const t=a[e];delete a[e],t.isDisposed()||t._updatePosition()}),t.forEach(e=>{e._afterChanged()})}_renderFrame(e){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e);const t=this._runAnimations(e);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),0===this._tickers.length&&t&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(e,t){if(!this.isDisposed()){this.animationTime=e;const i=this._renderFrame(e);i?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:B(this.fps,this._ticker))}}_runTickerNow(e=1e4){if(!this.isDisposed()){const t=performance.now()+e;for(;;){const e=performance.now();if(e>=t){this.animationTime=null;break}this.animationTime=e;const i=this._renderFrame(e);if(i){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},B(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._isDirty=!0,void 0===this._dirty[e.uid]&&(this._dirty[e.uid]=e),this._startTicker()}_addDirtyParent(e){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[e.uid]&&(this._dirtyParents[e.uid]=e),this._startTicker()}_addDirtyBounds(e){this._isDirty=!0,void 0===this._dirtyBounds[e.uid]&&(this._dirtyBounds[e.uid]=e),this._startTicker()}_addDirtyPosition(e){this._isDirty=!0,void 0===this._dirtyPositions[e.uid]&&(this._dirtyPositions[e.uid]=e),this._startTicker()}_addAnimation(e){this._isDirtyAnimation=!0,-1===this._animations.indexOf(e)&&this._animations.push(e),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(e){return this._tickers.push(e),this._startTicker(),new h["c"](()=>{c["r"](this._tickers,e)})}markDirtyGlobal(e){e||(e=this.container),e.walkChildren(e=>{e instanceof a["a"]&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),c["c"](this._disposers,e=>{e.dispose()}),this._inner&&u["G"](this._inner),c["q"](L["a"].rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){!0!==this._a11yD&&(this._readerAlertElement.innerHTML=u["N"](e))}setThemes(e){this._rootContainer.set("themes",e);const t=this.tooltipContainer;t&&t._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const e=this._tooltipContainerSettings,t=this._rootContainer.children.push(a["a"].new(this,{position:"absolute",isMeasured:!1,width:C["c"],height:C["c"],layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;const i=y["a"].new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(e){1!=this._a11yD&&(e.get("focusable")?c["p"](this._tabindexes,e):c["q"](this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){1!=this._a11yD&&(c["q"](this._tabindexes,e),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort((e,t)=>{const i=e.get("tabindexOrder",0),s=t.get("tabindexOrder",0);return i==s?0:i>s?1:-1});const e=[];c["c"](this._tabindexes,(t,i)=>{t.getPrivate("focusElement")?this._moveFocusElement(i,t):this._makeFocusElement(i,t);const s=t.get("focusableGroup");s&&!1!==t.getPrivate("focusable")&&(-1!==e.indexOf(s)?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(s))})}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(1==this._a11yD)return;if(t||(t=e.getPrivate("focusElement").dom),!t)return;const i=e.get("role");i?t.setAttribute("role",i):t.removeAttribute("role");const s=e.get("ariaLabel");if(s){const i=Object(R["a"])(e,s);t.setAttribute("aria-label",i)}else t.removeAttribute("aria-label");const a=e.get("ariaLive");a?t.setAttribute("aria-live",a):t.removeAttribute("aria-live");const r=e.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?t.setAttribute("aria-checked",r?"true":"false"):t.removeAttribute("aria-checked");const n=e.get("ariaCurrent");null!=n?t.setAttribute("aria-current",n):t.removeAttribute("aria-current");const o=e.get("ariaSelected");null!=o&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?t.setAttribute("aria-selected",o?"true":"false"):t.removeAttribute("aria-selected"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");const l=e.get("ariaOrientation");l?t.setAttribute("aria-orientation",l):t.removeAttribute("aria-orientation");const h=e.get("ariaValueNow");h?t.setAttribute("aria-valuenow",h):t.removeAttribute("aria-valuenow");const c=e.get("ariaValueMin");c?t.setAttribute("aria-valuemin",c):t.removeAttribute("aria-valuemin");const u=e.get("ariaValueMax");u?t.setAttribute("aria-valuemax",u):t.removeAttribute("aria-valuemax");const d=e.get("ariaValueText");d?t.setAttribute("aria-valuetext",d):t.removeAttribute("aria-valuetext");const g=e.get("ariaControls");g?t.setAttribute("aria-controls",g):t.removeAttribute("aria-controls"),e.get("visible")&&0!==e.get("opacity")&&"tooltip"!=e.get("role")&&!e.isHidden()&&!1!==e.getPrivate("focusable")?("-1"!=t.getAttribute("tabindex")&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=t.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u["K"](i,!1);const s=[];t.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(t),s.push(u["a"](i,"focus",e=>{this._handleFocus(e)})),s.push(u["a"](i,"blur",e=>{this._handleBlur(e)})),this._moveFocusElement(e,t)}_removeFocusElement(e){if(1==this._a11yD)return;c["q"](this._tabindexes,e);const t=e.getPrivate("focusElement");if(t){const e=this._focusElementContainer;e.removeChild(t.dom),c["c"](t.disposers,e=>{e.dispose()})}}_hideFocusElement(e){if(1==this._a11yD)return;const t=e.getPrivate("focusElement");t.dom.style.display="none"}_moveFocusElement(e,t){if(1==this._a11yD)return;const i=this._focusElementContainer,s=t.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[e])return;const a=this._focusElementContainer.children[e+1];a?i.insertBefore(s,a):i.append(s)}_positionFocusElement(e){if(1==this._a11yD||void 0==e)return;const t=e.globalBounds();let i=t.right==t.left?e.width():t.right-t.left,s=t.top==t.bottom?e.height():t.bottom-t.top;const a=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=t.left-a,n=t.top-a;i<0&&(r+=i,i=Math.abs(i)),s<0&&(n+=s,s=Math.abs(s));const o=e.getPrivate("focusElement").dom;o.style.top=n+"px",o.style.left=r+"px",o.style.width=i+2*a+"px",o.style.height=s+2*a+"px"}_getSpriteByFocusElement(e){let t;return c["d"](this._tabindexes,(i,s)=>i.getPrivate("focusElement").dom!==e||(t=i,!1)),t}_handleFocus(e){if(1==this._a11yD)return;const t=this._getSpriteByFocusElement(e.target);t&&(t.isVisibleDeep()?(this._positionFocusElement(t),this._focusedSprite=t,t.events.isEnabled("focus")&&t.events.dispatch("focus",{type:"focus",originalEvent:e,target:t})):this._focusNext(e.target,this._isShift?-1:1))}_focusNext(e,t){if(1==this._a11yD)return;const i=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let s=i.indexOf(e)+t;s<0?s=i.length-1:s>=i.length&&(s=0),i[s].focus()}_handleBlur(e){if(1==this._a11yD)return;const t=this._focusedSprite;t&&!t.isDisposed()&&t.events.isEnabled("blur")&&t.events.dispatch("blur",{type:"blur",originalEvent:e,target:t}),this._focusedSprite=void 0}updateTooltip(e){if(1==this._a11yD)return;const t=u["N"](e._getText());let i=e.getPrivate("tooltipElement");"tooltip"==e.get("role")&&""!=t?(i||(i=this._makeTooltipElement(e)),i.innerHTML!=t&&(i.innerHTML=t),i.setAttribute("aria-hidden",e.isVisibleDeep()?"false":"true")):i&&(i.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){const t=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u["K"](i,!1),this._decorateFocusElement(e,i),t.append(i),e.setPrivate("tooltipElement",i),i}_removeTooltipElement(e){if(1==this._a11yD)return;const t=e.getPrivate("tooltipElement");if(t){const e=t.parentElement;e&&e.removeChild(t)}}_invalidateAccessibility(e){if(1==this._a11yD)return;this._focusElementDirty=!0;const t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:(e.x-t.left)*s,y:(e.y-t.top)*a}}rootPointToDocument(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:e.x/s+t.left,y:e.y/a+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){const e=window.getComputedStyle(this.dom);let t="";k["b"](e,(e,i)=>{E["g"](e)&&e.match(/^font/)&&(t+=i)});const i=t!=this._fontHash;return i&&(this._fontHash=t),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof a["a"]?e.children.each(e=>{this._invalidateLabelBounds(e)}):e instanceof r["a"]&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<L["a"].licenses.length;e++)if(L["a"].licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){const t=this._htmlElementContainer,i=document.createElement("div");return e.setPrivate("htmlElement",i),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u["K"](i,e.get("interactive",!1)),e.events.isEnabled("click")&&(u["K"](i,!0),this._disposers.push(u["a"](i,"click",t=>{const i=this._renderer.getEvent(t);e.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:e})}))),this._positionHTMLElement(e),t.append(i),c["p"](this._htmlEnabledContainers,e),i}_positionHTMLElements(){c["c"](this._htmlEnabledContainers,e=>{this._positionHTMLElement(e)})}_positionHTMLElement(e){const t=e.getPrivate("htmlElement");if(t){const i=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];c["c"](i,i=>{const s=e.get(i);t.style[i]=s?s+"px":""});const s=e.compositeScale()||1,a=e.compositeRotation()||0;t.style.transform="",t.style.transformOrigin="";const r=e.compositeOpacity();setTimeout(()=>{t.style.opacity=r+""},10);const n=e.isVisibleDeep();n&&(t.style.display="block");let o={x:e.x(),y:e.y()};e.parent&&(o=e.parent.toGlobal(o)),t.style.top=o.y+"px",t.style.left=o.x+"px";const l=e.get("width"),h=e.get("height");let u=0,d=0;if(l&&(u=e.width()),h&&(d=e.height()),!l||!h){t.style.position="fixed",t.style.width="",t.style.height="";const i=t.getBoundingClientRect();t.style.position="absolute",l||(u=i.width),h||(d=i.height);let a=u/s,r=d/s,n=e.get("centerX",0),o=e.get("centerY",0),c=0,g=0,p=0,b=0;n instanceof C["a"]?(c=-n.value*a,g=(1-n.value)*a):(c=-n,g=a-n),o instanceof C["a"]?(p=-o.value*r,b=(1-o.value)*r):(p=-o,b=r-o),e._localBounds={left:c,right:g,top:p,bottom:b};let m=e._adjustedLocalBounds,f=e._display.getAdjustedBounds(e._localBounds);e._adjustedLocalBounds=f,m.left===f.left&&m.right===f.right&&m.top===f.top&&m.bottom===f.bottom||e.markDirtyBounds()}u>0&&(t.style.minWidth=u+"px"),d>0&&(t.style.minHeight=d+"px"),n&&0!=r||(t.style.display="none");const g=e.get("centerX",0),p=Object(C["b"])(g)?g.percent+"%":g+"px",b=e.get("centerY",0),m=Object(C["b"])(b)?b.percent+"%":b+"px";(g||b)&&(t.style.transform="translate(-"+p+", -"+m+")"+t.style.transform),1!=s&&(t.style.transform+="scale("+s+")"),0!=a&&(t.style.transform+=" rotate("+a+"deg)"),""!=t.style.transform&&(t.style.transformOrigin=p+" "+m)}}_setHTMLContent(e,t){let i=e.getPrivate("htmlElement");i||(i=this._makeHTMLElement(e)),i.innerHTML!=t&&(i.innerHTML=t)}_removeHTMLContent(e){let t=e.getPrivate("htmlElement");t&&(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement")),c["q"](this._htmlEnabledContainers,e)}}},"15f8":function(e,t,i){"use strict";i.d(t,"b",(function(){return h})),i.d(t,"a",(function(){return c}));var s=i("483c"),a=i("7d61"),r=i("9d71"),n=i("749f"),o=i("1eae"),l=i("0109");class h extends a["b"]{constructor(e,t,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class c extends r["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new n["a"]}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)o["c"](t,e=>{e.dispose()}),t.length=0,this._onDataClear();else if("push"===e.type){const i=new h(this,e.newValue,this._makeDataItem(e.newValue));t.push(i),this.processDataItem(i)}else if("setIndex"===e.type){const i=t[e.index],s=this._makeDataItem(e.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),l["d"](s).forEach(e=>{i.animate({key:e,to:s[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=e.newValue}else if("insertIndex"===e.type){const i=new h(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,i),this.processDataItem(i)}else if("removeIndex"===e.type){const i=t[e.index];i.dispose(),t.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const i=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,i)}}this._afterDataChange()}))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},o["c"](this.valueFields,e=>{const t=this.get(e+"Field");t&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},o["c"](this.fields,e=>{const t=this.get(e+"Field");t&&(this._fields.push(e),this._fieldsF[e]=e+"Field")}))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&o["c"](this._valueFields,i=>{const s=this.get(this._valueFieldsF[i].fieldKey);t[i]=e[s],t[this._valueFieldsF[i].workingKey]=t[i]}),this._fields&&o["c"](this._fields,i=>{const s=this.get(this._fieldsF[i]);t[i]=e[s]}),t}makeDataItem(e,t){let i=new h(this,t,e);return this.processDataItem(i),i}pushDataItem(e,t){const i=this.makeDataItem(e,t);return this._mainDataItems.push(i),i}disposeDataItem(e){}showDataItem(e,t){return Object(s["a"])(this,void 0,void 0,(function*(){e.set("visible",!0)}))}hideDataItem(e,t){return Object(s["a"])(this,void 0,void 0,(function*(){e.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r["a"].classNames.concat([c.className])})},"1c9f":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("c95f"),a=i("2180"),r=i("1eae");class n{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){const t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let i=this._rules[e];i||(i=this._rules[e]=[]),t.sort(a["a"]);const{index:n,found:o}=r["j"](i,e=>{const i=a["a"](e.tags.length,t.length);return 0===i?a["b"](e.tags,t,a["a"]):i});if(o)return i[n].template;{const e=s["a"].new({});return i.splice(n,0,{tags:t,template:e}),e}}rule(e,t=[]){return this.ruleRaw(e,t)}}},"1eae":function(e,t,i){"use strict";i.d(t,"k",(function(){return s})),i.d(t,"a",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return l})),i.d(t,"q",(function(){return h})),i.d(t,"r",(function(){return c})),i.d(t,"o",(function(){return u})),i.d(t,"p",(function(){return d})),i.d(t,"b",(function(){return g})),i.d(t,"l",(function(){return p})),i.d(t,"s",(function(){return b})),i.d(t,"g",(function(){return m})),i.d(t,"f",(function(){return _})),i.d(t,"h",(function(){return v})),i.d(t,"j",(function(){return y})),i.d(t,"i",(function(){return x})),i.d(t,"m",(function(){return w}));i("e28a");function s(e,t){const i=e.length;for(let s=0;s<i;++s)if(e[s]===t)return s;return-1}function a(e,t){const i=e.length;for(let s=0;s<i;++s)if(t(e[s]))return!0;return!1}function r(e,t){const i=e.length,s=new Array(i);for(let a=0;a<i;++a)s[a]=t(e[a],a);return s}function n(e,t){const i=e.length;for(let s=0;s<i;++s)t(e[s],s)}function o(e,t){let i=e.length;while(i>0)--i,t(e[i],i)}function l(e,t){const i=e.length;for(let s=0;s<i;++s)if(!t(e[s],s))break}function h(e,t){let i=!1,s=0;for(;;){if(s=e.indexOf(t,s),-1===s)return i;i=!0,e.splice(s,1)}}function c(e,t){let i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function u(e,t,i){let a=s(e,t);-1!==a&&b(e,a),null==i?e.push(t):p(e,i,t)}function d(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){const t=e.length,i=new Array(t);for(let s=0;s<t;++s)i[s]=e[s];return i}function p(e,t,i){e.splice(t,0,i)}function b(e,t){e.splice(t,1)}function m(e,t){const i=e.length;for(let s=0;s<i;++s)if(t(e[s],s))return s;return-1}function f(e,t){let i=e.length;while(i>0)if(--i,t(e[i],i))return i;return-1}function _(e,t){const i=m(e,t);if(-1!==i)return e[i]}function v(e,t){const i=f(e,t);if(-1!==i)return e[i]}function y(e,t){let i=0,s=e.length,a=!1;while(i<s){const r=i+s>>1,n=t(e[r]);n<0?i=r+1:0===n?(a=!0,i=r+1):s=r}return{found:a,index:a?i-1:i}}function x(e,t){let i=0,s=e.length,a=!1;while(i<s){const r=i+s>>1,n=t(e[r]);n<0?i=r+1:0===n?(a=!0,s=r):s=r}return{found:a,index:i}}function w(e,t){let i=e.length;while(i>0)--i,t(e[i])||e.splice(i,1)}},2180:function(e,t,i){"use strict";function s(e,t){return e===t?0:e<t?-1:1}function a(e,t,i){const a=e.length,r=t.length,n=Math.min(a,r);for(let s=0;s<n;++s){const a=i(e[s],t[s]);if(0!==a)return a}return s(a,r)}function r(e,t){return e===t?0:e<t?-1:1}i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r}))},"2bee":function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));const s=Math.PI,a=2*s,r=1e-6,n=a-r;function o(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=arguments[t]+e[t]}function l(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: "+e);if(t>15)return o;const i=10**t;return function(e){this._+=e[0];for(let t=1,s=e.length;t<s;++t)this._+=Math.round(arguments[t]*i)/i+e[t]}}class h{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?o:l(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,i,s){this._append`Q${+e},${+t},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(e,t,i,s,a,r){this._append`C${+e},${+t},${+i},${+s},${this._x1=+a},${this._y1=+r}`}arcTo(e,t,i,a,n){if(e=+e,t=+t,i=+i,a=+a,n=+n,n<0)throw new Error("negative radius: "+n);let o=this._x1,l=this._y1,h=i-e,c=a-t,u=o-e,d=l-t,g=u*u+d*d;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(g>r)if(Math.abs(d*h-c*u)>r&&n){let p=i-o,b=a-l,m=h*h+c*c,f=p*p+b*b,_=Math.sqrt(m),v=Math.sqrt(g),y=n*Math.tan((s-Math.acos((m+g-f)/(2*_*v)))/2),x=y/v,w=y/_;Math.abs(x-1)>r&&this._append`L${e+x*u},${t+x*d}`,this._append`A${n},${n},0,0,${+(d*p>u*b)},${this._x1=e+w*h},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,i,o,l,h){if(e=+e,t=+t,i=+i,h=!!h,i<0)throw new Error("negative radius: "+i);let c=i*Math.cos(o),u=i*Math.sin(o),d=e+c,g=t+u,p=1^h,b=h?o-l:l-o;null===this._x1?this._append`M${d},${g}`:(Math.abs(this._x1-d)>r||Math.abs(this._y1-g)>r)&&this._append`L${d},${g}`,i&&(b<0&&(b=b%a+a),b>n?this._append`A${i},${i},0,1,${p},${e-c},${t-u}A${i},${i},0,1,${p},${this._x1=d},${this._y1=g}`:b>r&&this._append`A${i},${i},0,${+(b>=s)},${p},${this._x1=e+i*Math.cos(l)},${this._y1=t+i*Math.sin(l)}`)}rect(e,t,i,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function c(){return new h}function u(e){let t=3;return e.digits=function(i){if(!arguments.length)return t;if(null==i)t=null;else{const e=Math.floor(i);if(!(e>=0))throw new RangeError("invalid digits: "+i);t=e}return e},()=>new h(t)}c.prototype=h.prototype},"38a8":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("86d1"),a=i("e28a"),r=i("be4b");class n extends s["a"]{updateContainer(e){let t=e.get("paddingLeft",0),i=e.innerWidth(),n=0;Object(s["b"])(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof r["a"]){n+=t.value;let s=i*t.value,a=e.get("minWidth",e.getPrivate("minWidth",-1/0));a>s&&(i-=a,n-=t.value);let r=e.get("maxWidth",e.getPrivate("maxWidth",1/0));s>r&&(i-=r,n-=t.value)}else a["e"](t)||(t=e.width()),i-=t+e.get("marginLeft",0)+e.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),Object(s["b"])(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof r["a"]){let s=i*t.value/n-e.get("marginLeft",0)-e.get("marginRight",0),a=e.get("minWidth",e.getPrivate("minWidth",-1/0)),r=e.get("maxWidth",e.getPrivate("maxWidth",1/0));s=Math.min(Math.max(a,s),r),e.setPrivate("width",s)}else e._prevSettings.width instanceof r["a"]&&e.setPrivate("width",void 0)}});let o=t;Object(s["b"])(e,e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginLeft",0),s=e.get("marginRight",0),a=e.get("maxWidth"),r=t.left,n=t.right;a&&n-r>a&&(n=r+a);let l=o+i-r;e.setPrivate("x",l),o=l+n+s}else e.setPrivate("x",void 0)})}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([n.className])})},"3ab4":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("e28a"),a=i("48ef"),r=i("842e"),n=i("5f47");class o extends n["a"]{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e,n=t,o=i/Math.abs(e),l=n/Math.abs(t);if(s["e"](i)&&s["e"](n)){let e=Math.min(i,n)/2,t=r["F"](this.get("cornerRadiusTL",8),e),s=r["F"](this.get("cornerRadiusTR",8),e),h=r["F"](this.get("cornerRadiusBR",8),e),c=r["F"](this.get("cornerRadiusBL",8),e),u=Math.min(Math.abs(i/2),Math.abs(n/2));t=a["f"](t,0,u),s=a["f"](s,0,u),h=a["f"](h,0,u),c=a["f"](c,0,u);const d=this._display;d.moveTo(t*o,0),d.lineTo(i-s*o,0),s>0&&d.arcTo(i,0,i,s*l,s),d.lineTo(i,n-h*l),h>0&&d.arcTo(i,n,i-h*o,n,h),d.lineTo(c*o,n),c>0&&d.arcTo(0,n,0,n-c*l,c),d.lineTo(0,t*l),t>0&&d.arcTo(0,0,t*o,0,t),d.closePath()}}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n["a"].classNames.concat([o.className])})},"42b2":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("7d61");class a extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("repetition",""),t=this.get("width",100),i=this.get("height",100),s=this.get("fill"),a=this.get("fillOpacity",1),r=this._backgroundDisplay,n=this._display;n.clear(),r.clear(),s&&a>0&&(r.beginFill(s,a),r.drawRect(0,0,t,i),r.endFill()),n.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(n,r,e,t,i)}this._clear=!1}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},"483c":function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));function s(e,t,i,s){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{l(s.next(e))}catch(t){r(t)}}function o(e){try{l(s["throw"](e))}catch(t){r(t)}}function l(e){e.done?i(e.value):a(e.value).then(n,o)}l((s=s.apply(e,t||[])).next())}))}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},"48ef":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"m",(function(){return l})),i.d(t,"d",(function(){return h})),i.d(t,"h",(function(){return c})),i.d(t,"i",(function(){return u})),i.d(t,"f",(function(){return d})),i.d(t,"n",(function(){return g})),i.d(t,"e",(function(){return p})),i.d(t,"l",(function(){return b})),i.d(t,"g",(function(){return m})),i.d(t,"k",(function(){return _})),i.d(t,"j",(function(){return v}));var s=i("e28a");const a=Math.PI,r=a/2,n=a/180,o=180/a;function l(e,t,i){if(!Object(s["e"])(t)||t<=0){let t=Math.round(e);return i&&t-e==.5&&t--,t}{let i=Math.pow(10,t);return Math.round(e*i)/i}}function h(e,t){if(!Object(s["e"])(t)||t<=0)return Math.ceil(e);{let i=Math.pow(10,t);return Math.ceil(e*i)/i}}function c(e,t,i,s,a){return{x:(-e.x+t.x/s+i.x)*s,y:(-e.y+t.y/a+i.y)*a}}function u(e,t,i,s,a){return{x:(e.x+t.x/s-i.x)*s,y:(e.y+t.y/a-i.y)*a}}function d(e,t,i){return Math.min(Math.max(e,t),i)}function g(e){return Math.sin(n*e)}function p(e){return Math.cos(n*e)}function b(e){return e%=360,e<0&&(e+=360),e}function m(e,t,i,s,a){let r=Number.MAX_VALUE,n=Number.MAX_VALUE,o=-Number.MAX_VALUE,l=-Number.MAX_VALUE,h=[];h.push(f(a,i)),h.push(f(a,s));let c=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let d=c;d<=u;d+=90)d>=i&&d<=s&&h.push(f(a,d));for(let d=0;d<h.length;d++){let e=h[d];e.x<r&&(r=e.x),e.y<n&&(n=e.y),e.x>o&&(o=e.x),e.y>l&&(l=e.y)}return{left:e+r,top:t+n,right:e+o,bottom:t+l}}function f(e,t){return{x:e*p(t),y:e*g(t)}}function _(e){const t=e.length;if(t>0){let i=e[0],s=i.left,a=i.top,r=i.right,n=i.bottom;if(t>1)for(let o=1;o<t;o++)i=e[o],s=Math.min(i.left,s),r=Math.max(i.right,r),a=Math.min(i.top,a),n=Math.max(i.bottom,n);return{left:s,right:r,top:a,bottom:n}}return{left:0,right:0,top:0,bottom:0}}function v(e,t){return e.x>=t.left&&e.y>=t.top&&e.x<=t.right&&e.y<=t.bottom}},"4c2d":function(e,t,i){"use strict";i.r(t),i.d(t,"linear",(function(){return a})),i.d(t,"quad",(function(){return r})),i.d(t,"cubic",(function(){return n})),i.d(t,"pow",(function(){return o})),i.d(t,"exp",(function(){return l})),i.d(t,"sine",(function(){return h})),i.d(t,"circle",(function(){return c})),i.d(t,"yoyo",(function(){return u})),i.d(t,"out",(function(){return d})),i.d(t,"inOut",(function(){return g})),i.d(t,"bounce",(function(){return D})),i.d(t,"elastic",(function(){return S}));var s=i("48ef");function a(e){return e}function r(e){return e*e}function n(e){return e*e*e}function o(e,t){return Math.pow(e,t)}function l(e){return Math.pow(2,10*e-10)}function h(e){return 1-Math.cos(e*s["b"])}function c(e){return 1-Math.sqrt(1-e*e)}function u(e){return function(t){return e(t<.5?2*t:2*(1-t))}}function d(e){return function(t){return 1-e(1-t)}}function g(e){return function(t){return t<=.5?e(2*t)/2:1-e(2*(1-t))/2}}let p=4/11,b=6/11,m=8/11,f=3/4,_=9/11,v=10/11,y=15/16,x=21/22,w=63/64,P=1/p/p;function D(e){return 1-k(1-e)}function k(e){return e=e,e<p?P*e*e:e<m?P*(e-=b)*e+f:e<v?P*(e-=_)*e+y:P*(e-=x)*e+w}let T=2*Math.PI,O=1,M=.3/T,A=Math.asin(1/O)*M;function S(e){let t=e;return O*Math.pow(2,10*--t)*Math.sin((A-t)/M)}},"50be":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("7d61"),a=i("08b0");class r extends s["a"]{_afterNew(){super._afterNewApplyThemes(),this._dirty["colors"]=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",a["a"].fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);const i=this.getPrivate("numColors"),s=0,r=this.get("passOptions"),n=this.get("reuse");for(let o=s;o<i;o++)if(n)t.push(t[o]);else{const i=t[o].toHSL();let s=i.h+(r.hue||0)*e;while(s>1)s-=1;let n=i.s+(r.saturation||0)*e;n>1&&(n=1),n<0&&(n=0);let l=i.l+(r.lightness||0)*e;while(l>1)l-=1;t.push(a["a"].fromHSL(s,n,l))}}getIndex(e){const t=this.get("colors",[]),i=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):null!=i?a["a"].saturate(t[e],i):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([r.className])})},"5c34":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("3ab4"),a=i("9d71"),r=i("842e");class n extends a["a"]{_afterNew(){this._settings.themeTags=r["C"](this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",s["a"].new(this._root,{themeTags:r["C"](this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){const e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([n.className])})},"5cf0":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("7d61"),a=i("f1d5"),r=i("ab1a"),n=i("e28a"),o=i("842e");class l extends s["a"]{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i=!1){let s;"undefined"!==typeof t&&""!==t||(t=this.get("dateFormat","yyyy-MM-dd"));let a=e;if(n["f"](t))try{const e=this.get("intlLocales");return e?new Intl.DateTimeFormat(e,t).format(a):new Intl.DateTimeFormat(void 0,t).format(a)}catch(l){return"Invalid"}let r=this.parseFormat(t);const o=this._root.timezone;return!o||this._root.utc||i||(a=o.convertLocal(a)),n["e"](a.getTime())?(s=this.applyFormat(a,r,i),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(e,t,i=!1){let s,a,l,h,c,u,d,g,p=t.template,b=e.getTime();this._root.utc&&!i?(s=e.getUTCFullYear(),a=e.getUTCMonth(),l=e.getUTCDay(),h=e.getUTCDate(),c=e.getUTCHours(),u=e.getUTCMinutes(),d=e.getUTCSeconds(),g=e.getUTCMilliseconds()):(s=e.getFullYear(),a=e.getMonth(),l=e.getDay(),h=e.getDate(),c=e.getHours(),u=e.getMinutes(),d=e.getSeconds(),g=e.getMilliseconds());for(let m=0,f=t.parts.length;m<f;m++){let i="";switch(t.parts[m]){case"G":i=this._t(s<0?"_era_bc":"_era_ad");break;case"yyyy":i=Math.abs(s).toString(),s<0&&(i+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":i=Math.abs(s).toString().substr(-t.parts[m].length),s<0&&(i+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let n=o["w"](e,this._root.utc);i="YYYY"==t.parts[m]?Math.abs(n).toString():Math.abs(n).toString().substr(-t.parts[m].length),n<0&&(i+=this._t("_era_bc"));break;case"u":break;case"q":i=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":i=this._t(this._getMonth(a)).substr(0,1);break;case"MMMM":i=this._t(this._getMonth(a));break;case"MMM":i=this._t(this._getShortMonth(a));break;case"MM":i=o["E"](a+1,2,"0");break;case"M":i=(a+1).toString();break;case"ww":i=o["E"](o["v"](e,this._root.utc),2,"0");break;case"w":i=o["v"](e,this._root.utc).toString();break;case"W":i=o["o"](e,this._root.utc).toString();break;case"dd":i=o["E"](h,2,"0");break;case"d":i=h.toString();break;case"DD":case"DDD":i=o["E"](o["x"](e,this._root.utc).toString(),t.parts[m].length,"0");break;case"D":i=o["x"](e,this._root.utc).toString();break;case"F":break;case"g":break;case"t":i=this._root.language.translateFunc("_dateOrd").call(this,h);break;case"E":i=(l||7).toString();break;case"EE":i=o["E"]((l||7).toString(),2,"0");break;case"EEE":case"eee":i=this._t(this._getShortWeekday(l));break;case"EEEE":case"eeee":i=this._t(this._getWeekday(l));break;case"EEEEE":case"eeeee":i=this._t(this._getShortWeekday(l)).substr(0,1);break;case"e":case"ee":i=(l-(this._root.locale.firstDayOfWeek||1)+1).toString(),"ee"==t.parts[m]&&(i=o["E"](i,2,"0"));break;case"a":i=c>=12?this._t("PM"):this._t("AM");break;case"aa":i=c>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":i=c>=12?this._t("P"):this._t("A");break;case"h":i=o["j"](c).toString();break;case"hh":i=o["E"](o["j"](c),2,"0");break;case"H":i=c.toString();break;case"HH":i=o["E"](c,2,"0");break;case"K":i=o["j"](c,0).toString();break;case"KK":i=o["E"](o["j"](c,0),2,"0");break;case"k":i=(c+1).toString();break;case"kk":i=o["E"](c+1,2,"0");break;case"m":i=u.toString();break;case"mm":i=o["E"](u,2,"0");break;case"s":i=d.toString();break;case"ss":i=o["E"](d,2,"0");break;case"S":case"SS":case"SSS":i=Math.round(g/1e3*Math.pow(10,t.parts[m].length)).toString();break;case"x":i=b.toString();break;case"n":case"nn":case"nnn":i=o["E"](g,t.parts[m].length,"0");break;case"z":i=o["t"](e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":i=o["t"](e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":i=o["t"](e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":i=o["t"](e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let p=this._root.utc?"UTC":this._root.timezone;p instanceof r["a"]&&(p=p.name);const f=p?o["u"](p):e.getTimezoneOffset();let _=Math.abs(f)/60,v=Math.floor(_),y=60*_-60*v;this._root.utc&&(v=0,y=0),"Z"==t.parts[m]?(i="GMT",i+=f>0?"-":"+",i+=o["E"](v,2)+":"+o["E"](y,2)):(i=f>0?"-":"+",i+=o["E"](v,2)+o["E"](y,2));break;case"i":i=e.toISOString();break;case"I":i=e.toUTCString();break}p=p.replace(n["a"],i)}return p}parseFormat(e){let t={template:"",parts:[]},i=a["a"].chunk(e,!0);for(let s=0;s<i.length;s++){let e=i[s];if("value"===e.type){if(e.text.match(/^date$/i)){let t=this.get("dateFormat","yyyy-MM-dd");n["g"](t)||(t="yyyy-MM-dd"),e.text=t}let i=e.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(i)for(let s=0;s<i.length;s++)t.parts.push(i[s]),e.text=e.text.replace(i[s],n["a"])}t.template+=e.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t){if(e instanceof Date)return e;if(n["e"](e))return new Date(e);if("x"==t)return new Date(parseInt(e));let i;n["g"](e)||(e=e.toString());let s="";t=o["f"](t),t=t.substr(0,e.length);let a=this.parseFormat(t),r={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this._root.utc},h=0,c=0;for(let n=0;n<a.parts.length;n++){switch(c=n+h+1,a.parts[n]){case"yyyy":case"YYYY":s+="([0-9]{4})",r.year=c;break;case"yyy":case"YYY":s+="([0-9]{3})",r.year3=c;break;case"yy":case"YY":s+="([0-9]{2})",r.year2=c;break;case"y":case"Y":s+="([0-9]{1})",r.year1=c;break;case"MMMM":s+="("+this.getStringList(this._months()).join("|")+")",r.monthLong=c;break;case"MMM":s+="("+this.getStringList(this._shortMonths()).join("|")+")",r.monthShort=c;break;case"MM":case"M":s+="([0-9]{2}|[0-9]{1})",r.month=c;break;case"ww":case"w":s+="([0-9]{2}|[0-9]{1})",r.week=c;break;case"dd":case"d":s+="([0-9]{2}|[0-9]{1})",r.day=c;break;case"DDD":case"DD":case"D":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",r.yearDay=c;break;case"dddd":s+="("+this.getStringList(this._weekdays()).join("|")+")",r.weekdayLong=c;break;case"ddd":s+="("+this.getStringList(this._shortWeekdays()).join("|")+")",r.weekdayShort=c;break;case"aaa":case"aa":case"a":s+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",r.am=c;break;case"hh":case"h":s+="([0-9]{2}|[0-9]{1})",r.hour12Base1=c;break;case"HH":case"H":s+="([0-9]{2}|[0-9]{1})",r.hourBase0=c;break;case"KK":case"K":s+="([0-9]{2}|[0-9]{1})",r.hour12Base0=c;break;case"kk":case"k":s+="([0-9]{2}|[0-9]{1})",r.hourBase1=c;break;case"mm":case"m":s+="([0-9]{2}|[0-9]{1})",r.minute=c;break;case"ss":case"s":s+="([0-9]{2}|[0-9]{1})",r.second=c;break;case"SSS":case"SS":case"S":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",r.millisecond=c,r.millisecondDigits=a.parts[n].length;break;case"nnn":case"nn":case"n":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",r.millisecond=c;break;case"x":s+="([0-9]{1,})",r.timestamp=c;break;case"Z":s+="GMT([-+]+[0-9]{2}:[0-9]{2})",r.zone=c;break;case"ZZ":s+="([\\-+]+[0-9]{2}[0-9]{2})",r.zone=c;break;case"i":s+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",r.iso=c,h+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":h--;break}s+="[^0-9]*"}let u=new RegExp(s),d=e.match(u);if(d){if(r.year>-1&&(l.year=parseInt(d[r.year])),r.year3>-1){let e=parseInt(d[r.year3]);e+=1e3,l.year=e}if(r.year2>-1){let e=parseInt(d[r.year2]);e+=e>50?1e3:2e3,l.year=e}if(r.year1>-1){let e=parseInt(d[r.year1]);e=10*Math.floor((new Date).getFullYear()/10)+e,l.year=e}if(r.monthLong>-1&&(l.month=this.resolveMonth(d[r.monthLong])),r.monthShort>-1&&(l.month=this.resolveShortMonth(d[r.monthShort])),r.month>-1&&(l.month=parseInt(d[r.month])-1),r.week>-1&&-1===r.day&&(l.month=0,l.day=o["k"](parseInt(d[r.week]),l.year,1,this._root.utc)),r.day>-1&&(l.day=parseInt(d[r.day])),r.yearDay>-1&&(l.month=0,l.day=parseInt(d[r.yearDay])),r.hourBase0>-1&&(l.hour=parseInt(d[r.hourBase0])),r.hourBase1>-1&&(l.hour=parseInt(d[r.hourBase1])-1),r.hour12Base0>-1){let e=parseInt(d[r.hour12Base0]);11==e&&(e=0),r.am>-1&&!this.isAm(d[r.am])&&(e+=12),l.hour=e}if(r.hour12Base1>-1){let e=parseInt(d[r.hour12Base1]);12==e&&(e=0),r.am>-1&&!this.isAm(d[r.am])&&(e+=12),l.hour=e}if(r.minute>-1&&(l.minute=parseInt(d[r.minute])),r.second>-1&&(l.second=parseInt(d[r.second])),r.millisecond>-1){let e=parseInt(d[r.millisecond]);2==r.millisecondDigits?e*=10:1==r.millisecondDigits&&(e*=100),l.millisecond=e}if(r.timestamp>-1){l.timestamp=parseInt(d[r.timestamp]);const e=new Date(l.timestamp);l.year=e.getUTCFullYear(),l.month=e.getUTCMonth(),l.day=e.getUTCDate(),l.hour=e.getUTCHours(),l.minute=e.getUTCMinutes(),l.second=e.getUTCSeconds(),l.millisecond=e.getUTCMilliseconds()}r.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),d[r.zone])),r.iso>-1&&(l.year=n["j"](d[r.iso+0]),l.month=n["j"](d[r.iso+1])-1,l.day=n["j"](d[r.iso+2]),l.hour=n["j"](d[r.iso+3]),l.minute=n["j"](d[r.iso+4]),l.second=n["j"](d[r.iso+5]),l.millisecond=n["j"](d[r.iso+6]),"Z"==d[r.iso+7]||"z"==d[r.iso+7]?l.utc=!0:""!=d[r.iso+7]&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),d[r.iso+7]))),i=l.utc?new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else i=new Date(e);return i}resolveTimezoneOffset(e,t){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(i){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],a=i[2],r=i[3],n=60*parseInt(a)+parseInt(r);"+"==s&&(n*=-1);let o=(e||new Date).getTimezoneOffset(),l=n-o;return l}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1?t:(t=this._months().indexOf(e),t>-1||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0)}isAm(e){let t=this.getStringList(["AM","A.M.","A"]);return t.indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let i=0;i<e.length;i++)this._root.language?t.push(o["h"](this._t(e[i]))):t.push(o["h"](e[i]));return t}}},"5db7":function(e,t,i){"use strict";var s=i("23e7"),a=i("a2bf"),r=i("7b0b"),n=i("50c4"),o=i("1c0b"),l=i("65f0");s({target:"Array",proto:!0},{flatMap:function(e){var t,i=r(this),s=n(i.length);return o(e),t=l(i,0),t.length=a(t,i,i,s,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},"5f47":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("841d");class a extends s["a"]{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){this._display.drawRect(0,0,this.width(),this.height())}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},"5ff8":function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var s=i("483c"),a=i("7d61"),r=i("c95f"),n=i("be4b"),o=i("61b6"),l=i("9197"),h=i("69cf"),c=i("842e"),u=i("1eae"),d=i("e28a"),g=i("0109"),p=i("48ef");class b extends o["a"]{constructor(e){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[e];if(void 0===i){const s=this._sprite._display.on(e,e=>{t.call(this,e)});i=this._rendererDisposers[e]=new l["b"](()=>{delete this._rendererDisposers[e],s.dispose()})}return i.increment()}_on(e,t,i,s,a,r){const n=super._on(e,t,i,s,a,r),o=b.RENDERER_EVENTS[t];return void 0!==o&&(n.disposer=new l["e"]([n.disposer,this._onRenderer(t,o)])),n}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(e,t){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=i}}}Object.defineProperty(b,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(e){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",e))&&this.dispatch("click",this._makePointerEvent("click",e))},rightclick:function(e){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",e))},middleclick:function(e){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",e))},dblclick:function(e){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",e))},pointerover:function(e){const t=this._sprite;let i=!0;if(t.getPrivate("trustBounds")){t._getBounds();const s=t.globalBounds();if(t.isType("Graphics")){const e=t.get("strokeWidth",1)/2;e>=1&&(s.left-=e,s.right+=e,s.top-=e,s.bottom+=e)}p["j"](e.point,s)||(i=!1,t._root._renderer.removeHovering(t._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",e))},pointerout:function(e){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",e))},pointerdown:function(e){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",e))},pointerup:function(e){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",e))},globalpointerup:function(e){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",e))},globalpointermove:function(e){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",e))},wheel:function(e){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:e.event,point:e.point})}}});class m extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(e){this._markDirtyKey(e)}_markDirtyKey(e){super._markDirtyKey(e),"x"!=e&&"y"!=e&&"dx"!=e&&"dy"!=e||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),"x"!=e&&"y"!=e||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new b(this)}_processTemplateField(){let e;const t=this.get("templateField");if(t){const i=this.dataItem;if(i){const s=i.dataContext;s&&(e=s[t],e instanceof r["a"]||!e||(e=r["a"].new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){const t=this._dataItem;this._dataItem=e,this._processTemplateField();const i="dataitemchanged";e!=t&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;while(e){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof n["a"]||this.get("height")instanceof n["a"]?u["p"](e._percentageSizeChildren,this):u["r"](e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof n["a"]||this.get("y")instanceof n["a"]?u["p"](e._percentagePositionChildren,this):u["r"](e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const e=this._localBounds;if(e){const t=this.get("centerX");null!=t&&(this._display.pivot.x=e.left+c["F"](t,e.right-e.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=e.top+c["F"](i,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0);const t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",e=>{this.showTooltip(e.point)})),this._tooltipPointerDp=new l["e"]([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",e=>{this.showTooltip(e.point)})}),this.events.on("pointerout",()=>{const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}_changed(){super._changed();const e=this._display,t=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new l["e"]([t.on("pointerdown",e=>{this.dragStart(e)}),t.on("globalpointermove",e=>{this.dragMove(e)}),t.on("globalpointerup",e=>{this.dragStop(e)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const e=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(e||i)&&("click"==s?(this._tooltipDp=new l["e"]([t.on("click",()=>{this.setTimeout(()=>{const e=this.getTooltip();e&&!e.isHidden()&&e.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),c["a"](document,"click",e=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new l["e"]([t.on("pointerover",()=>{this.showTooltip()}),t.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let e=this.get("toggleKey");e&&"none"!=e?this._toggleDp=t.on("click",()=>{this._isDragging||this.set(e,!this.get(e))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?e.visible=!0:(e.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const e=this.parent;e&&(this.isDirty("width")&&this.get("width")instanceof n["a"]||this.isDirty("height")&&this.get("height")instanceof n["a"])&&(e.markDirty(),e._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const t=this.get("wheelable");t&&this.set("interactive",!0),e.wheelable=!!t}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const e=this.get("blur",0);0!=e&&(i+=" blur("+e+"px)")}if(this.isDirty("saturate")){const e=this.get("saturate",1);1!=e&&(i+=" saturate("+e+")")}if(this.isDirty("brightness")){const e=this.get("brightness",1);1!=e&&(i+=" brightness("+e+")")}if(this.isDirty("contrast")){const e=this.get("contrast",1);1!=e&&(i+=" contrast("+e+")")}if(this.isDirty("sepia")){const e=this.get("sepia",0);0!=e&&(i+=" sepia("+e+")")}if(this.isDirty("hue")){const e=this.get("hue",0);0!=e&&(i+=" hue-rotate("+e+"deg)")}if(this.isDirty("invert")){const e=this.get("invert",0);0!=e&&(i+=" invert("+e+")")}if(i&&(e.filter=i),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new l["e"]([t.on("focus",()=>{this.showTooltip()}),t.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(t.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){const e=this.events;this.get("interactive")&&!e.isDisposed()?this._hoverDp=new l["e"]([e.on("click",e=>{c["A"](e.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})},10))}),e.on("globalpointerup",e=>{c["A"](e.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})),this._isDown&&this._handleUp(e)}),e.on("pointerover",()=>{this._handleOver()}),e.on("pointerout",()=>{this._handleOut()}),e.on("pointerdown",e=>{this._handleDown(e)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const t=c["p"](e.originalEvent);delete this._downPoints[t],0==g["d"](this._downPoints).length&&(this._isDown=!1)}}_hasMoved(e){const t=c["p"](e.originalEvent),i=this._downPoints[t];if(i){const t=Math.abs(i.x-e.point.x),s=Math.abs(i.y-e.point.y);return t>5||s>5}return!1}_hasDown(){return g["d"](this._downPoints).length>0}_handleDown(e){const t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;const t=c["p"](e.originalEvent);this._downPoints[t]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let i=0,s=this.parent,a=1;while(null!=s)i+=s.get("rotation",0),s=s.parent,s&&(a*=s.get("scale",1));let r=(e.point.x-t.point.x)/a,n=(e.point.y-t.point.y)/a;const o=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let t=this._dragPoint;this.set("x",t.x+r*p["e"](i)+n*p["n"](i)),this.set("y",t.y+n*p["e"](i)-r*p["n"](i));const s="dragged";o.isEnabled(s)&&o.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(r,n)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;while(1){if(!e)return t;++t,e=e.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const e=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();const t=this.parent;t&&"absolute"!=this.get("position")&&(null==t.get("width")||null==t.get("height")||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.isFocus()&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const e=this._adjustedLocalBounds;let t;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds):(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){const e="boundschanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));d["e"](t)&&e.right-e.left<t&&(e.right=e.left+t),d["e"](i)&&e.bottom-e.top<i&&(e.bottom=e.top+i);let s=this.getPrivate("width"),a=this.getPrivate("height");d["e"](s)&&(s>0?e.right=e.left+s:e.left=e.right+s),d["e"](a)&&(a>0?e.bottom=e.top+a:e.top=e.bottom+a)}_removeParent(e){e&&(e.children.removeValue(this),u["r"](e._percentageSizeChildren,this),u["r"](e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._statesHandled=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(e){if(!this.isDisposed()){const t=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&t){const a=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);"fixed"!=a&&e||(this._display._setMatrix(),e=this.toGlobal(r._getTooltipPoint())),t.set("pointTo",e),t.set("tooltipTarget",r),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),i&&t.label.set("text",i),s&&t.label.set("html",s);const n=this.dataItem;if(n&&t.label._setDataItem(n),"always"==this.get("showTooltipOn")&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height()))return void this.hideTooltip();t.label.text.markDirtyText();const o=t.show();return this.setPrivateRaw("showingTooltip",!0),o}}}hideTooltip(){const e=this.getTooltip();if(e&&(e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&0==e.get("stateAnimationDuration",0)?400:void 0;const i=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const e=this._localBounds;if(e){let t=0,i=0;return this.get("isMeasured")?(t=e.left+c["F"](this.get("tooltipX",0),e.right-e.left),i=e.top+c["F"](this.get("tooltipY",0),e.bottom-e.top)):(t=c["F"](this.get("tooltipX",0),this.width()),i=c["F"](this.get("tooltipY",0),this.height())),{x:t,y:i}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){const e=this.parent;let t=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),a=this.getPrivate("x"),r=0,o=0;const l=this.get("position");s instanceof n["a"]&&(s=e?e.innerWidth()*s.value+e.get("paddingLeft",0):0),d["e"](s)?r=s+t:null!=a?r=a:e&&"relative"==l&&(r=e.get("paddingLeft",0)+t);let h=this.get("y"),c=this.getPrivate("y");h instanceof n["a"]&&(h=e?e.innerHeight()*h.value+e.get("paddingTop",0):0),d["e"](h)?o=h+i:null!=c?o=c:e&&"relative"==l&&(o=e.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=o){u.invalidateBounds(),u.x=r,u.y=o;const e="positionchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x");const i=this.parent;return i?e instanceof n["a"]?c["F"](e,i.innerWidth())+i.get("paddingLeft",0):d["e"](e)?e:null!=t?t:i.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(null!=e)return e;let t=this.get("y");const i=this.parent;return i?t instanceof n["a"]?c["F"](t,i.innerHeight())+i.get("paddingTop",0):d["e"](t)?t:null!=e?e:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const e=this._adjustedLocalBounds,t=this.x(),i=this.y();return{left:e.left+t,right:e.right+t,top:e.top+i,bottom:e.bottom+i}}globalBounds(){const e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),i=this.toGlobal({x:e.right,y:e.top}),s=this.toGlobal({x:e.right,y:e.bottom}),a=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,i.x,s.x,a.x),top:Math.min(t.y,i.y,s.y,a.y),right:Math.max(t.x,i.x,s.x,a.x),bottom:Math.max(t.y,i.y,s.y,a.y)}}_onShow(e){}_onHide(e){}appear(e,t){return Object(s["a"])(this,void 0,void 0,(function*(){return yield this.hide(0),t?new Promise((i,s)=>{this.setTimeout(()=>{i(this.show(e))},t)}):this.show(e)}))}show(e){return Object(s["a"])(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);const t=this.states.applyAnimate("default",e);yield Object(h["e"])(t),this._isShowing=!1}}))}hide(e){return Object(s["a"])(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);const i=this.states.applyAnimate("hidden",e);yield Object(h["e"])(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}compositeScale(){const e=this.get("scale",1);return this._parent?this._parent.compositeScale()*e:e}compositeRotation(){const e=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),a=0;if(d["e"](s))a=s;else if(null==e)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof n["a"]){const t=this.parent;a=t?t.innerWidth()*e.value:this._root.width()*e.value}else d["e"](e)&&(a=e);return d["e"](i)&&(a=Math.max(i,a)),d["e"](t)&&(a=Math.min(t,a)),a}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(d["e"](e))return e;{let e=this.get("width");if(d["e"](e))return e}const t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(d["e"](e))return e;{let e=this.get("height");if(d["e"](e))return e}const t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),a=0;if(d["e"](s))a=s;else if(null==e)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof n["a"]){const t=this.parent;a=t?t.innerHeight()*e.value:this._root.height()*e.value}else d["e"](e)&&(a=e);return d["e"](i)&&(a=Math.max(i,a)),d["e"](t)&&(a=Math.min(t,a)),a}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){this._parent&&this._walkParent(e)}_walkParent(e){this._parent&&this._parent._walkParent(e),e(this)}get parent(){return this._parent}_setParent(e,t=!1){const i=this._parent;e!==i&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(i),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){const e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return g["e"](this._downPoints,(e,t)=>e>t?1:e<t?-1:0)[0]}toFront(){const e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){const e=this.parent;e&&e.children.moveValue(this,0)}}Object.defineProperty(m,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"}),Object.defineProperty(m,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([m.className])})},6104:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var s=i("e28a"),a=i("842e"),r=i("5ff8"),n=i("f1d5");function o(e,t){if(null!=t){t=""+t,t=n["a"].escape(t);let i,s=t.match(/\{([^}]+)\}/g);if(s)for(i=0;i<s.length;i++){let a=s[i].replace(/\{([^}]+)\}/,"$1"),r=l(e,a,"");null==r&&(r=""),t=t.split(s[i]).join(r)}t=n["a"].unescape(t)}else t="";return t}function l(e,t,i){let r;const n=e.dataItem;let o,h=[],u=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;while(1){if(o=u.exec(t),null===o)break;if(o[3]){h.push({prop:o[3]});const t=e.getDateFormatter().get("dateFields",[]),i=e.getNumberFormatter().get("numericFields",[]),s=e.getDurationFormatter().get("durationFields",[]);-1!==t.indexOf(o[3])?h.push({method:"formatDate",params:[]}):-1!==i.indexOf(o[3])?h.push({method:"formatNumber",params:[]}):-1!==s.indexOf(o[3])&&h.push({method:"formatDuration",params:[]})}else{let e=[];if(""!=a["P"](o[2])){let t,i=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g;while(1){if(t=i.exec(o[2]),null===t)break;e.push(t[1]||t[2]||t[3])}}h.push({method:o[1],params:e})}}if(n){r=c(e,h,n._settings),(null==r||s["f"](r))&&(r=c(e,h,n));let a=n.dataContext;null==r&&a&&(r=c(e,h,a),null==r&&(r=c(e,[{prop:t}],a)),null==r&&a.dataContext&&(r=c(e,h,a.dataContext))),null==r&&n.component&&n.component.dataItem!==n&&(r=l(n.component,t,i))}return null==r&&(r=c(e,h,e)),null==r&&e.parent&&(r=l(e.parent,t,i)),r}function h(e,t){const i=e.getPrivate("customData");if(s["f"](i))return i[t]}function c(e,t,i,n){let o=i,l=!1;for(let a=0,c=t.length;a<c;a++){let c=t[a];if(c.prop){if(o instanceof r["a"]){let e=o.get(c.prop);null==e&&(e=o.getPrivate(c.prop)),null==e&&(e=h(o,c.prop)),null==e&&(e=o[c.prop]),o=e}else if(o.get){let e=o.get(c.prop);null==e&&(e=o[c.prop]),o=e}else o=o[c.prop];if(null==o)return}else switch(c.method){case"formatNumber":let t=s["j"](o);null!=t&&(o=e.getNumberFormatter().format(t,n||c.params[0]||void 0),l=!0);break;case"formatDate":let a=s["i"](o);if(!s["c"](a)||s["d"](a.getTime()))return;null!=a&&(o=e.getDateFormatter().format(a,n||c.params[0]||void 0),l=!0);break;case"formatDuration":let r=s["j"](o);null!=r&&(o=e.getDurationFormatter().format(r,n||c.params[0]||void 0,c.params[1]||void 0),l=!0);break;case"urlEncode":case"encodeURIComponent":o=encodeURIComponent(o);break;default:o[c.method]&&o[c.method].apply(i,c.params);break}}if(!l){let t=[{method:"",params:n}];if(null==n)s["e"](o)?(t[0].method="formatNumber",t[0].params=""):s["c"](o)&&(t[0].method="formatDate",t[0].params="");else{let e=a["n"](n);"number"===e?t[0].method="formatNumber":"date"===e?t[0].method="formatDate":"duration"===e&&(t[0].method="formatDuration")}t[0].method&&(o=c(e,t,o))}return o}},6126:function(e,t,i){"use strict";var s=i("1c9f");class a extends s["a"]{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}t["a"]=a},"61b6":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("9197"),a=i("1eae"),r=i("e28a");class n{constructor(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{a["c"](e,e=>{e.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(e){return a["a"](this._listeners,t=>(null===t.type||t.type===e)&&!t.killed)}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(0===this._iterating){const t=this._listeners.indexOf(e);if(-1===t)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(a=>{a.once!==e||a.type!==t||void 0!==i&&a.callback!==i||a.context!==s||a.disposer.dispose()})}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&void 0===this._disabled[e]}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(t=>{t.type===e&&t.disposer.dispose()})}has(e,t,i){const s=a["g"](this._listeners,s=>!0!==s.once&&s.type===e&&(void 0===t||s.callback===t)&&s.context===i);return-1!==s}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");const t=this._disabled[e];return r["e"](t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{a["c"](this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(a["c"](this._killed,e=>{this._removeListener(e)}),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener(i=>{i.killed||null!==i.type&&i.type!==e||i.dispatch(e,t)})}_on(e,t,i,a,r,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,i,a);const o={type:t,callback:i,context:a,shouldClone:r,dispatch:n,killed:!1,once:e,disposer:new s["c"](()=>{o.killed=!0,this._removeListener(o)})};return this._listeners.push(o),o}onAll(e,t,i=!0){return this._on(!1,null,e,t,i,(i,s)=>e.call(t,s)).disposer}on(e,t,i,s=!0){return this._on(!1,e,t,i,s,(e,s)=>t.call(i,s)).disposer}once(e,t,i,s=!0){const a=this._on(!0,e,t,i,s,(e,s)=>{a.disposer.dispose(),t.call(i,s)});return a.disposer}off(e,t,i){this._removeExistingListener(!1,e,t,i)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const t=[];return a["c"](e._listeners,e=>{!e.killed&&e.shouldClone&&(null===e.type?t.push(this.onAll(e.callback,e.context)):e.once?t.push(this.once(e.type,e.callback,e.context)):t.push(this.on(e.type,e.callback,e.context)))}),new s["e"](t)}}},"69cf":function(e,t,i){"use strict";i.d(t,"e",(function(){return l})),i.d(t,"d",(function(){return h})),i.d(t,"c",(function(){return u})),i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return s}));var s,a=i("483c"),r=i("be4b"),n=i("08b0"),o=(i("61b6"),i("0109"));function l(e){return Object(a["a"])(this,void 0,void 0,(function*(){if(void 0!==e){const t=[];o["b"](e,(e,i)=>{t.push(i.waitForStop())}),yield Promise.all(t)}}))}function h(e,t,i){return t+e*(i-t)}function c(e,t,i){return e>=1?i:t}function u(e,t,i){return new r["a"](h(e,t.percent,i.percent))}function d(e,t,i){return n["a"].interpolate(e,t,i)}function g(e,t){return"number"===typeof e&&"number"===typeof t?h:e instanceof r["a"]&&t instanceof r["a"]?u:e instanceof n["a"]&&t instanceof n["a"]?d:c}(function(e){e[e["Stopped"]=0]="Stopped",e[e["Playing"]=1]="Playing",e[e["Paused"]=2]="Paused"})(s||(s={}))},"71fe":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("7d61");class a extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const e=this.get("sprite");e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Bullet"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},"73d9":function(e,t,i){var s=i("44d2");s("flatMap")},"749f":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("bf67");class a extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,i){this.processor&&this.processor.processRow(i),super._onSetIndex(e,t,i)}}},"7bbc":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("42b2");class a extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();const e=this._image;if(e){const t=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let a=0,r=0;"pattern"==s?(a=t,r=i):(a=e.width,r=e.height,"image"==s&&(this.set("width",a),this.set("height",r)));const n=this.get("centered",!0);let o=0,l=0;n&&(o=t/2-a/2,l=i/2-r/2),this._display.image(e,a,r,o,l)}const t=this.get("canvas");t&&this._display.image(t,t.width,t.height,0,0)}_load(){const e=this.get("src");if(e){const t=new Image;t.src=e,t.decode().then(()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(e=>{})}}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},"7d4e":function(e,t,i){"use strict";i.d(t,"a",(function(){return S}));var s=i("841d"),a=i("e28a"),r=i("be4b"),n=i("d8ad");const o=Math.abs,l=Math.atan2,h=Math.cos,c=Math.max,u=Math.min,d=Math.sin,g=Math.sqrt,p=1e-12,b=Math.PI,m=b/2,f=2*b;function _(e){return e>1?0:e<-1?b:Math.acos(e)}function v(e){return e>=1?m:e<=-1?-m:Math.asin(e)}var y=i("2bee");function x(e){return e.innerRadius}function w(e){return e.outerRadius}function P(e){return e.startAngle}function D(e){return e.endAngle}function k(e){return e&&e.padAngle}function T(e,t,i,s,a,r,n,o){var l=i-e,h=s-t,c=n-a,u=o-r,d=u*l-c*h;if(!(d*d<p))return d=(c*(t-r)-u*(e-a))/d,[e+d*l,t+d*h]}function O(e,t,i,s,a,r,n){var o=e-i,l=t-s,h=(n?r:-r)/g(o*o+l*l),u=h*l,d=-h*o,p=e+u,b=t+d,m=i+u,f=s+d,_=(p+m)/2,v=(b+f)/2,y=m-p,x=f-b,w=y*y+x*x,P=a-r,D=p*f-m*b,k=(x<0?-1:1)*g(c(0,P*P*w-D*D)),T=(D*x-y*k)/w,O=(-D*y-x*k)/w,M=(D*x+y*k)/w,A=(-D*y+x*k)/w,S=T-_,C=O-v,j=M-_,R=A-v;return S*S+C*C>j*j+R*R&&(T=M,O=A),{cx:T,cy:O,x01:-u,y01:-d,x11:T*(a/P-1),y11:O*(a/P-1)}}var M=function(){var e=x,t=w,i=Object(n["a"])(0),s=null,a=P,r=D,c=k,M=null,A=Object(y["a"])(S);function S(){var n,y,x=+e.apply(this,arguments),w=+t.apply(this,arguments),P=a.apply(this,arguments)-m,D=r.apply(this,arguments)-m,k=o(D-P),S=D>P;if(M||(M=n=A()),w<x&&(y=w,w=x,x=y),w>p)if(k>f-p)M.moveTo(w*h(P),w*d(P)),M.arc(0,0,w,P,D,!S),x>p&&(M.moveTo(x*h(D),x*d(D)),M.arc(0,0,x,D,P,S));else{var C,j,R=P,L=D,I=P,E=D,B=k,F=k,N=c.apply(this,arguments)/2,Y=N>p&&(s?+s.apply(this,arguments):g(x*x+w*w)),V=u(o(w-x)/2,+i.apply(this,arguments)),H=V,z=V;if(Y>p){var X=v(Y/x*d(N)),U=v(Y/w*d(N));(B-=2*X)>p?(X*=S?1:-1,I+=X,E-=X):(B=0,I=E=(P+D)/2),(F-=2*U)>p?(U*=S?1:-1,R+=U,L-=U):(F=0,R=L=(P+D)/2)}var G=w*h(R),W=w*d(R),K=x*h(E),Z=x*d(E);if(V>p){var q,$=w*h(L),J=w*d(L),Q=x*h(I),ee=x*d(I);if(k<b)if(q=T(G,W,Q,ee,$,J,K,Z)){var te=G-q[0],ie=W-q[1],se=$-q[0],ae=J-q[1],re=1/d(_((te*se+ie*ae)/(g(te*te+ie*ie)*g(se*se+ae*ae)))/2),ne=g(q[0]*q[0]+q[1]*q[1]);H=u(V,(x-ne)/(re-1)),z=u(V,(w-ne)/(re+1))}else H=z=0}F>p?z>p?(C=O(Q,ee,G,W,w,z,S),j=O($,J,K,Z,w,z,S),M.moveTo(C.cx+C.x01,C.cy+C.y01),z<V?M.arc(C.cx,C.cy,z,l(C.y01,C.x01),l(j.y01,j.x01),!S):(M.arc(C.cx,C.cy,z,l(C.y01,C.x01),l(C.y11,C.x11),!S),M.arc(0,0,w,l(C.cy+C.y11,C.cx+C.x11),l(j.cy+j.y11,j.cx+j.x11),!S),M.arc(j.cx,j.cy,z,l(j.y11,j.x11),l(j.y01,j.x01),!S))):(M.moveTo(G,W),M.arc(0,0,w,R,L,!S)):M.moveTo(G,W),x>p&&B>p?H>p?(C=O(K,Z,$,J,x,-H,S),j=O(G,W,Q,ee,x,-H,S),M.lineTo(C.cx+C.x01,C.cy+C.y01),H<V?M.arc(C.cx,C.cy,H,l(C.y01,C.x01),l(j.y01,j.x01),!S):(M.arc(C.cx,C.cy,H,l(C.y01,C.x01),l(C.y11,C.x11),!S),M.arc(0,0,x,l(C.cy+C.y11,C.cx+C.x11),l(j.cy+j.y11,j.cx+j.x11),S),M.arc(j.cx,j.cy,H,l(j.y11,j.x11),l(j.y01,j.x01),!S))):M.arc(0,0,x,E,I,S):M.lineTo(K,Z)}else M.moveTo(0,0);if(M.closePath(),n)return M=null,n+""||null}return S.centroid=function(){var i=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,s=(+a.apply(this,arguments)+ +r.apply(this,arguments))/2-b/2;return[h(s)*i,d(s)*i]},S.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:Object(n["a"])(+t),S):e},S.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:Object(n["a"])(+e),S):t},S.cornerRadius=function(e){return arguments.length?(i="function"===typeof e?e:Object(n["a"])(+e),S):i},S.padRadius=function(e){return arguments.length?(s=null==e?null:"function"===typeof e?e:Object(n["a"])(+e),S):s},S.startAngle=function(e){return arguments.length?(a="function"===typeof e?e:Object(n["a"])(+e),S):a},S.endAngle=function(e){return arguments.length?(r="function"===typeof e?e:Object(n["a"])(+e),S):r},S.padAngle=function(e){return arguments.length?(c="function"===typeof e?e:Object(n["a"])(+e),S):c},S.context=function(e){return arguments.length?(M=null==e?null:e,S):M},S},A=i("48ef");class S extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:M()})}_getTooltipPoint(){let e=this.get("tooltipX"),t=this.get("tooltipY"),i=0,s=0;a["e"](e)&&(i=e),a["e"](t)&&(s=t);let n=this.get("radius",0),o=this.get("innerRadius",0),l=this.get("dRadius",0),h=this.get("dInnerRadius",0);return n+=l,o+=h,o<0&&(o=n+o),e instanceof r["a"]&&(i=this.ix*(o+(n-o)*e.value)),t instanceof r["a"]&&(s=this.iy*(o+(n-o)*t.value)),this.get("arc")>=360&&0==o&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("startAngle",0),t=this.get("arc",0);const i=this._generator;t<0&&(e+=t,t*=-1),t>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),a=this.get("innerRadius",0),r=this.get("dRadius",0),n=this.get("dInnerRadius",0);s+=r,a+=n,a<0&&(a=s+a),i({innerRadius:a,outerRadius:s,startAngle:(e+90)*A["c"],endAngle:(e+t+90)*A["c"]});let o=e+t/2;this.ix=A["e"](o),this.iy=A["n"](o);const l=this.get("shiftRadius",0);this.setRaw("dx",this.ix*l),this.setRaw("dy",this.iy*l),this.markDirtyPosition()}}}Object.defineProperty(S,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"}),Object.defineProperty(S,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([S.className])})},"7d61":function(e,t,i){"use strict";i.d(t,"b",(function(){return m})),i.d(t,"a",(function(){return f}));var s=i("9197"),a=i("61b6"),r=i("69cf"),n=i("0109"),o=i("4c2d");class l{constructor(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t,n["b"](t,e=>{this._userSettings[e]=!0})}get(e,t){const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){n["d"](e).forEach(t=>{this.set(t,e[t])})}_eachSetting(e){n["b"](this._settings,e)}apply(){const e={stateAnimationEasing:!0,stateAnimationDuration:!0},t=this._entity.states.lookup("default");this._eachSetting((i,s)=>{e[i]||(e[i]=!0,this!==t&&(i in t._settings||(t._settings[i]=this._entity.get(i))),this._entity.set(i,s))})}applyAnimate(e){null==e&&(e=this._settings.stateAnimationDuration),null==e&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;null==t&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",o["cubic"])));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},a={};return this._eachSetting((r,n)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const o=this._entity.animate({key:r,to:n,duration:e,easing:t});o&&(a[r]=o)}}),a}}class h{constructor(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new l(this._entity,t);return this._states[e]=i,i}}remove(e){delete this._states[e]}apply(e){const t=this._states[e];t&&t.apply(),this._entity._applyState(e)}applyAnimate(e,t){let i;const s=this._states[e];return s&&(i=s.applyAnimate(t)),this._entity._applyStateAnimated(e,t),i}}var c=i("b595"),u=i("1eae"),d=i("2180");class g{constructor(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),this._entity._markDirtyKey(e),new s["c"](()=>{u["r"](i,t)&&this._entity._markDirtyKey(e)})}remove(e){const t=this._callbacks[e];void 0!==t&&(delete this._callbacks[e],0!==t.length&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){const i=this._callbacks[e];if(void 0!==i)for(let s=0,a=i.length;s<a;++s)t=i[s](t,this._entity,e)}return t}}class p{constructor(e,t,i,s,n,o,l){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new a["a"]}),this._animation=e,this._from=t,this._to=i,this._duration=s,this._easing=n,this._loops=o,this._interpolate=Object(r["b"])(t,i),this._oldTime=l}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){this._stopped||this._playing||(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((e,t)=>{if(this._stopped)e();else{const t=()=>{i.dispose(),e()},i=this.events.on("stopped",t)}})}_checkEnded(){return!(this._loops>1)||(--this._loops,!1)}_run(e){null!==this._oldTime&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return this._interpolate(this._easing(e),this._from,this._to)}}let b=0;class m{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++b}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=e}_checkDirty(){n["d"](this._settings).forEach(e=>{this._userProperties[e]=!0,this._markDirtyKey(e)})}resetUserSettings(){this._userProperties={}}_runAnimation(e){let t=r["a"].Stopped;if(!this.isDisposed()){let i=!1,s=!1;n["b"](this._animatingSettings,(t,a)=>{if(a.stopped)this._stopAnimation(t);else if(a.playing){a._run(e);const s=a.percentage;s>=1?a._checkEnded()?this.set(t,a._value(1)):(i=!0,a._reset(e),this._set(t,a._value(1))):(i=!0,this._set(t,a._value(s)))}else s=!0}),n["b"](this._animatingPrivateSettings,(t,a)=>{if(a.stopped)this._stopAnimationPrivate(t);else if(a.playing){a._run(e);const s=a.percentage;s>=1?a._checkEnded()?this.setPrivate(t,a._value(1)):(i=!0,a._reset(e),this._setPrivate(t,a._value(1))):(i=!0,this._setPrivate(t,a._value(s)))}else s=!0}),i?t=r["a"].Playing:s&&(t=r["a"].Paused)}return t}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new s["c"](()=>{u["r"](i,t),0===i.length&&delete this._settingEvents[e]})}off(e,t){let i=this._settingEvents[e];void 0!==i&&void 0!==t?u["r"](i,t):delete this._settingEvents[e]}onPrivate(e,t){let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new s["c"](()=>{u["r"](i,t),0===i.length&&delete this._privateSettingEvents[e]})}offPrivate(e,t){let i=this._privateSettingEvents[e];void 0!==i&&void 0!==t?u["r"](i,t):delete this._privateSettingEvents[e]}getRaw(e,t){const i=this._settings[e];return void 0!==i?i:t}has(e){return e in this._settings}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){const i=this._settingEvents[e];void 0!==i&&u["c"](i,i=>{i(t,this,e)})}_sendPrivateKeyEvent(e,t){const i=this._privateSettingEvents[e];void 0!==i&&u["c"](i,i=>{i(t,this,e)})}_setRaw(e,t,i){this._prevSettings[e]=t,this._sendKeyEvent(e,i)}setRaw(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&this._setRaw(e,i,t)}_set(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&(this._setRaw(e,i,t),this._markDirtyKey(e))}_stopAnimation(e){const t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){u["c"](n["d"](this._settings),e=>{this.remove(e)})}getPrivate(e,t){const i=this._privateSettings[e];return void 0!==i?i:t}_setPrivateRaw(e,t,i){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,i)}setPrivateRaw(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&this._setPrivateRaw(e,i,t)}_setPrivate(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&(this._setPrivateRaw(e,i,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){const t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){n["b"](e,(e,t)=>{this.set(e,t)})}animate(e){const t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,r=void 0===e.from?this.get(t):e.from,n=void 0===e.easing?o["linear"]:e.easing;if(0===s)this.set(t,i);else{if(void 0!==r&&r!==i){this.set(t,r);const e=this._animatingSettings[t]=new p(this,r,i,s,n,a,this._animationTime());return this._startAnimation(),e}this.set(t,i)}const l=new p(this,r,i,s,n,a,null);return l.stop(),l}animatePrivate(e){const t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,r=void 0===e.from?this.getPrivate(t):e.from,n=void 0===e.easing?o["linear"]:e.easing;if(0===s)this.setPrivate(t,i);else{if(void 0!==r&&r!==i){this.setPrivate(t,r);const e=this._animatingPrivateSettings[t]=new p(this,r,i,s,n,a,this._animationTime());return this._startAnimation(),e}this.setPrivate(t,i)}const l=new p(this,r,i,s,n,a,null);return l.stop(),l}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class f extends m{constructor(e,t,i,s=[]){if(super(t),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new h(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new g(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=s,t.id&&this._registerId(t.id)}static new(e,t,i){const s=new this(e,t,!0);return s._template=i,s._afterNew(),s}static _new(e,t,i=[]){const s=new this(e,t,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let e=!1;const t=this._template;t&&(e=!0,t._setObjectTemplate(this)),u["c"](this._internalTemplates,t=>{e=!0,t._setObjectTemplate(this)}),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const e=this._template;e&&e._setObjectTemplate(this),u["c"](this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new a["a"]}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(e,t){const i=this.get(e);if(i)return i;{const i=t();return this.set(e,i),i}}_setDefault(e,t){this.has(e)||super.set(e,t)}_setRawDefault(e,t){this.has(e)||super.setRaw(e,t)}_clearDirty(){n["d"](this._dirty).forEach(e=>{this._dirty[e]=!1}),n["d"](this._dirtyPrivate).forEach(e=>{this._dirtyPrivate[e]=!1})}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return-1!==this.classNames.indexOf(e)}_pushPropertyDisposer(e,t){let i=this._disposerProperties[e];return void 0===i&&(i=this._disposerProperties[e]=[]),i.push(t),t}_disposeProperty(e){const t=this._disposerProperties[e];void 0!==t&&(u["c"](t,e=>{e.dispose()}),delete this._disposerProperties[e])}set template(e){const t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){const i=this.adapters.fold(e,this._settings[e]);return void 0!==i?i:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,i){if(!this._userProperties[t]){const s=this._findTemplateByKey(t);e===s&&super.set(t,i)}}_setTemplatePrivateProperty(e,t,i){if(!this._userPrivateProperties[t]){const s=this._findTemplateByPrivateKey(t);e===s&&super.setPrivate(t,i)}}_removeTemplateProperty(e){if(!this._userProperties[e]){const t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){const t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){const t=this.states.create(e,{}),i={};this._eachTemplate(s=>{const a=s.states.lookup(e);a&&a._apply(t,i)}),n["b"](t._settings,e=>{i[e]||t._userSettings[e]||t.remove(e)})}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),n["b"](e._settings,(e,i)=>{t.settings[e]||this._userProperties[e]||(t.settings[e]=!0,super.set(e,i))}),n["b"](e._privateSettings,(e,i)=>{t.privateSettings[e]||this._userPrivateProperties[e]||(t.privateSettings[e]=!0,super.setPrivate(e,i))}),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate(t=>(e(t),!1)),u["e"](this._internalTemplates,e),u["c"](this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();const t={settings:{},privateSettings:{},states:{}};this._eachTemplate(e=>{this._applyTemplate(e,t)}),e&&(n["b"](this._settings,e=>{this._userProperties[e]||t.settings[e]||super.remove(e)}),n["b"](this._privateSettings,e=>{this._userPrivateProperties[e]||t.privateSettings[e]||super.removePrivate(e)}))}_findTemplate(e){const t=this._findStaticTemplate(e);if(void 0===t){const t=u["h"](this._internalTemplates,e);return void 0===t?u["f"](this._templates,e):t}return t}_findTemplateByKey(e){return this._findTemplate(t=>e in t._settings)}_findTemplateByPrivateKey(e){return this._findTemplate(t=>e in t._privateSettings)}_disposeTemplates(){u["c"](this._templateDisposers,e=>{e.dispose()}),this._templateDisposers.length=0}_removeTemplates(){u["c"](this._templates,e=>{e._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(e=!1){let t=!1;const i=[];let s=[];const a=new Set,r=this.get("themeTagsSelf");return r&&u["c"](r,e=>{a.add(e)}),this._walkParents(e=>{e===this._root._rootContainer&&(t=!0),e._defaultThemes.length>0&&i.push(e._defaultThemes);const r=e.get("themes");r&&s.push(r);const n=e.get("themeTags");n&&u["c"](n,e=>{a.add(e)})}),s=i.concat(s),this._removeTemplates(),(t||e)&&u["e"](this.classNames,e=>{const t=[];u["c"](s,i=>{u["c"](i,i=>{const s=i._lookupRules(e);s&&u["e"](s,e=>{const i=e.tags.every(e=>a.has(e));if(i){const i=u["i"](t,t=>{const i=d["a"](e.tags.length,t.tags.length);return 0===i?d["b"](e.tags,t.tags,d["a"]):i});t.splice(i.index,0,e)}})})}),u["c"](t,e=>{this._templates.push(e.template),e.template._setObjectTemplate(this)})}),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){const e=this.get("id");e&&this._registerId(e);const t=this._prevSettings.id;t&&delete c["a"].entitiesById[t]}}_registerId(e){if(c["a"].entitiesById[e]&&c["a"].entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');c["a"].entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();const e=this._template;e&&e._removeObjectTemplate(this),u["c"](this._internalTemplates,e=>{e._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(e=>{e.dispose()}),n["b"](this._disposerProperties,(e,t)=>{u["c"](t,e=>{e.dispose()})});const t=this.get("id");t&&delete c["a"].entitiesById[t]}setTimeout(e,t){const i=setTimeout(()=>{this.removeDispose(a),e()},t),a=new s["c"](()=>{clearTimeout(i)});return this._disposers.push(a),a}removeDispose(e){if(!this.isDisposed()){let t=u["k"](this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return-1!==u["k"](this.get("themeTags",[]),e)}addTag(e){if(!this.hasTag(e)){const t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){const t=this.get("themeTags",[]);u["q"](t,e),this.set("themeTags",t)}}_t(e,t,...i){return this._root.language.translate(e,t,...i)}get root(){return this._root}}Object.defineProperty(f,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"}),Object.defineProperty(f,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]})},"7f12":function(e,t,i){"use strict";var s;i.d(t,"a",(function(){return s})),function(e){e["ADD"]="lighter",e["COLOR"]="color",e["COLOR_BURN"]="color-burn",e["COLOR_DODGE"]="color-dodge",e["DARKEN"]="darken",e["DIFFERENCE"]="difference",e["DST_OVER"]="destination-over",e["EXCLUSION"]="exclusion",e["HARD_LIGHT"]="hard-light",e["HUE"]="hue",e["LIGHTEN"]="lighten",e["LUMINOSITY"]="luminosity",e["MULTIPLY"]="multiply",e["NORMAL"]="source-over",e["OVERLAY"]="overlay",e["SATURATION"]="saturation",e["SCREEN"]="screen",e["SOFT_LIGHT"]="soft-light",e["SRC_ATOP"]="source-atop",e["XOR"]="xor"}(s||(s={}))},"817d":function(e,t,i){var s,a,r;(function(n,o){a=[t,i("313e")],s=o,r="function"===typeof s?s.apply(t,a):s,void 0===r||(e.exports=r)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};if(t){var s=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],a={color:s,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{normal:{borderColor:s[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},map:{label:{normal:{textStyle:{color:"#d87a80"}}},itemStyle:{normal:{borderColor:"#eee",areaColor:"#ddd"},emphasis:{areaColor:"#fe994e"}}},graph:{color:s},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};t.registerTheme("macarons",a)}else i("ECharts is not Loaded")}))},"830b":function(e,t,i){"use strict";i.d(t,"a",(function(){return w}));var s=i("1c9f"),a=i("be4b"),r=i("08b0"),n=i("50be"),o=i("dab0"),l=i("cc0e"),h=i("e28a"),c=i("48ef"),u=i("0109"),d=i("1eae");class g extends s["a"]{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:n["a"].new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:r["a"].fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:n["a"].new(this._root,{saturation:0})});{const t=i("Graphics",["scrollbar","overlay"]);t.setAll({fillOpacity:.5}),Object(o["b"])(t,"fill",e,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a["c"],minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a["c"]}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a["c"]}),i("AxisLabel",["y"]).setAll({centerX:a["c"]}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a["c"]}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use left and right arrows to move selection")}),Object(o["b"])(s,"stroke",e,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use up and down arrows to move selection")}),Object(o["b"])(s,"stroke",e,"alternativeBackground")}{const t=i("Graphics",["cursor","selection"]);t.setAll({fillOpacity:.15}),Object(o["b"])(t,"fill",e,"alternativeBackground")}i("Axis").setAll({start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a["d"],centerY:a["d"],paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const t=i("AxisRenderer");t.setAll({crisp:!0,strokeOpacity:0}),Object(o["b"])(t,"stroke",e,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a["c"]}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a["c"]});{const t=i("Rectangle",["axis","thumb"]);t.setAll({fillOpacity:0}),Object(o["b"])(t,"fill",e,"alternativeBackground"),t.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y"]).setAll({cursorOverStyle:"ns-resize"});{const t=i("Grid");t.setAll({location:0,strokeOpacity:.15,crisp:!0}),Object(o["b"])(t,"stroke",e,"grid")}{const t=i("Grid",["minor"]);t.setAll({location:0,strokeOpacity:.07,crisp:!0}),Object(o["b"])(t,"stroke",e,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const t=i("Graphics",["axis","fill"]);t.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),Object(o["b"])(t,"fill",e,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const t=i("AxisTick");t.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),Object(o["b"])(t,"stroke",e,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(e,t)=>{const i=e.get("axisFill");i&&(h["e"](t)&&t%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],g={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},p={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},b={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:d["b"](s),dateFormats:u["a"](g),periodChangeDateFormats:u["a"](p)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,gridIntervals:d["b"](s),dateFormats:u["a"](g),periodChangeDateFormats:u["a"](p),tooltipDateFormats:b,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),a=e.get("endValue"),r=i.intervalDuration(),n=i.getPrivate("baseInterval"),o=i.getPrivate("gridInterval",n);let h=i.getPrivate("min",0);if(h=l["h"](new Date(h),o.timeUnit,o.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const e=Math.round(Math.round((s-h)/r))/2;e==Math.round(e)?t.setPrivate("visible",!0):t.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.get("index");let s=!1;h["e"](i)&&i%2!=0||(s=!0),t.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),a=i.getPrivate("step");h["e"](s)&&h["e"](a)&&(c["m"](s/a/2,5)==Math.round(s/a/2)?t.setPrivate("visible",!1):t.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Object(a["e"])(70),height:Object(a["e"])(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,t/2),e.lineTo(s,t/2)}}});{const t=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});Object(o["b"])(t,"stroke",e,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,0),e.lineTo(s,0),e.lineTo(s,t),e.lineTo(0,t),e.lineTo(0,0)}}});{const t=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});Object(o["b"])(t,"stroke",e,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Object(a["e"])(50),height:Object(a["e"])(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Object(a["e"])(80),height:Object(a["e"])(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const t=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});Object(o["b"])(t,"fill",e,"positive"),Object(o["b"])(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});Object(o["b"])(t,"fill",e,"negative"),Object(o["b"])(t,"stroke",e,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const t=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});Object(o["b"])(t,"fill",e,"positive"),Object(o["b"])(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});Object(o["b"])(t,"fill",e,"negative"),Object(o["b"])(t,"stroke",e,"negative")}{const e=i("RoundedRectangle",["rangegrip"]);e.setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12})}{const t=i("Graphics",["rangegrip","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(2,.5),e.lineTo(2,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),Object(o["b"])(t,"stroke",e,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a["d"]}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a["d"]}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a["c"]}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a["c"]})}}var p=i("9d71"),b=i("5f47"),m=i("0504"),f=i("bf67"),_=i("5c34"),v=i("841d"),y=i("2180"),x=i("842e");class w extends m["a"]{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new f["b"]}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new f["b"]}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(p["a"].new(this._root,{width:a["c"],layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(p["a"].new(this._root,{width:a["c"],height:a["c"],layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(p["a"].new(this._root,{width:a["c"],layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(p["a"].new(this._root,{height:a["c"],layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(p["a"].new(this._root,{width:a["c"],height:a["c"],maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(p["a"].new(this._root,{width:a["c"],height:a["c"]}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(p["a"].new(this._root,{width:a["c"],height:a["c"]}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(p["a"].new(this._root,{width:a["c"],height:a["c"],isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:p["a"].new(this._root,{width:a["c"],height:a["c"],isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(p["a"].new(this._root,{height:a["c"],layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(p["a"].new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(_["a"].new(this._root,{themeTags:["zoom"],icon:v["a"].new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(g.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",b["a"].new(e,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",e=>{this._handlePlotDown(e)})),this._disposers.push(s.events.on("globalpointerup",e=>{this._handlePlotUp(e)})),this._disposers.push(s.events.on("globalpointermove",e=>{this._handlePlotMove(e)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(d["q"](t.series,e),t.markDirtyExtremes());const i=e.get("yAxis");i&&(d["q"](i.series,e),i.markDirtyExtremes());const s=this.get("cursor");if(s){const t=s.get("snapToSeries");t&&d["q"](t,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=e.originalEvent;if(!x["z"](a,this))return;a.preventDefault();const r=s.toLocal(e.point),n=this.get("wheelStep",.2),o=a.deltaY/100,l=a.deltaX/100,h=this.get("wheelZoomPositionX"),c=this.get("wheelZoomPositionY");"zoomX"!==t&&"zoomXY"!==t||0==l||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(r.x/s.width());null!=h&&(a=h);let o=e.get("maxDeviation",0),c=Math.min(1+o,Math.max(-o,t-n*(i-t)*l*a)),u=Math.max(-o,Math.min(1+o,i+n*(i-t)*l*(1-a)));1/(u-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)&&this._handleWheelAnimation(e.zoom(c,u))}}),"zoomX"!==i&&"zoomXY"!==i||0==o||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(r.x/s.width());null!=h&&(a=h);let l=e.get("maxDeviation",0),c=Math.min(1+l,Math.max(-l,t-n*(i-t)*o*a)),u=Math.max(-l,Math.min(1+l,i+n*(i-t)*o*(1-a)));1/(u-c)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)&&this._handleWheelAnimation(e.zoom(c,u))}}),"zoomY"!==t&&"zoomXY"!==t||0==l||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(r.y/s.height());null!=c&&(a=c);let o=e.get("maxDeviation",0),h=Math.min(1+o,Math.max(-o,t-n*(i-t)*l*a)),u=Math.max(-o,Math.min(1+o,i+n*(i-t)*l*(1-a)));1/(u-h)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)&&this._handleWheelAnimation(e.zoom(h,u))}}),"zoomY"!==i&&"zoomXY"!==i||0==o||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(r.y/s.height());null!=c&&(a=c);let l=e.get("maxDeviation",0),h=Math.min(1+l,Math.max(-l,t-n*(i-t)*o*a)),u=Math.max(-l,Math.min(1+l,i+n*(i-t)*o*(1-a)));1/(u-h)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)&&this._handleWheelAnimation(e.zoom(h,u))}}),"panX"!==t&&"panXY"!==t||0==l||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*n*(i-t)*l,a=t+s,r=i+s,o=this._fixWheel(a,r);a=o[0],r=o[1],this._handleWheelAnimation(e.zoom(a,r))}}),"panX"!==i&&"panXY"!==i||0==o||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*n*(i-t)*o,a=t+s,r=i+s,l=this._fixWheel(a,r);a=l[0],r=l[1],this._handleWheelAnimation(e.zoom(a,r))}}),"panY"!==t&&"panXY"!==t||0==l||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*n*(i-t)*l,a=t+s,r=i+s,o=this._fixWheel(a,r);a=o[0],r=o[1],this._handleWheelAnimation(e.zoom(a,r))}}),"panY"!==i&&"panXY"!==i||0==o||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*n*(i-t)*o,a=t-s,r=i-s,l=this._fixWheel(a,r);a=l[0],r=l[1],this._handleWheelAnimation(e.zoom(a,r))}})}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;"none"!==e||"none"!==t?(this._wheelDp=i.events.on("wheel",i=>{const s=i.originalEvent;("none"!==e&&0!=Math.abs(s.deltaX)||"none"!==t&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const i=t-e;return e<0&&(e=0,t=e+i),t>1&&(t=1,e=t-i),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(2==t.button)return;const i=this.plotContainer;let s=i.toLocal(e.point);if(this.get("pinchZoomX")||this.get("pinchZoomY")){const e=t.pointerId;if(e&&u["d"](i._downPoints).length>0){const e=this.xAxes.getIndex(0),t=this.yAxes.getIndex(0);e&&(this._downStartX=e.get("start",0),this._downEndX=e.get("end",1)),t&&(this._downStartY=t.get("start",0),this._downEndY=t.get("end",1))}}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")}),s&&this.yAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")});const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){const t="pancancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(e=>{e._isPanning=!1}),this.yAxes.each(e=>{e._isPanning=!1})}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=e.originalEvent,s=i.pointerId;if(s&&(this._movePoints[s]=e.point,u["d"](t._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;if(i){i=t.toLocal(this._root.documentPointToRoot(i));let s=t.toLocal(e.point);const a=this.get("panX"),r=this.get("panY");if(a){let e=this.get("scrollbarX");e&&e.events.disableType("rangechanged"),this.xAxes.each(e=>{if(e.get("panX")){e._isPanning=!0;let a=e._panStart,r=e._panEnd,n=r-a,o=n*(i.x-s.x)/t.width();e.get("renderer").get("inversed")&&(o*=-1);let l=a+o,h=r+o;h-l<1+2*e.get("maxDeviation",1)&&(e.set("start",l),e.set("end",h))}}),e&&e.events.enableType("rangechanged")}if(r){let e=this.get("scrollbarY");e&&e.events.disableType("rangechanged"),this.yAxes.each(e=>{if(e.get("panY")){e._isPanning=!0;let a=e._panStart,r=e._panEnd,n=r-a,o=n*(i.y-s.y)/t.height();e.get("renderer").get("inversed")&&(o*=-1);let l=a-o,h=r-o;h-l<1+2*e.get("maxDeviation",1)&&(e.set("start",l),e.set("end",h))}}),e&&e.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,i=[],s=[];if(u["b"](e._downPoints,(e,a)=>{i[t]=a;let r=this._movePoints[e];r&&(s[t]=r),t++}),i.length>1&&s.length>1){const t=e.width(),a=e.height();let r=i[0],n=i[1],o=s[0],l=s[1];if(r&&n&&o&&l){if(o=e.toLocal(o),l=e.toLocal(l),r=e.toLocal(r),n=e.toLocal(n),this.get("pinchZoomX")){const e=this._downStartX,i=this._downEndX;if(null!=e&&null!=i){r.x>n.x&&([r,n]=[n,r],[o,l]=[l,o]);let s=e+r.x/t*(i-e),a=e+n.x/t*(i-e),h=e+o.x/t*(i-e),c=e+l.x/t*(i-e),u=Math.max(.001,a-s),d=Math.max(.001,c-h),g=u/d,p=e*g+s-h*g,b=i*g+a-c*g;this.xAxes.each(e=>{let t=e.fixPosition(p),i=e.fixPosition(b);e.zoom(t,i,0)})}}if(this.get("pinchZoomY")){const e=this._downStartY,t=this._downEndY;if(null!=e&&null!=t){r.y<n.y&&([r,n]=[n,r],[o,l]=[l,o]);let i=e+(1-r.y/a)*(t-e),s=e+(1-n.y/a)*(t-e),h=e+(1-o.y/a)*(t-e),c=e+(1-l.y/a)*(t-e),u=Math.max(.001,s-i),d=Math.max(.001,c-h),g=u/d,p=e*g+i-h*g,b=t*g+s-c*g;this.yAxes.each(e=>{let t=e.fixPosition(p),i=e.fixPosition(b);e.zoom(t,i,0)})}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){const s=e.get("snapToSeriesBy"),a=[];d["c"](i,e=>{if(!e.isHidden()&&!e.isHiding())if("x!"!=s&&"y!"!=s){const t=e.startIndex(),i=e.endIndex();for(let s=t;s<i;s++){const t=e.dataItems[s];t&&!t.isHidden()&&a.push(t)}}else{const t=e.get("tooltipDataItem");t&&a.push(t)}});let r,n=1/0;if(d["c"](a,e=>{const i=e.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(t.x-i.x):"y"==s||"y!"==s?Math.abs(t.y-i.y):Math.hypot(t.x-i.x,t.y-i.y),a<n&&(n=a,r=e)}}),d["c"](i,e=>{const t=e.get("tooltip");t&&t._setDataItem(void 0)}),r){let t=r.component;t.showDataItemTooltip(r),t.setRaw("tooltipDataItem",r);const i=r.get("point");i&&e.handleMove(t.toGlobal({x:i.x-t.x(),y:i.y-t.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",e=>{this._handleScrollbar(this.xAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarX",t.events.on("released",()=>{this.xAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.xAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",e=>{this._handleScrollbar(this.yAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarY",t.events.on("released",()=>{this.yAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.yAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),i=e.get("yAxis");d["o"](t.series,e),d["o"](i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(i.events.on("positionchanged",()=>{e._fixPosition()})),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),d["c"](e.dataItems,e=>{e.set("stackToItemY",void 0),e.set("stackToItemX",void 0)})),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&null==e.get("fill")){const i=t.next();e._setSoft("stroke",i),e._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==e.get("fillPattern")){const t=i.next();e._setSoft("fillPattern",t)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),s=e.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),r=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(e=>{if("zoomX"===t||"zoomXY"===t){let t=e.toAxisPosition(i),s=e.toAxisPosition(a);e.zoom(t,s)}e.setPrivate("updateScrollbar",!0)}),this.yAxes.each(e=>{if("zoomY"===t||"zoomXY"===t){let t=e.toAxisPosition(s),i=e.toAxisPosition(r);e.zoom(t,i)}e.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,i,s){e.each(e=>{let a=e.fixPosition(t),r=e.fixPosition(i),n=e.zoom(a,r,void 0,s);const o="updateScrollbar";e.setPrivateRaw(o,!1),n?n.events.on("stopped",()=>{e.setPrivateRaw(o,!0)}):e.setPrivateRaw(o,!0)})}_processAxis(e,t){return e.events.onAll(e=>{if("clear"===e.type)d["c"](e.oldValues,e=>{this._removeAxis(e)});else if("push"===e.type)t.children.push(e.newValue),e.newValue.processChart(this);else if("setIndex"===e.type)t.children.setIndex(e.index,e.newValue),e.newValue.processChart(this);else if("insertIndex"===e.type)t.children.insertIndex(e.index,e.newValue),e.newValue.processChart(this);else if("removeIndex"===e.type)this._removeAxis(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");t.children.moveValue(e.value,e.newIndex),e.value.processChart(this)}})}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const i=e.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=e.topGridContainer,r=a.parent;r&&r.children.removeValue(a)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);const s=this.topAxesContainer;s.set("paddingLeft",e),s.set("paddingRight",t)}processAxis(e){var t=this.get("cursor");t&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),s=e.fixPosition(e.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(e)){if(t||e.getPrivate("updateScrollbar")){let e=this.get("scrollbarX");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}}else if(-1!=this.yAxes.indexOf(e)&&(t||e.getPrivate("updateScrollbar"))){let e=this.get("scrollbarY");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(e=>{0==c["m"](e.get("start",0),6)&&1==c["m"](e.get("end",1),6)||(t=!0)}),this.yAxes.each(e=>{0==c["m"](e.get("start",0),6)&&1==c["m"](e.get("end",1),6)||(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){const e=i[a];if(e!=this){const t=e.plotContainer,i=this._root.rootPointToDocument(s),a=e._root.documentPointToRoot(i),r=t.toLocal(a);if(r.x>=-.1&&r.y>=-.1&&r.x<=t.width()+.1&&r.y<=t.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),i=e.height(),s=this.height();let r=e._display.toGlobal({x:0,y:0}),n=e._display.toGlobal({x:t,y:i});const o=[];let l,c,u=0,g=1/0,p=this._movePoint,b=this.get("maxTooltipDistance"),m=this.get("maxTooltipDistanceBy","xy");h["e"](b)&&this.series.each(e=>{if(!e.isHidden()){const t=e.get("tooltip");if(t){let i=t.get("pointTo");if(i){let t=Math.hypot(p.x-i.x,p.y-i.y);"x"==m?t=Math.abs(p.x-i.x):"y"==m&&(t=Math.abs(p.y-i.y)),t<g&&(g=t,l=e,c=i)}}}});const f=[];if(this.series.each(e=>{const t=e.get("tooltip");if(t&&!t.get("forceHidden")){let i=!1,s=t.get("pointTo");if(s){if(b>=0){let s=t.get("pointTo");if(s&&c&&e!=l){let e=Math.hypot(c.x-s.x,c.y-s.y);"x"==m?e=Math.abs(c.x-s.x):"y"==m&&(e=Math.abs(c.y-s.y)),e>b&&(i=!0)}}else-1==b&&e!=l&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&t.dataItem?i||(u+=s.y):i=!0,i||e.isHidden()||e.isHiding()?t.hide(0):(t.show(),o.push(t),f.push(e))}}}),this.setPrivate("tooltipSeries",f),this.get("arrangeTooltips")){const e=this._root.tooltipContainer,t=o.length,l=u/t;if(l>i/2+r.y){o.sort((e,t)=>y["c"](t.get("pointTo").y,e.get("pointTo").y));let t=n.y;if(d["c"](o,i=>{let s=i.height(),o=i.get("centerY");o instanceof a["a"]&&(s*=o.value),s+=i.get("marginBottom",0),i.set("bounds",{left:r.x,top:r.y,right:n.x,bottom:t}),i.setPrivate("customData",{left:r.x,top:r.y,right:n.x,bottom:t}),t=Math.min(t-s,i._fy-s),i.parent==e&&e.children.moveValue(i,0)}),t<0){o.reverse();let e=t;d["c"](o,i=>{let s=i.get("bounds");if(s){let a=s.top-t,r=s.bottom-t;a<e&&(a=e,r=a+i.height()),i.set("bounds",{left:s.left,top:a,right:s.right,bottom:r}),e=s.bottom-t+i.get("marginBottom",0)}})}}else{o.reverse(),o.sort((e,t)=>y["c"](e.get("pointTo").y,t.get("pointTo").y));let t=0;if(d["c"](o,i=>{let o=i.height(),l=i.get("centerY");l instanceof a["a"]&&(o*=l.value),o+=i.get("marginBottom",0),i.set("bounds",{left:r.x,top:t,right:n.x,bottom:Math.max(r.y+s,t+o)}),i.parent==e&&e.children.moveValue(i,0),t=Math.max(t+o,i._fy+o)}),t>s){o.reverse();let e=s;d["c"](o,i=>{let a=i.get("bounds");if(a){let r=a.top-(s-t),n=a.bottom-(s-t);n>e&&(n=e,r=n-i.height()),i.set("bounds",{left:a.left,top:r,right:a.right,bottom:n}),e=n-i.height()-i.get("marginBottom",0)}})}}}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)}),this.yAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)})}_dispose(){super._dispose();const e=this.get("cursor");e&&e.dispose()}}Object.defineProperty(w,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"}),Object.defineProperty(w,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:m["a"].classNames.concat([w.className])})},"83b2":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("841d");i("48ef");function a(e,t){for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.length>0){let t=s[0];if(t.length>0){let i=t[0];e.moveTo(i.x,i.y);for(let t=0,a=s.length;t<a;t++)r(e,s[t])}}}}function r(e,t){for(let i=0,s=t.length;i<s;i++){const s=t[i];e.lineTo(s.x,s.y)}}class n extends s["a"]{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),a(this._display,[[e]])}else if(t)a(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([n.className])})},"841d":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return h}));var s=i("7bbc"),a=i("5ff8"),r=i("7f12"),n=i("e28a"),o=i("1eae");const l=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class h extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const e=this.get("fillGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){const e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");n["e"](e)&&(e=e<.5?[0]:[e]),this._display.setLineDash(e);const t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);const i=this.get("blendMode",r["a"].NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"===typeof s&&s(this._display,this);const a=this.get("svgPath");null!=a&&this._display.svgPath(a)}}_afterChanged(){if(super._afterChanged(),this._clear){const e=this.get("fill"),t=this.get("fillGradient"),i=this.get("fillPattern"),a=this.get("fillOpacity"),r=this.get("stroke"),n=this.get("strokeGradient"),l=this.get("strokePattern"),h=this.get("shadowColor"),c=this.get("shadowBlur"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),g=this.get("shadowOpacity");if(h&&(c||u||d)&&this._display.shadow(h,c,u,d,g),e&&!t&&(this._display.beginFill(e,a),this._display.endFill()),t){if(e){const i=t.get("stops",[]);i.length&&o["c"](i,t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=a,t.opacityInherited=!0)})}const i=t.getFill(this);i&&(this._display.beginFill(i,a),this._display.endFill())}if(i){const e=i.pattern;e&&(this._display.beginFill(e,a),this._display.endFill(),i instanceof s["a"]&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(r||n||l){const e=this.get("strokeOpacity");let t=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(t/=this.get("scale",1)),this.get("crisp")&&(t/=this._root._renderer.resolution);const i=this.get("lineJoin");if(r&&!n&&(this._display.lineStyle(t,r,e,i),this._display.endStroke()),n){const s=n.get("stops",[]);s.length&&o["c"](s,t=>{t.color&&!t.colorInherited||!r||(t.color=r,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=e,t.opacityInherited=!0)});const a=n.getFill(this);a&&(this._display.lineStyle(t,a,e,i),this._display.endStroke())}if(l){let a=l.pattern;a&&(this._display.lineStyle(t,a,e,i),this._display.endStroke(),l instanceof s["a"]&&l.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([h.className])})},"842e":function(e,t,i){"use strict";i.d(t,"G",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"D",(function(){return o})),i.d(t,"O",(function(){return l})),i.d(t,"p",(function(){return h})),i.d(t,"c",(function(){return c})),i.d(t,"i",(function(){return u})),i.d(t,"q",(function(){return d})),i.d(t,"A",(function(){return g})),i.d(t,"L",(function(){return p})),i.d(t,"s",(function(){return b})),i.d(t,"m",(function(){return m})),i.d(t,"z",(function(){return _})),i.d(t,"K",(function(){return v})),i.d(t,"l",(function(){return y})),i.d(t,"r",(function(){return w})),i.d(t,"F",(function(){return P})),i.d(t,"g",(function(){return D})),i.d(t,"E",(function(){return k})),i.d(t,"P",(function(){return M})),i.d(t,"Q",(function(){return A})),i.d(t,"n",(function(){return S})),i.d(t,"f",(function(){return C})),i.d(t,"N",(function(){return j})),i.d(t,"h",(function(){return R})),i.d(t,"M",(function(){return L})),i.d(t,"x",(function(){return I})),i.d(t,"v",(function(){return E})),i.d(t,"w",(function(){return B})),i.d(t,"o",(function(){return F})),i.d(t,"k",(function(){return N})),i.d(t,"j",(function(){return Y})),i.d(t,"t",(function(){return V})),i.d(t,"u",(function(){return H})),i.d(t,"e",(function(){return z})),i.d(t,"y",(function(){return X})),i.d(t,"H",(function(){return U})),i.d(t,"B",(function(){return G})),i.d(t,"d",(function(){return K})),i.d(t,"J",(function(){return q})),i.d(t,"b",(function(){return $})),i.d(t,"C",(function(){return J})),i.d(t,"I",(function(){return Q}));var s=i("e28a"),a=(i("1eae"),i("0109"),i("9197"));function r(e){e.parentNode&&e.parentNode.removeChild(e)}function n(e,t,i,s){return e.addEventListener(t,i,s||!1),new a["c"](()=>{e.removeEventListener(t,i,s||!1)})}function o(e){return n(window,"resize",t=>{e()})}function l(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function h(e){let t=e.pointerId||0;return t}function c(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function u(e){e&&e.focus()}function d(e){if(l("pointerevents"))return e;if(l("touchevents"))switch(e){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(l("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function g(e){if("undefined"!==typeof Touch&&e instanceof Touch)return!0;if("undefined"!==typeof PointerEvent&&e instanceof PointerEvent&&null!=e.pointerType)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(null!=e.type&&e.type.match(/^mouse/))return!1;return!0}function p(e,t,i){e.style[t]=i}function b(e,t){return e.style[t]}function m(e){if(e.composedPath){const t=e.composedPath();return 0===t.length?null:t[0]}return e.target}function f(e,t){let i=t;while(1){if(e===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function _(e,t){return e.target&&f(t.root.dom,e.target)}function v(e,t){e.style.pointerEvents=t?"auto":"none"}function y(e){if(void 0!==e.key)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}a["d"];a["d"];function x(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function w(){return x()?1:void 0}function P(e,t){return s["e"](e)?e:null!=e&&s["e"](e.value)&&s["e"](t)?t*e.value:0}function D(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function k(e,t=0,i="0"){return"string"!==typeof e&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(i)+e:e}function T(e){return e.replace(/^[\s]*/,"")}function O(e){return e.replace(/[\s]*$/,"")}function M(e){return T(O(e))}function A(e,t,i=!1,s="..."){if(e.length>t){let a=t-1;while(a>=0&&e.charAt(a).match(/\w/))a--;return a>=0&&0==i?e.substring(0,a+1)+"...":e.substring(0,t)+s}return e}function S(e){if("undefined"===typeof e)return"string";e=e.toLowerCase().replace(/^\[[^\]]*\]/,""),e=e.replace(/\[[^\]]+\]/,""),e=e.trim();let t=e.match(/\/(date|number|duration)$/);return t?t[1]:"number"===e?"number":"date"===e?"date":"duration"===e?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function C(e){return e.replace(/\/(date|number|duration)$/i,"")}function j(e){return e?e.replace(/<[^>]*>/g,""):e}function R(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function L(e){const t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,i=/([^اأدذرزو]*[اأدذرزو])/gi;let s=e.split(/(\s+)/),a=[];return s.forEach(e=>{if(e.match(/^\s+$/))(e=" ")&&(e=" "),a.push(e);else if(t.test(e)){let t=e.split(i).filter(e=>""!==e);a=a.concat(t)}else a=a.concat([...e])}),a}function I(e,t=!1){const i=new Date(e.getFullYear(),0,0),s=e.getTime()-i.getTime()+60*(i.getTimezoneOffset()-e.getTimezoneOffset())*1e3,a=864e5;return Math.floor(s/a)}function E(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const a=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-a.getTime())/864e5+1)/7)}function B(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const a=new Date(Date.UTC(i.getUTCFullYear(),0,1));return a.getFullYear()}function F(e,t=!1){const i=E(new Date(e.getFullYear(),e.getMonth(),1),t);let s=E(e,t);return 1==s&&(s=53),s-i+1}function N(e,t,i=1,s=!1){let a=new Date(t,0,4,0,0,0,0);s&&a.setUTCFullYear(t);let r=7*e+i-((a.getDay()||7)+3);return r}function Y(e,t){return e>12?e-=12:0===e&&(e=12),null!=t?e+(t-1):e}function V(e,t=!1,i=!1,s=!1,a){if(s)return t?"Coordinated Universal Time":"UTC";if(a){const i=e.toLocaleString("en-US",{timeZone:a}),s=e.toLocaleString("en-US",{timeZone:a,timeZoneName:t?"long":"short"});return M(s.substr(i.length))}let r=e.toLocaleString("UTC"),n=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(r.length);return!1===i&&(n=n.replace(/ (standard|daylight|summer|winter) /i," ")),M(n)}function H(e){const t=new Date(Date.UTC(2012,0,1,0,0,0,0)),i=new Date(t.toLocaleString("en-US",{timeZone:"UTC"})),s=new Date(t.toLocaleString("en-US",{timeZone:e}));return(s.getTime()-i.getTime())/6e4*-1}function z(e){return e.charAt(0).toUpperCase()+e.slice(1)}function X(e){let t,i,s,a=e.h,r=e.s,n=e.l;if(0==r)t=i=s=n;else{let e=function(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},o=n<.5?n*(1+r):n+r-n*r,l=2*n-o;t=e(l,o,a+1/3),i=e(l,o,a),s=e(l,o,a-1/3)}return{r:Math.round(255*t),g:Math.round(255*i),b:Math.round(255*s)}}function U(e){let t=e.r/255,i=e.g/255,s=e.b/255,a=Math.max(t,i,s),r=Math.min(t,i,s),n=0,o=0,l=(a+r)/2;if(a===r)n=o=0;else{let e=a-r;switch(o=l>.5?e/(2-a-r):e/(a+r),a){case t:n=(i-s)/e+(i<s?6:0);break;case i:n=(s-t)/e+2;break;case s:n=(t-i)/e+4;break}n/=6}return{h:n,s:o,l:l}}function G(e,t){return e?{r:Math.max(0,Math.min(255,e.r+W(e.r,t))),g:Math.max(0,Math.min(255,e.g+W(e.g,t))),b:Math.max(0,Math.min(255,e.b+W(e.b,t))),a:e.a}:e}function W(e,t){let i=t>0?255-e:e;return Math.round(i*t)}function K(e,t){if(e){let i=Math.min(Math.max(e.r,e.g,e.b),230),s=W(i,t);return{r:Math.max(0,Math.min(255,Math.round(e.r+s))),g:Math.max(0,Math.min(255,Math.round(e.g+s))),b:Math.max(0,Math.min(255,Math.round(e.b+s))),a:e.a}}return e}function Z(e){return(299*e.r+587*e.g+114*e.b)/1e3>=128}function q(e,t){if(void 0===e||1==t)return e;let i=U(e);return i.s=t,X(i)}function $(e,t={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=t,a=i;return Z(i)&&(s=i,a=t),Z(e)?a:s}function J(e,t){return e||(e=[]),[...e,...t].filter((e,t,i)=>i.indexOf(e)===t)}function Q(e,t){return!!t&&(e.left==t.left&&(e.right==t.right&&(e.top==t.top&&e.bottom==t.bottom)))}},"86d1":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return r}));var s=i("7d61");function a(e,t){e.get("reverseChildren",!1)?e.children.eachReverse(t):e.children.each(t)}class r extends s["a"]{}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([r.className])})},"8d36":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("7d61"),a=i("f1d5"),r=i("0109"),n=i("842e"),o=i("e28a");class l extends s["a"]{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const e="_big_number_suffix_",t="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let s;(null==t||o["g"](t)&&"number"===t.toLowerCase())&&(t=this.get("numberFormat",""));let a=Number(e);if(o["f"](t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(a):new Intl.NumberFormat(void 0,t).format(a)}catch(l){return"Invalid"}else{t=n["f"](t);let e,l=this.parseFormat(t,this._root.language);e=a>this.get("negativeBase")?l.positive:a<this.get("negativeBase")?l.negative:l.zero,null==i||e.mod||(e=r["a"](e),e.decimals.active=0==a?0:i),s=e.template.split(o["a"]).join(this.applyFormat(a,e))}return!0===this.get("forceLTR")&&(s="‎"+s),s}parseFormat(e,t){const i=t.translateEmpty("_thousandSeparator"),s=t.translateEmpty("_decimalSeparator");let n={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1}};e=e.replace("||",o["b"]);let l=e.split("|");return n.positive.source=l[0],"undefined"===typeof l[2]?n.zero=n.positive:n.zero.source=l[2],"undefined"===typeof l[1]?n.negative=n.positive:n.negative.source=l[1],r["b"](n,(e,t)=>{if(t.parsed)return;let i=t.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=a["a"].chunk(i,!0);for(let a=0;a<s.length;a++){let e=s[a];if(e.text=e.text.replace(o["b"],"|"),"value"===e.type){let i=e.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(i)if(null===i||""===i[0])t.template+=e.text;else{let s=i[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);s&&(t.mod=s[0].toLowerCase(),t.modSpacing=!!i[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let a=i[0].split(".");if(""===a[0]);else{t.thousands.active=(a[0].match(/0/g)||[]).length,t.thousands.passive=(a[0].match(/\#/g)||[]).length+t.thousands.active;let e=a[0].split(",");1===e.length||(t.thousands.interval=(e.pop()||"").length,0===t.thousands.interval&&(t.thousands.interval=-1))}"undefined"===typeof a[1]||(t.decimals.active=(a[1].match(/0/g)||[]).length,t.decimals.passive=(a[1].match(/\#/g)||[]).length+t.decimals.active),t.template+=e.text.split(i[0]).join(o["a"])}}else t.template+=e.text}t.parsed=!0}),n}applyFormat(e,t){let i=e<0;e=Math.abs(e);let s="",a="",r=t.mod?t.mod.split(""):[];if(-1!==r.indexOf("b")){let i=this.applyPrefix(e,this.get("bytePrefixes"),-1!==r.indexOf("!"));e=i[0],s=i[1],a=i[2],t.modSpacing&&(a=" "+a)}else if(-1!==r.indexOf("a")){let i=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),-1!==r.indexOf("!"));e=i[0],s=i[1],a=i[2],t.modSpacing&&(a=" "+a)}else if(-1!==r.indexOf("p")){let t=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(t)),s=this._root.language.translate("_percentPrefix"),a=this._root.language.translate("_percentSuffix"),""==s&&""==a&&(a="%")}else if(-1!==r.indexOf("%")){let t=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(t)),a="%"}else if(-1!==r.indexOf("‰")){let t=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(t)),a="‰"}if(-1!==r.indexOf("e")){let i;i=t.decimals.passive>=0?e.toExponential(t.decimals.passive).split("e"):e.toExponential().split("e"),e=Number(i[0]),a="e"+i[1],t.modSpacing&&(a=" "+a)}else if(0===t.decimals.passive)e=Math.round(e);else if(t.decimals.passive>0){const i=n["g"](e);if(i>0){const s=Math.pow(10,t.decimals.passive);e=Math.round(parseFloat((e*s).toFixed(i)))/s}}let l="",h=o["h"](e).split("."),c=h[0];if(c.length<t.thousands.active&&(c=Array(t.thousands.active-c.length+1).join("0")+c),t.thousands.interval>0){let e=[],i=c.split("").reverse().join("");for(let s=0,a=c.length;s<=a;s+=t.thousands.interval){let a=i.substr(s,t.thousands.interval).split("").reverse().join("");""!==a&&e.unshift(a)}c=e.join(t.thousands.separator)}l+=c,1===h.length&&h.push("");let u=h[1];return u.length<t.decimals.active&&(u+=Array(t.decimals.active-u.length+1).join("0")),""!==u&&(l+=t.decimals.separator+u),""===l&&(l="0"),0!==e&&i&&-1===r.indexOf("s")&&(l="-"+l),s&&(l=s+l),a&&(l+=a),l}applyPrefix(e,t,i=!1){let s=e,a="",r="",n=!1,o=1;for(let l=0,h=t.length;l<h;l++)t[l].number<=e&&(0===t[l].number?s=0:(s=e/t[l].number,o=t[l].number),a=t[l].prefix,r=t[l].suffix,n=!0);return!n&&i&&t.length&&0!=e&&(s=e/t[0].number,a=t[0].prefix,r=t[0].suffix,n=!0),n&&(s=parseFloat(s.toPrecision(Math.min(o.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,a,r]}escape(e){return e.replace("||",o["b"])}unescape(e){return e.replace(o["b"],"|")}}},9197:function(e,t,i){"use strict";i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"e",(function(){return o})),i.d(t,"b",(function(){return l}));var s=i("1eae");class a{constructor(){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class r{constructor(e){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class n extends a{constructor(){super(...arguments),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_dispose(){s["c"](this._disposers,e=>{e.dispose()})}}class o extends a{constructor(e){super(),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposers=e}_dispose(){s["c"](this._disposers,e=>{e.dispose()})}get disposers(){return this._disposers}}class l extends r{constructor(){super(...arguments),Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:0})}increment(){return++this._counter,new r(()=>{--this._counter,0===this._counter&&this.dispose()})}}},"95f3":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("5ff8"),a=i("6104"),r=i("1eae"),n=i("842e"),o=i("9197");class l extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let e=this.get("fillGradient");e&&(this._display.style.fill=e.getFill(this))}else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")){const e=this.getPrivate("tooltipElement");e&&this._disposers.push(new o["c"](()=>{this._root._removeTooltipElement(this)}))}if(this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const t=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(t){const e=i.get("stops",[]);e.length&&r["c"](e,e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=s,e.opacityInherited=!0)})}e.fill=i.getFill(this)}else t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r["c"](this._textStyles,t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())}),e["fontSize"]=this.get("fontSize"),e["fontFamily"]=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let e=this.get("text","");return this.get("maxChars")&&(e=n["Q"](e,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?Object(a["a"])(this,e):e}_getAccessibleText(){const e=this.get("ariaLabel");return void 0!==e?this.get("populateText")?Object(a["a"])(this,e):e:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([l.className])})},"9d71":function(e,t,i){"use strict";i.d(t,"a",(function(){return b}));var s=i("bf67"),a=i("1eae");class r extends s["a"]{constructor(e){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=e,this._events=this.events.onAll(e=>{if("clear"===e.type)a["c"](e.oldValues,e=>{this._onRemoved(e)});else if("push"===e.type)this._onInserted(e.newValue);else if("setIndex"===e.type)this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if("insertIndex"===e.type)this._onInserted(e.newValue,e.index);else if("removeIndex"===e.type)this._onRemoved(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._onRemoved(e.value),this._onInserted(e.value,e.newIndex)}})}_onInserted(e,t){e._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===t?i.addChild(e._display):i.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),a["c"](this.values,e=>{e.dispose()}))}}var n=i("be4b"),o=i("5ff8"),l=i("5f47"),h=i("38a8"),c=i("b88e"),u=i("f8ca"),d=i("6104"),g=i("e28a"),p=i("842e");class b extends o["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new r(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_dispose(){a["e"](this.allChildren(),e=>{e.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(e=>{e.removePrivate("x"),e.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(e=>{e.markDirtyPosition()}),this.isDirty("maskContent")){const e=this._childrenDisplay;let t=this._contentMask;this.get("maskContent")?t||(t=l["a"].new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),a["c"](this._percentageSizeChildren,e=>{e._updateSize()}),a["c"](this._percentagePositionChildren,e=>{e.markDirtyPosition(),e._updateSize()}),this.updateBackground()}updateBackground(){const e=this.get("background");let t=this._localBounds;if(t&&!this.isHidden()){let i=t.left,s=t.top,a=t.right-i,r=t.bottom-s,n=this.get("maxWidth"),o=this.get("maxHeight");o&&r>o&&(r=o),n&&a>n&&(a=n);let l=this.width(),h=this.height();e&&(e.setAll({width:a,height:r,x:i,y:s}),this._display.interactive&&(e._display.interactive=!0));const c=this._contentMask;c&&c.setAll({width:l+1,height:h+1});const u=this.get("verticalScrollbar");if(u){u.set("height",h),u.set("x",l-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+h/this._contentHeight);const e=u.get("background");e&&e.setAll({width:u.width(),height:h});let t=!0;this._contentHeight<=h&&(t=!1),u.setPrivate("visible",t)}}}_applyThemes(e=!1){return!!super._applyThemes(e)&&(this.eachChildren(t=>{t._applyThemes(e)}),!0)}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren(t=>{t.states.apply(e)})}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(e,t)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let e=this._localBounds;e&&(this._contentWidth=e.right-e.left,this._contentHeight=e.bottom-e.top)}else{let e=this.get("width"),t=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),a={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),n=!1,o=!1;if((r instanceof h["a"]||r instanceof u["a"])&&(n=!0),r instanceof c["a"]&&(o=!0),null==e&&null==i||null==t&&null==s||this.get("verticalScrollbar")){let e=Number.MAX_VALUE,t=e,i=-e,s=e,r=-e;const l=this.get("paddingLeft",0),h=this.get("paddingTop",0),c=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each(e=>{if("absolute"!=e.get("position")&&e.get("isMeasured")){let a=e.adjustedLocalBounds(),l=e.x(),h=e.y(),c=l+a.left,u=l+a.right,d=h+a.top,g=h+a.bottom;n&&(c-=e.get("marginLeft",0),u+=e.get("marginRight",0)),o&&(d-=e.get("marginTop",0),g+=e.get("marginBottom",0)),c<t&&(t=c),u>i&&(i=u),d<s&&(s=d),g>r&&(r=g)}}),t==e&&(t=0),i==-e&&(i=0),s==e&&(s=0),r==-e&&(r=0),a.left=t-l,a.top=s-h,a.right=i+c,a.bottom=r+u;const d=this.get("minWidth");g["e"](d)&&d>0&&a.right-a.left<d&&(a.right>=d?a.left=a.right-d:a.right=a.left+d);const p=this.get("minHeight");g["e"](p)&&p>0&&a.bottom-a.top<p&&(a.bottom>=p?a.top=a.bottom-p:a.bottom=a.top+p)}else;this._contentWidth=a.right-a.left,this._contentHeight=a.bottom-a.top,g["e"](e)&&(a.left=0,a.right=e),g["e"](i)&&(a.left=0,a.right=i),g["e"](t)&&(a.top=0,a.bottom=t),g["e"](s)&&(a.top=0,a.bottom=s),this._localBounds=a}}_updateBounds(){const e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){const e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof h["a"]||i instanceof u["a"])&&(s=!0),i instanceof c["a"]&&(r=!0)),a["c"](this._percentageSizeChildren,i=>{if(!s){let t=i.get("width");t instanceof n["a"]&&i.setPrivate("width",t.value*e)}if(!r){let e=i.get("height");e instanceof n["a"]&&i.setPrivate("height",e.value*t)}}),a["c"](this._percentagePositionChildren,e=>{e.markDirtyPosition(),e.markDirtyBounds()}),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}_updateHTMLContent(){const e=this.get("html");e&&""!==e?this._root._setHTMLContent(this,Object(d["a"])(this,this.get("html",""))):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(e){const t=this.get("verticalScrollbar");if(t){let i=e.y(),s=this.innerHeight(),a=e.height(),r=this._contentHeight,n=1-(s-a/2)/r;if(i+.7*a+this._childrenDisplay.y>s||i-.3*a+this._childrenDisplay.y<0){let e=Math.max(0,Math.min(n,(i-a/2)/r));t.animate({key:"start",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")})}}}_updateChildren(){if(this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const e=this.get("verticalScrollbar");if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",l["a"].new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",t=>{const i=t.originalEvent;if(!p["z"](i,this))return;i.preventDefault();let s=i.deltaY/5e3;const a=e.get("start",0),r=e.get("end",1);a+s<=0&&(s=-a),r+s>=1&&(s=1-r),a+s>=0&&r+s<=1&&(e.set("start",a+s),e.set("end",r+s))}),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",()=>{let t=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-e.get("start",0)*t,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)}),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{const e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();const t=this._childrenDisplay;t.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){const e=this._prevSettings["background"];e&&this._display.removeChild(e._display);const t=this.get("background");t instanceof o["a"]&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){const e=this.get("mask"),t=this._prevSettings["mask"];if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){const t=e.parent;t&&t.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(e=>{e._processTemplateField()})}walkChildren(e){this.children.each(t=>{t instanceof b&&t.walkChildren(e),e(t)})}eachChildren(e){const t=this.get("background");t&&e(t);const i=this.get("verticalScrollbar");i&&e(i);const s=this.get("mask");s&&e(s),this.children.values.forEach(t=>{e(t)})}allChildren(){const e=[];return this.eachChildren(t=>{e.push(t)}),e}_setDataItem(e){const t=e!==this._dataItem;super._setDataItem(e);const i=this.get("html","");i&&""!==i&&t&&this._root._setHTMLContent(this,Object(d["a"])(this,i))}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:o["a"].classNames.concat([b.className])})},"9dc0":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("acdc"),a=i("be4b"),r=i("e28a"),n=i("842e"),o=i("5f47");class l extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:o["a"].new(this._root,{width:a["c"],isMeasured:!1,themeTags:["axis","x","thumb"]})})}_afterNew(){this._settings.themeTags=n["C"](this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const e=this.grid.template;e.set("height",a["c"]),e.set("width",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)})}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("x",-1e3);const t="opposite",i="inside";if(this.isDirty(t)||this.isDirty(i)){const s=this.chart,a=e.children;if(this.get(i)?e.addTag(i):e.removeTag(i),s){if(this.get(t)){const i=s.topAxesContainer.children;-1==i.indexOf(e)&&i.insertIndex(0,e),e.addTag(t),a.moveValue(this)}else{const i=s.bottomAxesContainer.children;-1==i.indexOf(e)&&i.moveValue(e),e.removeTag(t),a.moveValue(this,0)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,e=this.get("inversed")?i-e:t+e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e=e/(i-t)*this._lc,e+=this._ls,e}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerWidth();this._lc=this.axisLength()/i,this._ls=(e.x()-t.get("paddingLeft",0))/i}}_updatePositions(){const e=this.axis,t=e.x()-n["F"](e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginLeft",0),r=e.x()-a;const n=e.parent;n&&(r-=n.get("paddingLeft",0)),s.children.length>0?(a=e.axisHeader.width(),e.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:r,y:-1,height:t.height()+2})}}processAxis(){super.processAxis();const e=this.axis;null==e.get("width")&&e.set("width",a["c"]);const t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",a["c"]),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,i,s){if(e){r["e"](t)||(t=0);let n=.5;n=r["e"](s)&&s>1?e.get("multiLocation",n):e.get("location",n),r["e"](i)&&i!=t&&(t+=(i-t)*n),e.set("x",this.positionToCoordinate(t));let o=e.get("length",0);const l=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",a["c"]),l||(o*=-1)):(e.set("y",0),l&&(o*=-1)),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,o)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,i,s){if(e){let n=.5;n=r["e"](s)&&s>1?e.get("multiLocation",n):e.get("location",n),r["e"](t)||(t=0);const o=e.get("inside",this.get("inside",!1)),l=this.get("opposite");l?o?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",a["c"])):o?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),r["e"](i)&&i!=t&&(t+=(i-t)*n),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){r["e"](t)||(t=0);let s=e.get("location",.5);r["e"](i)&&i!=t&&(t+=(i-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){r["e"](t)||(t=0);let a=e.get("location",.5);r["e"](i)&&i!=t&&(t+=(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],l=-1;if(this.get("opposite")&&(l=1),e.get("stacked"))if(o){let e=o.get("sprite");e&&s.set("y",e.y()+e.height()*l)}else s.set("y",0);this.axis._bullets[n]=e,s.set("x",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){r["e"](t)||(t=0),r["e"](i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.height(),a=this.width();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(t,0),e.lineTo(i,0),e.lineTo(i,s),e.lineTo(t,s),e.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,r=0,o=this.axisLength(),l=i,h="up";this.get("opposite")?t?(h="up",r=s.y,l=i):(h="down",r=s.y-i,l=i):t?(h="down",r=s.y-i,l=i):(h="up",r=s.y,l=i);const c={left:a,right:a+o,top:r,bottom:r+l},u=e.get("bounds");n["I"](c,u)||(e.set("bounds",c),e.set("pointerOrientation",h))}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererX"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([l.className])})},a2bf:function(e,t,i){"use strict";var s=i("e8b5"),a=i("50c4"),r=i("0366"),n=function(e,t,i,o,l,h,c,u){var d,g=l,p=0,b=!!c&&r(c,u,3);while(p<o){if(p in i){if(d=b?b(i[p],p,t):i[p],h>0&&s(d))g=n(e,t,d,a(d.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[g]=d}g++}p++}return g};e.exports=n},a518:function(e,t,i){"use strict";var s=i("4c2d");i.d(t,"a",(function(){return s}))},a6df:function(e,t,i){"use strict";i.d(t,"a",(function(){return p}));var s=i("15f8"),a=i("9d71"),r=i("be4b"),n=i("bf67"),o=i("5f47"),l=i("1eae"),h=i("e28a"),c=i("842e");class u extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_series",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isPanning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"minorDataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a["a"].new(this._root,{}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].new(this._root,{width:r["c"],height:r["c"]})}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].new(this._root,{width:r["c"],height:r["c"]})}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a["a"].new(this._root,{isMeasured:!1,width:r["c"],height:r["c"],position:"absolute"}))}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rangesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_panStart",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_panEnd",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_sAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipSync",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new n["a"]}),Object.defineProperty(this,"_seriesAxisRanges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"ghostLabel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_snapToSeries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_seriesValuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesAdded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisHeader",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a["a"].new(this._root,{themeTags:["axis","header"],position:"absolute",background:o["a"].new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})}))}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)l["c"](e.oldValues,e=>{this.disposeDataItem(e)});else if("push"===e.type)this._processAxisRange(e.newValue,["range"]);else if("setIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("insertIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("removeIndex"===e.type)this.disposeDataItem(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value,["range"])}}));const e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this.ghostLabel=e.makeLabel(new s["b"](this,void 0,{}),[]),this.ghostLabel.adapters.disable("text"),this.ghostLabel.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),this.ghostLabel.events.disable()}_updateFinals(e,t){}zoom(e,t,i,s){if(this.get("zoomable",!0))if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let a=this._sAnimation,r=this._eAnimation,n=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-n&&(e=-n),t>1+n&&(t=1+n),e>t&&([e,t]=[t,e]),h["e"](i)||(i=this.get("interpolationDuration",0)),s||(s="end");let o=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),l=o;1===t&&0!==e&&(s=e<this.get("start",0)?"start":"end"),0===e&&1!==t&&(s=t>this.get("end",1)?"end":"start");let c=this.get("minZoomCount",0),u=this.get("maxZoomCount",1/0);h["e"](c)&&(o=l/c);let d=1;if(h["e"](u)&&(d=l/u),"start"===s?(u>0&&1/(t-e)<d&&(t=e+1/d),1/(t-e)>o&&(t=e+1/o),t>1&&t-e<1/o&&(e=t-1/o)):(u>0&&1/(t-e)<d&&(e=t-1/d),1/(t-e)>o&&(e=t-1/o),e<0&&t-e<1/o&&(t=e+1/o)),1/(t-e)>o&&(t=e+1/o),1/(t-e)>o&&(e=t-1/o),null!=u&&null!=c&&e==this.get("start")&&t==this.get("end")){const e=this.chart;e&&e._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==e||this.get("start")==e)&&(r&&r.playing&&r.to==t||this.get("end")==t))return;if(i>0){let s,a,r=this.get("interpolationEasing");if(this.get("start")!=e&&(s=this.animate({key:"start",to:e,duration:i,easing:r})),this.get("end")!=t&&(a=this.animate({key:"end",to:t,duration:i,easing:r})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",e),this.set("end",t)}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);const i=e.get("above"),s=this.topGridContainer,a=e.get("grid");i&&a&&s.children.moveValue(a);const r=e.get("axisFill");i&&r&&s.children.moveValue(r)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),l["c"](this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){if(super._prepareChildren(),this.get("fixAxisSize")?this.ghostLabel.set("visible",!0):this.ghostLabel.set("visible",!1),this.isDirty("start")||this.isDirty("end")){const e=this.chart;e&&e._updateCursor();let t=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-t);if(t<-s){let e=t+s;t=-s,this.setRaw("start",t),this.isDirty("end")&&this.setRaw("end",i-e)}if(i>1+s){let e=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",t-e)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",c["C"](t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;const t=this.get("renderer");t.chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){const i="forceHidden",s=e.get("label");s&&s.set(i,t);const a=e.get("grid");a&&a.set(i,t);const r=e.get("tick");r&&r.set(i,t);const n=e.get("axisFill");n&&n.set(i,t);const o=e.get("bullet");if(o){const e=o.get("sprite");e&&e.set(i,t)}}_toggleDataItem(e,t){const i=e.get("label"),s="visible";i&&i.setPrivate(s,t);const a=e.get("grid");a&&a.setPrivate(s,t);const r=e.get("tick");r&&r.setPrivate(s,t);const n=e.get("axisFill");n&&n.setPrivate(s,t);const o=e.get("bullet");if(o){const e=o.get("sprite");e&&e.setPrivate(s,t)}}_createAssets(e,t,i){var s,a,r;const n=this.get("renderer");let o="minor";const l=e.get("label");if(l){let a=l.get("themeTags"),r=!1;i?-1==(null===a||void 0===a?void 0:a.indexOf(o))&&(r=!0):-1!=(null===a||void 0===a?void 0:a.indexOf(o))&&(r=!0),r&&(null===(s=l.parent)||void 0===s||s.children.removeValue(l),n.makeLabel(e,t),l.dispose(),n.labels.removeValue(l))}else n.makeLabel(e,t);const h=e.get("grid");if(h){let s=h.get("themeTags"),r=!1;i?-1==(null===s||void 0===s?void 0:s.indexOf(o))&&(r=!0):-1!=(null===s||void 0===s?void 0:s.indexOf(o))&&(r=!0),r&&(null===(a=h.parent)||void 0===a||a.children.removeValue(h),n.makeGrid(e,t),h.dispose(),n.grid.removeValue(h))}else n.makeGrid(e,t);const c=e.get("tick");if(c){let s=!1,a=c.get("themeTags");i?-1==(null===a||void 0===a?void 0:a.indexOf(o))&&(s=!0):-1!=(null===a||void 0===a?void 0:a.indexOf(o))&&(s=!0),s&&(null===(r=c.parent)||void 0===r||r.children.removeValue(c),n.makeTick(e,t),c.dispose(),n.ticks.removeValue(c))}else n.makeTick(e,t);i||e.get("axisFill")||n.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),i=this.get("bullet");if(t||!i||e.get("isRange")||(t=i(this._root,this,e)),t){t.axis=this;const i=t.get("sprite");i&&(i._setDataItem(e),e.setRaw("bullet",t),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(e){super.disposeDataItem(e);const t=this.get("renderer"),i=e.get("label");i&&(t.labels.removeValue(i),i.dispose());const s=e.get("tick");s&&(t.ticks.removeValue(s),s.dispose());const a=e.get("grid");a&&(t.grid.removeValue(a),a.dispose());const r=e.get("axisFill");r&&(t.axisFills.removeValue(r),r.dispose());const n=e.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const e=this.ghostLabel;if(!e.isHidden()){const t=e.localBounds(),i=Math.ceil(t.right-t.left);let s=e.get("text");l["c"](this.dataItems,e=>{const t=e.get("label");if(t&&!t.isHidden()){const e=t.localBounds(),a=Math.ceil(e.right-e.left);a>i&&(s=t.text._getText())}}),e.set("text",s)}let t=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(e,t+.5*(i-t))}_handleCursorPosition(e,t){const i=this.get("renderer");e=i.toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){const e=this._snapToSeries;let t=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");h["e"](t)&&(l["c"](this.series,i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,t,this.get("tooltipLocation"));e&&-1!=e.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}}),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",t),i&&(s.updateTooltipBounds(i),h["d"](t)?i.hide(0):(this._updateTooltipText(i,t),s.positionTooltip(i,t),t<this.get("start",0)||t>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){const t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,i,s){return!1}createAxisRange(e){return this.axisRanges.push(e)}_groupSeriesData(e){}getCellWidthPosition(){return.05}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Axis"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([u.className])});var d=i("9197"),g=i("48ef");class p extends u{constructor(){super(...arguments),Object.defineProperty(this,"_dirtyExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirtySelectionExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dseHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_deltaMinMax",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_minReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_maxReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minRealLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseValue",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_syncDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minLogAdjusted",{enumerable:!0,configurable:!0,writable:!0,value:1})}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=c["C"](this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){if(super._prepareChildren(),this.isDirty("syncWithAxis")){let e=this._prevSettings.syncWithAxis;e&&this._syncDp&&this._syncDp.dispose();let t=this.get("syncWithAxis");t&&(this._syncDp=new d["e"]([t.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),t.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,this.ghostLabel.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const e=this.chart;let t=!1;if(e){const i=this.get("renderer").getPrivate("letter");"Y"==i?e.xAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)}):"X"==i&&e.yAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)})}t&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0)}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(e){const t=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=t?i.format(e,t):i.format(e,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(h["e"](e)&&h["e"](t)){const t=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),r=this.getPrivate("selectionMax")+i;let n=a-i,o=1,c=e;if(t){if(n=this._minLogAdjusted,n<a)while(n<a)n+=i;c=n,c<=0&&(c=1,i<1&&(c=h["e"](this._minRealLog)?this._minRealLog:Math.pow(10,-50))),o=Math.log(r-i)*Math.LOG10E-Math.log(c)*Math.LOG10E,o>2&&(n=Math.pow(10,Math.log(c)*Math.LOG10E-50))}const u=this.get("renderer"),d=u.get("minorLabelsEnabled"),p=u.get("minorGridEnabled",d);let b=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const m=Math.round(i/b);let f=2;g["m"](m/5,10)%1==0&&(f=5),g["m"](m/10,10)%1==0&&(f=10);let _=i/f,v=0,y=0,x=-1/0;while(n<r){let e;this.dataItems.length<v+1?(e=new s["b"](this,void 0,{}),this._dataItems.push(e),this.processDataItem(e)):e=this.dataItems[v],this._createAssets(e,[]),this._toggleDataItem(e,!0),e.setRaw("value",n);const a=e.get("label");a&&a.set("text",this._formatText(n)),this._prepareDataItem(e);let r=n;if(t&&o>2?r=Math.pow(10,Math.log(c)*Math.LOG10E+v-50):r+=i,p){let e=n+_;if(t){if(o>2){let e=this._adjustMinMax(n,r,10);_=e.step}e=n+_}while(e<r-1e-11*i){let t;this.minorDataItems.length<y+1?(t=new s["b"](this,void 0,{}),this.minorDataItems.push(t),this.processDataItem(t)):t=this.minorDataItems[y],this._createAssets(t,["minor"],!0),this._toggleDataItem(t,!0),t.setRaw("value",e);const i=t.get("label");i&&(d?i.set("text",this._formatText(e)):i.setPrivate("visible",!1)),this._prepareDataItem(t),e+=_,y++}}if(n=r,x==n)break;let l=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));if(l<1&&!t){let e=Math.round(Math.abs(Math.log(Math.abs(l))*Math.LOG10E))+2;n=g["m"](n,e)}v++,x=n}for(let e=v;e<this.dataItems.length;e++)this._toggleDataItem(this.dataItems[e],!1);for(let e=y;e<this.minorDataItems.length;e++)this._toggleDataItem(this.minorDataItems[e],!1);l["c"](this.series,e=>{e.inited&&e._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let i=this.get("renderer"),s=e.get("value"),a=e.get("endValue"),r=this.valueToPosition(s),n=r,o=this.valueToPosition(s+this.getPrivate("step"));h["e"](a)&&(n=this.valueToPosition(a),o=n),e.get("isRange")&&null==a&&(o=r);let l=n,c=e.get("labelEndValue");null!=c&&(l=this.valueToPosition(c)),i.updateLabel(e.get("label"),r,l,t);const u=e.get("grid");if(i.updateGrid(u,r,n),u&&(s==this.get("baseValue",0)?(u.addTag("base"),u._applyThemes()):u.hasTag("base")&&(u.removeTag("base"),u._applyThemes())),i.updateTick(e.get("tick"),r,l,t),i.updateFill(e.get("axisFill"),r,o),this._processBullet(e),i.updateBullet(e.get("bullet"),r,n),!e.get("isRange")){const t=this.get("fillRule");t&&t(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(e,t,i,!0),a=c["g"](s.step);this.setPrivateRaw("stepDecimalPlaces",a),e=g["m"](e,a),t=g["m"](t,a),s=this._adjustMinMax(e,t,i,!0);let r=s.step;e=s.min,t=s.max,this.getPrivate("selectionMin")===e&&this.getPrivate("selectionMax")===t&&this.getPrivate("step")===r||(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",r))}positionToValue(e){const t=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(i-t)+t}valueToPosition(e){const t=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");h["e"](t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}valueToFinalPosition(e){const t=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");h["e"](t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}getX(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getY(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionX(e,t,i,s){let a=e.get(t);const r=e.get("stackToItemX");if(r){const i=e.component;a=a*s+i.getStackedXValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t);const r=e.get("stackToItemY");if(r){const i=e.component;a=a*s+i.getStackedYValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return i<e&&(i=e),i>t&&(i=t),i}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let i,s,a=e.endIndex();a<e.dataItems.length&&a++,e.get("yAxis")==this?(i="valueY",s="vcy"):e.get("xAxis")==this&&(i="valueX",s="vcx");let r=i+"Working";if(i)for(let e=t;e<a;e++){let t=0,a=0;l["c"](this.series,i=>{if(!i.get("excludeFromTotal")){let n=i.dataItems[e];if(n){let e=n.get(r)*i.get(s);h["d"](e)||(t+=e,a+=Math.abs(e))}}}),l["c"](this.series,n=>{if(!n.get("excludeFromTotal")){let o=n.dataItems[e];if(o){let e=o.get(r)*n.get(s);h["d"](e)||(o.set(i+"Total",a),o.set(i+"Sum",t),o.set(i+"TotalPercent",e/a*100))}}})}}}}}_getSelectionMinMax(){const e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),r=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(r=.2));const n=this.get("renderer").gridCount(),o=this.get("strictMinMaxSelection");let c=this.get("strictMinMax");if(h["e"](e)&&h["e"](t)){let u=t,d=e;if(l["c"](this.series,e=>{if(!e.get("ignoreMinMax")){let t,i;const s=e.getPrivate("outOfSelection");if(e.get("xAxis")===this){if(!s){let s=e.getPrivate("minX"),a=e.getPrivate("maxX");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinX",s),i=e.getPrivate("selectionMaxX",a)}}else if(e.get("yAxis")===this&&!s){let s=e.getPrivate("minY"),a=e.getPrivate("maxY");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinY",s),i=e.getPrivate("selectionMaxY",a)}e.isHidden()||e.isShowing()||(h["e"](t)&&(u=Math.min(u,t)),h["e"](i)&&(d=Math.max(d,i)))}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(u=Math.min(u,t),d=Math.max(d,t)),t=e.get("endValue"),null!=t&&(u=Math.min(u,t),d=Math.max(d,t))}}),u>d&&([u,d]=[d,u]),h["e"](i)?u=c?i:e:c&&h["e"](this._minReal)&&(u=this._minReal),h["e"](s)?d=c?s:t:c&&h["e"](this._maxReal)&&(d=this._maxReal),u===d){let t=u;if(u-=this._deltaMinMax,d+=this._deltaMinMax,u<e){let i=t-e;0==i&&(i=this._deltaMinMax),u=t-i,d=t+i,c=!0}let i=this._adjustMinMax(u,d,n,c);u=i.min,d=i.max}let p=u,b=d,m=d-u;u-=m*a,d+=m*r;let f=this._adjustMinMax(u,d,n);u=f.min,d=f.max,u=g["f"](u,e,t),d=g["f"](d,e,t),f=this._adjustMinMax(u,d,n,!0),c||(u=f.min,d=f.max);const _=this.get("syncWithAxis");if(_&&(f=this._syncAxes(u,d,f.step,_.getPrivate("selectionMinFinal",_.getPrivate("minFinal",0)),_.getPrivate("selectionMaxFinal",_.getPrivate("maxFinal",1)),_.getPrivate("selectionStepFinal",_.getPrivate("step",1))),f.min<e&&(f.min=e),f.max>t&&(f.max=t),u=f.min,d=f.max),c&&(h["e"](i)&&(u=Math.max(u,i)),h["e"](s)&&(d=Math.min(d,s))),o&&(u=p-(b-p)*a,d=b+(b-p)*r),c){u=h["e"](i)?i:p,d=h["e"](s)?s:b,d-u<=1e-8&&(u-=this._deltaMinMax,d+=this._deltaMinMax);let e=d-u;u-=e*a,d+=e*r}this.get("logarithmic")&&(u<=0&&(u=p*(1-Math.min(a,.99))),u<e&&(u=e),d>t&&(d=t));let v=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),y=g["m"](this.valueToFinalPosition(u),v),x=g["m"](this.valueToFinalPosition(d),v);this.setPrivateRaw("selectionMinFinal",u),this.setPrivateRaw("selectionMaxFinal",d),this.setPrivateRaw("selectionStepFinal",f.step),this.zoom(y,x)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),r=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(r=.2));let n=1/0;if(l["c"](this.series,e=>{if(!e.get("ignoreMinMax")){let t,a;if(e.get("xAxis")===this?(t=e.getPrivate("minX"),a=e.getPrivate("maxX")):e.get("yAxis")===this&&(t=e.getPrivate("minY"),a=e.getPrivate("maxY")),h["e"](t)&&h["e"](a)){i=Math.min(i,t),s=Math.max(s,a);let e=a-t;e<=0&&(e=Math.abs(a/100)),e<n&&(n=e)}}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(i=Math.min(i,t),s=Math.max(s,t)),t=e.get("endValue"),null!=t&&(i=Math.min(i,t),s=Math.max(s,t))}}),this.get("logarithmic")){let e=this.get("treatZeroAs");h["e"](e)&&i<=0&&(i=e),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),h["e"](e)&&(i=e),h["e"](t)&&(s=t),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const o=i,c=s;let u=this.adapters.fold("min",i),d=this.adapters.fold("max",s);this._minRealLog=i,h["e"](u)&&(i=u),h["e"](d)&&(s=d),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*r,this.get("logarithmic")&&(i<0&&o>=0&&(i=0),s>0&&c<=0&&(s=0)),this._minReal=i,this._maxReal=s;let p=this.get("strictMinMax"),b=this.get("strictMinMaxSelection",!1);b&&(p=b);let m=p;h["e"](t)&&(m=!0);let f=this.get("renderer").gridCount(),_=this._adjustMinMax(i,s,f,m);if(i=_.min,s=_.max,_=this._adjustMinMax(i,s,f,!0),i=_.min,s=_.max,p){i=h["e"](e)?e:this._minReal,s=h["e"](t)?t:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let n=s-i;i-=n*a,s+=n*r}u=this.adapters.fold("min",i),d=this.adapters.fold("max",s),h["e"](u)&&(i=u),h["e"](d)&&(s=d),n==1/0&&(n=s-i);let v=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=g["m"](i,v),s=g["m"](s,v);const y=this.get("syncWithAxis");if(y&&(_=this._syncAxes(i,s,_.step,y.getPrivate("minFinal",y.getPrivate("min",0)),y.getPrivate("maxFinal",y.getPrivate("max",1)),y.getPrivate("step",1)),i=_.min,s=_.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/n*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=o*(1-Math.min(a,.99)))),h["e"](i)&&h["e"](s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const e=this.get("interpolationDuration",0),t=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:e,easing:t}),this.animatePrivate({key:"max",to:s,duration:e,easing:t})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,i=Math.pow(10,Math.floor(t));i/=10,this._deltaMinMax=i}_saveMinMax(e,t){}_adjustMinMax(e,t,i,s){i<=1&&(i=1),i=Math.round(i);let a=e,r=t,n=t-e;0===n&&(n=Math.abs(t));let o=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l/=10;let c=l;s&&(c=0),s?(e=Math.floor(e/l)*l,t=Math.ceil(t/l)*l):(e=Math.ceil(e/l)*l-c,t=Math.floor(t/l)*l+c),e<0&&a>=0&&(e=0),t>0&&r<=0&&(t=0),o=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(o)),l/=100;let u=Math.ceil(n/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),p=Math.ceil(u/d);p>5?p=10:p<=5&&p>2&&(p=5),u=Math.ceil(u/(d*p))*d*p;let b=this.get("maxPrecision");if(h["e"](b)){let e=g["d"](u,b);b<Number.MAX_VALUE&&u!==e&&(u=e,0==u&&(u=1))}let m=0;d<1&&(m=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,u=g["m"](u,m));let f,_=Math.floor(e/u);return e=g["m"](u*_,m),f=s?Math.floor(t/u):Math.ceil(t/u),f===_&&f++,t=g["m"](u*f,m),t<r&&(t+=u),e>a&&(e-=u),u=this.fixSmallStep(u),{min:e,max:t,step:u}}getTooltipText(e,t){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),r=this.getPrivate("stepDecimalPlaces",0)+a,n=g["m"](this.positionToValue(e),r);return i?s.format(n,i):s.format(n,void 0,r)}getSeriesItem(e,t){let i,s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=this.positionToValue(t),r=void 0;if(l["c"](e.dataItems,(e,t)=>{const n=Math.abs(e.get(s)-a);(void 0===r||n<i)&&(r=t,i=n)}),null!=r)return e.dataItems[r]}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",0),a=this.getPrivate("maxFinal",0);null!=this.getPrivate("min")&&null!=this.getPrivate("max")&&this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}_syncAxes(e,t,i,s,a,r){let n=this.get("syncWithAxis");if(n){let n=Math.round(a-s)/r,o=Math.round((t-e)/i),l=this.get("renderer").gridCount();if(h["e"](n)&&h["e"](o)){let s=!1,a=0,r=.01*(t-e),o=e,h=t,c=i;while(1!=s)if(s=this._checkSync(o,h,c,n),a++,a>500&&(s=!0),s)e=o,t=h,i=c;else{a/3==Math.round(a/3)?(o=e-r*a,e>=0&&o<0&&(o=0)):(h=t+r*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(o,h,l,!0);o=i.min,h=i.max,c=i.step}}}return{min:e,max:t,step:i}}_checkSync(e,t,i,s){let a=(t-e)/i;for(let r=1;r<s;r++)if(g["m"](a/r,1)==s||a*r==s)return!0;return!1}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return h["e"](e)&&h["e"](t)?this.getPrivate("step",1)/(e-t):.05}nextPosition(e){null==e&&(e=1),"Y"==this.get("renderer").getPrivate("letter")&&(e*=-1);let t=this.positionToValue(this.getPrivate("tooltipPosition",0));return t+=this.getPrivate("step",1)*e,t=g["f"](t,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(t))}}Object.defineProperty(p,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ValueAxis"}),Object.defineProperty(p,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:u.classNames.concat([p.className])})},ab1a:function(e,t,i){"use strict";function s(e,t){let i=0,s=0,a=1,r=0,n=0,o=0,l=0,h=0;return e.formatToParts(t).forEach(e=>{switch(e.type){case"year":i=+e.value;break;case"month":s=+e.value-1;break;case"day":a=+e.value;break;case"hour":r=+e.value;break;case"minute":n=+e.value;break;case"second":o=+e.value;break;case"fractionalSecond":l=+e.value;break;case"weekday":switch(e.value){case"Sun":h=0;break;case"Mon":h=1;break;case"Tue":h=2;break;case"Wed":h=3;break;case"Thu":h=4;break;case"Fri":h=5;break;case"Sat":h=6;break}}}),24===r&&(r=0),{year:i,month:s,day:a,hour:r,minute:n,second:o,millisecond:l,weekday:h}}function a(e,t){const{year:i,month:a,day:r,hour:n,minute:o,second:l,millisecond:h}=s(e,t);return Date.UTC(i,a,r,n,o,l,h)}i.d(t,"a",(function(){return r}));class r{constructor(e,t){if(Object.defineProperty(this,"_utc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dtf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("UTC",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("UTC",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){const t=this.offsetUTC(e),i=e.getTimezoneOffset(),s=new Date(e);s.setUTCMinutes(s.getUTCMinutes()-(t-i));const a=s.getTimezoneOffset();return i!=a&&s.setUTCMinutes(s.getUTCMinutes()+a-i),s}offsetUTC(e){const t=a(this._utc,e),i=a(this._dtf,e);return(t-i)/6e4}parseDate(e){return s(this._dtf,e)}}},acdc:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("841d"),a=i("c95f"),r=i("bf67"),n=i("ccf7");class o extends n["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n["a"].classNames.concat([o.className])});class l extends s["a"]{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([l.className])});var h=i("bd57");class c extends h["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:h["a"].classNames.concat([c.className])});var u=i("842e");class d extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r["c"](a["a"].new({}),()=>o._new(this._root,{themeTags:u["C"](this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r["c"](a["a"].new({}),()=>l._new(this._root,{themeTags:u["C"](this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r["c"](a["a"].new({}),()=>s["a"]._new(this._root,{themeTags:u["C"](this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r["c"](a["a"].new({}),()=>c._new(this._root,{themeTags:u["C"](this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",u["C"](i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){const i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",u["C"](i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){const i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",u["C"](i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){const i=this.labels.make();return i.set("themeTags",u["C"](i.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(e.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(e.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?t.children.push(e):"none"==i&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const i=this.toLocal(e.point),s=this._downStart,a=this._downEnd,r=this._getPan(i,t)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-r,a+r,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e*=i-t,e=this.get("inversed")?i-e:t+e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e/=i-t,e}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,s){let a=this.axis;const r=a.get("start",0),n=a.get("end",1);let o=r+(n-r)*(i-1e-4),l=r+(n-r)*(s+1e-4);t<o||t>l?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([d.className])})},b595:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));class s{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.10.7"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}const a=new s},b88e:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("86d1"),a=i("e28a"),r=i("be4b");class n extends s["a"]{updateContainer(e){let t=e.get("paddingTop",0),i=e.innerHeight(),n=0;Object(s["b"])(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof r["a"]){n+=t.value;let s=i*t.value,a=e.get("minHeight",e.getPrivate("minHeight",-1/0));a>s&&(i-=a,n-=t.value);let r=e.get("maxHeight",e.getPrivate("maxHeight",1/0));s>r&&(i-=r,n-=t.value)}else a["e"](t)||(t=e.height()),i-=t+e.get("marginTop",0)+e.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),Object(s["b"])(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof r["a"]){let s=i*t.value/n-e.get("marginTop",0)-e.get("marginBottom",0),a=e.get("minHeight",e.getPrivate("minHeight",-1/0)),r=e.get("maxHeight",e.getPrivate("maxHeight",1/0));s=Math.min(Math.max(a,s),r),e.setPrivate("height",s)}else e._prevSettings.height instanceof r["a"]&&e.setPrivate("height",void 0)}});let o=t;Object(s["b"])(e,e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginTop",0),s=t.top,a=t.bottom,r=e.get("maxHeight");r&&a-s>r&&(a=s+r);let n=e.get("marginBottom",0),l=o+i-s;e.setPrivate("y",l),o=l+a+n}else e.setPrivate("y",void 0)})}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([n.className])})},b920:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("841d"),a=i("48ef");class r extends s["a"]{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let i=this.get("cornerRadius",8);i=a["f"](i,0,Math.min(e/2,t/2));let s=this.get("pointerX",0),r=this.get("pointerY",0),n=this.get("pointerBaseWidth",15)/2,o=0,l=0,h=e,c=0,u=e,d=t,g=0,p=t,b=(s-o)*(d-l)-(r-l)*(u-o),m=(s-g)*(c-p)-(r-p)*(h-g);const f=this._display;if(f.moveTo(i,0),b>0&&m>0){let t=Math.round(a["f"](s,i+n,e-n-i));r=a["f"](r,-1/0,0),f.lineTo(t-n,0),f.lineTo(s,r),f.lineTo(t+n,0)}if(f.lineTo(e-i,0),f.arcTo(e,0,e,i,i),b>0&&m<0){let o=Math.round(a["f"](r,i+n,t-n-i));s=a["f"](s,e,1/0),f.lineTo(e,i),f.lineTo(e,Math.max(o-n,i)),f.lineTo(s,r),f.lineTo(e,o+n)}if(f.lineTo(e,t-i),f.arcTo(e,t,e-i,t,i),b<0&&m<0){let o=Math.round(a["f"](s,i+n,e-n-i));r=a["f"](r,t,1/0),f.lineTo(e-i,t),f.lineTo(o+n,t),f.lineTo(s,r),f.lineTo(o-n,t)}if(f.lineTo(i,t),f.arcTo(0,t,0,t-i,i),b<0&&m>0){let e=Math.round(a["f"](r,i+n,t-i-n));s=a["f"](s,-1/0,0),f.lineTo(0,t-i),f.lineTo(0,e+n),f.lineTo(s,r),f.lineTo(0,Math.max(e-n,i))}f.lineTo(0,i),f.arcTo(0,0,i,0,i),f.closePath()}}}}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PointedRectangle"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([r.className])})},bd308:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("acdc"),a=i("be4b"),r=i("e28a"),n=i("842e"),o=i("5f47");class l extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:o["a"].new(this._root,{height:a["c"],isMeasured:!1,themeTags:["axis","y","thumb"]})})}_afterNew(){this._settings.themeTags=n["C"](this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const e=this.grid.template;e.set("width",a["c"]),e.set("height",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("y",-1e3);const t=this.thumb,i="opposite",s="inside",a=this.chart;if(this.isDirty(i)||this.isDirty(s)){const t=e.children;if(this.get(s)?e.addTag(s):e.removeTag(s),a){if(this.get(i)){const s=a.rightAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e,0),e.addTag(i),t.moveValue(this,0)}else{const s=a.leftAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e),e.removeTag(i),t.moveValue(this)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();a&&(this.get(i)?t.set("centerX",0):t.set("centerX",r)),t.setPrivate("width",r)}processAxis(){super.processAxis();const e=this.axis;null==e.get("height")&&e.set("height",a["c"]);const t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",a["c"]),e.axisHeader.set("layout",t)}_updatePositions(){const e=this.axis,t=e.y()-n["F"](e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginTop",0);s.children.length>0?(a=e.axisHeader.height(),e.set("marginTop",a+1)):s.set("height",a),s.setAll({y:e.y()-a,x:-1,width:t.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,i,s){if(e){r["e"](t)||(t=0);let a=.5;a=r["e"](s)&&s>1?e.get("multiLocation",a):e.get("location",a);const n=this.get("opposite"),o=e.get("inside",this.get("inside",!1));n?(e.set("x",0),o?e.set("position","absolute"):e.set("position","relative")):o?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),r["e"](i)&&i!=t&&(t+=(i-t)*a),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){r["e"](t)||(t=0);let s=e.get("location",.5);r["e"](i)&&i!=t&&(t+=(i-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,i,s){if(e){r["e"](t)||(t=0);let a=.5;a=r["e"](s)&&s>1?e.get("multiLocation",a):e.get("location",a),r["e"](i)&&i!=t&&(t+=(i-t)*a),e.set("y",this.positionToCoordinate(t));let n=e.get("length",0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),o&&(n*=-1)):o||(n*=-1),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(n,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){r["e"](t)||(t=0);let a=e.get("location",.5);r["e"](i)&&i!=t&&(t+=(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],l=1;if(this.get("opposite")&&(l=-1),e.get("stacked"))if(o){let e=o.get("sprite");e&&s.set("x",e.x()+e.width()*l)}else s.set("x",0);this.axis._bullets[n]=e,s.set("y",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){r["e"](t)||(t=0),r["e"](i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.width(),a=this.height();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(0,t),e.lineTo(s,t),e.lineTo(s,i),e.lineTo(0,i),e.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,r=0,o=this.axisLength(),l=i,h="right";this.get("opposite")?t?(h="right",r=s.x-i,l=i):(h="left",r=s.x,l=i):t?(h="left",r=s.x,l=i):(h="right",r=s.x-i,l=i);const c={left:r,right:r+l,top:a,bottom:a+o},u=e.get("bounds");n["I"](c,u)||(e.set("bounds",c),e.set("pointerOrientation",h))}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerHeight();this._lc=this.axisLength()/i,this._ls=e.y()/i}}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,e=this.get("inversed")?t+e:i-e,e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e-=t:e=i-e,e=e/(i-t)*this._lc,e+=this._ls,e}fixPosition(e){return this.get("inversed")?e:1-e}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererY"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([l.className])})},bd57:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("95f3"),a=i("be4b"),r=i("9d71"),n=i("1eae"),o=i("e28a");class l extends r["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),n["c"](this._textKeys,e=>{const t=this.get(e);void 0!=t&&this._text.set(e,t)}),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(s["a"].new(this._root,{}))}_updateChildren(){super._updateChildren();const e=this._text;if(n["c"](this._textKeys,e=>{this._text.set(e,this.get(e))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?e.set("text",""):(e.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const t=this.get("textAlign");let i;null!=this.get("width")?i="right"==t?a["c"]:"center"==t?a["d"]:0:"left"==t||"start"==t?i=this.get("paddingLeft",0):"right"!=t&&"end"!=t||(i=-this.get("paddingRight",0)),e.set("x",i)}const t=this.get("background");t&&t.setPrivate("visible",e._display.textVisible)}_maybeUpdateHTMLColor(){const e=this.getPrivate("htmlElement");e&&this.get("fill")&&(e.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const e=this.get("rotation"),t=90==e||270==e||-90==e,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));o["e"](s)?i.set(t?"maxHeight":"maxWidth",s-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(t?"maxHeight":"maxWidth",void 0);const a=this.get("maxHeight",this.getPrivate("maxHeight",1/0));o["e"](a)?i.set(t?"maxWidth":"maxHeight",a-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(t?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text");const t=this._text;t.get("populateText")&&t.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r["a"].classNames.concat([l.className])})},bdb1:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("95f3"),a=i("48ef");class r extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*a["c"],this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([r.className])})},bdee:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("15f8"),a=i("a6df"),r=i("e28a"),n=i("48ef"),o=i("2180"),l=i("1eae"),h=i("0109"),c=i("842e"),u=i("cc0e");class d extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesDataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_groupingCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_intervalDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_baseDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_intervalMax",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_intervalMin",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_afterNew(){this._settings.themeTags=c["C"](this._settings.themeTags,["axis"]),super._afterNew(),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(e){this.setPrivateRaw("baseInterval",e),this._baseDuration=u["e"](e)}_fixZoomFactor(){const e=this.get("maxZoomFactor");null!=e&&e!=1/0?this.setPrivateRaw("maxZoomFactor",e):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(r["e"](e)&&r["e"](t)){this._fixZoomFactor();const e=this.getPrivate("groupInterval");if(e?this._setBaseInterval(e):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let e=this.get("groupInterval");e&&(this.setRaw("groupIntervals",[e]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))l["c"](this.series,e=>{this._groupSeriesData(e)}),this._handleRangeChange();else{let e=this.get("baseInterval"),t=e.timeUnit+e.count;l["c"](this.series,e=>{e.setDataSet(t),e.resetGrouping()}),this._setBaseInterval(e),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(e){if(this.get("groupData")&&!e.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let t=[],i=this.baseMainDuration(),a=this.get("groupIntervals");l["c"](a,e=>{let s=u["e"](e);s>i&&t.push(e)}),e._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let o;const c=e.get("baseAxis");e.get("xAxis")===c?o=e._valueYFields:e.get("yAxis")===c&&(o=e._valueXFields);let d=e._mainDataItems,g=this.get("baseInterval"),p=g.timeUnit+g.count;e._dataSets[p]=d;const b=e.get("groupDataCallback");let m=e.get("groupDataWithOriginals",!1);b&&(m=!0),l["c"](t,t=>{let i,a=-1/0,c=t.timeUnit+t.count;e._dataSets[c]=[];let g={},p={},f={},_={};l["c"](o,t=>{g[t]=0,p[t]=0,f[t]=e.get(t+"Grouped"),_[t]=t+"Working"});let v,y,x=u["d"](t.timeUnit),w=d[0];w&&(v=d[0].get(n)),l["c"](d,d=>{let w,P=d.get(n),D=u["g"](P,t.timeUnit,t.count,this._root,v);a<D-x/24?(w=h["a"](d.dataContext),i=new s["b"](e,w,e._makeDataItem(w)),i.setRaw(n,D),e._dataSets[c].push(i),l["c"](o,e=>{let t=d.get(e);r["e"](t)?(i.setRaw(e,t),i.setRaw(_[e],t),p[e]=1,g[e]=t):(g[e]=0,p[e]=0)}),m&&i.set("originals",[d]),b&&y&&b(y,t),y=i):(l["c"](o,e=>{let t=f[e],s=d.get(e);if(null!=s){let a=i.get(e);switch(t){case"close":i.setRaw(e,s);break;case"sum":i.setRaw(e,a+s);break;case"open":break;case"low":s<a&&i.setRaw(e,s);break;case"high":s>a&&i.setRaw(e,s);break;case"average":p[e]++,g[e]+=s;let t=g[e]/p[e];i.setRaw(e,t);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(e,s);break}i.setRaw(_[e],i.get(e));let r=h["a"](d.dataContext);r[n]=D,i.dataContext=r}}),m&&i.get("originals").push(d)),a=D}),b&&y&&b(y,t)}),e._dataSetId&&e.setDataSet(e._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(e){let t=this.get("baseInterval"),i=u["b"](0,e,this.get("groupCount",1/0),this.get("groupIntervals"));return u["e"](i)<u["e"](t)&&(i=Object.assign({},t)),i}getIntervalMax(e){return this._intervalMax[e.timeUnit+e.count]}getIntervalMin(e){return this._intervalMin[e.timeUnit+e.count]}_handleRangeChange(){super._handleRangeChange();let e=Math.round(this.getPrivate("selectionMin")),t=Math.round(this.getPrivate("selectionMax"));if(r["e"](e)&&r["e"](t)){if(0==this.get("endLocation")&&(t+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=t-e+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this.baseDuration());if(s){let e=u["e"](s);a=Math.ceil(a/e)*e}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let e=i.timeUnit+i.count;l["c"](this.series,t=>{t.get("baseAxis")===this&&t.setDataSet(e)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{const e="groupintervalchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})})})}}l["c"](this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter");const a=l["i"](i.dataItems,t=>o["a"](t.get(s),e));let r=a.index;r>0&&(r-=1),t+=this.baseDuration()*(1-this.get("endLocation",1));const n=l["j"](i.dataItems,e=>o["a"](e.get(s),t));let h=n.index,c=h;c>1&&c--;const u=i.dataItems[r],d=i.dataItems[c];let g,p;u&&(p=u.get(s)),d&&(g=d.get(s));let b=!1;null!=g&&null!=p&&(g<e||p>t)&&(b=!0),i.setPrivate("outOfSelection",b),i.setPrivate("startIndex",r),i.setPrivate("adjustedStartIndex",i._adjustStartIndex(r)),i.setPrivate("endIndex",h),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})}})}}_adjustMinMax(e,t,i,s){return{min:e,max:t,step:(t-e)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(e,t){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=e,this._intervalMax[s]=t}_getM(e){return"month"==e||"year"==e||"day"==e?1.05:1.01}_getMinorInterval(e){var t;let i,s=e.count,a=e.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&"week"!=(null===(t=this.getPrivate("baseInterval"))||void 0===t?void 0:t.timeUnit)&&(i={timeUnit:"day",count:1}),i}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(r["e"](e)&&r["e"](t)){const t=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),o=this.getPrivate("baseInterval");let h=i,c=0;const d=this.get("gridIntervals");let g=u["b"](0,a-i,n.gridCount(),d);u["e"](g)<this.baseDuration()&&(g=Object.assign({},o));const p=u["e"](g);this._intervalDuration=p;const b=u["f"](g.timeUnit),m=t.utc,f=t.timezone;h=u["g"](i-p,g.timeUnit,g.count,t,e);let _,v=h-p;const y=this.get("dateFormats");this.setPrivateRaw("gridInterval",g);const x=n.get("minorLabelsEnabled"),w=n.get("minorGridEnabled",x);let P,D=0;w&&(P=this._getMinorInterval(g),D=u["e"](P));let k=0;while(h<a+p){let e;this.dataItems.length<c+1?(e=new s["b"](this,void 0,{}),this._dataItems.push(e),this.processDataItem(e)):e=this.dataItems[c],this._createAssets(e,[]),this._toggleDataItem(e,!0),e.setRaw("value",h),e.setRaw("labelEndValue",void 0);let i=h+u["d"](g.timeUnit,g.count*this._getM(g.timeUnit));i=u["g"](i,g.timeUnit,1,t),e.setRaw("endValue",i);let a=new Date(h);_=y[g.timeUnit],b&&this.get("markUnitChange")&&r["e"](v)&&"year"!=g.timeUnit&&u["a"](h,v,b,m,f)&&(_=this.get("periodChangeDateFormats")[g.timeUnit]);const n=e.get("label");n&&n.set("text",t.dateFormatter.format(a,_));let o=g.count;if("week"==g.timeUnit&&e.setRaw("labelEndValue",h),w){o=1;let i=g.timeUnit;"week"==i&&(i="day");let s=h+u["d"](i,this._getM(i));s=u["g"](s,i,1,t),e.setRaw("labelEndValue",s)}if(this._prepareDataItem(e,o),v=h,h=i,P){const e=P.timeUnit,i=P.count,a=this._getM(e);let r,n=u["g"](v+D*a,e,i,t,v),o=this.get("minorDateFormats",this.get("dateFormats"));while(n<h-.01*D){let l;this.minorDataItems.length<k+1?(l=new s["b"](this,void 0,{}),this.minorDataItems.push(l),this.processDataItem(l)):l=this.minorDataItems[k],this._createAssets(l,["minor"],!0),this._toggleDataItem(l,!0),l.setRaw("value",n);let h=n+u["d"](e,i*a);h=u["g"](h,e,1,t),l.setRaw("endValue",h);let c=new Date(n);_=o[e];const d=l.get("label");if(d&&(x?d.set("text",t.dateFormatter.format(c,_)):d.setPrivate("visible",!1)),this._prepareDataItem(l,1),n==r)break;r=n,n=h,k++}}if(h==v)break;c++}for(let e=c;e<this.dataItems.length;e++)this._toggleDataItem(this.dataItems[e],!1);for(let e=k;e<this.minorDataItems.length;e++)this._toggleDataItem(this.minorDataItems[e],!1);l["c"](this.series,e=>{e.inited&&e._markDirtyAxes()})}this._updateGhost()}_updateFinals(e,t){this.setPrivateRaw("selectionMinFinal",this.positionToValue(e)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(t))}_getDelta(){this._deltaMinMax=this.baseDuration()/2}_fixMin(e){const t=this.getPrivate("baseInterval"),i=t.timeUnit;let s=u["g"](e,i,t.count,this._root),a=s+u["d"](i,t.count*this._getM(i));return a=u["g"](a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(e){const t=this.getPrivate("baseInterval"),i=t.timeUnit;let s=u["g"](e,i,t.count,this._root),a=s+u["d"](i,t.count*this._getM(i));return a=u["g"](a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(e,t){}baseDuration(){return this._baseDuration}baseMainDuration(){return u["e"](this.get("baseInterval"))}processSeriesDataItem(e,t){const i=this.getPrivate("baseInterval");e.open||(e.open={}),e.close||(e.close={}),l["c"](t,t=>{let s=e.get(t);if(r["e"](s)){let a=e.open[t],r=e.close[t];if(s>=a&&s<=r);else{const n=i.timeUnit,o=i.count;a=u["g"](s,n,o,this._root),r=a+u["d"](n,o*this._getM(n)),r=u["g"](r,n,1,this._root),e.open[t]=a,e.close[t]=r}this._updateDates(a,e.component)}})}_handleSizeDirty(){}getDataItemPositionX(e,t,i,s){let a,r;e.open&&e.close?(a=e.open[t],r=e.close[t]):(a=e.get(t),r=a);let n=a+(r-a)*i;return n=this._baseValue+(n-this._baseValue)*s,this.valueToPosition(n)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a,r;e.open&&e.close?(a=e.open[t],r=e.close[t]):(a=e.get(t),r=a);let n=a+(r-a)*i;return n=this._baseValue+(n-this._baseValue)*s,this.valueToPosition(n)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}roundAxisPosition(e,t){let i=this.positionToValue(e);i-=(t-.5)*this.baseDuration();let s=this.getPrivate("baseInterval");if(!r["d"](i)){const e=this._root.locale.firstDayOfWeek,a=s.timeUnit,r=this._root.utc,n=this._root.timezone,o=s.count;i=u["g"](i,a,o,this._root,this.getPrivate("min",0));let l=u["c"](s,new Date(i),e,r,n);return n&&(i=u["g"](i+.05*this.baseDuration(),a,o,this._root,this.getPrivate("min",0)),l=u["c"](s,new Date(i+l*t),e,r,n)),this.valueToPosition(i+l*t)}return NaN}getTooltipText(e,t){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(e);if(r["e"](s)){let e=new Date(s),a=this.getPrivate("baseInterval"),r=u["c"](a,e,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==t&&(e=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(e,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(e,t,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),r=this.positionToValue(t);null==i&&(i=.5),r-=(i-.5)*this.baseDuration();const n=l["j"](e.dataItems,e=>{let t=0;return e.open&&(t=e.open[a]),o["a"](t,r)});if(s||e.get("snapTooltip")){let t=e.dataItems[n.index-1],i=e.dataItems[n.index];if(t&&i&&t.open&&i.close){let e=t.open[a],s=i.close[a];if(Math.abs(r-e)>Math.abs(r-s))return i}if(t)return t;if(i)return i}else{const t=e.dataItems[n.index-1];if(t&&t.open&&t.close){let e=t.open[a],i=t.close[a];if(r>=e&&r<=i)return t}}}shouldGap(e,t,i,s){const a=e.get(s),r=t.get(s);return r-a>this.baseDuration()*i}zoomToDates(e,t,i){this.zoomToValues(e.getTime(),t.getTime(),i)}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",0),a=this.getPrivate("maxFinal",0);if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(t-e),a=this.get("baseInterval");let r=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=u["g"](n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*u["e"](s),n=u["g"](n,s.timeUnit,s.count,this.root);let o=u["g"](r,s.timeUnit,s.count,this.root),l=u["g"](n,s.timeUnit,s.count,this.root),h=(e-o)/(l-o),c=(t-o)/(l-o);this.zoom(h,c,i)}else this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}positionToDate(e){return new Date(this.positionToValue(e))}dateToPosition(e){return this.valueToPosition(e.getTime())}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return r["e"](e)&&r["e"](t)?this._intervalDuration/(e-t):.05}nextPosition(e){null==e&&(e=1);let t=this.get("tooltipLocation",.5)*this.baseDuration();"Y"==this.get("renderer").getPrivate("letter")&&(e*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,e,s),r=this.getPrivate("selectionMin",0),o=this.getPrivate("selectionMax",0),l=u["g"](r,s.timeUnit,s.count,this._root),h=u["g"](o,s.timeUnit,s.count,this._root);return a+=t,a=n["f"](a,l+t,h-t),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(e,t,i){return u["g"](e+t*this.baseDuration(),i.timeUnit,i.count,this._root)}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"DateAxis"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([d.className])})},be4b:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"e",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"d",(function(){return n})),i.d(t,"b",(function(){return o}));class s{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,i){return e instanceof s?e:new s(t===i?0:100*Math.min(Math.max(1/(i-t)*(e-t),0),1))}}function a(e){return new s(e)}a(0);const r=a(100),n=a(50);function o(e){return e instanceof s}},be7c:function(e,t,i){"use strict";i.d(t,"a",(function(){return he}));var s=i("7f12"),a=i("08b0");class r{constructor(e=1,t=0,i=0,s=1,a=0,r=0){Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"c",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"d",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ty",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.a=e,this.b=t,this.c=i,this.d=s,this.tx=a,this.ty=r}setTransform(e,t,i,s,a,r=1){this.a=Math.cos(a)*r,this.b=Math.sin(a)*r,this.c=-Math.sin(a)*r,this.d=Math.cos(a)*r,this.tx=e-(i*this.a+s*this.c),this.ty=t-(i*this.b+s*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){const t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){const t=this.a,i=this.b,s=this.c,a=this.d;this.a=e.a*t+e.b*s,this.b=e.a*i+e.b*a,this.c=e.c*t+e.d*s,this.d=e.c*i+e.d*a,this.tx=e.tx*t+e.ty*s+this.tx,this.ty=e.tx*i+e.ty*a+this.ty}prepend(e){const t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){const t=this.a,i=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}}var n=i("be4b"),o=i("9197"),l=i("f1d5"),h=i("842e"),c=i("1eae"),u=i("0109"),d=i("e28a"),g=i("48ef"),p=function(){function e(e,t){var i=[],s=!0,a=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(s=(n=o.next()).done);s=!0)if(i.push(n.value),t&&i.length===t)break}catch(l){a=!0,r=l}finally{try{!s&&o["return"]&&o["return"]()}finally{if(a)throw r}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=2*Math.PI,m=function(e,t,i,s,a,r,n){var o=e.x,l=e.y;o*=t,l*=i;var h=s*o-a*l,c=a*o+s*l;return{x:h+r,y:c+n}},f=function(e,t){var i=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),s=Math.cos(e),a=Math.sin(e),r=Math.cos(e+t),n=Math.sin(e+t);return[{x:s-a*i,y:a+s*i},{x:r+n*i,y:n-r*i},{x:r,y:n}]},_=function(e,t,i,s){var a=e*s-t*i<0?-1:1,r=e*i+t*s;return r>1&&(r=1),r<-1&&(r=-1),a*Math.acos(r)},v=function(e,t,i,s,a,r,n,o,l,h,c,u){var d=Math.pow(a,2),g=Math.pow(r,2),p=Math.pow(c,2),m=Math.pow(u,2),f=d*g-d*m-g*p;f<0&&(f=0),f/=d*m+g*p,f=Math.sqrt(f)*(n===o?-1:1);var v=f*a/r*u,y=f*-r/a*c,x=h*v-l*y+(e+i)/2,w=l*v+h*y+(t+s)/2,P=(c-v)/a,D=(u-y)/r,k=(-c-v)/a,T=(-u-y)/r,O=_(1,0,P,D),M=_(P,D,k,T);return 0===o&&M>0&&(M-=b),1===o&&M<0&&(M+=b),[x,w,O,M]},y=function(e){var t=e.px,i=e.py,s=e.cx,a=e.cy,r=e.rx,n=e.ry,o=e.xAxisRotation,l=void 0===o?0:o,h=e.largeArcFlag,c=void 0===h?0:h,u=e.sweepFlag,d=void 0===u?0:u,g=[];if(0===r||0===n)return[];var _=Math.sin(l*b/360),y=Math.cos(l*b/360),x=y*(t-s)/2+_*(i-a)/2,w=-_*(t-s)/2+y*(i-a)/2;if(0===x&&0===w)return[];r=Math.abs(r),n=Math.abs(n);var P=Math.pow(x,2)/Math.pow(r,2)+Math.pow(w,2)/Math.pow(n,2);P>1&&(r*=Math.sqrt(P),n*=Math.sqrt(P));var D=v(t,i,s,a,r,n,c,d,_,y,x,w),k=p(D,4),T=k[0],O=k[1],M=k[2],A=k[3],S=Math.abs(A)/(b/4);Math.abs(1-S)<1e-7&&(S=1);var C=Math.max(Math.ceil(S),1);A/=C;for(var j=0;j<C;j++)g.push(f(M,A)),M+=A;return g.map((function(e){var t=m(e[0],r,n,y,_,T,O),i=t.x,s=t.y,a=m(e[1],r,n,y,_,T,O),o=a.x,l=a.y,h=m(e[2],r,n,y,_,T,O),c=h.x,u=h.y;return{x1:i,y1:s,x2:o,y2:l,x:c,y:u}}))},x=y;function w(e,t,i){if(t!==i)throw new Error("Required "+i+" arguments for "+e+" but got "+t)}function P(e,t,i){if(t<i)throw new Error("Required at least "+i+" arguments for "+e+" but got "+t)}function D(e,t,i){if(P(e,t,i),t%i!==0)throw new Error("Arguments for "+e+" must be in pairs of "+i)}function k(e){for(let t=0;t<e.length;t+=7){let i=t+3,s=e[i];if(s.length>1){const t=/^([01])([01])(.*)$/.exec(s);null!==t&&(e.splice(i,0,t[1]),++i,e.splice(i,0,t[2]),++i,t[3].length>0?e[i]=t[3]:e.splice(i,1))}if(++i,s=e[i],s.length>1){const t=/^([01])(.+)$/.exec(s);null!==t&&(e.splice(i,0,t[1]),++i,e[i]=t[2])}}}function T(e){if(0===e||1===e)return e;throw new Error("Flag must be 0 or 1")}function O(e){const t=[0,0,0];for(let i=0;i<24;i++)t[i%3]<<=1,t[i%3]|=1&e,e>>=1;return(0|t[0])+(t[1]<<8)+(t[2]<<16)}function M(e,t){for(;;){if(e.interactive&&!t(e))break;if(!e._parent)break;e=e._parent}}function A(e,t,i){return h["a"](e,h["q"](t),e=>{const t=h["m"](e);let s=e.touches;s?(0==s.length&&(s=e.changedTouches),i(c["b"](s),t)):i([e],t)})}function S(e){const t=document.createElement("canvas");t.width=1,t.height=1;const i=t.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(s){return console.warn('Image "'+e.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function C(e){e.width=0,e.height=0,e.style.width="0px",e.style.height="0px"}function j(e){return Math.floor(e)+.5}class R{constructor(){Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0})}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}}class L extends o["d"]{constructor(e){super(),Object.defineProperty(this,"_layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"interactive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactive",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wheelable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"cancelTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isMeasured",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"buttonMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"compoundAlpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"crisp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pivot",{enumerable:!0,configurable:!0,writable:!0,value:new R}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cursorOverStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_replacedCursorStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new r}),Object.defineProperty(this,"_matrix",{enumerable:!0,configurable:!0,writable:!0,value:new r}),Object.defineProperty(this,"_uMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new r}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=e}subStatus(e){return{inactive:null==this.inactive?e.inactive:this.inactive,layer:this._layer||e.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(!e._parent)return this._renderer.defaultLayer;e=e._parent}}setLayer(e,t){if(null==e)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(e,i),this._layer.visible=i,this._layer.margin=t,t&&h["K"](this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(!e._parent)return!1;e=e._parent}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const e=1e7;this._localBounds={left:e,top:e,right:-e,bottom:-e},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(e){this._setMatrix();const t=this.getLocalMatrix(),i=t.apply({x:e.left,y:e.top}),s=t.apply({x:e.right,y:e.top}),a=t.apply({x:e.right,y:e.bottom}),r=t.apply({x:e.left,y:e.bottom});return{left:Math.min(i.x,s.x,a.x,r.x),top:Math.min(i.y,s.y,a.y,r.y),right:Math.max(i.x,s.x,a.x,r.x),bottom:Math.max(i.y,s.y,a.y,r.y)}}on(e,t,i){return this.interactive?this._renderer._addEvent(this,e,t,i):new o["c"](()=>{})}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){const i=this._matrix;let s=i.tx*t,a=i.ty*t;this.crisp&&(s=j(s),a=j(a)),e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,s,a)}_transformMargin(e,t,i){const s=this._matrix;e.setTransform(s.a*t,s.b*t,s.c*t,s.d*t,(s.tx+i.left)*t,(s.ty+i.top)*t)}_transformLayer(e,t,i){i.margin?this._transformMargin(e,i.scale||t,i.margin):this._transform(e,i.scale||t)}render(e){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const t=this.subStatus(e),i=this._renderer.resolution,s=this._renderer.layers,a=this._renderer._ghostLayer,r=a.context,n=this.mask;n&&n._setMatrix(),c["c"](s,e=>{if(e){const t=e.context;t.save(),n&&(n._transformLayer(t,i,e),n._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(t,i,e),this.filter&&(t.filter=this.filter)}}),r.save(),n&&this._isInteractiveMask(t)&&(n._transformMargin(r,i,a.margin),n._runPath(r),r.clip()),this._transformMargin(r,i,a.margin),this._render(t),r.restore(),c["c"](s,e=>{e&&e.context.restore()})}}_render(e){!1===this.exportable&&(e.layer.tainted=!0)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some(e=>e.value===this)}shouldCancelTouch(){const e=this._renderer;return!(e.tapToActivate&&!e._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class I extends L{constructor(){super(...arguments),Object.defineProperty(this,"interactiveChildren",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_childLayers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,c["r"](this._children,e)}_render(e){super._render(e);const t=this._renderer;this.interactive&&this.interactiveChildren&&++t._forceInteractive,c["c"](this._children,t=>{t.compoundAlpha=this.compoundAlpha*this.alpha,t.render(e)}),this.interactive&&this.interactiveChildren&&--t._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),c["p"](this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&c["c"](this._childLayers,e=>e.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&c["c"](this._childLayers,e=>{e.dirty=!0})}}function E(e,t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.right=Math.max(e.right,t.x),e.bottom=Math.max(e.bottom,t.y)}class B{colorize(e,t){}colorizeGhost(e,t){this.colorize(e,t)}path(e){}pathGhost(e){this.path(e)}addBounds(e){}}class F extends B{colorize(e,t){e.beginPath()}}class N extends B{constructor(e){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fillStyle=void 0!==t?t:this.color}}class Y extends B{constructor(e){super(),Object.defineProperty(this,"clearShadow",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}class V extends B{colorize(e,t){e.stroke()}}class H extends B{constructor(e,t,i){super(),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:i})}colorize(e,t){e.strokeStyle=void 0!==t?t:this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin)}}class z extends B{constructor(e){super(),Object.defineProperty(this,"dash",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.setLineDash(this.dash)}}class X extends B{constructor(e){super(),Object.defineProperty(this,"dashOffset",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.lineDashOffset=this.dashOffset}}class U extends B{constructor(e,t,i,s){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){const t=this.x,i=this.y,s=t+this.width,a=i+this.height;E(e,{x:t,y:i}),E(e,{x:s,y:i}),E(e,{x:t,y:a}),E(e,{x:s,y:a})}}class G extends B{constructor(e,t,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){E(e,{x:this.x-this.radius,y:this.y-this.radius}),E(e,{x:this.x+this.radius,y:this.y+this.radius})}}class W extends B{constructor(e,t,i,s){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radiusX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"radiusY",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(e){E(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),E(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class K extends B{constructor(e,t,i,s,a,r){super(),Object.defineProperty(this,"cx",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cy",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"endAngle",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"anticlockwise",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=g["g"](this.cx,this.cy,this.startAngle*g["a"],this.endAngle*g["a"],this.radius);E(e,{x:t.left,y:t.top}),E(e,{x:t.right,y:t.bottom})}}class Z extends B{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"x1",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y1",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"x2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"y2",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}}class q extends B{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.lineTo(this.x,this.y)}addBounds(e){E(e,{x:this.x,y:this.y})}}class $ extends B{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.moveTo(this.x,this.y)}addBounds(e){E(e,{x:this.x,y:this.y})}}class J extends B{path(e){e.closePath()}}class Q extends B{constructor(e,t,i,s,a,r){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cpX2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"cpY2",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){E(e,{x:this.cpX,y:this.cpY}),E(e,{x:this.cpX2,y:this.cpY2}),E(e,{x:this.toX,y:this.toY})}}class ee extends B{constructor(e,t,i,s){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){E(e,{x:this.cpX,y:this.cpY}),E(e,{x:this.toX,y:this.toY})}}class te extends B{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"blur",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"offsetX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"offsetY",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"opacity",{enumerable:!0,configurable:!0,writable:!0,value:a})}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}colorizeGhost(e,t){}}class ie extends B{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){E(e,{x:this.x,y:this.y}),E(e,{x:this.width,y:this.height})}}class se extends L{constructor(){super(...arguments),Object.defineProperty(this,"_operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blendMode",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].NORMAL}),Object.defineProperty(this,"_hasShadows",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_fillAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof a["a"]?this._pushOp(new N(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new N(e))):this._pushOp(new N("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new Y(this._hasShadows))}endStroke(){this._pushOp(new V)}beginPath(){this._pushOp(new F)}lineStyle(e=0,t,i=1,s){this._strokeAlpha=i,t?t instanceof a["a"]?this._pushOp(new H(e,t.toCSS(i),s)):this._pushOp(new H(e,t,s)):this._pushOp(new H(e,"rgba(0, 0, 0, "+i+")",s))}setLineDash(e){this._pushOp(new z(e||[]))}setLineDashOffset(e=0){this._pushOp(new X(e))}drawRect(e,t,i,s){this._pushOp(new U(e,t,i,s))}drawCircle(e,t,i){this._pushOp(new G(e,t,i))}drawEllipse(e,t,i,s){this._pushOp(new W(e,t,i,s))}arc(e,t,i,s,a,r=!1){this._pushOp(new K(e,t,i,s,a,r))}arcTo(e,t,i,s,a){this._pushOp(new Z(e,t,i,s,a))}lineTo(e,t){this._pushOp(new q(e,t))}moveTo(e,t){this._pushOp(new $(e,t))}bezierCurveTo(e,t,i,s,a,r){this._pushOp(new Q(e,t,i,s,a,r))}quadraticCurveTo(e,t,i,s){this._pushOp(new ee(e,t,i,s))}closePath(){this._pushOp(new J)}shadow(e,t=0,i=0,s=0,a){this._hasShadows=!0,this._pushOp(new te(a?e.toCSS(a):e.toCSS(this._fillAlpha||this._strokeAlpha),t,i,s))}image(e,t,i,s,a){this._pushOp(new ie(e,t,i,s,a))}svgPath(e){let t=0,i=0,s=null,a=null,r=null,n=null;const o=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;let h;while(null!==(h=o.exec(e))){const e=h[1],o=h[2],u=[];while(null!==(h=l.exec(o)))u.push(h[1]);switch("S"!==e&&"s"!==e&&"C"!==e&&"c"!==e&&(s=null,a=null),"Q"!==e&&"q"!==e&&"T"!==e&&"t"!==e&&(r=null,n=null),e){case"M":D(e,u.length,2),t=+u[0],i=+u[1],this.moveTo(t,i);for(let e=2;e<u.length;e+=2)t=+u[e],i=+u[e+1],this.lineTo(t,i);break;case"m":D(e,u.length,2),t+=+u[0],i+=+u[1],this.moveTo(t,i);for(let e=2;e<u.length;e+=2)t+=+u[e],i+=+u[e+1],this.lineTo(t,i);break;case"L":D(e,u.length,2);for(let e=0;e<u.length;e+=2)t=+u[e],i=+u[e+1],this.lineTo(t,i);break;case"l":D(e,u.length,2);for(let e=0;e<u.length;e+=2)t+=+u[e],i+=+u[e+1],this.lineTo(t,i);break;case"H":P(e,u.length,1);for(let e=0;e<u.length;++e)t=+u[e],this.lineTo(t,i);break;case"h":P(e,u.length,1);for(let e=0;e<u.length;++e)t+=+u[e],this.lineTo(t,i);break;case"V":P(e,u.length,1);for(let e=0;e<u.length;++e)i=+u[e],this.lineTo(t,i);break;case"v":P(e,u.length,1);for(let e=0;e<u.length;++e)i+=+u[e],this.lineTo(t,i);break;case"C":D(e,u.length,6);for(let e=0;e<u.length;e+=6){const r=+u[e],n=+u[e+1];s=+u[e+2],a=+u[e+3],t=+u[e+4],i=+u[e+5],this.bezierCurveTo(r,n,s,a,t,i)}break;case"c":D(e,u.length,6);for(let e=0;e<u.length;e+=6){const r=+u[e]+t,n=+u[e+1]+i;s=+u[e+2]+t,a=+u[e+3]+i,t+=+u[e+4],i+=+u[e+5],this.bezierCurveTo(r,n,s,a,t,i)}break;case"S":D(e,u.length,4),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<u.length;e+=4){const r=2*t-s,n=2*i-a;s=+u[e],a=+u[e+1],t=+u[e+2],i=+u[e+3],this.bezierCurveTo(r,n,s,a,t,i)}break;case"s":D(e,u.length,4),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<u.length;e+=4){const r=2*t-s,n=2*i-a;s=+u[e]+t,a=+u[e+1]+i,t+=+u[e+2],i+=+u[e+3],this.bezierCurveTo(r,n,s,a,t,i)}break;case"Q":D(e,u.length,4);for(let e=0;e<u.length;e+=4)r=+u[e],n=+u[e+1],t=+u[e+2],i=+u[e+3],this.quadraticCurveTo(r,n,t,i);break;case"q":D(e,u.length,4);for(let e=0;e<u.length;e+=4)r=+u[e]+t,n=+u[e+1]+i,t+=+u[e+2],i+=+u[e+3],this.quadraticCurveTo(r,n,t,i);break;case"T":D(e,u.length,2),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<u.length;e+=2)r=2*t-r,n=2*i-n,t=+u[e],i=+u[e+1],this.quadraticCurveTo(r,n,t,i);break;case"t":D(e,u.length,2),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<u.length;e+=2)r=2*t-r,n=2*i-n,t+=+u[e],i+=+u[e+1],this.quadraticCurveTo(r,n,t,i);break;case"A":case"a":const o="a"===e;k(u),D(e,u.length,7);for(let e=0;e<u.length;e+=7){let s=+u[e+5],a=+u[e+6];o&&(s+=t,a+=i);const r=x({px:t,py:i,rx:+u[e],ry:+u[e+1],xAxisRotation:+u[e+2],largeArcFlag:T(+u[e+3]),sweepFlag:T(+u[e+4]),cx:s,cy:a});c["c"](r,e=>{this.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y),t=e.x,i=e.y})}break;case"Z":case"z":w(e,u.length,0),this.closePath();break}}}_runPath(e){e.beginPath(),c["c"](this._operations,t=>{t.path(e)})}_render(e){super._render(e);const t=e.layer.dirty,i=this._isInteractive(e);if(t||i){const s=e.layer.context,a=this._renderer._ghostLayer.context;let r;t&&(s.globalCompositeOperation=this.blendMode,s.beginPath()),i&&(a.beginPath(),r=this._getColorId()),c["c"](this._operations,e=>{t&&(e.path(s),e.colorize(s,void 0)),i&&(e.pathGhost(a),e.colorizeGhost(a,r))})}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();const t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),c["c"](this._operations,t=>{t.path(e),t.colorize(e,void 0)}),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&c["c"](this._operations,t=>{t.addBounds(e)})}}class ae extends L{constructor(e,t,i){super(e),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"textVisible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_textInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.text=t,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,i=!1){super._render(e);const s=e.layer.context,r=this._renderer._ghostLayer.context,n=this.style;let o=this._getFontStyle(void 0,i);s.font=o,this._isInteractive(e)&&!t&&(r.font=o),n.fill&&(n.fill instanceof a["a"]?s.fillStyle=n.fill.toCSS(void 0!=n.fillOpacity?n.fillOpacity:1):s.fillStyle=n.fill),n.shadowColor&&(e.layer.context.shadowColor=n.shadowColor.toCSS(n.shadowOpacity||1)),n.shadowBlur&&(e.layer.context.shadowBlur=n.shadowBlur),n.shadowOffsetX&&(e.layer.context.shadowOffsetX=n.shadowOffsetX),n.shadowOffsetY&&(e.layer.context.shadowOffsetY=n.shadowOffsetY),this._shared(s),this._isInteractive(e)&&!t&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(e,t=!1){const i=this.style;let s=[];return e&&e.fontVariant?s.push(e.fontVariant):i.fontVariant&&s.push(i.fontVariant),t||(e&&e.fontWeight?s.push(e.fontWeight):i.fontWeight&&s.push(i.fontWeight)),e&&e.fontStyle?s.push(e.fontStyle):i.fontStyle&&s.push(i.fontStyle),e&&e.fontSize?(d["e"](e.fontSize)&&(e.fontSize=e.fontSize+"px"),s.push(e.fontSize)):i.fontSize&&(d["e"](i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),e&&e.fontFamily?s.push(e.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(e){if(this._textInfo||this._measure(e),this.textVisible){const t=this._isInteractive(e),i=e.layer.context,s=e.layer.dirty,r=this._renderer._ghostLayer.context;i.save(),r.save(),this._prerender(e),c["c"](this._textInfo,(n,o)=>{c["c"](n.textChunks,(o,h)=>{if(o.style&&(i.save(),r.save(),i.font=o.style,this._isInteractive(e)&&(r.font=o.style)),o.fill&&(i.save(),i.fillStyle=o.fill.toCSS()),s&&i.fillText(o.text,o.offsetX,n.offsetY+o.offsetY),"underline"==o.textDecoration||"line-through"==o.textDecoration){let e=1,t=1,s=o.height;const r=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(r)>-1){const e=this._measureText(o.text,i);o.width=e.actualBoundingBoxLeft+e.actualBoundingBoxRight}let h,c=o.offsetX;switch(this.style.textAlign){case"right":case"end":c-=o.width;break;case"center":c-=o.width/2;break}if(o.style){const t=l["a"].getTextStyle(o.style);switch(t.fontWeight){case"bolder":case"bold":case"700":case"800":case"900":e=2;break}}s&&(t=s/20),h="line-through"==o.textDecoration?e+n.offsetY+o.offsetY-o.height/2:e+1.5*t+n.offsetY+o.offsetY,i.save(),i.beginPath(),o.fill?i.strokeStyle=o.fill.toCSS():this.style.fill&&this.style.fill instanceof a["a"]&&(i.strokeStyle=this.style.fill.toCSS()),i.lineWidth=e*t,i.moveTo(c,h),i.lineTo(c+o.width,h),i.stroke(),i.restore()}t&&this.interactive&&r.fillText(o.text,o.offsetX,n.offsetY+o.offsetY),o.fill&&i.restore(),o.style&&(i.restore(),r.restore())})}),i.restore(),r.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){const t=this._measure({inactive:this.inactive,layer:this.getLayer()});E(e,{x:t.left,y:t.top}),E(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const a=this.style.oversizedBehavior,r=this.style.maxWidth,o=d["e"](r)&&"truncate"==a,u=d["e"](r)&&("wrap"==a||"wrap-no-break"==a);t.save(),i.save(),this._prerender(e,!0,this._ignoreFontWeight());const g="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",p=this.text.toString().replace(/\r/g,"").split(/\n/);let b,m=!0,f=0,_=0,v=0;c["c"](p,(e,s)=>{let a;a=""==e?[{type:"value",text:""}]:l["a"].chunk(e,!1,this.style.ignoreFormatting);while(a.length>0){let e={offsetY:v,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(g,t),p=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let y;e.height=p,e.ascent=s.actualBoundingBoxAscent;let x,w,P,D=this.style.textDecoration,k=!1,T=!0,O=[];c["d"](a,(s,n)=>{if("format"==s.type)if("[/]"==s.text)m||(t.restore(),i.restore(),m=!0),x=void 0,b=void 0,w=void 0,D=this.style.textDecoration,P=void 0,y=s.text;else{m||(t.restore(),i.restore());let a=l["a"].getTextStyle(s.text);const r=this._getFontStyle(a);t.save(),i.save(),t.font=r,b=r,y=s.text,a.textDecoration&&(D=a.textDecoration),a.fill&&(x=a.fill),a.width&&(w=d["j"](a.width)),a.verticalAlign&&(P=a.verticalAlign),m=!1;const n=this._measureText(g,t),o=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;o>e.height&&(e.height=o),n.actualBoundingBoxAscent>e.ascent&&(e.ascent=n.actualBoundingBoxAscent)}else if("value"==s.type&&!k){const i=this._measureText(s.text,t);let l=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(o){let i=T||this.style.breakWords||!1;const a=this.style.ellipsis||"",n=this._measureText(a,t),o=n.actualBoundingBoxLeft+n.actualBoundingBoxRight;if(e.width+l>r){const n=r-e.width-o;s.text=this._truncateText(t,s.text,n,i),s.text+=a,k=!0}}else if(u&&e.width+l>r){const i=r-e.width,o=this._truncateText(t,s.text,i,!1,T&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==o)return this.textVisible=!0,!1;O=a.slice(n+1),h["P"](o)!=h["P"](s.text)&&(O.unshift({type:"value",text:s.text.substr(o.length)}),y&&O.unshift({type:"format",text:y})),s.text=h["P"](o),a=[],k=!0}let c=1,d=1;if(b&&w&&w>l){const e=l/w;switch(this.style.textAlign){case"right":case"end":c=e;break;case"center":c=e,d=e;break;default:d=e}l=w}const g=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;g>e.height&&(e.height=g),i.actualBoundingBoxAscent>e.ascent&&(e.ascent=i.actualBoundingBoxAscent),e.width+=l,e.left+=i.actualBoundingBoxLeft/c,e.right+=i.actualBoundingBoxRight/d,e.textChunks.push({style:b,fill:x,text:s.text,width:l,height:g,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:D,verticalAlign:P}),T=!1}return!0}),this.style.lineHeight instanceof n["a"]?(e.height*=this.style.lineHeight.value,e.ascent*=this.style.lineHeight.value):(e.height*=this.style.lineHeight||1.2,e.ascent*=this.style.lineHeight||1.2),f<e.left&&(f=e.left),_<e.right&&(_=e.right),this._textInfo.push(e),v+=e.height,a=O||[]}}),m||(t.restore(),i.restore()),c["c"](this._textInfo,(e,t)=>{let i=0;c["c"](e.textChunks,t=>{if(t.offsetX=i+t.left-e.left,t.offsetY+=e.height-e.height*(this.style.baselineRatio||.19),i+=t.width,t.verticalAlign)switch(t.verticalAlign){case"super":t.offsetY-=e.height/2-t.height/2;break;case"sub":t.offsetY+=t.height/2;break}})});const y={left:s?-_:-f,top:0,right:s?f:_,bottom:v};if("none"!==a){const e=this._fitRatio(y);if(e<1)if("fit"==a)d["e"](this.style.minScale)&&e<this.style.minScale?(this.textVisible=!1,y.left=0,y.top=0,y.right=0,y.bottom=0):(this._originalScale&&1!=this._originalScale||(this._originalScale=this.scale),this.scale=e,this.textVisible=!0);else if("hide"==a)this.textVisible=!1,y.left=0,y.top=0,y.right=0,y.bottom=0;else{switch(this.style.textAlign){case"right":case"end":y.left=s?r:-r,y.right=0;break;case"center":y.left=-r/2,y.right=r/2;break;default:y.left=0,y.right=s?-r:r}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),i.restore(),y}_fitRatio(e){const t=this.style.maxWidth,i=this.style.maxHeight;if(!d["e"](t)&&!d["e"](i))return 1;const s=e.right-e.left,a=e.bottom-e.top;return Math.min(t/s||1,i/a||1)}_truncateText(e,t,i,s=!1,a=!0){let r;do{if(s)t=t.slice(0,-1);else{let e=t.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g,"");if(""!=e&&e!==t||!a){if(""==e)return t;t=e}else s=!0}const i=this._measureText(t,e);r=i.actualBoundingBoxLeft+i.actualBoundingBoxRight}while(r>i&&""!=t);return t}_measureText(e,t){let i=t.measureText(e),s={};if(null==i.actualBoundingBoxAscent){const t=document.createElement("div");t.innerText=e,t.style.visibility="hidden",t.style.position="absolute",t.style.top="-1000000px;",t.style.fontFamily=this.style.fontFamily||"",t.style.fontSize=this.style.fontSize+"",document.body.appendChild(t);const a=t.getBoundingClientRect();document.body.removeChild(t);const r=a.height,n=i.width;let o=0,l=n;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:o,actualBoundingBoxRight:l,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:n}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const a=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=a,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=a/2,s.actualBoundingBoxRight=a/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=a}return s}}class re{constructor(){Object.defineProperty(this,"fill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fillOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textAlign",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontFamily",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontWeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontVariant",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textDecoration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineHeight",{enumerable:!0,configurable:!0,writable:!0,value:Object(n["e"])(120)}),Object.defineProperty(this,"baselineRatio",{enumerable:!0,configurable:!0,writable:!0,value:.19}),Object.defineProperty(this,"direction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textBaseline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oversizedBehavior",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),Object.defineProperty(this,"breakWords",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ellipsis",{enumerable:!0,configurable:!0,writable:!0,value:"…"}),Object.defineProperty(this,"maxWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ignoreFormatting",{enumerable:!0,configurable:!0,writable:!0,value:!1})}}class ne extends ae{constructor(){super(...arguments),Object.defineProperty(this,"textType",{enumerable:!0,configurable:!0,writable:!0,value:"circular"}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inside",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"orientation",{enumerable:!0,configurable:!0,writable:!0,value:"auto"}),Object.defineProperty(this,"kerning",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_textReversed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_render(e){switch(this.textType){case"circular":this._renderCircular(e);break;default:super._render(e);break}}_renderCircular(e){if(this.textVisible){this._prerender(e);const t=this._isInteractive(e),i=e.layer.context,s=e.layer.dirty,a=this._renderer._ghostLayer.context;i.save(),t&&a.save(),this._textInfo||this._measure(e);let r=this.radius||0,n=this.startAngle||0,o=0,l=this.orientation,h="auto"==l?"auto":"inward"==l;const u=this.inside,d=this.style.textAlign||"left",p=this.kerning||0;let b="left"==d?1:-1;const m=!this._textReversed;if("auto"==h){let e=0,t=0;c["c"](this._textInfo,(t,i)=>{const s=n+t.width/(r-t.height)/2*-b;s>e&&(e=s)}),t="left"==d?(e+o/2)*g["a"]:"right"==d?(e-o/2)*g["a"]:n*g["a"],t=g["l"](t),h=t>=270||t<=90}1==h&&m&&(this._textInfo.reverse(),this._textReversed=!0),c["c"](this._textInfo,(e,l)=>{const g=e.height;u||(r+=g),(-1==b&&h||1==b&&!h)&&m&&e.textChunks.reverse();let f=n;o=0,"center"==d&&(f+=e.width/(r-g)/2*-b,o=f-n),f+=Math.PI*(h?0:1),i.save(),t&&a.save(),i.rotate(f),t&&a.rotate(f);let _=0;c["c"](e.textChunks,(e,n)=>{const o=e.text,l=e.width;_=l/2/(r-g)*b,i.rotate(_),t&&a.rotate(_),e.style&&(i.save(),a.save(),i.font=e.style,t&&(a.font=e.style)),e.fill&&(i.save(),i.fillStyle=e.fill.toCSS()),i.textBaseline="middle",i.textAlign="center",t&&(a.textBaseline="middle",a.textAlign="center"),s&&i.fillText(o,0,(h?1:-1)*(0-r+g/2)),t&&a.fillText(o,0,(h?1:-1)*(0-r+g/2)),e.fill&&i.restore(),e.style&&(i.restore(),a.restore()),_=(l/2+p)/(r-g)*b,i.rotate(_),t&&a.rotate(_)}),i.restore(),t&&a.restore(),u&&(r-=g)}),i.restore(),t&&a.restore()}}_measure(e){switch(this.textType){case"circular":return this._measureCircular(e);default:return super._measure(e)}}_measureCircular(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,a=this.style.oversizedBehavior,r=this.style.maxWidth,o=d["e"](r)&&"truncate"==a,u=this.style.ellipsis||"";let g;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),i.save(),this._prerender(e,!0);const p=this.text.toString().replace(/\r/g,"").split(/\n/);let b=!0,m=0,f=0;return c["c"](p,(e,a)=>{let p,_,v,y=l["a"].chunk(e,!1,this.style.ignoreFormatting),x={offsetY:f,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};c["c"](y,(e,a)=>{if("format"==e.type){if("[/]"==e.text)b||(t.restore(),i.restore(),b=!0),_=void 0,p=void 0,v=void 0;else{let s=l["a"].getTextStyle(e.text);const a=this._getFontStyle(s);t.save(),i.save(),t.font=a,p=a,s.fill&&(_=s.fill),s.width&&(v=d["j"](s.width)),b=!1}o&&(g=this._measureText(u,t))}else if("value"==e.type){let i=e.text.match(/./gu)||[];s&&(i=h["M"](e.text),i.reverse());for(let e=0;e<i.length;e++){const s=i[e],a=this._measureText(s,t);let n=a.width;p&&v&&v>n&&(n=v);const l=a.actualBoundingBoxAscent+a.actualBoundingBoxDescent;if(l>x.height&&(x.height=l),a.actualBoundingBoxAscent>x.ascent&&(x.ascent=a.actualBoundingBoxAscent),m+=n,o){g||(g=this._measureText(u,t));const e=g.actualBoundingBoxLeft+g.actualBoundingBoxRight;if(m+e>r){1==x.textChunks.length?this.textVisible=!1:(x.width+=e,x.left+=g.actualBoundingBoxLeft,x.right+=g.actualBoundingBoxRight,x.textChunks.push({style:p,fill:_,text:u,width:e,height:l+g.actualBoundingBoxDescent,left:g.actualBoundingBoxLeft,right:g.actualBoundingBoxRight,ascent:g.actualBoundingBoxAscent,offsetX:0,offsetY:l,textDecoration:void 0}));break}}x.width+=n,x.left+=a.actualBoundingBoxLeft,x.right+=a.actualBoundingBoxRight,x.textChunks.push({style:p,fill:_,text:s,width:n,height:l+a.actualBoundingBoxDescent,left:a.actualBoundingBoxLeft,right:a.actualBoundingBoxRight,ascent:a.actualBoundingBoxAscent,offsetX:0,offsetY:l,textDecoration:void 0})}}}),this.style.lineHeight instanceof n["a"]?x.height*=this.style.lineHeight.value:x.height*=this.style.lineHeight||1.2,this._textInfo.push(x),f+=x.height}),b||(t.restore(),i.restore()),"hide"==a&&m>r&&(this.textVisible=!1),c["c"](this._textInfo,e=>{c["c"](e.textChunks,t=>{t.offsetY+=Math.round((e.height-t.height+(e.ascent-t.ascent))/2)})}),t.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class oe extends L{constructor(e,t){super(e),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imageMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.image=t}_dispose(){super._dispose(),this._imageMask&&C(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e){if(super._render(e),this.image){if(void 0===this.tainted&&(this.tainted=S(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;if(e.layer.dirty){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);const t=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,t,i)}if(this.interactive&&this._isInteractive(e)){const e=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(e,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(void 0===this._imageMask){const t=this.width||e.naturalWidth,i=this.height||e.naturalHeight,s=document.createElement("canvas");s.width=t,s.height=i;const a=s.getContext("2d");a.imageSmoothingEnabled=!1,a.fillStyle=this._getColorId(),a.fillRect(0,0,t,i),S(e)||(a.globalCompositeOperation="destination-in",a.drawImage(e,0,0,t,i)),this._imageMask=s}return this._imageMask}}class le{constructor(e,t,i,s){Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"originalPoint",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"point",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"bbox",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"simulated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"native",{enumerable:!0,configurable:!0,writable:!0,value:!0}),h["O"]("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}}class he extends o["a"]{constructor(e){if(super(),Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"_layerDom",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_dirtyLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultLayer",{enumerable:!0,configurable:!0,writable:!0,value:this.getLayer(0)}),Object.defineProperty(this,"_ghostLayer",{enumerable:!0,configurable:!0,writable:!0,value:new ce}),Object.defineProperty(this,"_patternCanvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"_patternContext",{enumerable:!0,configurable:!0,writable:!0,value:this._patternCanvas.getContext("2d")}),Object.defineProperty(this,"_realWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_realHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interactionsEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_colorMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_forceInteractive",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_omitTainted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hovering",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_dragging",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mousedown",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_lastPointerMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tapToActivate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"tapToActivateTimeout",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"_touchActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_touchActiveTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.resolution=null==e?window.devicePixelRatio:e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new o["c"](()=>{u["b"](this._events,(e,t)=>{t.disposer.dispose()}),c["c"](this.layers,e=>{C(e.view),e.exportableView&&C(e.exportableView)}),C(this._ghostLayer.view),C(this._patternCanvas)})),this._disposers.push(h["D"](()=>{null==e&&(this.resolution=window.devicePixelRatio)})),h["O"]("touchevents")){const e=e=>{0!==this._dragging.length&&c["d"](this._dragging,t=>!t.value.shouldCancelTouch()||(e.preventDefault(),!1)),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(h["a"](window,"touchstart",e,{passive:!1})),this._disposers.push(h["a"](this.view,"touchstart",e,{passive:!1})),this._disposers.push(h["a"](this.view,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push(h["a"](window,"click",e=>{this._touchActive=!1},{passive:!0})),this._disposers.push(h["a"](this.view,"click",e=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}h["O"]("wheelevents")&&this._disposers.push(h["a"](this.view,"wheel",e=>{let t=!1;this._hovering.forEach(e=>{if(e.wheelable)return t=!0,!1}),t&&e.preventDefault()},{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,i,s){return this.defaultLayer.context.createLinearGradient(e,t,i,s)}createRadialGradient(e,t,i,s,a,r){return this.defaultLayer.context.createRadialGradient(e,t,i,s,a,r)}createPattern(e,t,i,s,a){return this._patternCanvas.width=s,this._patternCanvas.height=a,this._patternContext.clearRect(0,0,s,a),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new I(this)}makeGraphics(){return new se(this)}makeText(e,t){return new ae(this,e,t)}makeTextStyle(){return new re}makeRadialText(e,t){return new ne(this,e,t)}makePicture(e){return new oe(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,i,s){this._realWidth=e,this._realHeight=t,this._calculatedWidth=i,this._calculatedHeight=s,c["c"](this.layers,e=>{e&&(e.dirty=!0,this.resizeLayer(e))}),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(e=!1){const t=document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:e}),s=new ue(t,i);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",s}getLayerByOrder(e){const t=this.layers,i=t.length;for(let s=0;s<i;s++){const i=t[s];if(i.order==e)return i}}getLayer(e,t=!0){let i=this.getLayerByOrder(e);if(i)return i;const s=this.createDetachedLayer(99==e);s.order=e,s.visible=t,s.view.className="am5-layer-"+e,s.visible&&this.resizeLayer(s);const a=this.layers;a.push(s),a.sort((e,t)=>e.order>t.order?1:e.order<t.order?-1:0);const r=a.length,n=c["k"](a,s);let o;for(let l=n+1;l<r;l++)if(a[l].visible){o=a[l];break}return s.visible&&(void 0===o?this._layerDom.appendChild(s.view):this._layerDom.insertBefore(s.view,o.view)),s}render(e){if(this._dirtyLayers.length=0,c["c"](this.layers,e=>{e&&e.dirty&&e.visible&&(this._dirtyLayers.push(e),e.clear())}),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer}),this._ghostLayer.context.restore(),c["c"](this.layers,e=>{if(e){const t=e.context;t.beginPath(),t.moveTo(0,0),t.stroke()}}),c["c"](this._dirtyLayers,e=>{e.context.restore(),e.dirty=!1}),this._hovering.size&&this._lastPointerMoveEvent){const{events:e,target:t,native:i}=this._lastPointerMoveEvent;c["c"](e,e=>{this._dispatchGlobalMousemove(e,t,i)})}}paintId(e){const t=O(++this._colorId),i=a["a"].fromHex(t).toCSS();return this._colorMap[i]=e,i}_removeObject(e){void 0!==e._colorId&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){const t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){const i=this.view.getBoundingClientRect(),s=e.clientX||0,a=e.clientY||0,r=this._calculatedWidth/this._realWidth,n=this._calculatedHeight/this._realHeight,o={x:s-i.left,y:a-i.top},l={x:(s-(t?i.left:0))*r,y:(a-(t?i.top:0))*n};return new le(e,o,l,this._adjustBoundingBox(i))}_getHitTarget(e,t,i){if(0===t.width||0===t.height||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(e,t);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const r=a["a"].fromRGB(s.data[0],s.data[1],s.data[2]).toCSS(),n=this._colorMap[r];return n}getObjectAtPoint(e){const t=this._ghostLayer.getImageArray(e);if(0===t[0]&&0===t[1]&&0===t[2])return;const i=a["a"].fromRGB(t[0],t[1],t[2]).toCSS(),s=this._colorMap[i];return s}_withEvents(e,t){const i=this._events[e];if(void 0!==i){i.dispatching=!0;try{t(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,c["m"](i.callbacks,e=>!e.disposed),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,e=>{c["c"](e.callbacks,e=>{e.disposed||e.callback.call(e.context,t)})})}_dispatchEvent(e,t,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(e,e=>{c["c"](e.callbacks,e=>{e.disposed||e.object!==t||(e.callback.call(e.context,i),s=!0)})}),s}_dispatchMousedown(e,t){const i=e.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);if(a){const e=s.id;let t=!1;M(a,i=>{const a={id:e,value:i};if(this._mousedown.push(a),!t&&this._dispatchEvent("pointerdown",i,s)){t=!0;const s=this._dragging.some(t=>t.value===i&&t.id===e);s||this._dragging.push(a)}return!0})}}_dispatchGlobalMousemove(e,t,i){const s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);s.native=i,a?(this._hovering.forEach(e=>{e.contains(a)||(this._hovering.delete(e),e.cursorOverStyle&&h["L"](document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,s))}),s.native&&M(a,e=>(this._hovering.has(e)||(this._hovering.add(e),e.cursorOverStyle&&(e._replacedCursorStyle=h["s"](document.body,"cursor"),h["L"](document.body,"cursor",e.cursorOverStyle)),this._dispatchEvent("pointerover",e,s)),!0))):(this._hovering.forEach(e=>{e.cursorOverStyle&&h["L"](document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,s)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&h["L"](document.body,"cursor",e._replacedCursorStyle)}_dispatchGlobalMouseup(e,t){const i=this.getEvent(e);i.native=t,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(e){if(0!==this._dragging.length){const t=this.getEvent(e),i=t.id;this._dragging.forEach(e=>{e.id===i&&this._dispatchEvent("pointermove",e.value,t)})}}_dispatchDragEnd(e,t){const i=e.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const a=this.getEvent(e),r=a.id;if(0!==this._mousedown.length){const e=this._getHitTarget(a.originalPoint,a.bbox,t);e&&this._mousedown.forEach(t=>{t.id===r&&t.value.contains(e)&&this._dispatchEvent(s,t.value,a)}),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach(e=>{e.id===r&&this._dispatchEvent("pointerup",e.value,a)}),this._dragging.length=0)}_dispatchDoubleClick(e,t){const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&M(s,e=>!this._dispatchEvent("dblclick",e,i))}_dispatchWheel(e,t){const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&M(s,e=>!this._dispatchEvent("wheel",e,i))}_makeSharedEvent(e,t){if(void 0===this._listeners[e]){const i=t();this._listeners[e]=new o["b"](()=>{delete this._listeners[e],i.dispose()})}return this._listeners[e].increment()}_onPointerEvent(e,t){let i=!1,s=null;function a(){s=null,i=!1}return new o["e"]([new o["c"](()=>{null!==s&&clearTimeout(s),a()}),h["a"](this.view,h["q"](e),e=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(a,0)}),A(window,e,(e,a)=>{null!==s&&(clearTimeout(s),s=null),t(e,a,i),i=!1})])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{const e=(e,t,i)=>{this._lastPointerMoveEvent={events:e,target:t,native:i},c["c"](e,e=>{this._dispatchGlobalMousemove(e,t,i)})};return new o["e"]([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{const e=this._onPointerEvent("pointerup",(e,t,i)=>{c["c"](e,e=>{this._dispatchGlobalMouseup(e,i)}),this._lastPointerMoveEvent={events:e,target:t,native:i}}),t=this._onPointerEvent("pointercancel",(e,t,i)=>{c["c"](e,e=>{this._dispatchGlobalMouseup(e,i)}),this._lastPointerMoveEvent={events:e,target:t,native:i}});return new o["c"](()=>{e.dispose(),t.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{const e=this._onPointerEvent("pointerdown",(e,t)=>{c["c"](e,e=>{this._dispatchMousedown(e,t)})}),t=this._onPointerEvent("pointermove",e=>{c["c"](e,e=>{this._dispatchDragMove(e)})}),i=this._onPointerEvent("pointerup",(e,t)=>{c["c"](e,e=>{this._dispatchDragEnd(e,t)})}),s=this._onPointerEvent("pointercancel",(e,t)=>{c["c"](e,e=>{this._dispatchDragEnd(e,t)})});return new o["c"](()=>{e.dispose(),t.dispose(),i.dispose(),s.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(e,t)=>{c["c"](e,e=>{this._dispatchDoubleClick(e,t)})}));case"wheel":return this._makeSharedEvent("wheel",()=>h["a"](this.view,h["q"]("wheel"),e=>{this._dispatchWheel(e,h["m"](e))},{passive:!1}))}}_addEvent(e,t,i,s){let a=this._events[t];void 0===a&&(a=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});const r={object:e,context:s,callback:i,disposed:!1};return a.callbacks.push(r),new o["c"](()=>{r.disposed=!0,a.dispatching?a.cleanup=!0:(c["r"](a.callbacks,r),0===a.callbacks.length&&(a.disposer.dispose(),delete this._events[t]))})}getCanvas(e,t){this.render(e),t||(t={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),a=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>s){let e=t.minWidth/s;e>i&&(i=e*this.resolution)}if(t.minHeight&&t.minHeight>a){let e=t.minHeight/a;e>i&&(i=e*this.resolution)}if(t.maxWidth&&t.maxWidth<s){let e=t.maxWidth/s;e<i&&(i=e*this.resolution)}if(t.maxHeight&&t.maxHeight>a){let e=t.maxHeight/a;e<i&&(i=e*this.resolution)}t.maintainPixelRatio&&(i/=this.resolution);const r=[];let n=!1;const o=document.createElement("canvas");i!=this.resolution&&(n=!0,s=s*i/this.resolution,a=a*i/this.resolution),o.width=s,o.height=a,o.style.position="fixed",o.style.top="-10000px",this.view.appendChild(o),r.push(o);const l=o.getContext("2d");let h=0,u=0,d=!1;return c["c"](this.layers,e=>{if(e&&e.visible&&(e.tainted||n)){d=!0,e.exportableView=e.view,e.exportableContext=e.context,e.view=document.createElement("canvas"),e.view.style.position="fixed",e.view.style.top="-10000px",this.view.appendChild(e.view),r.push(e.view);let t=0,n=0;e.margin&&(t+=e.margin.left||0+e.margin.right||0,n+=e.margin.top||0+e.margin.bottom||0),e.view.width=s+t,e.view.height=a+n,e.context=e.view.getContext("2d"),e.dirty=!0,e.scale=i}}),d&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),c["c"](this.layers,e=>{if(e&&e.visible){let t=0,i=0;e.margin&&(t=-(e.margin.left||0)*this.resolution,i=-(e.margin.top||0)*this.resolution),l.drawImage(e.view,t,i),e.exportableView&&(e.view=e.exportableView,e.exportableView=void 0),e.exportableContext&&(e.context=e.exportableContext,e.exportableContext=void 0),h<e.view.clientWidth&&(h=e.view.clientWidth),u<e.view.clientHeight&&(u=e.view.clientHeight),e.scale=void 0}}),o.style.width=h+"px",o.style.height=u+"px",c["c"](r,e=>{e.style.position="",e.style.top="",this.view.removeChild(e)}),o}}class ce{constructor(){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"imageArray",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,i,s,a){this._resolution=a,e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}getImageArray(e){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const t=this.imageArray,i=Math.round(e.x*this._resolution),s=Math.round(e.y*this._resolution),a=4*(s*this._width+i);return[t[a],t[a+1],t[a+2],t[a+3]]}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,c["c"](e,e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class ue{constructor(e,t){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportableView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exportableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=e,this.context=t}resize(e,t,i,s,a){null!=this.width&&(e=this.width,i=this.width),null!=this.height&&(t=this.height,s=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}},bf67:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return l}));var s=i("61b6"),a=i("1eae");function r(e,t){if(!(e>=0&&e<t))throw new Error("Index out of bounds: "+e)}class n{constructor(e=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new s["a"]}),this._values=e}get values(){return this._values}contains(e){return-1!==this._values.indexOf(e)}removeValue(e){let t=0,i=this._values.length;while(t<i)this._values[t]===e?(this.removeIndex(t),--i):++t}indexOf(e){return a["k"](this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:i})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:i})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){r(e,this._values.length);const i=this._values[e];return i!==t&&(this._values[e]=t,this._onSetIndex(e,i,t)),i}insertIndex(e,t){return r(e,this._values.length+1),a["l"](this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){const i=this._values.length;if(r(e,i),r(t,i),e!==t){const i=this._values[e],s=this._values[t];this._values[e]=s,this._onSetIndex(e,i,s),this._values[t]=i,this._onSetIndex(t,s,i)}}removeIndex(e){r(e,this._values.length);const t=this._values[e];return a["s"](this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let i=this.indexOf(e);if(-1!==i)if(a["s"](this._values,i),null==t){const t=this._values.length;this._values.push(e),this._onMoveIndex(i,t,e)}else a["l"](this._values,t,e),this._onMoveIndex(i,t,e);else null==t?(this._values.push(e),this._onPush(e)):(a["l"](this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){a["c"](e,e=>{this.push(e)})}copyFrom(e){this.pushAll(e._values)}pop(){let e=this._values.length-1;return e<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){const t=this._values;this._values=[],this._onClear(t),a["c"](e,e=>{this._values.push(e),this._onPush(e)})}clear(){this.setAll([])}*[Symbol.iterator](){const e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){a["c"](this._values,e)}eachReverse(e){a["e"](this._values,e)}}class o extends n{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_onSetIndex(e,t,i){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,i)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&a["c"](e,e=>{e.dispose()}),super._onClear(e)}_dispose(){this.autoDispose&&a["c"](this._values,e=>{e.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class l extends o{constructor(e,t){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=e,this.make=t}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},c151:function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));var s=i("483c"),a=i("15f8"),r=i("da80"),n=i("bf67"),o=i("9d71"),l=i("841d"),h=i("e28a"),c=i("0109"),u=i("1eae"),d=i("842e");function g(e,t){return null==e?t:null==t?e:t<e?t:e}function p(e,t){return null==e?t:null==t?e:t>e?t:e}class b extends r["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(o["a"].new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new n["a"]}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new a["b"](this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)u["c"](e.oldValues,e=>{this._removeAxisRange(e)});else if("push"===e.type)this._processAxisRange(e.newValue);else if("setIndex"===e.type)this._processAxisRange(e.newValue);else if("insertIndex"===e.type)this._processAxisRange(e.newValue);else if("removeIndex"===e.type)this._removeAxisRange(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value)}})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(e){const t=o["a"].new(this._root,{});e.container=t,this.children.push(t),e.series=this;const i=e.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const e=i.get("bullet");if(e){const t=e.get("sprite");t&&t.setPrivate("visible",!1)}const a=i.get("axisFill");a&&t.set("mask",a),s._seriesAxisRanges.push(i)}}_removeAxisRange(e){const t=e.axisDataItem,i=t.component;i.disposeDataItem(t),u["q"](i._seriesAxisRanges,t);const s=e.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&u["c"](this.valueXFields,e=>{const t=this.get(e+"Field");if(t){this._valueXFields.push(e);let t=this.get(e+"Show");this.__valueXShowFields.push(t),-1!=t.indexOf("Working")?this._valueXShowFields.push(t.split("Working")[0]):this._valueXShowFields.push(t)}}),this.valueYFields&&u["c"](this.valueYFields,e=>{const t=this.get(e+"Field");if(t){this._valueYFields.push(e);let t=this.get(e+"Show");this.__valueYShowFields.push(t),-1!=t.indexOf("Working")?this._valueYShowFields.push(t.split("Working")[0]):this._valueYShowFields.push(t)}})}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),u["r"](this.get("xAxis").series,this),u["r"](this.get("yAxis").series,this)}_min(e,t){let i=g(this.getPrivate(e),t);this.setPrivate(e,i)}_max(e,t){let i=p(this.getPrivate(e),t);this.setPrivate(e,i)}_shouldMakeBullet(e){const t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!t.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let e=this.startIndex(),r=this.endIndex(),n=r-e;if(t==s){if(t.get("renderer").axisLength()/n<a/5)return!1}else if(i==s&&i.get("renderer").axisLength()/n<a/5)return!1}return null!=e.get(this._xField)&&null!=e.get(this._yField)}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),s=d["e"](i),a=t.getPrivate("name"),r=d["e"](a),n=e.get("renderer").getPrivate("letter"),o=t.get("renderer").getPrivate("letter"),l="open",h="low",c="high",u="Show";"ValueAxis"===e.className?(this._xField=this.get(i+n+u),this._xOpenField=this.get(l+s+n+u),this._xLowField=this.get(h+s+n+u),this._xHighField=this.get(c+s+n+u)):(this._xField=i+n,this._xOpenField=l+s+n,this._xLowField=h+s+n,this._xHighField=c+s+n),"ValueAxis"===t.className?(this._yField=this.get(a+o+u),this._yOpenField=this.get(l+r+o+u),this._yLowField=this.get(h+r+o+u),this._yHighField=this.get(c+r+o+u)):(this._yField=a+o,this._yOpenField=l+r+o,this._yLowField=h+r+o,this._yHighField=c+r+o)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let r=0;a&&(r=.999999999999),e===i?s.set("vcy",r):(t===i||s.set("vcy",r),s.set("vcx",r))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-d["F"](e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-d["F"](t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX");let a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;const r=this.get("tooltipPositionY");let n;switch(r){case"open":n=this._yOpenField;break;case"low":n=this._yLowField;break;case"high":n=this._yHighField;break;default:n=this._yField}this._tooltipFieldY=n,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const o=this.get("stacked");if(this.isDirty("stacked")&&(o?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,o&&this._stack(),u["c"](this.dataItems,i=>{u["c"](this._valueXShowFields,e=>{let t=i.get(e);null!=t&&(o&&(t+=this.getStackedXValue(i,e)),this._min("minX",t),this._max("maxX",t))}),u["c"](this._valueYShowFields,e=>{let t=i.get(e);null!=t&&(o&&(t+=this.getStackedYValue(i,e)),this._min("minY",t),this._max("maxY",t))}),e.processSeriesDataItem(i,this._valueXFields),t.processSeriesDataItem(i,this._valueYFields)}),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesData(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),r=this.get("minBulletDistance",0);if(r>0&&i&&(i.get("renderer").axisLength()/(a-s)>r?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const r=this.get("vcx",1),n=this.get("vcy",1),o=this.get("stacked",!1),l=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processYSelectionDataItem(this.dataItems[e],n,o);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processXSelectionDataItem(this.dataItems[e],r,o);if((i===e||!i)&&"valueYWorking"!==this.get("valueYShow")){const e=this.getPrivate("selectionMinY");null!=e&&(this.setPrivateRaw("minY",e),t.markDirtyExtremes());const i=this.getPrivate("selectionMaxY");null!=i&&(this.setPrivateRaw("maxY",i),t.markDirtyExtremes())}if((i===t||!i)&&"valueXWorking"!==this.get("valueXShow")){const i=this.getPrivate("selectionMinX");null!=i&&(this.setPrivateRaw("minX",i),t.markDirtyExtremes());const s=this.getPrivate("selectionMaxX");null!=s&&(this.setPrivateRaw("maxX",s),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;null==e&&(e=this.children.push(l["a"].new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,i)=>{const s=this.parent;if(s){const e=this._root.container.width(),a=this._root.container.height();t.moveTo(-e,-a),t.lineTo(-e,2*a),t.lineTo(2*e,2*a),t.lineTo(2*e,-a),t.lineTo(-e,-a),this.axisRanges.each(e=>{const a=e.axisDataItem.get("axisFill");if(s&&a){let e=a.get("draw");e&&e(t,i)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let s=t-1;s>=0;s--)if(i=e.series.getIndex(s),i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked")))break}this._stackDataItems()}}_unstack(){c["b"](this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},u["c"](this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis");let s,a;e===t?(s="valueY",a="stackToItemY"):e===i&&(s="valueX",a="stackToItemX");let r=this._couldStackTo.length,n=0;const o=this.get("stackToNegative");this._reallyStackedTo={},u["c"](this.dataItems,e=>{for(let t=0;t<r;t++){let i=this._couldStackTo[t],r=i.dataItems[n],l=e.get(s);if(r){let t=r.get(s);if(o){if(!h["e"](l))break;if(h["e"](t)){if(l>=0&&t>=0){e.setRaw(a,r),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(l<0&&t<0){e.setRaw(a,r),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(h["e"](l)&&h["e"](t)){e.setRaw(a,r),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++})}processXSelectionDataItem(e,t,i){u["c"](this.__valueXShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(e,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*t))})}processYSelectionDataItem(e,t,i){u["c"](this.__valueYShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(e,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*t))})}getStackedYValueWorking(e,t){const i=e.get("stackToItemY");if(i){const e=i.component;return i.get(t,0)*e.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){const i=e.get("stackToItemX");if(i){const e=i.component;return i.get(t,0)*e.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){const i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){const i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),r=this.get("xAxis"),n=this.get("yAxis"),o=r.getDataItemPositionX(i,this._xField,s,this.get("vcx",1)),l=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1)),h=this.getPoint(o,l),c=i.get("left",h.x),u=i.get("right",h.x),d=i.get("top",h.y),g=i.get("bottom",h.y),p=0,b=0,m=u-c,f=g-d;if(this._shouldShowBullet(o,l)){t.setPrivate("visible",!e.getPrivate("hidden"));let r=e.get("field");const n=this.get("baseAxis"),u=this.get("xAxis"),d=this.get("yAxis");if(void 0!=r){let e;n==u?("value"==r?e=this._yField:"open"==r?e=this._yOpenField:"high"==r?e=this._yHighField:"low"==r&&(e=this._yLowField),e&&(l=d.getDataItemPositionY(i,e,0,this.get("vcy",1)),h=d.get("renderer").positionToPoint(l),b=h.y,p=c+m*s)):("value"==r?e=this._xField:"open"==r?e=this._xOpenField:"high"==r?e=this._xHighField:"low"==r&&(e=this._xLowField),e&&(o=u.getDataItemPositionX(i,e,0,this.get("vcx",1)),h=u.get("renderer").positionToPoint(o),p=h.x,b=g-f*a))}else p=c+m*s,b=g-f*a;const _=e.get("stacked");if(_){const e=this.chart;if(n==u){let i=this._bullets[o+"_"+l];if(i){let s=i.bounds(),a=t.localBounds(),r=b;b=s.top,"down"==_?b=s.bottom-a.top:"auto"==_?e&&(r<e.plotContainer.height()/2?b=s.bottom-a.top:b+=a.bottom):b+=a.bottom}this._bullets[o+"_"+l]=t}else{let i=this._bullets[o+"_"+l];if(i){let s=i.bounds(),a=t.localBounds(),r=p;p=s.right,"down"==_?p=s.left-a.right:"auto"==_?e&&(r<e.plotContainer.width()/2?p=s.left-a.right:p-=a.left):p-=a.left}this._bullets[o+"_"+l]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(m)),t.setPrivate("maxHeight",Math.abs(f))),t.setAll({x:p,y:b})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){c["b"](this._dataSets,(e,t)=>{t!=this._mainDataItems&&u["c"](t,e=>{this.disposeDataItem(e)})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){u["c"](this._dataItems,e=>{let t=e.bullets;t&&u["c"](t,e=>{if(e){let t=e.get("sprite");t&&t.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return Object(s["a"])(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");t!==i&&t.markDirtySelectionExtremes(),e!==i&&e.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)}))}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return Object(s["a"])(this,void 0,void 0,(function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)}))}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,e,t)];h["e"](t)||(t=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");u["c"](this._valueFields,i=>{s.push(e.animate({key:i+"Working",to:e.get(i),duration:t,easing:a}).waitForStop())}),yield Promise.all(s)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});h["e"](t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const r=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),o=this.get("yAxis"),l=this.get("baseAxis"),c=this.get("stacked");if(l!==n&&l||u["c"](this._valueYFields,i=>{let a=o.getPrivate("min"),n=o.baseValue();h["e"](a)&&a>n&&(n=a),c&&(n=0);let l=e.get(i);null!=l&&s.push(e.animate({key:i+"Working",to:n,duration:t,easing:r}).waitForStop())}),l===o||!l){let i=n.getPrivate("min"),a=n.baseValue();h["e"](i)&&i>a&&(a=i),c&&(a=0),u["c"](this._valueXFields,i=>{let n=e.get(i);null!=n&&s.push(e.animate({key:i+"Working",to:a,duration:t,easing:r}).waitForStop())})}yield Promise.all(s)}))}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&&c["b"](e,(e,t)=>{t._stackDirty||t._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));const t=this.get("tooltip");if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let i=this.get("locationX",0),s=this.get("locationY",1),a=e.get("locationX",i),r=e.get("locationY",s);const n=this.get("xAxis"),o=this.get("yAxis"),l=this.get("vcx",1),h=this.get("vcy",1),c=n.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*a,l),d=o.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*r,h),g=this.getPoint(c,d);let p=!0;if(u["c"](this._valueFields,t=>{null==e.get(t)&&(p=!1)}),p){const i=this.chart;i&&i.inPlot(g)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:g.x,y:g.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if("bullet"==this.get("seriesTooltipTarget")){const t=e.bullets;if(t&&t.length>0){const e=t[0],i=e.get("sprite");if(i)return i}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const i=t.get("label");if(i){let t="";e?(i._setDataItem(e),t=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),t=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",t)}const s=t.get("valueLabel");if(s){let t="";e?(s._setDataItem(e),t=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),t=this.get("legendRangeValueText",s.get("text",""))),s.set("text",t)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this.get("xAxis").get("renderer").positionToCoordinate(e),s=this.get("yAxis").get("renderer").positionToCoordinate(t),a=999999999;return s<-a&&(s=-a),s>a&&(s=a),i<-a&&(i=-a),i>a&&(i=a),{x:i,y:s}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){const t=this.get("xAxis"),i=this.get("baseAxis");if(i==t&&t.isType("DateAxis")){const i=t.baseDuration(),s=t.getPrivate("selectionMin",t.getPrivate("min",0)),a=i*this.get("locationX",.5);let r=-1/0;while(r<s){const t=this.dataItems[e];if(!t)break;{const i=t.open;if(r=i?i["valueX"]:t.get("valueX",0),r+=a,!(r<s))break;e++}}}return e}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r["a"].classNames.concat([b.className])});Array.prototype.slice;var m=function(e){return"object"===typeof e&&"length"in e?e:Array.from(e)},f=i("d8ad");function _(e){this._context=e}_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};var v=function(e){return new _(e)},y=i("2bee");function x(e){return e[0]}function w(e){return e[1]}var P=function(e,t){var i=Object(f["a"])(!0),s=null,a=v,r=null,n=Object(y["a"])(o);function o(o){var l,h,c,u=(o=m(o)).length,d=!1;for(null==s&&(r=a(c=n())),l=0;l<=u;++l)!(l<u&&i(h=o[l],l,o))===d&&((d=!d)?r.lineStart():r.lineEnd()),d&&r.point(+e(h,l,o),+t(h,l,o));if(c)return r=null,c+""||null}return e="function"===typeof e?e:void 0===e?x:Object(f["a"])(e),t="function"===typeof t?t:void 0===t?w:Object(f["a"])(t),o.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(f["a"])(+t),o):e},o.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(f["a"])(+e),o):t},o.defined=function(e){return arguments.length?(i="function"===typeof e?e:Object(f["a"])(!!e),o):i},o.curve=function(e){return arguments.length?(a=e,null!=s&&(r=a(s)),o):a},o.context=function(e){return arguments.length?(null==e?s=r=null:r=a(s=e),o):s},o},D=function(e,t,i){var s=null,a=Object(f["a"])(!0),r=null,n=v,o=null,l=Object(y["a"])(h);function h(h){var c,u,d,g,p,b=(h=m(h)).length,f=!1,_=new Array(b),v=new Array(b);for(null==r&&(o=n(p=l())),c=0;c<=b;++c){if(!(c<b&&a(g=h[c],c,h))===f)if(f=!f)u=c,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),d=c-1;d>=u;--d)o.point(_[d],v[d]);o.lineEnd(),o.areaEnd()}f&&(_[c]=+e(g,c,h),v[c]=+t(g,c,h),o.point(s?+s(g,c,h):_[c],i?+i(g,c,h):v[c]))}if(p)return o=null,p+""||null}function c(){return P().defined(a).curve(n).context(r)}return e="function"===typeof e?e:void 0===e?x:Object(f["a"])(+e),t="function"===typeof t?t:void 0===t?Object(f["a"])(0):Object(f["a"])(+t),i="function"===typeof i?i:void 0===i?w:Object(f["a"])(+i),h.x=function(t){return arguments.length?(e="function"===typeof t?t:Object(f["a"])(+t),s=null,h):e},h.x0=function(t){return arguments.length?(e="function"===typeof t?t:Object(f["a"])(+t),h):e},h.x1=function(e){return arguments.length?(s=null==e?null:"function"===typeof e?e:Object(f["a"])(+e),h):s},h.y=function(e){return arguments.length?(t="function"===typeof e?e:Object(f["a"])(+e),i=null,h):t},h.y0=function(e){return arguments.length?(t="function"===typeof e?e:Object(f["a"])(+e),h):t},h.y1=function(e){return arguments.length?(i=null==e?null:"function"===typeof e?e:Object(f["a"])(+e),h):i},h.lineX0=h.lineY0=function(){return c().x(e).y(t)},h.lineY1=function(){return c().x(e).y(i)},h.lineX1=function(){return c().x(s).y(t)},h.defined=function(e){return arguments.length?(a="function"===typeof e?e:Object(f["a"])(!!e),h):a},h.curve=function(e){return arguments.length?(n=e,null!=r&&(o=n(r)),h):n},h.context=function(e){return arguments.length?(null==e?r=o=null:o=n(r=e),h):r},h},k=i("c95f"),T=i("08b0"),O=i("5f47");class M extends b{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:P()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:D()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n["c"](k["a"].new({}),()=>l["a"]._new(this._root,{themeTags:d["C"](this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new n["c"](k["a"].new({}),()=>l["a"]._new(this._root,{themeTags:d["C"](this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0((function(e){return e[3]})),this._fillGenerator.x0((function(e){return e[2]})),this._fillGenerator.y1((function(e){return e[1]})),this._fillGenerator.x1((function(e){return e[0]})),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const e=this.get("stroke");this.strokes.template.set("stroke",e);const t=this._legendStroke;t&&t.states.lookup("default").set("stroke",e)}if(this.isDirty("fill")){const e=this.get("fill");this.fills.template.set("fill",e);const t=this._legendFill;t&&t.states.lookup("default").set("fill",e)}if(this.isDirty("fillPattern")){const e=this.get("fillPattern");this.fills.template.set("fillPattern",e);const t=this._legendFill;t&&t.states.lookup("default").set("fillPattern",e)}if(this.isDirty("curveFactory")){const e=this.get("curveFactory");e&&(this._strokeGenerator.curve(e),this._fillGenerator.curve(e))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each(e=>{e.setPrivate("visible",!1)}),this.strokes.each(e=>{e.setPrivate("visible",!1)}),this.axisRanges.each(e=>{let t=e.fills;t&&t.each(e=>{e.setPrivate("visible",!1)});let i=e.strokes;i&&i.each(e=>{e.setPrivate("visible",!1)})});let e=this.startIndex(),t=this.strokes.template.get("templateField"),i=this.fills.template.get("templateField"),s=!0,a=!0;t&&(s=!1),i&&(a=!1);for(let o=e-1;o>=0;o--){let r=this.dataItems[o],n=!0,l=r.dataContext;if(t&&l[t]&&(s=!0),i&&l[i]&&(a=!0),u["c"](this._valueFields,e=>{h["e"](r.get(e))||(n=!1)}),n&&s&&a){e=o;break}}let r=this.dataItems.length,n=this.endIndex();if(n<r){n++;for(let e=n;e<r;e++){let t=this.dataItems[e],i=!0;if(u["c"](this._valueFields,e=>{h["e"](t.get(e))||(i=!1)}),i){n=e+1;break}}}if(e>0&&e--,this._endIndex=n,this._clearGraphics(),this._sindex=0,this._dindex=e,1==this.dataItems.length)this._startSegment(0);else while(this._dindex<n-1)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(e=>{e.fills.clear(),e.strokes.clear()})}_startSegment(e){let t=this._endIndex,i=t;const s=this.get("autoGapCount"),a=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,o=this.fills.template;n&&n!=o&&(r.template=n),r.setPrivate("visible",!0);const l=this.makeStroke(this.strokes),h=this._strokeTemplate;h&&h!=this.strokes.template&&(l.template=h),l.setPrivate("visible",!0);let c=this.get("xAxis"),u=this.get("yAxis"),d=this.get("baseAxis"),g=this.get("vcx",1),p=this.get("vcy",1),b=this._xField,m=this._yField,f=this._xOpenField,_=this._yOpenField;const v=this.get("openValueXField"),y=this.get("openValueYField");v||(f=this._xField),y||(_=this._yField);const x=this.get("stacked"),w=c.basePosition(),P=u.basePosition();let D;D=d===u?this._yField:this._xField;const T=[];let O=[];T.push(O);const M=this.strokes.template.get("templateField"),A=this.fills.template.get("templateField");let S=this.get("locationX",.5),C=this.get("locationY",.5),j=this.get("openLocationX",S),R=this.get("openLocationY",C);const L=this.get("minDistance",0);let I,E=this.fills.template.get("visible");this.axisRanges.length>0&&(E=!0);let B=!1;(x||v||y)&&(B=!0);const F={points:O,segments:T,stacked:x,getOpen:B,basePosX:w,basePosY:P,fillVisible:E,xField:b,yField:m,xOpenField:f,yOpenField:_,vcx:g,vcy:p,baseAxis:d,xAxis:c,yAxis:u,locationX:S,locationY:C,openLocationX:j,openLocationY:R,minDistance:L};let N=this._strokeTemplate,Y=this._fillTemplate;for(I=e;I<i;I++){this._dindex=I;const t=this._dataItems[I];let n=t.get(b),o=t.get(m);if(null==n||null==o?a||(O=[],T.push(O),F.points=O):this._getPoints(t,F),M){let s=t.dataContext[M];if(s){if(s instanceof k["a"]||(s=k["a"].new(s)),this._strokeTemplate=s,I>e){i=I;break}N=s,l.template=s}}if(A){let s=t.dataContext[A];if(s){if(s instanceof k["a"]||(s=k["a"].new(s)),this._fillTemplate=s,I>e){i=I;break}Y=s,r.template=s}}if(!a){let e=this.dataItems[I+1];e&&d.shouldGap(t,e,s,D)&&(O=[],T.push(O),F.points=O)}}r.setRaw("userData",[e,I]),l.setRaw("userData",[e,I]),I===t&&this._endLine(O,T[0][0]),l&&this._drawStroke(l,T),r&&this._drawFill(r,T),this.axisRanges.each(t=>{const i=t.container,s=t.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,T);const r=t.strokes,n=this.makeStroke(r);i&&i.children.push(n),N&&N!=this.strokes.template&&(n.template=N),Y&&Y!=this.fills.template&&(a.template=Y),n.setPrivate("visible",!0),this._drawStroke(n,T),a.setRaw("userData",[e,I]),n.setRaw("userData",[e,I])})}_getPoints(e,t){let i=t.points,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY),r=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx),n=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy);if(this._shouldInclude(r)){const s=this.getPoint(r,n),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,e.set("point",s),t.fillVisible){let i=r,s=n;if(t.baseAxis===t.xAxis?s=t.basePosY:t.baseAxis===t.yAxis&&(i=t.basePosX),t.getOpen){let a=e.get(t.xOpenField),r=e.get(t.yOpenField);if(null!=a&&null!=r){let a=e.get("openLocationX",t.openLocationX),r=e.get("openLocationY",t.openLocationY);if(t.stacked){let n=e.get("stackToItemX"),o=e.get("stackToItemY");n?(i=t.xAxis.getDataItemPositionX(n,t.xField,a,n.component.get("vcx")),h["d"](i)&&(i=t.basePosX)):i=t.yAxis===t.baseAxis?t.basePosX:t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx),o?(s=t.yAxis.getDataItemPositionY(o,t.yField,r,o.component.get("vcy")),h["d"](s)&&(s=t.basePosY)):s=t.xAxis===t.baseAxis?t.basePosY:t.yAxis.getDataItemPositionY(e,t.yOpenField,r,t.vcy)}else i=t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx),s=t.yAxis.getDataItemPositionY(e,t.yOpenField,r,t.vcy)}}let o=this.getPoint(i,s);a[2]=o.x,a[3]=o.y}if(t.minDistance>0){const e=a[0],s=a[1],r=a[2],n=a[3],o=this._previousPoint,l=o[0],h=o[1],c=o[2],u=o[3];(Math.hypot(e-l,s-h)>t.minDistance||r&&n&&Math.hypot(r-c,n-u)>t.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{u["c"](t,t=>{this._strokeGenerator.context(e),this._strokeGenerator(t)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{u["c"](t,t=>{this._fillGenerator.context(e),this._fillGenerator(t)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new n["c"](k["a"].new({}),()=>l["a"]._new(this._root,{themeTags:d["C"](e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new n["c"](k["a"].new({}),()=>l["a"]._new(this._root,{themeTags:d["C"](e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const e=t.get("marker"),i=t.get("markerRectangle");i&&i.setPrivate("visible",!1),e.set("background",O["a"].new(e._root,{fillOpacity:0,fill:Object(T["b"])(0)}));const s=e.children.push(l["a"]._new(e._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const r=e.children.push(l["a"]._new(e._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=r;const n=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:n,stroke:n}),r.states.create("disabled",{fill:n,stroke:n}),this.bullets.length>0){const t=this.bullets.getIndex(0);if(t){const i=t(e._root,this,new a["b"](this,{legend:!0},{}));if(i){const t=i.get("sprite");t instanceof l["a"]&&t.states.create("disabled",{fill:n,stroke:n}),t&&(t.set("tooltipText",void 0),t.set("tooltipHTML",void 0),e.children.push(t),t.setAll({x:e.width()/2,y:e.height()/2}),e.events.on("boundschanged",()=>{t.setAll({x:e.width()/2,y:e.height()/2})}))}}}}}}Object.defineProperty(M,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"}),Object.defineProperty(M,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:b.classNames.concat([M.className])});class A{constructor(e,t){Object.defineProperty(this,"_line",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_point",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_x1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_t0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tension",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._context=e,this._tension=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:L(this,this._t0,R(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){let i=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,L(this,R(this,i=j(this,e,t)),i);break;default:L(this,this._t0,i=j(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=i}}}function S(e){function t(t){return new A(t,e)}return t}function C(e){return e<0?-1:1}function j(e,t,i){let s=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(s||a<0&&-0),n=(i-e._y1)/(a||s<0&&-0),o=(r*a+n*s)/(s+a);return(C(r)+C(n))*Math.min(Math.abs(r),Math.abs(n),.5*Math.abs(o))||0}function R(e,t){let i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-t)/2:t}function L(e,t,i){let s=e._x0,a=e._y0,r=e._x1,n=e._y1,o=(r-s)/1.5*(1-e._tension);e._context.bezierCurveTo(s+o,a+o*t,r-o,n-o*i,r,n)}class I extends M{_afterNew(){this._setDefault("curveFactory",S(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",S(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}Object.defineProperty(I,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SmoothedXLineSeries"}),Object.defineProperty(I,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:M.classNames.concat([I.className])})},c95f:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("61b6"),a=i("9197"),r=i("1eae"),n=i("0109"),o=i("e28a");function l(e){n["b"](e,(e,t)=>{o["f"](t)&&"function"===typeof t.dispose&&(t.enableDispose=!0,t.dispose())})}class h{constructor(e,t,i){Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._name=e,this._template=t,this._settings=i}_dispose(){l(this._settings)}get(e,t){const i=this._settings[e];return void 0!==i?i:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){n["d"](e).forEach(t=>{this._settings[t]=e[t]}),this._template._stateChanged(this._name)}_apply(e,t){n["b"](this._settings,(i,s)=>{t[i]||e._userSettings[i]||(t[i]=!0,e.setRaw(i,s))})}}class c{constructor(e){Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._template=e}_dispose(){n["b"](this._states,(e,t)=>{t._dispose()})}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new h(e,this._template,t);return this._states[e]=i,this._template._stateChanged(e),i}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){n["b"](this._states,(i,s)=>{let a=t.states[i];null==a&&(a=t.states[i]={});const r=e.states.create(i,{});s._apply(r,a)})}}class u{constructor(){Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),new a["c"](()=>{r["r"](i,t),0===i.length&&delete this._callbacks[e]})}remove(e){const t=this._callbacks[e];void 0!==t&&delete this._callbacks[e]}_apply(e){const t=[];return n["b"](this._callbacks,(i,s)=>{r["c"](s,s=>{t.push(e.adapters.add(i,s))})}),new a["e"](t)}}class d{constructor(e,t){if(Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entities",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new c(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new u}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new s["a"]}),Object.defineProperty(this,"setup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new d(e,!0)}_dispose(){l(this._settings),l(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(e,t){this._checkDisposed();const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._checkDisposed(),this._settings[e]=t}set(e,t){this._checkDisposed(),this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach(i=>{i._setTemplateProperty(this,e,t)}))}remove(e){this._checkDisposed(),e in this._settings&&(delete this._settings[e],this._entities.forEach(t=>{t._removeTemplateProperty(e)}))}removeAll(){this._checkDisposed(),n["b"](this._settings,(e,t)=>{this.remove(e)})}getPrivate(e,t){this._checkDisposed();const i=this._privateSettings[e];return void 0!==i?i:t}setPrivateRaw(e,t){return this._checkDisposed(),this._privateSettings[e]=t,t}setPrivate(e,t){return this._checkDisposed(),this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEach(i=>{i._setTemplatePrivateProperty(this,e,t)})),t}removePrivate(e){this._checkDisposed(),e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach(t=>{t._removeTemplatePrivateProperty(e)}))}setAll(e){this._checkDisposed(),n["b"](e,(e,t)=>{this.set(e,t)})}on(e,t){this._checkDisposed();let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new a["c"](()=>{r["r"](i,t),0===i.length&&delete this._settingEvents[e]})}onPrivate(e,t){this._checkDisposed();let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new a["c"](()=>{r["r"](i,t),0===i.length&&delete this._privateSettingEvents[e]})}_apply(e,t){this._checkDisposed();const i=[];return n["b"](this._settingEvents,(t,s)=>{r["c"](s,s=>{i.push(e.on(t,s))})}),n["b"](this._privateSettingEvents,(t,s)=>{r["c"](s,s=>{i.push(e.onPrivate(t,s))})}),this.states._apply(e,t),i.push(this.adapters._apply(e)),i.push(e.events.copyFrom(this.events)),new a["e"](i)}_setObjectTemplate(e){this._checkDisposed(),this._entities.push(e)}_removeObjectTemplate(e){r["q"](this._entities,e)}_stateChanged(e){this._checkDisposed(),this._entities.forEach(t=>{t._applyStateByKey(e)})}}},cc0e:function(e,t,i){"use strict";i.d(t,"i",(function(){return a})),i.d(t,"f",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"e",(function(){return l})),i.d(t,"c",(function(){return h})),i.d(t,"a",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"h",(function(){return d})),i.d(t,"b",(function(){return g}));var s=i("e28a");i("842e");function a(e){return new Promise((t,i)=>{setTimeout(t,e)})}let r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function n(e){switch(e){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function o(e,t){return null==t&&(t=1),r[e]*t}function l(e){return e?r[e.timeUnit]*e.count:0}function h(e,t,i,s,a){const n=e.timeUnit,l=e.count;if("hour"==n||"minute"==n||"second"==n||"millisecond"==n)return r[e.timeUnit]*e.count;{const e=d(new Date(t.getTime()),n,l,i,s,void 0,a).getTime();let r=e+l*o(n)*1.05;return r=d(new Date(r),n,1,i,s,void 0,a).getTime(),r-e}}function c(e,t,i,s,a){if(t-e>o(i,1.2))return!0;let r=new Date(e),l=new Date(t);a&&(r=a.convertLocal(r),l=a.convertLocal(l));let h=0,u=0;s||"millisecond"==i||(h=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-h),u=l.getTimezoneOffset(),l.setUTCMinutes(l.getUTCMinutes()-u));let d=!1;switch(i){case"year":r.getUTCFullYear()!=l.getUTCFullYear()&&(d=!0);break;case"month":(r.getUTCFullYear()!=l.getUTCFullYear()||r.getUTCMonth()!=l.getUTCMonth())&&(d=!0);break;case"day":(r.getUTCMonth()!=l.getUTCMonth()||r.getUTCDate()!=l.getUTCDate())&&(d=!0);break;case"hour":r.getUTCHours()!=l.getUTCHours()&&(d=!0);break;case"minute":r.getUTCMinutes()!=l.getUTCMinutes()&&(d=!0);break;case"second":r.getUTCSeconds()!=l.getUTCSeconds()&&(d=!0);break;case"millisecond":r.getTime()!=l.getTime()&&(d=!0);break}if(d)return d;let g=n(i);return!!g&&c(e,t,g,s,a)}function u(e,t,i,s,a){let r;return null!=a&&(r=new Date(a)),d(new Date(e),t,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function d(e,t,i,a,r,n,l){if(!l||r){let l=0;switch(r||"millisecond"==t||(l=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-l)),t){case"day":let t=e.getUTCDate();if(i>1){if(n){n=d(n,"day",1);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("day")/i),a=o("day",s*i);e.setTime(n.getTime()+a-l*o("minute"))}}else e.setUTCDate(t);e.setUTCHours(0,0,0,0);break;case"second":let r=e.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),e.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return e;let h=e.getUTCMilliseconds();h=Math.floor(h/i)*i,e.setUTCMilliseconds(h);break;case"hour":let c=e.getUTCHours();i>1&&(c=Math.floor(c/i)*i),e.setUTCHours(c,0,0,0);break;case"minute":let u=e.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),e.setUTCMinutes(u,0,0);break;case"month":let g=e.getUTCMonth();i>1&&(g=Math.floor(g/i)*i),e.setUTCMonth(g,1),e.setUTCHours(0,0,0,0);break;case"year":let p=e.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),e.setUTCFullYear(p,0,1),e.setUTCHours(0,0,0,0);break;case"week":if(i>1&&n){n=d(n,"week",1);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("week")/i),a=o("week",s*i);e.setTime(n.getTime()+a-l*o("minute"))}let b=e.getUTCDate(),m=e.getUTCDay();s["e"](a)||(a=1),b=m>=a?b-m+a:b-(7+m)+a,e.setUTCDate(b),e.setUTCHours(0,0,0,0);break}if(!r&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+l),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=l){let i=t-l;e.setUTCMinutes(e.getUTCMinutes()+i)}}return e}{if(isNaN(e.getTime()))return e;let h=l.offsetUTC(e),c=e.getTimezoneOffset(),u=l.parseDate(e),g=u.year,p=u.month,b=u.day,m=u.hour,f=u.minute,_=u.second,v=u.millisecond,y=u.weekday,x=h-c;switch(t){case"day":if(i>1&&n){n=d(n,"day",1,a,r,void 0,l);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("day")/i),h=o("day",s*i);e.setTime(n.getTime()+h),u=l.parseDate(e),g=u.year,p=u.month,b=u.day}m=0,f=x,_=0,v=0;break;case"second":f+=x,i>1&&(_=Math.floor(_/i)*i),v=0;break;case"millisecond":f+=x,i>1&&(v=Math.floor(v/i)*i);break;case"hour":i>1&&(m=Math.floor(m/i)*i),f=x,_=0,v=0;break;case"minute":i>1&&(f=Math.floor(f/i)*i),f+=x,_=0,v=0;break;case"month":i>1&&(p=Math.floor(p/i)*i),b=1,m=0,f=x,_=0,v=0;break;case"year":i>1&&(g=Math.floor(g/i)*i),p=0,b=1,m=0,f=x,_=0,v=0;break;case"week":s["e"](a)||(a=1),b=y>=a?b-y+a:b-(7+y)+a,m=0,f=x,_=0,v=0;break}e=new Date(g,p,b,m,f,_,v);let w=e.getTimezoneOffset(),P=l.offsetUTC(e),D=P-w;return D!=x&&e.setTime(e.getTime()+6e4*(D-x)),e}}function g(e,t,i,s){let a=s[e],r=l(a),n=s.length-1;if(e>=n)return Object.assign({},s[n]);let o=Math.ceil(t/r);return t<r&&e>0?Object.assign({},s[e-1]):o<=i?Object.assign({},s[e]):e+1<s.length?g(e+1,t,i,s):Object.assign({},s[e])}},ccf7:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("83b2");class a extends s["a"]{}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},cfd0:function(e,t,i){"use strict";i.d(t,"a",(function(){return c}));var s=i("da80"),a=i("9d71"),r=i("bd57"),n=i("3ab4"),o=i("c95f"),l=i("bf67"),h=i("842e");class c extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"itemContainers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l["c"](o["a"].new({}),()=>a["a"]._new(this._root,{themeTags:h["C"](this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:h["C"](this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:n["a"].new(this._root,{themeTags:h["C"](this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:h["C"](this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template])))}),Object.defineProperty(this,"markers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l["c"](o["a"].new({}),()=>a["a"]._new(this._root,{themeTags:h["C"](this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template])))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l["c"](o["a"].new({}),()=>r["a"]._new(this._root,{themeTags:h["C"](this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template])))}),Object.defineProperty(this,"valueLabels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l["c"](o["a"].new({}),()=>r["a"]._new(this._root,{themeTags:h["C"](this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template])))}),Object.defineProperty(this,"markerRectangles",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new l["c"](o["a"].new({}),()=>n["a"]._new(this._root,{themeTags:h["C"](this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template])))})}_afterNew(){this._settings.themeTags=h["C"](this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(e){const t=this.children.push(this.itemContainers.make());return t._setDataItem(e),this.itemContainers.push(t),t.states.create("disabled",{}),t}makeMarker(){const e=this.markers.make();return this.markers.push(e),e.states.create("disabled",{}),e}makeLabel(){const e=this.labels.make();return e.states.create("disabled",{}),e}makeValueLabel(){const e=this.valueLabels.make();return e.states.create("disabled",{}),e}makeMarkerRectangle(){const e=this.markerRectangles.make();return e.states.create("disabled",{}),e}processDataItem(e){super.processDataItem(e);const t=this.makeItemContainer(e),i=this.get("nameField"),s=this.get("fillField"),a=this.get("strokeField");if(t){const r=this.get("clickTarget","itemContainer"),n=e.dataContext;n&&n.set&&n.set("legendDataItem",e),t._setDataItem(e),e.set("itemContainer",t);const o=this.makeMarker();if(o){t.children.push(o),o._setDataItem(e),e.set("marker",o);const i=this.get("useDefaultMarker"),r=o.children.push(this.makeMarkerRectangle());let l=e.get("fill"),h=e.get("stroke");e.set("markerRectangle",r),n&&n.get&&(l=n.get(s,l),h=n.get(a,h)),h||(h=l),i?n.on&&(n.on(s,()=>{r.set("fill",n.get(s))}),n.on(a,()=>{r.set("stroke",n.get(a))})):n&&n.createLegendMarker&&n.createLegendMarker(),r.setAll({fill:l,stroke:h});const c=n.component;c&&c.updateLegendMarker&&c.updateLegendMarker(n)}const l=this.makeLabel();if(l){t.children.push(l),l._setDataItem(e),e.set("label",l),l.text.on("text",()=>{t.setRaw("ariaLabel",l.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),t.markDirtyAccessibility()}),n&&n.get&&e.set("name",n.get(i));let s=e.get("name");s&&l.set("text",s)}const h=this.makeValueLabel();if(h&&(t.children.push(h),h._setDataItem(e),e.set("valueLabel",h)),n&&n.show&&(n.on("visible",e=>{t.set("disabled",!e)}),n.get("visible")||t.set("disabled",!0),"none"!=r)){let i=t;"marker"==r&&(i=o),this._addClickEvents(i,n,e)}this.children.values.sort((e,t)=>{const i=e.dataItem.dataContext,s=t.dataItem.dataContext;if(i&&s){const e=this.data.indexOf(i),t=this.data.indexOf(s);if(e>t)return 1;if(e<t)return-1}return 0}),n&&n.updateLegendValue&&n.updateLegendValue()}}_addClickEvents(e,t,i){e.set("cursorOverStyle","pointer"),e.events.on("pointerover",()=>{const e=t.component;e&&e.hoverDataItem&&e.hoverDataItem(t)}),e.events.on("pointerout",()=>{const e=t.component;e&&e.hoverDataItem&&e.unhoverDataItem(t)}),e.events.on("click",()=>{const s=i.get("label").text._getText();t.show&&t.isHidden&&(t.isHidden()||!1===t.get("visible"))?(t.show(),e.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):t.hide&&(t.hide(),e.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))})}disposeDataItem(e){super.disposeDataItem(e);const t=e.dataContext;if(t&&t.get){const i=t.get("legendDataItem");i==e&&t.set("legendDataItem",void 0)}let i=e.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=e.get("marker");s&&(this.markers.removeValue(s),s.dispose());let a=e.get("markerRectangle");a&&(this.markerRectangles.removeValue(a),a.dispose());let r=e.get("label");r&&(this.labels.removeValue(r),r.dispose());let n=e.get("valueLabel");n&&(this.valueLabels.removeValue(n),n.dispose())}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Legend"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([c.className])})},d5c2:function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));var s=i("7d61"),a=i("f1d5"),r=i("0109"),n=i("842e"),o=i("e28a");class l extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_unitAliases",{enumerable:!0,configurable:!0,writable:!0,value:{Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}})}_setDefaults(){const e="_duration_millisecond",t="_duration_second",i="_duration_minute",s="_duration_hour",a="_duration_day",r="_duration_week",n="_duration_month",o="_duration_year",l="_second",h="_minute",c="_hour",u="_day",d="_week",g="_week",p="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+l),minute:this._t(e+h),hour:this._t(e+c),day:this._t(e+u),week:this._t(e+d),month:this._t(e+g),year:this._t(e+p)},second:{second:this._t(t),minute:this._t(t+h),hour:this._t(t+c),day:this._t(t+u),week:this._t(t+d),month:this._t(t+g),year:this._t(t+p)},minute:{minute:this._t(i),hour:this._t(i+c),day:this._t(i+u),week:this._t(i+d),month:this._t(i+g),year:this._t(i+p)},hour:{hour:this._t(s),day:this._t(s+u),week:this._t(s+d),month:this._t(s+g),year:this._t(s+p)},day:{day:this._t(a),week:this._t(a+d),month:this._t(a+g),year:this._t(a+p)},week:{week:this._t(r),month:this._t(r+g),year:this._t(r+p)},month:{month:this._t(n),year:this._t(n+p)},year:{year:this._t(o)}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let s=i||this.get("baseUnit");"undefined"!==typeof t&&""!==t||(t=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(o["j"](e),void 0,s)),t=n["f"](t);let a,r=this.parseFormat(t,s),l=Number(e);a=l>this.get("negativeBase")?r.positive:l<this.get("negativeBase")?r.negative:r.zero;let h=this.applyFormat(l,a);return""!==a.color&&(h="["+a.color+"]"+h+"[/]"),h}parseFormat(e,t){let i=t||this.get("baseUnit"),s={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}};e=e.replace("||",o["b"]);let n=e.split("|");return s.positive.source=n[0],"undefined"===typeof n[2]?s.zero=s.positive:s.zero.source=n[2],"undefined"===typeof n[1]?s.negative=s.positive:s.negative.source=n[1],r["b"](s,(e,t)=>{if(t.parsed)return;let i=t.source,s=[];s=t.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=t.source.substr(s[0].length),t.color=s[1]);let r=a["a"].chunk(i,!0);for(let a=0;a<r.length;a++){let e=r[a];if(e.text=e.text.replace(o["b"],"|"),"value"===e.type){e.text.match(/[yYMdDwhHKkmsSn]+a/)&&(t.absolute=!0,e.text=e.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let i=e.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(i)for(let s=0;s<i.length;s++)null==i[s]&&(i[s]=this._unitAliases[i[s]]),t.parts.push(i[s]),e.text=e.text.replace(i[s],o["a"])}t.template+=e.text}t.parsed=!0}),s}applyFormat(e,t){let i=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let s=this.toTimeStamp(e,t.baseUnit),a=t.template;for(let r=0,l=t.parts.length;r<l;r++){let e,i=t.parts[r],h=this._toTimeUnit(i.substr(0,1)),c=i.length;const u=this._getUnitValue(h);e=r<l-1?Math.floor(s/u):Math.round(s/u),a=a.replace(o["a"],n["E"](e,c,"0")),s-=e*u}return i&&(a="-"+a),a}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,i){if(null!=this.get("durationFormat"))return this.get("durationFormat");if(i||(i=this.get("baseUnit")),null!=t&&e!=t){e=Math.abs(e),t=Math.abs(t);let s=this.getValueUnit(Math.max(e,t),i);return this.get("durationFormats")[i][s]}{let t=this.getValueUnit(e,i);return this.get("durationFormats")[i][t]}}getValueUnit(e,t){let i;t||(t=this.get("baseUnit"));let s=this.getMilliseconds(e,t);return r["c"](this._getUnitValues(),(e,a)=>{if(e==t||i){let t=s/a;if(t<=1)return i||(i=e),!1;i=e}return!0}),i}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}},d675:function(e,t,i){"use strict";i.d(t,"a",(function(){return _}));var s=i("483c"),a=i("da80"),r=i("9d71"),n=i("841d"),o=i("1eae"),l=i("e28a");class h extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r["a"].new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r["a"].new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r["a"].new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeSlices())}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeLabels())}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(this._makeTicks())})}makeSlice(e){const t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){const t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return null!=e.get("value")}makeTick(e){const t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){const e=this.get("colors");e&&e.reset();const t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;o["c"](this._dataItems,i=>{let s=i.get("valueWorking",0);e+=s,t+=Math.abs(s)}),o["c"](this._dataItems,e=>{let r=e.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;0==t&&(n=0),e.setRaw("valuePercentTotal",100*n)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return Object(s["a"])(this,void 0,void 0,(function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)}))}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return Object(s["a"])(this,void 0,void 0,(function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)}))}_updateChildren(){super._updateChildren(),this._valuesDirty&&o["c"](this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&o["c"](this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),o["c"](this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),null==e.get("fill")){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(null==e.get("fillPattern")){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,e,t)];l["e"](t)||(t=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");let r=e.get("value");const n=e.animate({key:"valueWorking",to:r,duration:t,easing:a});n&&s.push(n.waitForStop());const o=e.get("tick");o&&s.push(o.show(t));const h=e.get("label");h&&s.push(h.show(t));const c=e.get("slice");c&&s.push(c.show(t)),c.get("active")&&c.states.applyAnimate("active"),yield Promise.all(s)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});l["e"](t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const r=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=e.animate({key:"valueWorking",to:0,duration:t,easing:r});n&&s.push(n.waitForStop());const o=e.get("tick");o&&s.push(o.hide(t));const h=e.get("label");h&&s.push(h.hide(t));const c=e.get("slice");c.hideTooltip(),c&&s.push(c.hide(t)),yield Promise.all(s)}))}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){const t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){const t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){const t=e.get("slice");if(t){const i=e.get("legendDataItem");if(i){const e=i.get("markerRectangle");o["c"](n["b"],i=>{null!=t.get(i)&&e.set(i,t.get(i))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((e,t)=>e.y>t.y?1:e.y<t.y?-1:0),o["c"](e,e=>{const i=e.label.adjustedLocalBounds();let s=i.top;e.y+s<t&&(e.y=t-s),e.label.set("y",e.y),t=e.y+i.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((e,t)=>e.y<t.y?1:e.y>t.y?-1:0),o["c"](e,e=>{const i=e.label.adjustedLocalBounds();let s=i.bottom;e.y+s>t&&(e.y=t-s),e.label.set("y",e.y),t=e.y+i.top})}}_arrangeRight(e){if(e){let t=0;e.sort((e,t)=>e.y>t.y?1:e.y<t.y?-1:0),o["c"](e,e=>{const i=e.label.adjustedLocalBounds();let s=i.left;e.y+s<t&&(e.y=t-s),e.label.set("x",e.y),t=e.y+i.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((e,t)=>e.y<t.y?1:e.y>t.y?-1:0),o["c"](e,e=>{const i=e.label.adjustedLocalBounds();let s=i.right;e.y+s>t&&(e.y=t-s),e.label.set("x",e.y),t=e.y+i.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();const e=this.chart;e&&e.series.removeValue(this)}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([h.className])});var c=i("c95f"),u=i("7d4e"),d=i("ccf7"),g=i("0e04"),p=i("bf67"),b=i("be4b"),m=i("48ef"),f=i("842e");class _ extends h{_makeSlices(){return new p["c"](c["a"].new({}),()=>u["a"]._new(this._root,{themeTags:f["C"](this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new p["c"](c["a"].new({}),()=>g["a"]._new(this._root,{themeTags:f["C"](this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new p["c"](c["a"].new({}),()=>d["a"]._new(this._root,{themeTags:f["C"](this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);const t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});const i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){const e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){const e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();const e=this.chart;if(e){if(this.isDirty("alignLabels")){let e=this.labels.template;if(this.get("alignLabels"))e.set("textType","aligned");else{let t=e.get("textType");null!=t&&"aligned"!=t||e.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();const t=this.get("startAngle",e.get("startAngle",-90)),i=this.get("endAngle",e.get("endAngle",270)),s=i-t;let a=t;const r=e.radius(this);this.setPrivateRaw("radius",r);let n=e.innerRadius(this)*e.getPrivate("irModifyer",1);n<0&&(n=r+n),o["c"](this._dataItems,e=>{this.updateLegendValue(e);let t=s*e.get("valuePercentTotal")/100;const i=e.get("slice");if(i){i.set("radius",r),i.set("innerRadius",n),i.set("startAngle",a),i.set("arc",t);const s=e.get("fill");i._setDefault("fill",s),i._setDefault("stroke",s);const o=e.get("fillPattern");i._setDefault("fillPattern",o)}let o=m["l"](a+t/2);const l=e.get("label");if(l&&(l.setPrivate("radius",r),l.setPrivate("innerRadius",n),l.set("labelAngle",o),"aligned"==l.get("textType"))){let e=r+l.get("radius",0),t=r*m["n"](o);o>90&&o<=270?(l.isHidden()||l.isHiding()||this._lLabels.push({label:l,y:t}),e*=-1,e-=this.labelsContainer.get("paddingLeft",0),l.set("centerX",b["c"]),l.setPrivateRaw("left",!0)):(l.isHidden()||l.isHiding()||this._rLabels.push({label:l,y:t}),e+=this.labelsContainer.get("paddingRight",0),l.set("centerX",0),l.setPrivateRaw("left",!1)),l.set("x",e),l.set("y",r*m["n"](o))}a+=t,this._updateTick(e)})}}}_updateTick(e){const t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){const e=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=m["e"](r),o=m["n"](r),l=this.labelsContainer,h=l.get("paddingLeft",0),c=l.get("paddingRight",0);let u=0,d=0;u=i.x(),d=i.y();let g=[];if(0!=u||0!=d){if("circular"==i.get("textType")){const e=i.radius()-i.get("paddingBottom",0),t=i.get("labelAngle",0);u=e*m["e"](t),d=e*m["n"](t)}let t=-c;i.getPrivate("left")&&(t=h),g=[{x:s.x()+e*n,y:s.y()+e*o},{x:u+t,y:d},{x:u,y:d}]}t.set("points",g)}}_positionBullet(e){const t=e.get("sprite");if(t){const i=t.dataItem,s=i.get("slice");if(s){const i=s.get("innerRadius",0),a=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),o=e.get("locationX",.5),l=e.get("locationY",.5),h=r+n*o,c=i+(a-i)*l;t.setAll({x:m["e"](h)*c,y:m["n"](h)*c})}}}}Object.defineProperty(_,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"}),Object.defineProperty(_,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:h.classNames.concat([_.className])})},d8ad:function(e,t,i){"use strict";t["a"]=function(e){return function(){return e}}},da80:function(e,t,i){"use strict";i.d(t,"a",(function(){return p}));var s=i("483c"),a=i("15f8"),r=i("bf67"),n=i("08b0"),o=i("69cf"),l=i("be4b"),h=i("9d71"),c=i("bd57"),u=i("1eae"),d=i("e28a"),g=i("cc0e");class p extends a["a"]{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new r["a"]}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:h["a"].new(this._root,{width:l["c"],height:l["c"],position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){u["c"](e,e=>{const t=e.bullets;t&&(u["c"](t,e=>{e.dispose()}),e.bullets=void 0)}),this.markDirtyValues()}getDataItemById(e){return u["f"](this.dataItems,t=>t.get("id")==e)}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each(t=>{this._makeBullet(e,t)}))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,i){const s=t(this._root,this,e);return s&&(s._index=i,this._makeBulletReal(e,s)),s}_makeBulletReal(e,t){let i=t.get("sprite");i&&(i._setDataItem(e),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",()=>{this.markDirtyValues()}))}const i=this.get("calculateAggregates");if(i&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let i=e;i<t;i++){let e=this.dataItems[i];e.bullets||this._makeBullets(e)}}}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");const s={},a={},r={},n={},o={},l={},h={},c={},d={};u["c"](i,e=>{s[e]=0,a[e]=0,r[e]=0}),u["c"](i,i=>{let u=i+"Change",g=i+"ChangePercent",p=i+"ChangePrevious",b=i+"ChangePreviousPercent",m=i+"ChangeSelection",f=i+"ChangeSelectionPercent",_="valueY";"valueX"!=i&&"openValueX"!=i&&"lowValueX"!=i&&"highValueX"!=i||(_="valueX");const v=this.getPrivate("baseValueSeries"),y=this.getPrivate("adjustedStartIndex",e);for(let x=y;x<t;x++){const t=this.dataItems[x];if(t){let y=t.get(i);null!=y&&(r[i]++,s[i]+=y,a[i]+=Math.abs(y),c[i]=s[i]/r[i],(n[i]>y||null==n[i])&&(n[i]=y),(o[i]<y||null==o[i])&&(o[i]=y),h[i]=y,null==l[i]&&(l[i]=y,d[i]=y,v&&(l[_]=v._getBase(_))),0===e&&(t.setRaw(u,y-l[_]),t.setRaw(g,(y-l[_])/l[_]*100)),t.setRaw(p,y-d[_]),t.setRaw(b,(y-d[_])/d[_]*100),t.setRaw(m,y-l[_]),t.setRaw(f,(y-l[_])/l[_]*100),d[i]=y)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(i);e.setRaw(p,t-d[_]),e.setRaw(b,(t-d[_])/d[_]*100),e.setRaw(m,t-l[_]),e.setRaw(f,(t-l[_])/l[_]*100)}}e>0&&e--,delete d[i];for(let t=e;t<y;t++){const e=this.dataItems[t];if(e){let t=e.get(i);null==d[i]&&(d[i]=t),null!=t&&(e.setRaw(p,t-d[_]),e.setRaw(b,(t-d[_])/d[_]*100),e.setRaw(m,t-l[_]),e.setRaw(f,(t-l[_])/l[_]*100),d[i]=t)}}}),u["c"](i,e=>{this.setPrivate(e+"AverageSelection",c[e]),this.setPrivate(e+"CountSelection",r[e]),this.setPrivate(e+"SumSelection",s[e]),this.setPrivate(e+"AbsoluteSumSelection",a[e]),this.setPrivate(e+"LowSelection",n[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",l[e]),this.setPrivate(e+"CloseSelection",h[e])}),0===e&&t===this.dataItems.length&&u["c"](i,e=>{this.setPrivate(e+"Average",c[e]),this.setPrivate(e+"Count",r[e]),this.setPrivate(e+"Sum",s[e]),this.setPrivate(e+"AbsoluteSum",a[e]),this.setPrivate(e+"Low",n[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",l[e]),this.setPrivate(e+"Close",h[e])})}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&u["c"](e,e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,i=e.maxValue||this.getPrivate(e.dataField+"High")||0;u["c"](e.target._entities,s=>{const a=s.dataItem.get(e.dataField);if(!d["e"](a)){e.neutral&&s.set(e.key,e.neutral);const t=s.states;if(t){const i=t.lookup("default");i&&e.neutral&&i.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,s,t,i,a);else{let r,h;r=e.logarithmic?(Math.log(a)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E):(a-t)/(i-t),!d["e"](a)||d["e"](r)&&Math.abs(r)!=1/0||(r=.5),d["e"](e.min)?h=e.min+(e.max-e.min)*r:e.min instanceof n["a"]?h=n["a"].interpolate(r,e.min,e.max):e.min instanceof l["a"]&&(h=Object(o["c"])(r,e.min,e.max)),s.set(e.key,h);const c=s.states;if(c){const t=c.lookup("default");t&&t.set(e.key,h)}}})}),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),i=this.endIndex();i<e&&i++,t>0&&t--;for(let s=0;s<t;s++)this._hideBullets(this.dataItems[s]);for(let s=t;s<i;s++)this._positionBullets(this.dataItems[s]);for(let s=i;s<e;s++)this._hideBullets(this.dataItems[s])}}_positionBullets(e){e.bullets&&u["c"](e.bullets,e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof h["a"]&&t.walkChildren(e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof c["a"]&&e.text.markDirtyText()})),t instanceof c["a"]&&t.get("populateText")&&t.text.markDirtyText()})}_hideBullets(e){e.bullets&&u["c"](e.bullets,e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)})}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&u["c"](t,e=>{e.dispose()})}_getItemReaderLabel(){return""}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.showDataItem.call(this,e,t)],a=e.bullets;a&&u["c"](a,e=>{const i=e.get("sprite");i&&s.push(i.show(t))}),yield Promise.all(s)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Object(s["a"])(this,void 0,void 0,(function*(){const s=[i.hideDataItem.call(this,e,t)],a=e.bullets;a&&u["c"](a,e=>{const i=e.get("sprite");i&&s.push(i.hide(t))}),yield Promise.all(s)}))}_sequencedShowHide(e,t){return Object(s["a"])(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(d["e"](t)||(t=this.get("interpolationDuration",0)),t>0){const i=this.startIndex(),a=this.endIndex();yield Promise.all(u["n"](this.dataItems,(r,n)=>Object(s["a"])(this,void 0,void 0,(function*(){let s=t||0;(n<i-10||n>a+10)&&(s=0);let o=this.get("sequencedDelay",0)+s/(a-i);yield g["i"](o*(n-i)),e?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)}))))}else yield Promise.all(u["n"](this.dataItems,t=>e?this.showDataItem(t,0):this.hideDataItem(t,0)))}))}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const i=t.get("valueLabel");if(i){const t=i.text;let s="";i._setDataItem(e),s=this.get("legendValueText",t.get("text","")),i.set("text",s),t.markDirtyText()}const s=t.get("label");if(s){const t=s.text;let i="";s._setDataItem(e),i=this.get("legendLabelText",t.get("text","")),s.set("text",i),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}Object.defineProperty(p,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(p,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([p.className])})},dab0:function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return h}));var s=i("1c9f"),a=i("be4b"),r=i("08b0"),n=i("f8ca"),o=i("4c2d");function l(e,t,i,s){e.set(t,i.get(s)),i.on(s,i=>{e.set(t,i)})}class h extends s["a"]{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,t=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,h=this.rule.bind(this);h("InterfaceColors").setAll({stroke:r["a"].fromHex(15066597),fill:r["a"].fromHex(15987699),primaryButton:r["a"].fromHex(6788316),primaryButtonHover:r["a"].fromHex(6779356),primaryButtonDown:r["a"].fromHex(6872182),primaryButtonActive:r["a"].fromHex(6872182),primaryButtonDisabled:r["a"].fromHex(14342874),primaryButtonTextDisabled:r["a"].fromHex(16777215),primaryButtonText:r["a"].fromHex(16777215),primaryButtonStroke:r["a"].fromHex(16777215),secondaryButton:r["a"].fromHex(14277081),secondaryButtonHover:r["a"].fromHex(10724259),secondaryButtonDown:r["a"].fromHex(9276813),secondaryButtonActive:r["a"].fromHex(15132390),secondaryButtonText:r["a"].fromHex(0),secondaryButtonStroke:r["a"].fromHex(16777215),grid:r["a"].fromHex(0),background:r["a"].fromHex(16777215),alternativeBackground:r["a"].fromHex(0),text:r["a"].fromHex(0),alternativeText:r["a"].fromHex(16777215),disabled:r["a"].fromHex(11382189),positive:r["a"].fromHex(5288704),negative:r["a"].fromHex(11730944)});{const e=h("ColorSet");e.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r["a"].fromHex(6797276)],step:1,reuse:!1,startIndex:0}),e.setPrivate("currentStep",0),e.setPrivate("currentPass",0)}h("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:o["out"](o["cubic"])}),h("Component").setAll({interpolationDuration:0,interpolationEasing:o["out"](o["cubic"])}),h("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:a["d"],tooltipY:a["d"],tooltipPosition:"fixed",isMeasured:!0}),h("Sprite").states.create("default",{visible:!0,opacity:1}),h("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),h("Graphics").setAll({strokeWidth:1}),h("Chart").setAll({width:a["c"],height:a["c"],interactiveChildren:!1}),h("ZoomableContainer").setAll({width:a["c"],height:a["c"],wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:o["out"](o["cubic"]),animationDuration:600,maxPanOut:.4}),h("Sprite",["horizontal","center"]).setAll({centerX:a["d"],x:a["d"]}),h("Sprite",["vertical","center"]).setAll({centerY:a["d"],y:a["d"]}),h("Container",["horizontal","layout"]).setAll({layout:i}),h("Container",["vertical","layout"]).setAll({layout:s}),h("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),h("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),h("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),h("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),h("GrainPattern").setAll({width:200,height:200,colors:[r["a"].fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const e=h("PatternSet");e.setAll({step:1}),l(e,"color",t,"stroke")}h("LinearGradient").setAll({rotation:90}),h("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:n["a"].new(this._root,{}),layer:30,clickTarget:"itemContainer"}),h("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const e=h("Rectangle",["legend","item","background"]);e.setAll({fillOpacity:0}),l(e,"fill",t,"background")}h("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:a["d"],paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),h("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:a["c"],height:a["c"],cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const e=h("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(e,"fill",t,"disabled"),l(e,"stroke",t,"disabled")}h("Label",["legend","label"]).setAll({centerY:a["d"],marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{const e=h("Label",["legend","label"]).states.create("disabled",{});l(e,"fill",t,"disabled")}h("Label",["legend","value","label"]).setAll({centerY:a["d"],marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:a["c"],populateText:!0});{const e=h("Label",["legend","value","label"]).states.create("disabled",{});l(e,"fill",t,"disabled")}h("HeatLegend").setAll({stepCount:1}),h("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),h("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:a["c"],width:15}),h("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:a["c"],height:15}),h("HeatLegend",["vertical"]).setAll({height:a["c"]}),h("HeatLegend",["horizontal"]).setAll({width:a["c"]}),h("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),h("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const e=h("Label");e.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(e,"fill",t,"text")}h("RadialLabel").setAll({textType:"regular",centerY:a["d"],centerX:a["d"],inside:!1,radius:0,baseRadius:a["c"],orientation:"auto",textAlign:"center"}),h("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),h("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r["a"].fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r["a"].fromHex(0)}),h("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),h("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),h("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),h("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const e=h("Tick");e.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(e,"stroke",t,"grid")}h("Bullet").setAll({locationX:.5,locationY:.5}),h("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:a["d"],centerY:a["d"],animationEasing:o["out"](o["cubic"]),exportable:!1}),h("Polygon").setAll({animationEasing:o["out"](o["cubic"])});{const e=h("PointedRectangle",["tooltip","background"]);e.setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r["a"].fromHex(16777215)})}{const e=h("Label",["tooltip"]);e.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(e,"fill",t,"alternativeText")}h("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),h("Button").states.create("hover",{}),h("Button").states.create("down",{stateAnimationDuration:0}),h("Button").states.create("active",{}),h("Button").states.create("disabled",{forceInactive:!0});{const e=h("RoundedRectangle",["button","background"]);l(e,"fill",t,"primaryButton"),l(e,"stroke",t,"primaryButtonStroke")}{const e=h("RoundedRectangle",["button","background"]).states.create("hover",{});l(e,"fill",t,"primaryButtonHover")}{const e=h("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});l(e,"fill",t,"primaryButtonDown")}{const e=h("RoundedRectangle",["button","background"]).states.create("active",{});l(e,"fill",t,"primaryButtonActive")}{const e=h("RoundedRectangle",["button","background"]).states.create("disabled",{});l(e,"fill",t,"primaryButtonDisabled")}{const e=h("Graphics",["button","icon"]).states.create("disabled",{});l(e,"fill",t,"primaryButtonTextDisabled")}{const e=h("Label",["button"]).states.create("disabled",{});l(e,"fill",t,"primaryButtonTextDisabled")}{const e=h("Graphics",["button","icon"]);e.setAll({forceInactive:!0}),l(e,"stroke",t,"primaryButtonText")}{const e=h("Label",["button"]);l(e,"fill",t,"primaryButtonText")}h("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:a["c"],role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const e=h("RoundedRectangle",["background","button","zoom"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"primaryButton")}{const e=h("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});l(e,"fill",t,"primaryButtonHover")}{const e=h("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});l(e,"fill",t,"primaryButtonDown")}{const e=h("Graphics",["icon","button","zoom"]);e.setAll({crisp:!0,strokeOpacity:.7,draw:e=>{e.moveTo(0,0),e.lineTo(12,0)}}),l(e,"stroke",t,"primaryButtonText")}h("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:a["d"],centerY:a["d"],position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const e=h("RoundedRectangle",["background","resize","button"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"secondaryButton"),l(e,"stroke",t,"secondaryButtonStroke")}{const e=h("RoundedRectangle",["background","resize","button"]).states.create("hover",{});l(e,"fill",t,"secondaryButtonHover")}{const e=h("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});l(e,"fill",t,"secondaryButtonDown")}{const e=h("Graphics",["resize","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),l(e,"stroke",t,"secondaryButtonText")}h("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),h("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),h("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const e=h("RoundedRectangle",["play","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Graphics",["play","icon"]);e.setAll({stateAnimationDuration:0,dx:1,draw:e=>{e.moveTo(0,-5),e.lineTo(8,0),e.lineTo(0,5),e.lineTo(0,-5)}}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),h("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:e=>{e.moveTo(-4,-5),e.lineTo(-1,-5),e.lineTo(-1,5),e.lineTo(-4,5),e.lineTo(-4,-5),e.moveTo(4,-5),e.lineTo(1,-5),e.lineTo(1,5),e.lineTo(4,5),e.lineTo(4,-5)}}),h("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const e=h("RoundedRectangle",["switch","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Circle",["switch","icon"]);e.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["switch","icon"]).states.create("active",{dx:16}),h("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:o["out"](o["cubic"])}),h("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:a["c"]}),h("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:a["c"]}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const e=h("RoundedRectangle",["scrollbar","main","background"]);e.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(e,"fill",t,"fill")}{const e=h("RoundedRectangle",["scrollbar","thumb"]);e.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(e,"fill",t,"secondaryButton")}{const e=h("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});l(e,"fill",t,"secondaryButtonHover")}{const e=h("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});l(e,"fill",t,"secondaryButtonDown")}h("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:a["d"],width:a["c"],centerX:a["d"],ariaLabel:e.translate("Use up and down arrows to move selection")}),h("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:a["d"],centerY:a["d"],height:a["c"],ariaLabel:e.translate("Use left and right arrows to move selection")});{const e=h("PointedRectangle",["axis","tooltip","background"]);e.setAll({cornerRadius:0}),l(e,"fill",t,"alternativeBackground")}h("Label",["axis","tooltip"]).setAll({role:void 0}),h("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),h("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),h("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),h("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),h("Star").setAll({spikes:5,innerRadius:5,radius:10}),h("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),h("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),h("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),h("SpriteResizer").setAll({rotationStep:10,isMeasured:!1});{const e=h("Container",["resizer","grip"]);e.states.create("hover",{})}{const e=h("RoundedRectangle",["resizer","grip"]);e.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(e,"fill",t,"background"),l(e,"stroke",t,"alternativeBackground")}{const e=h("RoundedRectangle",["resizer","grip","outline"]);e.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),e.states.create("hover",{fillOpacity:.3}),l(e,"fill",t,"alternativeBackground")}h("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),h("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const e=h("Rectangle",["resizer","rectangle"]);e.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(e,"stroke",t,"alternativeBackground")}h("Graphics",["button","plus","icon"]).setAll({x:a["d"],y:a["d"],draw:e=>{e.moveTo(-4,0),e.lineTo(4,0),e.moveTo(0,-4),e.lineTo(0,4)}}),h("Graphics",["button","minus","icon"]).setAll({x:a["d"],y:a["d"],draw:e=>{e.moveTo(-4,0),e.lineTo(4,0)}}),h("Graphics",["button","home","icon"]).setAll({x:a["d"],y:a["d"],svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),h("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),h("ZoomTools").setAll({x:a["c"],centerX:a["c"],y:a["c"],centerY:a["c"],paddingRight:10,paddingBottom:10})}}},e0f6:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("9d71"),a=i("be4b");class r extends s["a"]{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(s["a"].new(this._root,{width:a["c"],height:a["c"],interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:a["c"],height:a["c"]})})}}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([r.className])})},e28a:function(e,t,i){"use strict";function s(e){return Number(e)!==e}function a(e){return{}.toString.call(e)}function r(e){if(null!=e&&!u(e)){let t=Number(e);return s(t)&&c(e)&&""!=e?r(e.replace(/[^0-9.\-]+/g,"")):t}return e}function n(e){if(h(e))return new Date(e);if(u(e))return new Date(e);{let t=Number(e);return u(t)?new Date(t):new Date(e)}}function o(e){if(s(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e&&1/e===-1/0)return"-0";let t=e<0;e=Math.abs(e);let i,a=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+e),r=a[1],n=a[2]||"";if(void 0===a[3])i=""===n?r:r+"."+n;else{let t=+a[3];if(e<1){let e=t-1;i="0."+l("0",e)+r+n}else{let e=t-n.length;i=0===e?r+n:e<0?r+n.slice(0,e)+"."+n.slice(e):r+n+l("0",e)}}return t?"-"+i:i}function l(e,t){return new Array(t+1).join(e)}function h(e){return"[object Date]"===a(e)}function c(e){return"string"===typeof e}function u(e){return"number"===typeof e&&Number(e)==e}function d(e){return"object"===typeof e&&null!==e}i.d(t,"d",(function(){return s})),i.d(t,"j",(function(){return r})),i.d(t,"i",(function(){return n})),i.d(t,"h",(function(){return o})),i.d(t,"c",(function(){return h})),i.d(t,"g",(function(){return c})),i.d(t,"e",(function(){return u})),i.d(t,"f",(function(){return d})),i.d(t,"a",(function(){return g})),i.d(t,"b",(function(){return p}));const g="__§§§__",p="__§§§§__"},e4e6:function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("841d");class a extends s["a"]{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Circle"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([a.className])})},ea8ee:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("be4b"),a=i("0504"),r=i("1c9f"),n=i("50be"),o=i("dab0");class l extends r["a"]{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:n["a"].new(this._root,{}),width:s["c"],height:s["c"]}),t("PieChart").setAll({radius:Object(s["e"])(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:s["d"]}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:s["d"],rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:s["d"],centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:s["d"]}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:s["d"],rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:s["d"],centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:s["d"]}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:s["d"],rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:s["d"],centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{const i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),Object(o["b"])(i,"fill",e,"alternativeBackground")}}}class h extends a["a"]{_afterNew(){this._defaultThemes.push(l.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a["a"].classNames.concat([h.className])});var c=i("842e"),u=i("48ef");class d extends h{constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:s["d"],y:s["d"]})}_prepareChildren(){super._prepareChildren();const e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),a=this.get("startAngle",0),r=this.get("endAngle",0),n=this.get("innerRadius");let o=u["g"](0,0,a,r,1);const l=t/(o.right-o.left),h=i/(o.bottom-o.top);let d={left:0,right:0,top:0,bottom:0};if(n instanceof s["a"]){let e=n.value,s=Math.min(l,h);e=Math.max(s*e,s-Math.min(i,t))/s,d=u["g"](0,0,a,r,e),this.setPrivateRaw("irModifyer",e/n.value)}o=u["k"]([o,d]);const g=this._maxRadius;this._maxRadius=Math.min(l,h);const p=c["F"](this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-p*(o.bottom+o.top)/2,dx:-p*(o.right+o.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||g!=this._maxRadius)&&this.series.each(e=>{e._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(e=>{e._markDirtyKey("innerRadius")})}radius(e){let t=c["F"](this.get("radius",0),this._maxRadius),i=c["F"](this.get("innerRadius",0),t);if(e){let s=this.series.indexOf(e),a=this.series.length,r=e.get("radius");return null!=r?i+c["F"](r,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){const t=this.radius();let i=c["F"](this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,r=e.get("innerRadius");return null!=r?i+c["F"](r,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:h.classNames.concat([d.className])})},ec1b:function(e,t,i){!function(t,i){e.exports=i()}(0,(function(){return function(e){function t(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return e[s].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,s){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,i){var s=i(4)(i(1),i(5),null,null);e.exports=s.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,i,s){return i*(1-Math.pow(2,-10*e/s))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,s.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,s.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,s.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,s.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),this.timestamp=e;var t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(t/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),t<this.localDuration?this.rAF=(0,s.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals),e+="";var t=e.split("."),i=t[0],s=t.length>1?this.decimal+t[1]:"",a=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;a.test(i);)i=i.replace(a,"$1"+this.separator+"$2");return this.prefix+i+s+this.suffix}},destroyed:function(){(0,s.cancelAnimationFrame)(this.rAF)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=i(0),a=function(e){return e&&e.__esModule?e:{default:e}}(s);t.default=a.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",a.default)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=0,a="webkit moz ms o".split(" "),r=void 0,n=void 0;if("undefined"==typeof window)t.requestAnimationFrame=r=function(){},t.cancelAnimationFrame=n=function(){};else{t.requestAnimationFrame=r=window.requestAnimationFrame,t.cancelAnimationFrame=n=window.cancelAnimationFrame;for(var o=void 0,l=0;l<a.length&&(!r||!n);l++)o=a[l],t.requestAnimationFrame=r=r||window[o+"RequestAnimationFrame"],t.cancelAnimationFrame=n=n||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];r&&n||(t.requestAnimationFrame=r=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-s)),a=window.setTimeout((function(){e(t+i)}),i);return s=t+i,a},t.cancelAnimationFrame=n=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=r,t.cancelAnimationFrame=n},function(e,t){e.exports=function(e,t,i,s){var a,r=e=e||{},n=typeof e.default;"object"!==n&&"function"!==n||(a=e,r=e.default);var o="function"==typeof r?r.options:r;if(t&&(o.render=t.render,o.staticRenderFns=t.staticRenderFns),i&&(o._scopeId=i),s){var l=Object.create(o.computed||null);Object.keys(s).forEach((function(e){var t=s[e];l[e]=function(){return t}})),o.computed=l}return{esModule:a,exports:r,options:o}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v("\n "+e._s(e.displayValue)+"\n")])},staticRenderFns:[]}}])}))},f1d5:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var s=i("08b0"),a=i("e28a");class r{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,i=!1){let s=[];e=this.escape(e);let r=t?e.split("'"):[e];for(let n=0;n<r.length;n++){let e=r[n];if(""!==e)if(n%2===0){e=e.replace(/\]\[/g,"]"+a["a"]+"["),e=e.replace(/\[\]/g,"[ ]");let t=e.split(/[\[\]]+/);for(let e=0;e<t.length;e++){let r=this.cleanUp(this.unescape(t[e]));r!==a["a"]&&(""!==r&&(e%2===0?s.push({type:"value",text:r}):s.push({type:i?"value":"format",text:"["+r+"]"})))}}else{let t=e.split(/[\[\]]+/);for(let e=0;e<t.length;e++){let i=this.cleanUp(this.unescape(t[e]));""!==i&&(e%2===0?s.push({type:"text",text:i}):this.isImage(i)?s.push({type:"image",text:"["+i+"]"}):s.push({type:"format",text:"["+i+"]"}))}}}return s}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(""==e||"[ ]"==e)return{};const i=e.match(/('[^']*')|("[^"]*")/gi);if(i)for(let s=0;s<i.length;s++)e=e.replace(i[s],i[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let a=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!a)return{};for(let r=0;r<a.length;r++)if(a[r].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=a[r];else if(a[r].match(/^(underline|line-through)$/i))t.textDecoration=a[r];else if("/"==a[r]);else if(a[r].match(/:/)){const e=a[r].replace("+"," ").split(/:[ ]*/);t[e[0]]=e[1]}else t.fill=s["a"].fromString(a[r]);return t}}Object.defineProperty(r,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"})},f7ee:function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var s=i("9197"),a=i("bd57"),r=i("b920"),n=i("9d71"),o=i("be4b"),l=i("08b0"),h=i("48ef"),c=i("1eae"),u=i("842e");class d extends n["a"]{constructor(e,t,i,s=[]){super(e,t,i,s),Object.defineProperty(this,"_fx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_fy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_labelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_w",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_h",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_keepHoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlContentHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._settings.themeTags=u["C"](this._settings.themeTags,["tooltip"]),super._afterNew();const e=this._setDefaultFn("background",()=>r["a"].new(this._root,{}));e.set("themeTags",["tooltip","background"]),this._label=this.children.push(a["a"].new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",()=>{this._updateBackground()})),this._disposers.push(this.on("bounds",()=>{this._updateBackground()})),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",e=>{e&&(this._disposers.push(u["a"](e,"pointerover",e=>{this._htmlContentHovered=!0})),this._disposers.push(u["a"](e,"pointerout",e=>{this._htmlContentHovered=!1})))})),this.on("visible",e=>{this._handleReaderAnnouncement()}),this.label.events.on("dataitemchanged",e=>{this._handleReaderAnnouncement()}),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),c["q"](this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width");const e=this.get("labelText");null!=e&&this.label.set("text",this.get("labelText"));const t=this.get("labelHTML");null!=t&&this.label.set("html",this.get("labelHTML"));const i=this.get("labelAriaLabel");null!=i&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover")){const e=this.get("keepTargetHover");if(e){const e=this.get("background");this._keepHoverDp=new s["e"]([e.events.on("pointerover",e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),t.hover())}),e.events.on("pointerout",e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),this._htmlContentHovered||t.unhover())})]),this.label.onPrivate("htmlElement",t=>{this._keepHoverDp&&t&&this._keepHoverDp.disposers.push(u["a"](t,"pointerleave",t=>{const i=this.root._renderer.getEvent(t);e.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:e})}))})}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget");const t=this.get("background");let i,s;e&&t&&(i=e.get("fill"),s=e.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&t.set("fill",i),this._fillDp=e.on("fill",e=>{null!=e&&(t.set("fill",e),this._updateTextColor(e))}),this._disposers.push(this._fillDp)),this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&t.set("stroke",i),this._strokeDp=e.on("fill",e=>{null!=e&&t.set("stroke",e)}),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=e.on("fill",e=>{null!=e&&this.label.set("fill",e)}),this._disposers.push(this._labelDp))),this._updateTextColor(i)}_updateTextColor(e){this.get("autoTextColor")&&(null==e&&(e=this.get("background").get("fill")),null==e&&(e=this._root.interfaceColors.get("background")),e instanceof l["a"]&&this.label.set("fill",l["a"].alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}_updateBackground(){super.updateBackground();const e=this._root.container;if(e){let t=.5,i=.5,s=this.get("centerX");s instanceof o["a"]&&(t=s.value);let a=this.get("centerY");a instanceof o["a"]&&(i=a.value);let n=e.width(),l=e.height(),c=this.parent,u=0,d=0;if(c){u=c.x(),d=c.y();const e=c.get("layerMargin");e&&(u+=e.left||0,d+=e.top||0,n+=(e.left||0)+(e.right||0),l+=(e.top||0)+(e.bottom||0))}const g=this.get("bounds",{left:-u,top:-d,right:n-u,bottom:l-d});this._updateBounds();let p=this.width(),b=this.height();0===p&&(p=this._w),0===b&&(b=this._h);let m=this.get("pointTo",{x:n/2,y:l/2}),f=m.x,_=m.y,v=this.get("pointerOrientation"),y=this.get("background"),x=0,w=0,P=0;y instanceof r["a"]&&(x=y.get("pointerLength",0),w=y.get("strokeWidth",0)/2,P=w,y.set("width",p),y.set("height",b));let D=0,k=0,T=g.right-g.left,O=g.bottom-g.top;"horizontal"==v||"left"==v||"right"==v?(w=0,"horizontal"==v?f>g.left+T/2?(f-=p*(1-t)+x,P*=-1):f+=p*t+x:"left"==v?f+=p*(1-t)+x:(f-=p*t+x,P*=-1)):(P=0,"vertical"==v?_>g.top+b/2+x?_-=b*(1-i)+x:(_+=b*i+x,w*=-1):"down"==v?_-=b*(1-i)+x:(_+=b*i+x,w*=-1)),f=h["f"](f,g.left+p*t,g.left+T-p*(1-t))+P,_=h["f"](_,g.top+b*i,g.top+O-b*(1-i))-w,D=m.x-f+p*t+P,k=m.y-_+b*i-w,this._fx=f,this._fy=_;const M=this.get("animationDuration",0);if(M>0&&this.get("visible")&&this.get("opacity")>.1){const e=this.get("animationEasing");this.animate({key:"x",to:f,duration:M,easing:e}),this.animate({key:"y",to:_,duration:M,easing:e})}else this.set("x",f),this.set("y",_);y instanceof r["a"]&&(y.set("pointerX",D),y.set("pointerY",k)),p>0&&(this._w=p),b>0&&(this._h=b)}}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tooltip"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n["a"].classNames.concat([d.className])})},f8ca:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=i("86d1"),a=i("1eae"),r=i("48ef");class n extends s["a"]{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),i=e.get("paddingRight",0),a=e.get("paddingTop",0),n=e.maxWidth()-t-i,o=n,l=1;Object(s["b"])(e,e=>{if(e.get("visible")&&e.getPrivate("visible")&&!e.get("forceHidden")&&"absolute"!=e.get("position")){let t=e.width();t<o&&(o=t),t>l&&(l=t)}}),o=r["f"](o,1,n),l=r["f"](l,1,n);let h=1;h=this.get("fixedWidthGrid")?n/l:n/o,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let c=this.getColumnWidths(e,h,l,n),u=a,d=0,g=0;h=c.length;let p=t;Object(s["b"])(e,e=>{if("relative"==e.get("position")&&e.isVisible()){const i=e.get("marginTop",0),s=e.get("marginBottom",0);let a=e.adjustedLocalBounds(),r=e.get("marginLeft",0),n=e.get("marginRight",0),o=p+r-a.left,l=u+i-a.top;e.setPrivate("x",o),e.setPrivate("y",l),p+=c[d]+n,g=Math.max(g,e.height()+i+s),d++,d>=h&&(d=0,p=t,u+=g)}})}getColumnWidths(e,t,i,r){let n=0,o=[],l=0;return Object(s["b"])(e,s=>{let a=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?o[l]=i:o[l]=Math.max(0|o[l],a.right-a.left+s.get("marginLeft",0)+s.get("marginRight",0)),l<e.children.length-1&&(l++,l==t&&(l=0)))}),a["c"](o,e=>{n+=e}),n>r?t>2?(t-=1,this.getColumnWidths(e,t,i,r)):[r]:o}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s["a"].classNames.concat([n.className])})}}]);