@carbon/charts-vue 0.40.12 → 0.41.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -4
- package/charts-vue.common.js +955 -1316
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +955 -1316
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/charts-vue.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("7326")(t))},"083f":function(t,e,n){var r=n("7526");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"09b2":function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e19":function(t,e,n){var r=n("4b2c"),i=n("2822"),o=n("907a"),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function c(t){return null==t?void 0===t?s:a:u&&u in Object(t)?i(t):o(t)}t.exports=c},"0e30":function(t,e){function n(){return!1}t.exports=n},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Toolbar",(function(){return u})),n.d(i,"ZoomBar",(function(){return c})),n.d(i,"ZoomDomain",(function(){return l})),n.d(i,"Axis",(function(){return h})),n.d(i,"Area",(function(){return f})),n.d(i,"Pie",(function(){return p})),n.d(i,"Gauge",(function(){return d})),n.d(i,"Bar",(function(){return v})),n.d(i,"Scatter",(function(){return g})),n.d(i,"Line",(function(){return m})),n.d(i,"Radar",(function(){return y})),n.d(i,"Tooltip",(function(){return _})),n.d(i,"Threshold",(function(){return b})),n.d(i,"Legend",(function(){return w})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,w,x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},O=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(u||(u={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(c||(c={})),function(t){t["CHANGE"]="zoom-domain-change"}(l||(l={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(h||(h={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(f||(f={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(p||(p={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(d||(d={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(v||(v={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(g||(g={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(m||(m={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(y||(y={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(_||(_={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(b||(b={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(w||(w={}));var S,E,T,M,A,C,P,k,D,L,R,I,j,N,V,B,G,U,z,H,F,W=i;function Y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(S||(S={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(E||(E={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(T||(T={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(M||(M={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(A||(A={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(C||(C={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(P||(P={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(k||(k={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(D||(D={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(L||(L={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(R||(R={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(I||(I={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(j||(j={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(N||(N={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(V||(V={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(B||(B={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(G||(G={})),function(t){t["UP"]="up",t["DOWN"]="down"}(U||(U={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(z||(z={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(H||(H={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}(F||(F={}));var X=Y,q=n("7f0d"),Z=function(){return q["a"].Date.now()},$=Z,K=q["a"].Symbol,Q=K,J=Object.prototype,tt=J.hasOwnProperty,et=J.toString,nt=Q?Q.toStringTag:void 0;function rt(t){var e=tt.call(t,nt),n=t[nt];try{t[nt]=void 0;var r=!0}catch(o){}var i=et.call(t);return r&&(e?t[nt]=n:delete t[nt]),i}var it=rt,ot=Object.prototype,at=ot.toString;function st(t){return at.call(t)}var ut=st,ct="[object Null]",lt="[object Undefined]",ht=Q?Q.toStringTag:void 0;function ft(t){return null==t?void 0===t?lt:ct:ht&&ht in Object(t)?it(t):ut(t)}var pt=ft;function dt(t){return null!=t&&"object"==typeof t}var vt=dt,gt="[object Symbol]";function mt(t){return"symbol"==typeof t||vt(t)&&pt(t)==gt}var yt=mt,_t=NaN,bt=/^\s+|\s+$/g,wt=/^[-+]0x[0-9a-f]+$/i,xt=/^0b[01]+$/i,Ot=/^0o[0-7]+$/i,St=parseInt;function Et(t){if("number"==typeof t)return t;if(yt(t))return _t;if(X(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=X(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(bt,"");var n=xt.test(t);return n||Ot.test(t)?St(t.slice(2),n?2:8):wt.test(t)?_t:+t}var Tt=Et,Mt="Expected a function",At=Math.max,Ct=Math.min;function Pt(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(Mt);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?Ct(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=$();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y($())}function w(){var t=$(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=Tt(e)||0,X(n)&&(l=!!n.leading,h="maxWait"in n,o=h?At(Tt(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var kt=Pt;function Dt(){this.__data__=[],this.size=0}var Lt=Dt;function Rt(t,e){return t===e||t!==t&&e!==e}var It=Rt;function jt(t,e){var n=t.length;while(n--)if(It(t[n][0],e))return n;return-1}var Nt=jt,Vt=Array.prototype,Bt=Vt.splice;function Gt(t){var e=this.__data__,n=Nt(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Bt.call(e,n,1),--this.size,!0}var Ut=Gt;function zt(t){var e=this.__data__,n=Nt(e,t);return n<0?void 0:e[n][1]}var Ht=zt;function Ft(t){return Nt(this.__data__,t)>-1}var Wt=Ft;function Yt(t,e){var n=this.__data__,r=Nt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Xt=Yt;function qt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}qt.prototype.clear=Lt,qt.prototype["delete"]=Ut,qt.prototype.get=Ht,qt.prototype.has=Wt,qt.prototype.set=Xt;var Zt=qt;function $t(){this.__data__=new Zt,this.size=0}var Kt=$t;function Qt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Jt=Qt;function te(t){return this.__data__.get(t)}var ee=te;function ne(t){return this.__data__.has(t)}var re=ne,ie="[object AsyncFunction]",oe="[object Function]",ae="[object GeneratorFunction]",se="[object Proxy]";function ue(t){if(!X(t))return!1;var e=pt(t);return e==oe||e==ae||e==ie||e==se}var ce=ue,le=q["a"]["__core-js_shared__"],he=le,fe=function(){var t=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function pe(t){return!!fe&&fe in t}var de=pe,ve=Function.prototype,ge=ve.toString;function me(t){if(null!=t){try{return ge.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var ye=me,_e=/[\\^$.*+?()[\]{}|]/g,be=/^\[object .+?Constructor\]$/,we=Function.prototype,xe=Object.prototype,Oe=we.toString,Se=xe.hasOwnProperty,Ee=RegExp("^"+Oe.call(Se).replace(_e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Te(t){if(!X(t)||de(t))return!1;var e=ce(t)?Ee:be;return e.test(ye(t))}var Me=Te;function Ae(t,e){return null==t?void 0:t[e]}var Ce=Ae;function Pe(t,e){var n=Ce(t,e);return Me(n)?n:void 0}var ke=Pe,De=ke(q["a"],"Map"),Le=De,Re=ke(Object,"create"),Ie=Re;function je(){this.__data__=Ie?Ie(null):{},this.size=0}var Ne=je;function Ve(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Be=Ve,Ge="__lodash_hash_undefined__",Ue=Object.prototype,ze=Ue.hasOwnProperty;function He(t){var e=this.__data__;if(Ie){var n=e[t];return n===Ge?void 0:n}return ze.call(e,t)?e[t]:void 0}var Fe=He,We=Object.prototype,Ye=We.hasOwnProperty;function Xe(t){var e=this.__data__;return Ie?void 0!==e[t]:Ye.call(e,t)}var qe=Xe,Ze="__lodash_hash_undefined__";function $e(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ie&&void 0===e?Ze:e,this}var Ke=$e;function Qe(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Qe.prototype.clear=Ne,Qe.prototype["delete"]=Be,Qe.prototype.get=Fe,Qe.prototype.has=qe,Qe.prototype.set=Ke;var Je=Qe;function tn(){this.size=0,this.__data__={hash:new Je,map:new(Le||Zt),string:new Je}}var en=tn;function nn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var rn=nn;function on(t,e){var n=t.__data__;return rn(e)?n["string"==typeof e?"string":"hash"]:n.map}var an=on;function sn(t){var e=an(this,t)["delete"](t);return this.size-=e?1:0,e}var un=sn;function cn(t){return an(this,t).get(t)}var ln=cn;function hn(t){return an(this,t).has(t)}var fn=hn;function pn(t,e){var n=an(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var dn=pn;function vn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}vn.prototype.clear=en,vn.prototype["delete"]=un,vn.prototype.get=ln,vn.prototype.has=fn,vn.prototype.set=dn;var gn=vn,mn=200;function yn(t,e){var n=this.__data__;if(n instanceof Zt){var r=n.__data__;if(!Le||r.length<mn-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new gn(r)}return n.set(t,e),this.size=n.size,this}var _n=yn;function bn(t){var e=this.__data__=new Zt(t);this.size=e.size}bn.prototype.clear=Kt,bn.prototype["delete"]=Jt,bn.prototype.get=ee,bn.prototype.has=re,bn.prototype.set=_n;var wn=bn;function xn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var On=xn,Sn=function(){try{var t=ke(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),En=Sn;function Tn(t,e,n){"__proto__"==e&&En?En(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Mn=Tn,An=Object.prototype,Cn=An.hasOwnProperty;function Pn(t,e,n){var r=t[e];Cn.call(t,e)&&It(r,n)&&(void 0!==n||e in t)||Mn(t,e,n)}var kn=Pn;function Dn(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Mn(n,s,u):kn(n,s,u)}return n}var Ln=Dn;function Rn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var In=Rn,jn="[object Arguments]";function Nn(t){return vt(t)&&pt(t)==jn}var Vn=Nn,Bn=Object.prototype,Gn=Bn.hasOwnProperty,Un=Bn.propertyIsEnumerable,zn=Vn(function(){return arguments}())?Vn:function(t){return vt(t)&&Gn.call(t,"callee")&&!Un.call(t,"callee")},Hn=zn,Fn=Array.isArray,Wn=Fn,Yn=n("4cf0"),Xn=9007199254740991,qn=/^(?:0|[1-9]\d*)$/;function Zn(t,e){var n=typeof t;return e=null==e?Xn:e,!!e&&("number"==n||"symbol"!=n&&qn.test(t))&&t>-1&&t%1==0&&t<e}var $n=Zn,Kn=9007199254740991;function Qn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Kn}var Jn=Qn,tr="[object Arguments]",er="[object Array]",nr="[object Boolean]",rr="[object Date]",ir="[object Error]",or="[object Function]",ar="[object Map]",sr="[object Number]",ur="[object Object]",cr="[object RegExp]",lr="[object Set]",hr="[object String]",fr="[object WeakMap]",pr="[object ArrayBuffer]",dr="[object DataView]",vr="[object Float32Array]",gr="[object Float64Array]",mr="[object Int8Array]",yr="[object Int16Array]",_r="[object Int32Array]",br="[object Uint8Array]",wr="[object Uint8ClampedArray]",xr="[object Uint16Array]",Or="[object Uint32Array]",Sr={};function Er(t){return vt(t)&&Jn(t.length)&&!!Sr[pt(t)]}Sr[vr]=Sr[gr]=Sr[mr]=Sr[yr]=Sr[_r]=Sr[br]=Sr[wr]=Sr[xr]=Sr[Or]=!0,Sr[tr]=Sr[er]=Sr[pr]=Sr[nr]=Sr[dr]=Sr[rr]=Sr[ir]=Sr[or]=Sr[ar]=Sr[sr]=Sr[ur]=Sr[cr]=Sr[lr]=Sr[hr]=Sr[fr]=!1;var Tr=Er;function Mr(t){return function(e){return t(e)}}var Ar=Mr,Cr=n("01ff"),Pr=Cr["a"]&&Cr["a"].isTypedArray,kr=Pr?Ar(Pr):Tr,Dr=kr,Lr=Object.prototype,Rr=Lr.hasOwnProperty;function Ir(t,e){var n=Wn(t),r=!n&&Hn(t),i=!n&&!r&&Object(Yn["a"])(t),o=!n&&!r&&!i&&Dr(t),a=n||r||i||o,s=a?In(t.length,String):[],u=s.length;for(var c in t)!e&&!Rr.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||$n(c,u))||s.push(c);return s}var jr=Ir,Nr=Object.prototype;function Vr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Nr;return t===n}var Br=Vr;function Gr(t,e){return function(n){return t(e(n))}}var Ur=Gr,zr=Ur(Object.keys,Object),Hr=zr,Fr=Object.prototype,Wr=Fr.hasOwnProperty;function Yr(t){if(!Br(t))return Hr(t);var e=[];for(var n in Object(t))Wr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Xr=Yr;function qr(t){return null!=t&&Jn(t.length)&&!ce(t)}var Zr=qr;function $r(t){return Zr(t)?jr(t):Xr(t)}var Kr=$r;function Qr(t,e){return t&&Ln(e,Kr(e),t)}var Jr=Qr;function ti(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var ei=ti,ni=Object.prototype,ri=ni.hasOwnProperty;function ii(t){if(!X(t))return ei(t);var e=Br(t),n=[];for(var r in t)("constructor"!=r||!e&&ri.call(t,r))&&n.push(r);return n}var oi=ii;function ai(t){return Zr(t)?jr(t,!0):oi(t)}var si=ai;function ui(t,e){return t&&Ln(e,si(e),t)}var ci=ui,li=n("d6f0");function hi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var fi=hi;function pi(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var di=pi;function vi(){return[]}var gi=vi,mi=Object.prototype,yi=mi.propertyIsEnumerable,_i=Object.getOwnPropertySymbols,bi=_i?function(t){return null==t?[]:(t=Object(t),di(_i(t),(function(e){return yi.call(t,e)})))}:gi,wi=bi;function xi(t,e){return Ln(t,wi(t),e)}var Oi=xi;function Si(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Ei=Si,Ti=Ur(Object.getPrototypeOf,Object),Mi=Ti,Ai=Object.getOwnPropertySymbols,Ci=Ai?function(t){var e=[];while(t)Ei(e,wi(t)),t=Mi(t);return e}:gi,Pi=Ci;function ki(t,e){return Ln(t,Pi(t),e)}var Di=ki;function Li(t,e,n){var r=e(t);return Wn(t)?r:Ei(r,n(t))}var Ri=Li;function Ii(t){return Ri(t,Kr,wi)}var ji=Ii;function Ni(t){return Ri(t,si,Pi)}var Vi=Ni,Bi=ke(q["a"],"DataView"),Gi=Bi,Ui=ke(q["a"],"Promise"),zi=Ui,Hi=ke(q["a"],"Set"),Fi=Hi,Wi=ke(q["a"],"WeakMap"),Yi=Wi,Xi="[object Map]",qi="[object Object]",Zi="[object Promise]",$i="[object Set]",Ki="[object WeakMap]",Qi="[object DataView]",Ji=ye(Gi),to=ye(Le),eo=ye(zi),no=ye(Fi),ro=ye(Yi),io=pt;(Gi&&io(new Gi(new ArrayBuffer(1)))!=Qi||Le&&io(new Le)!=Xi||zi&&io(zi.resolve())!=Zi||Fi&&io(new Fi)!=$i||Yi&&io(new Yi)!=Ki)&&(io=function(t){var e=pt(t),n=e==qi?t.constructor:void 0,r=n?ye(n):"";if(r)switch(r){case Ji:return Qi;case to:return Xi;case eo:return Zi;case no:return $i;case ro:return Ki}return e});var oo=io,ao=Object.prototype,so=ao.hasOwnProperty;function uo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&so.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var co=uo,lo=q["a"].Uint8Array,ho=lo;function fo(t){var e=new t.constructor(t.byteLength);return new ho(e).set(new ho(t)),e}var po=fo;function vo(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var go=vo,mo=/\w*$/;function yo(t){var e=new t.constructor(t.source,mo.exec(t));return e.lastIndex=t.lastIndex,e}var _o=yo,bo=Q?Q.prototype:void 0,wo=bo?bo.valueOf:void 0;function xo(t){return wo?Object(wo.call(t)):{}}var Oo=xo;function So(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Eo=So,To="[object Boolean]",Mo="[object Date]",Ao="[object Map]",Co="[object Number]",Po="[object RegExp]",ko="[object Set]",Do="[object String]",Lo="[object Symbol]",Ro="[object ArrayBuffer]",Io="[object DataView]",jo="[object Float32Array]",No="[object Float64Array]",Vo="[object Int8Array]",Bo="[object Int16Array]",Go="[object Int32Array]",Uo="[object Uint8Array]",zo="[object Uint8ClampedArray]",Ho="[object Uint16Array]",Fo="[object Uint32Array]";function Wo(t,e,n){var r=t.constructor;switch(e){case Ro:return po(t);case To:case Mo:return new r(+t);case Io:return go(t,n);case jo:case No:case Vo:case Bo:case Go:case Uo:case zo:case Ho:case Fo:return Eo(t,n);case Ao:return new r;case Co:case Do:return new r(t);case Po:return _o(t);case ko:return new r;case Lo:return Oo(t)}}var Yo=Wo,Xo=Object.create,qo=function(){function t(){}return function(e){if(!X(e))return{};if(Xo)return Xo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Zo=qo;function $o(t){return"function"!=typeof t.constructor||Br(t)?{}:Zo(Mi(t))}var Ko=$o,Qo="[object Map]";function Jo(t){return vt(t)&&oo(t)==Qo}var ta=Jo,ea=Cr["a"]&&Cr["a"].isMap,na=ea?Ar(ea):ta,ra=na,ia="[object Set]";function oa(t){return vt(t)&&oo(t)==ia}var aa=oa,sa=Cr["a"]&&Cr["a"].isSet,ua=sa?Ar(sa):aa,ca=ua,la=1,ha=2,fa=4,pa="[object Arguments]",da="[object Array]",va="[object Boolean]",ga="[object Date]",ma="[object Error]",ya="[object Function]",_a="[object GeneratorFunction]",ba="[object Map]",wa="[object Number]",xa="[object Object]",Oa="[object RegExp]",Sa="[object Set]",Ea="[object String]",Ta="[object Symbol]",Ma="[object WeakMap]",Aa="[object ArrayBuffer]",Ca="[object DataView]",Pa="[object Float32Array]",ka="[object Float64Array]",Da="[object Int8Array]",La="[object Int16Array]",Ra="[object Int32Array]",Ia="[object Uint8Array]",ja="[object Uint8ClampedArray]",Na="[object Uint16Array]",Va="[object Uint32Array]",Ba={};function Ga(t,e,n,r,i,o){var a,s=e&la,u=e&ha,c=e&fa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!X(t))return t;var l=Wn(t);if(l){if(a=co(t),!s)return fi(t,a)}else{var h=oo(t),f=h==ya||h==_a;if(Object(Yn["a"])(t))return Object(li["a"])(t,s);if(h==xa||h==pa||f&&!i){if(a=u||f?{}:Ko(t),!s)return u?Di(t,ci(a,t)):Oi(t,Jr(a,t))}else{if(!Ba[h])return i?t:{};a=Yo(t,h,s)}}o||(o=new wn);var p=o.get(t);if(p)return p;o.set(t,a),ca(t)?t.forEach((function(r){a.add(Ga(r,e,n,r,t,o))})):ra(t)&&t.forEach((function(r,i){a.set(i,Ga(r,e,n,i,t,o))}));var d=c?u?Vi:ji:u?keysIn:Kr,v=l?void 0:d(t);return On(v||t,(function(r,i){v&&(i=r,r=t[i]),kn(a,i,Ga(r,e,n,i,t,o))})),a}Ba[pa]=Ba[da]=Ba[Aa]=Ba[Ca]=Ba[va]=Ba[ga]=Ba[Pa]=Ba[ka]=Ba[Da]=Ba[La]=Ba[Ra]=Ba[ba]=Ba[wa]=Ba[xa]=Ba[Oa]=Ba[Sa]=Ba[Ea]=Ba[Ta]=Ba[Ia]=Ba[ja]=Ba[Na]=Ba[Va]=!0,Ba[ma]=Ba[ya]=Ba[Ma]=!1;var Ua=Ga,za=1,Ha=4;function Fa(t){return Ua(t,za|Ha)}var Wa=Fa;function Ya(t,e,n){(void 0===n||It(t[e],n))&&(void 0!==n||e in t)||Mn(t,e,n)}var Xa=Ya;function qa(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var Za=qa,$a=Za(),Ka=$a;function Qa(t){return vt(t)&&Zr(t)}var Ja=Qa,ts="[object Object]",es=Function.prototype,ns=Object.prototype,rs=es.toString,is=ns.hasOwnProperty,os=rs.call(Object);function as(t){if(!vt(t)||pt(t)!=ts)return!1;var e=Mi(t);if(null===e)return!0;var n=is.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&rs.call(n)==os}var ss=as;function us(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var cs=us;function ls(t){return Ln(t,si(t))}var hs=ls;function fs(t,e,n,r,i,o,a){var s=cs(t,n),u=cs(e,n),c=a.get(u);if(c)Xa(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Wn(u),p=!f&&Object(Yn["a"])(u),d=!f&&!p&&Dr(u);l=u,f||p||d?Wn(s)?l=s:Ja(s)?l=fi(s):p?(h=!1,l=Object(li["a"])(u,!0)):d?(h=!1,l=Eo(u,!0)):l=[]:ss(u)||Hn(u)?(l=s,Hn(s)?l=hs(s):X(s)&&!ce(s)||(l=Ko(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Xa(t,n,l)}}var ps=fs;function ds(t,e,n,r,i){t!==e&&Ka(e,(function(o,a){if(i||(i=new wn),X(o))ps(t,e,a,n,ds,r,i);else{var s=r?r(cs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Xa(t,a,s)}}),si)}var vs=ds;function gs(t){return t}var ms=gs;function ys(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var _s=ys,bs=Math.max;function ws(t,e,n){return e=bs(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=bs(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),_s(t,this,s)}}var xs=ws;function Os(t){return function(){return t}}var Ss=Os,Es=En?function(t,e){return En(t,"toString",{configurable:!0,enumerable:!1,value:Ss(e),writable:!0})}:ms,Ts=Es,Ms=800,As=16,Cs=Date.now;function Ps(t){var e=0,n=0;return function(){var r=Cs(),i=As-(r-n);if(n=r,i>0){if(++e>=Ms)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var ks=Ps,Ds=ks(Ts),Ls=Ds;function Rs(t,e){return Ls(xs(t,e,ms),t+"")}var Is=Rs;function js(t,e,n){if(!X(n))return!1;var r=typeof e;return!!("number"==r?Zr(n)&&$n(e,n.length):"string"==r&&e in n)&&It(n[e],t)}var Ns=js;function Vs(t){return Is((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ns(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var Bs=Vs,Gs=Bs((function(t,e,n){vs(t,e,n)})),Us=Gs,zs="__lodash_hash_undefined__";function Hs(t){return this.__data__.set(t,zs),this}var Fs=Hs;function Ws(t){return this.__data__.has(t)}var Ys=Ws;function Xs(t){var e=-1,n=null==t?0:t.length;this.__data__=new gn;while(++e<n)this.add(t[e])}Xs.prototype.add=Xs.prototype.push=Fs,Xs.prototype.has=Ys;var qs=Xs;function Zs(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var $s=Zs;function Ks(t){return t!==t}var Qs=Ks;function Js(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var tu=Js;function eu(t,e,n){return e===e?tu(t,e,n):$s(t,Qs,n)}var nu=eu;function ru(t,e){var n=null==t?0:t.length;return!!n&&nu(t,e,0)>-1}var iu=ru;function ou(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var au=ou;function su(t,e){return t.has(e)}var uu=su;function cu(){}var lu=cu;function hu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var fu=hu,pu=1/0,du=Fi&&1/fu(new Fi([,-0]))[1]==pu?function(t){return new Fi(t)}:lu,vu=du,gu=200;function mu(t,e,n){var r=-1,i=iu,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=au;else if(o>=gu){var c=e?null:vu(t);if(c)return fu(c);a=!1,i=uu,u=new qs}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var yu=mu;function _u(t){return t&&t.length?yu(t):[]}var bu=_u;function wu(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var xu=wu;function Ou(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=Tt(n),n=n===n?n:0),void 0!==e&&(e=Tt(e),e=e===e?e:0),xu(Tt(t),e,n)}var Su=Ou;function Eu(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Tu=Eu,Mu=1,Au=2;function Cu(t,e,n,r,i,o){var a=n&Mu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&Au?new qs:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!Tu(e,(function(t,e){if(!uu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var Pu=Cu;function ku(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Du=ku,Lu=1,Ru=2,Iu="[object Boolean]",ju="[object Date]",Nu="[object Error]",Vu="[object Map]",Bu="[object Number]",Gu="[object RegExp]",Uu="[object Set]",zu="[object String]",Hu="[object Symbol]",Fu="[object ArrayBuffer]",Wu="[object DataView]",Yu=Q?Q.prototype:void 0,Xu=Yu?Yu.valueOf:void 0;function qu(t,e,n,r,i,o,a){switch(n){case Wu:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Fu:return!(t.byteLength!=e.byteLength||!o(new ho(t),new ho(e)));case Iu:case ju:case Bu:return It(+t,+e);case Nu:return t.name==e.name&&t.message==e.message;case Gu:case zu:return t==e+"";case Vu:var s=Du;case Uu:var u=r&Lu;if(s||(s=fu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Ru,a.set(t,e);var l=Pu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case Hu:if(Xu)return Xu.call(t)==Xu.call(e)}return!1}var Zu=qu,$u=1,Ku=Object.prototype,Qu=Ku.hasOwnProperty;function Ju(t,e,n,r,i,o){var a=n&$u,s=ji(t),u=s.length,c=ji(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:Qu.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],m=e[f];if(r)var y=a?r(m,g,f,e,t,o):r(g,m,f,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var tc=Ju,ec=1,nc="[object Arguments]",rc="[object Array]",ic="[object Object]",oc=Object.prototype,ac=oc.hasOwnProperty;function sc(t,e,n,r,i,o){var a=Wn(t),s=Wn(e),u=a?rc:oo(t),c=s?rc:oo(e);u=u==nc?ic:u,c=c==nc?ic:c;var l=u==ic,h=c==ic,f=u==c;if(f&&Object(Yn["a"])(t)){if(!Object(Yn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new wn),a||Dr(t)?Pu(t,e,n,r,i,o):Zu(t,e,u,n,r,i,o);if(!(n&ec)){var p=l&&ac.call(t,"__wrapped__"),d=h&&ac.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new wn),i(v,g,n,r,o)}}return!!f&&(o||(o=new wn),tc(t,e,n,r,i,o))}var uc=sc;function cc(t,e,n,r,i){return t===e||(null==t||null==e||!vt(t)&&!vt(e)?t!==t&&e!==e:uc(t,e,n,r,cc,i))}var lc=cc;function hc(t,e){return lc(t,e)}var fc=hc,pc=Q?Q.isConcatSpreadable:void 0;function dc(t){return Wn(t)||Hn(t)||!!(pc&&t&&t[pc])}var vc=dc;function gc(t,e,n,r,i){var o=-1,a=t.length;n||(n=vc),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?gc(s,e-1,n,r,i):Ei(i,s):r||(i[i.length]=s)}return i}var mc=gc;function yc(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var _c=yc,bc=1,wc=2;function xc(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new wn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?lc(l,c,bc|wc,r,h):f))return!1}}return!0}var Oc=xc;function Sc(t){return t===t&&!X(t)}var Ec=Sc;function Tc(t){var e=Kr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Ec(i)]}return e}var Mc=Tc;function Ac(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Cc=Ac;function Pc(t){var e=Mc(t);return 1==e.length&&e[0][2]?Cc(e[0][0],e[0][1]):function(n){return n===t||Oc(n,t,e)}}var kc=Pc,Dc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lc=/^\w*$/;function Rc(t,e){if(Wn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!yt(t))||(Lc.test(t)||!Dc.test(t)||null!=e&&t in Object(e))}var Ic=Rc,jc="Expected a function";function Nc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(jc);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Nc.Cache||gn),n}Nc.Cache=gn;var Vc=Nc,Bc=500;function Gc(t){var e=Vc(t,(function(t){return n.size===Bc&&n.clear(),t})),n=e.cache;return e}var Uc=Gc,zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hc=/\\(\\)?/g,Fc=Uc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zc,(function(t,n,r,i){e.push(r?i.replace(Hc,"$1"):n||t)})),e})),Wc=Fc,Yc=1/0,Xc=Q?Q.prototype:void 0,qc=Xc?Xc.toString:void 0;function Zc(t){if("string"==typeof t)return t;if(Wn(t))return _c(t,Zc)+"";if(yt(t))return qc?qc.call(t):"";var e=t+"";return"0"==e&&1/t==-Yc?"-0":e}var $c=Zc;function Kc(t){return null==t?"":$c(t)}var Qc=Kc;function Jc(t,e){return Wn(t)?t:Ic(t,e)?[t]:Wc(Qc(t))}var tl=Jc,el=1/0;function nl(t){if("string"==typeof t||yt(t))return t;var e=t+"";return"0"==e&&1/t==-el?"-0":e}var rl=nl;function il(t,e){e=tl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[rl(e[n++])];return n&&n==r?t:void 0}var ol=il;function al(t,e,n){var r=null==t?void 0:ol(t,e);return void 0===r?n:r}var sl=al;function ul(t,e){return null!=t&&e in Object(t)}var cl=ul;function ll(t,e,n){e=tl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=rl(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Jn(i)&&$n(a,i)&&(Wn(t)||Hn(t)))}var hl=ll;function fl(t,e){return null!=t&&hl(t,e,cl)}var pl=fl,dl=1,vl=2;function gl(t,e){return Ic(t)&&Ec(e)?Cc(rl(t),e):function(n){var r=sl(n,t);return void 0===r&&r===e?pl(n,t):lc(e,r,dl|vl)}}var ml=gl;function yl(t){return function(e){return null==e?void 0:e[t]}}var _l=yl;function bl(t){return function(e){return ol(e,t)}}var wl=bl;function xl(t){return Ic(t)?_l(rl(t)):wl(t)}var Ol=xl;function Sl(t){return"function"==typeof t?t:null==t?ms:"object"==typeof t?Wn(t)?ml(t[0],t[1]):kc(t):Ol(t)}var El=Sl;function Tl(t,e){return t&&Ka(t,e,Kr)}var Ml=Tl;function Al(t,e){return function(n,r){if(null==n)return n;if(!Zr(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var Cl=Al,Pl=Cl(Ml),kl=Pl;function Dl(t,e){var n=-1,r=Zr(t)?Array(t.length):[];return kl(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Ll=Dl;function Rl(t,e){var n=Wn(t)?_c:Ll;return n(t,El(e,3))}var Il=Rl,jl=1/0;function Nl(t,e){return mc(Il(t,e),jl)}var Vl=Nl;function Bl(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var Gl=Bl;function Ul(t){return function(e){return null==t?void 0:t[e]}}var zl=Ul,Hl={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Fl=zl(Hl),Wl=Fl,Yl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xl="\\u0300-\\u036f",ql="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",$l=Xl+ql+Zl,Kl="["+$l+"]",Ql=RegExp(Kl,"g");function Jl(t){return t=Qc(t),t&&t.replace(Yl,Wl).replace(Ql,"")}var th=Jl,eh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function nh(t){return t.match(eh)||[]}var rh=nh,ih=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function oh(t){return ih.test(t)}var ah=oh,sh="\\ud800-\\udfff",uh="\\u0300-\\u036f",ch="\\ufe20-\\ufe2f",lh="\\u20d0-\\u20ff",hh=uh+ch+lh,fh="\\u2700-\\u27bf",ph="a-z\\xdf-\\xf6\\xf8-\\xff",dh="\\xac\\xb1\\xd7\\xf7",vh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gh="\\u2000-\\u206f",mh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",yh="A-Z\\xc0-\\xd6\\xd8-\\xde",_h="\\ufe0e\\ufe0f",bh=dh+vh+gh+mh,wh="['’]",xh="["+bh+"]",Oh="["+hh+"]",Sh="\\d+",Eh="["+fh+"]",Th="["+ph+"]",Mh="[^"+sh+bh+Sh+fh+ph+yh+"]",Ah="\\ud83c[\\udffb-\\udfff]",Ch="(?:"+Oh+"|"+Ah+")",Ph="[^"+sh+"]",kh="(?:\\ud83c[\\udde6-\\uddff]){2}",Dh="[\\ud800-\\udbff][\\udc00-\\udfff]",Lh="["+yh+"]",Rh="\\u200d",Ih="(?:"+Th+"|"+Mh+")",jh="(?:"+Lh+"|"+Mh+")",Nh="(?:"+wh+"(?:d|ll|m|re|s|t|ve))?",Vh="(?:"+wh+"(?:D|LL|M|RE|S|T|VE))?",Bh=Ch+"?",Gh="["+_h+"]?",Uh="(?:"+Rh+"(?:"+[Ph,kh,Dh].join("|")+")"+Gh+Bh+")*",zh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fh=Gh+Bh+Uh,Wh="(?:"+[Eh,kh,Dh].join("|")+")"+Fh,Yh=RegExp([Lh+"?"+Th+"+"+Nh+"(?="+[xh,Lh,"$"].join("|")+")",jh+"+"+Vh+"(?="+[xh,Lh+Ih,"$"].join("|")+")",Lh+"?"+Ih+"+"+Nh,Lh+"+"+Vh,Hh,zh,Sh,Wh].join("|"),"g");function Xh(t){return t.match(Yh)||[]}var qh=Xh;function Zh(t,e,n){return t=Qc(t),e=n?void 0:e,void 0===e?ah(t)?qh(t):rh(t):t.match(e)||[]}var $h=Zh,Kh="['’]",Qh=RegExp(Kh,"g");function Jh(t){return function(e){return Gl($h(th(e).replace(Qh,"")),t,"")}}var tf=Jh,ef=tf((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),nf=ef;function rf(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var of=rf;function af(t,e){var n;return kl(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var sf=af;function uf(t,e,n){var r=Wn(t)?Tu:sf;return n&&Ns(t,e,n)&&(e=void 0),r(t,El(e,3))}var cf=uf,lf={},hf=null;if("undefined"!==typeof document){var ff=document.documentElement;"onmouseenter"in ff||(lf={mouseenter:"mouseover",mouseleave:"mouseout"})}function pf(t,e,n){return t=df(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function df(t,e,n){return function(r){var i=hf;hf=r;try{t.call(this,this.__data__,e,n)}finally{hf=i}}}function vf(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function gf(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function mf(t,e,n){var r=lf.hasOwnProperty(t.type)?pf:df;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}var yf=function(t,e,n){var r,i,o=vf(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?mf:gf,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function _f(t,e,n,r){var i=hf;t.sourceEvent=hf,hf=t;try{return e.apply(n,r)}finally{hf=i}}var bf,wf=function(){var t,e=hf;while(t=e.sourceEvent)e=t;return e},xf=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Of=function(t){var e=wf();return e.changedTouches&&(e=e.changedTouches[0]),xf(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=Of(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===P.TIME?o["mapsTo"]="date":s===P.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===A.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===A.FRONT_LINE?"..."+t.substr(-n):e===A.END_LINE?t.substr(0,n)+"...":void 0}function l(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function h(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function f(t){return t.each((function(){this.parentNode.appendChild(this)}))}function p(t,e,n){return n===C.VERTICAL?[t,e]:[e,t]}t.debounce=kt,t.clone=Wa,t.merge=Us,t.removeArrayDuplicates=bu,t.clamp=Su,t.isEqual=fc,t.flatMapDeep=Vl,t.kebabCase=nf,t.fromPairs=of,t.some=cf,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.arrayDifferences=l,t.getDuplicateValues=h,t.moveToFront=f,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===C.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=p,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(bf||(bf={}));var Sf,Ef=n("39ba"),Tf=n.n(Ef),Mf={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},Af={opacity:{unselected:0,selected:.4}},Cf={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},paddingRatio:.1},Pf={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},kf={opacity:{unselected:.3,selected:1}},Df={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},Lf={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},Rf={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},If={default:{size:24}},jf={horizontalOffset:10},Nf={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},Vf={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Bf={height:(Sf={},Sf[M.GRAPH_VIEW]=32,Sf[M.SLIDER_VIEW]=10,Sf),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Gf={type:A.END_LINE,threshold:16,numCharacter:14},Uf={enabled:!0,position:k.BOTTOM,clickable:!0,truncation:Gf,alignment:D.LEFT,order:null},zf={x:{enabled:!0,numberOfTicks:15},y:{enabled:!0,numberOfTicks:5}},Hf={enabled:!0},Ff={enabled:!0,showTotal:!0,valueFormatter:function(t){return t.toLocaleString()},truncation:Gf},Wf={top:{visible:!0,includeZero:!0,truncation:Gf},bottom:{visible:!0,includeZero:!0,truncation:Gf},left:{visible:!0,includeZero:!0,truncation:Gf},right:{visible:!0,includeZero:!0,truncation:Gf}},Yf={addSpaceOnEdges:1,showDayName:!1,localeObject:Tf.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},Xf={width:null,height:null,resizable:!0,tooltip:Ff,legend:Uf,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},qf=bf.merge({},Xf,{axes:Wf,timeScale:Yf,grid:zf,ruler:Hf,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:M.GRAPH_VIEW},updateRangeAxis:!1},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),Zf=bf.merge({},qf,{bars:{maxWidth:16},timeScale:bf.merge(Yf,{addSpaceOnEdges:1})}),$f=bf.merge({},Zf,{}),Kf=bf.merge({},Zf,{}),Qf=bf.merge({},Zf,{bars:bf.merge({},Zf.bars,{dividerSize:1.5})}),Jf=bf.merge({},qf,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),tp=bf.merge({},Jf,{points:{radius:3,filled:!1,enabled:!0}}),ep=bf.merge({},tp,{timeScale:bf.merge(Yf,{addSpaceOnEdges:0})}),np=ep,rp=bf.merge({},qf,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0}}),ip=bf.merge({},Xf,{pie:{labels:{formatter:null},alignment:D.LEFT}}),op=bf.merge({},Xf,{legend:{enabled:!1},gauge:{type:G.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()}}}),ap=bf.merge({},ip,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}},alignment:D.LEFT}}),sp=bf.merge({},Xf,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),up=bf.merge({},Xf,{radar:{axes:{angle:"key",value:"value"},alignment:D.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),cp={chart:Xf,axisChart:qf,simpleBarChart:$f,groupedBarChart:Kf,stackedBarChart:Qf,bubbleChart:rp,lineChart:tp,areaChart:ep,stackedAreaChart:np,scatterChart:Jf,pieChart:ip,donutChart:ap,meterChart:sp,radarChart:up,gaugeChart:op},lp="$";function hp(){}function fp(t,e){var n=new hp;if(t instanceof hp)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}hp.prototype=fp.prototype={constructor:hp,has:function(t){return lp+t in this},get:function(t){return this[lp+t]},set:function(t,e){return this[lp+t]=e,this},remove:function(t){var e=lp+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===lp&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===lp&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===lp&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===lp&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===lp&&++t;return t},empty:function(){for(var t in this)if(t[0]===lp)return!1;return!0},each:function(t){for(var e in this)e[0]===lp&&t(this[e],e.slice(1),this)}};var pp=fp;function dp(){}var vp=pp.prototype;function gp(t,e){var n=new dp;if(t instanceof dp)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}dp.prototype=gp.prototype={constructor:dp,has:vp.has,add:function(t){return t+="",this[lp+t]=t,this},remove:vp.remove,clear:vp.clear,values:vp.keys,size:vp.size,empty:vp.empty,each:vp.each};var mp=function(t){var e=[];for(var n in t)e.push(t[n]);return e},yp=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},_p=function(t){return 1===t.length&&(t=bp(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function bp(t){return function(e,n){return yp(t(e),n)}}var wp=_p(yp),xp=wp.right,Op=(wp.left,xp);var Sp=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},Ep=Array.prototype,Tp=(Ep.slice,Ep.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),Mp=Math.sqrt(50),Ap=Math.sqrt(10),Cp=Math.sqrt(2),Pp=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=kp(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function kp(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Mp?10:o>=Ap?5:o>=Cp?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Mp?10:o>=Ap?5:o>=Cp?2:1)}function Dp(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Mp?i*=10:o>=Ap?i*=5:o>=Cp&&(i*=2),e<t?-i:i}var Lp=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&n>r&&(r=n)}return r},Rp=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r},Ip=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function jp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Np=Array.prototype,Vp=Np.map,Bp=Np.slice,Gp={name:"implicit"};function Up(){var t=pp(),e=[],n=[],r=Gp;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Gp)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=pp();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=Bp.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Up(e,n).unknown(r)},jp.apply(i,arguments),i}function zp(){var t,e,n=Up().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=Tp(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return zp(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},jp.apply(l(),arguments)}var Hp=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Fp(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Wp(){}var Yp=.7,Xp=1/Yp,qp="\\s*([+-]?\\d+)\\s*",Zp="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kp=/^#([0-9a-f]{3,8})$/,Qp=new RegExp("^rgb\\("+[qp,qp,qp]+"\\)$"),Jp=new RegExp("^rgb\\("+[$p,$p,$p]+"\\)$"),td=new RegExp("^rgba\\("+[qp,qp,qp,Zp]+"\\)$"),ed=new RegExp("^rgba\\("+[$p,$p,$p,Zp]+"\\)$"),nd=new RegExp("^hsl\\("+[Zp,$p,$p]+"\\)$"),rd=new RegExp("^hsla\\("+[Zp,$p,$p,Zp]+"\\)$"),id={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function od(){return this.rgb().formatHex()}function ad(){return yd(this).formatHsl()}function sd(){return this.rgb().formatRgb()}function ud(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Kp.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?cd(e):3===n?new pd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new pd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new pd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Qp.exec(t))?new pd(e[1],e[2],e[3],1):(e=Jp.exec(t))?new pd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=td.exec(t))?ld(e[1],e[2],e[3],e[4]):(e=ed.exec(t))?ld(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=nd.exec(t))?md(e[1],e[2]/100,e[3]/100,1):(e=rd.exec(t))?md(e[1],e[2]/100,e[3]/100,e[4]):id.hasOwnProperty(t)?cd(id[t]):"transparent"===t?new pd(NaN,NaN,NaN,0):null}function cd(t){return new pd(t>>16&255,t>>8&255,255&t,1)}function ld(t,e,n,r){return r<=0&&(t=e=n=NaN),new pd(t,e,n,r)}function hd(t){return t instanceof Wp||(t=ud(t)),t?(t=t.rgb(),new pd(t.r,t.g,t.b,t.opacity)):new pd}function fd(t,e,n,r){return 1===arguments.length?hd(t):new pd(t,e,n,null==r?1:r)}function pd(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function dd(){return"#"+gd(this.r)+gd(this.g)+gd(this.b)}function vd(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function gd(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function md(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bd(t,e,n,r)}function yd(t){if(t instanceof bd)return new bd(t.h,t.s,t.l,t.opacity);if(t instanceof Wp||(t=ud(t)),!t)return new bd;if(t instanceof bd)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new bd(a,s,u,t.opacity)}function _d(t,e,n,r){return 1===arguments.length?yd(t):new bd(t,e,n,null==r?1:r)}function bd(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function wd(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function xd(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Hp(Wp,ud,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:od,formatHex:od,formatHsl:ad,formatRgb:sd,toString:sd}),Hp(pd,fd,Fp(Wp,{brighter:function(t){return t=null==t?Xp:Math.pow(Xp,t),new pd(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Yp:Math.pow(Yp,t),new pd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dd,formatHex:dd,formatRgb:vd,toString:vd})),Hp(bd,_d,Fp(Wp,{brighter:function(t){return t=null==t?Xp:Math.pow(Xp,t),new bd(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Yp:Math.pow(Yp,t),new bd(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new pd(wd(t>=240?t-240:t+120,i,r),wd(t,i,r),wd(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Od=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return xd((n-r/e)*e,a,i,o,s)}},Sd=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return xd((n-r/e)*e,i,o,a,s)}},Ed=function(t){return function(){return t}};function Td(t,e){return function(n){return t+n*e}}function Md(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Ad(t){return 1===(t=+t)?Cd:function(e,n){return n-e?Md(e,n,t):Ed(isNaN(e)?n:e)}}function Cd(t,e){var n=e-t;return n?Td(t,n):Ed(isNaN(t)?e:t)}var Pd=function t(e){var n=Ad(e);function r(t,e){var r=n((t=fd(t)).r,(e=fd(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Cd(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function kd(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=fd(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}kd(Od),kd(Sd);var Dd=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Ld(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Rd(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Hd(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Id=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},jd=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Nd=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=Hd(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Vd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bd=new RegExp(Vd.source,"g");function Gd(t){return function(){return t}}function Ud(t){return function(e){return t(e)+""}}var zd=function(t,e){var n,r,i,o=Vd.lastIndex=Bd.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Vd.exec(t))&&(r=Bd.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:jd(n,r)})),o=Bd.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Ud(u[0].x):Gd(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},Hd=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ed(e):("number"===r?jd:"string"===r?(n=ud(e))?(e=n,Pd):zd:e instanceof ud?Pd:e instanceof Date?Id:Ld(e)?Dd:Array.isArray(e)?Rd:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Nd:jd)(t,e)},Fd=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Wd=function(t){return function(){return t}},Yd=function(t){return+t},Xd=[0,1];function qd(t){return t}function Zd(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Wd(isNaN(e)?NaN:.5)}function $d(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Kd(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Zd(i,r),o=n(a,o)):(r=Zd(r,i),o=n(o,a)),function(t){return o(r(t))}}function Qd(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=Zd(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Op(t,e,1,r)-1;return o[n](i[n](e))}}function Jd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function tv(){var t,e,n,r,i,o,a=Xd,s=Xd,u=Hd,c=qd;function l(){return r=Math.min(a.length,s.length)>2?Qd:Kd,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),jd)))(n)))},h.domain=function(t){return arguments.length?(a=Vp.call(t,Yd),c===qd||(c=$d(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Bp.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Bp.call(t),u=Fd,l()},h.clamp=function(t){return arguments.length?(c=t?$d(a):qd,h):c!==qd},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function ev(t,e){return tv()(t,e)}var nv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rv(t){if(!(e=nv.exec(t)))throw new Error("invalid format: "+t);var e;return new iv({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function iv(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}rv.prototype=iv.prototype,iv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ov,av,sv,uv,cv=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},lv=function(t){return t=cv(Math.abs(t)),t?t[1]:NaN},hv=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lv(e)/3)))-lv(Math.abs(t)))},fv=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},pv=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},dv=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},vv=function(t,e){var n=cv(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(ov=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+cv(t,Math.max(0,e+o-1))[0]},gv=function(t,e){var n=cv(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},mv={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return gv(100*t,e)},r:gv,s:vv,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},yv=function(t){return t},_v=Array.prototype.map,bv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],wv=function(t){var e=void 0===t.grouping||void 0===t.thousands?yv:fv(_v.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?yv:pv(_v.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){t=rv(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):mv[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",w=mv[y],x=/[defgprs%]/.test(y);function O(t){var n,r,a,f=_,O=b;if("c"===y)O=w(t)+O,t="";else{t=+t;var S=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),m&&(t=dv(t)),S&&0===+t&&(S=!1),f=(S?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===y?bv[8+ov/3]:"")+O+(S&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var E=f.length+t.length+O.length,T=E<d?new Array(d-E+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-O.length:1/0),T=""),l){case"<":t=f+t+O+T;break;case"=":t=f+T+t+O;break;case"^":t=T.slice(0,E=T.length>>1)+f+t+O+T.slice(E);break;default:t=T+f+t+O;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=rv(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(lv(e)/3))),i=Math.pow(10,-r),o=bv[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function xv(t){return av=wv(t),sv=av.format,uv=av.formatPrefix,av}xv({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Ov=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,lv(e)-lv(t))+1},Sv=function(t){return Math.max(0,-lv(Math.abs(t)))},Ev=function(t,e,n,r){var i,o=Dp(t,e,n);switch(r=rv(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=hv(o,a))||(r.precision=i),uv(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Ov(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Sv(o))||(r.precision=i-2*("%"===r.type));break}return sv(r)};function Tv(t){var e=t.domain;return t.ticks=function(t){var n=e();return Pp(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ev(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=kp(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=kp(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=kp(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Mv(){var t=ev(qd,qd);return t.copy=function(){return Jd(t,Mv())},jp.apply(t,arguments),Tv(t)}var Av=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function Cv(t){return Math.log(t)}function Pv(t){return Math.exp(t)}function kv(t){return-Math.log(-t)}function Dv(t){return-Math.exp(-t)}function Lv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Rv(t){return 10===t?Lv:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Iv(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function jv(t){return function(e){return-t(-e)}}function Nv(t){var e,n,r=t(Cv,Pv),i=r.domain,o=10;function a(){return e=Iv(o),n=Rv(o),i()[0]<0?(e=jv(e),n=jv(n),t(kv,Dv)):t(Cv,Pv),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=Pp(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=sv(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(Av(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Vv(){var t=Nv(tv()).domain([1,10]);return t.copy=function(){return Jd(t,Vv()).base(t.base())},jp.apply(t,arguments),t}var Bv=new Date,Gv=new Date;function Uv(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Uv((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return Bv.setTime(+e),Gv.setTime(+r),t(Bv),t(Gv),Math.floor(n(Bv,Gv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var zv=Uv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));zv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Uv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Hv=zv,Fv=(zv.range,Uv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Wv=Fv,Yv=(Fv.range,1e3),Xv=6e4,qv=36e5,Zv=864e5,$v=6048e5;function Kv(t){return Uv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xv)/$v}))}var Qv=Kv(0),Jv=Kv(1),tg=Kv(2),eg=Kv(3),ng=Kv(4),rg=Kv(5),ig=Kv(6),og=(Qv.range,Jv.range,tg.range,eg.range,ng.range,rg.range,ig.range,Uv((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xv)/Zv}),(function(t){return t.getDate()-1}))),ag=og,sg=(og.range,Uv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yv-t.getMinutes()*Xv)}),(function(t,e){t.setTime(+t+e*qv)}),(function(t,e){return(e-t)/qv}),(function(t){return t.getHours()}))),ug=sg,cg=(sg.range,Uv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Yv)}),(function(t,e){t.setTime(+t+e*Xv)}),(function(t,e){return(e-t)/Xv}),(function(t){return t.getMinutes()}))),lg=cg,hg=(cg.range,Uv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Yv)}),(function(t,e){return(e-t)/Yv}),(function(t){return t.getUTCSeconds()}))),fg=hg,pg=(hg.range,Uv((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));pg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Uv((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):pg:null};var dg=pg;pg.range;function vg(t){return Uv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/$v}))}var gg=vg(0),mg=vg(1),yg=vg(2),_g=vg(3),bg=vg(4),wg=vg(5),xg=vg(6),Og=(gg.range,mg.range,yg.range,_g.range,bg.range,wg.range,xg.range,Uv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Zv}),(function(t){return t.getUTCDate()-1}))),Sg=Og,Eg=(Og.range,Uv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Eg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Uv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Tg=Eg;Eg.range;function Mg(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ag(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cg(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Pg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Bg(i),l=Gg(i),h=Bg(o),f=Gg(o),p=Bg(a),d=Gg(a),v=Bg(s),g=Gg(s),m=Bg(u),y=Gg(u),_={a:L,A:R,b:I,B:j,c:null,d:sm,e:sm,f:fm,H:um,I:cm,j:lm,L:hm,m:pm,M:dm,p:N,q:V,Q:zm,s:Hm,S:vm,u:gm,U:mm,V:ym,w:_m,W:bm,x:null,X:null,y:wm,Y:xm,Z:Om,"%":Um},b={a:B,A:G,b:U,B:z,c:null,d:Sm,e:Sm,f:Cm,H:Em,I:Tm,j:Mm,L:Am,m:Pm,M:km,p:H,q:F,Q:zm,s:Hm,S:Dm,u:Lm,U:Rm,V:Im,w:jm,W:Nm,x:null,X:null,y:Vm,Y:Bm,Z:Gm,"%":Um},w={a:T,A:M,b:A,B:C,c:P,d:Kg,e:Kg,f:rm,H:Jg,I:Jg,j:Qg,L:nm,m:$g,M:tm,p:E,q:Zg,Q:om,s:am,S:em,u:zg,U:Hg,V:Fg,w:Ug,W:Wg,x:k,X:D,y:Xg,Y:Yg,Z:qg,"%":im};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=Lg[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(n){var r,i,o=Cg(1900,void 0,1),a=S(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=Ag(Cg(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?mg.ceil(r):mg(r),r=Sg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Mg(Cg(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Jv.ceil(r):Jv(r),r=ag.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ag(Cg(o.y,0,1)).getUTCDay():Mg(Cg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ag(o)):Mg(o)}}function S(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=w[i in Lg?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function E(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return S(t,e,n,r)}function k(t,e,r){return S(t,n,e,r)}function D(t,e,n){return S(t,r,e,n)}function L(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function j(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function V(t){return 1+~~(t.getMonth()/3)}function B(t){return a[t.getUTCDay()]}function G(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function z(t){return s[t.getUTCMonth()]}function H(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}})}var kg,Dg,Lg={"-":"",_:" ",0:"0"},Rg=/^\s*\d+/,Ig=/^%/,jg=/[\\^$*+?|[\]().{}]/g;function Ng(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Vg(t){return t.replace(jg,"\\$&")}function Bg(t){return new RegExp("^(?:"+t.map(Vg).join("|")+")","i")}function Gg(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Ug(t,e,n){var r=Rg.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zg(t,e,n){var r=Rg.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Hg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Fg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Wg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Yg(t,e,n){var r=Rg.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qg(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zg(t,e,n){var r=Rg.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function $g(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Kg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Qg(t,e,n){var r=Rg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Jg(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function tm(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function em(t,e,n){var r=Rg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function nm(t,e,n){var r=Rg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function rm(t,e,n){var r=Rg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function im(t,e,n){var r=Ig.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function om(t,e,n){var r=Rg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function am(t,e,n){var r=Rg.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function sm(t,e){return Ng(t.getDate(),e,2)}function um(t,e){return Ng(t.getHours(),e,2)}function cm(t,e){return Ng(t.getHours()%12||12,e,2)}function lm(t,e){return Ng(1+ag.count(Hv(t),t),e,3)}function hm(t,e){return Ng(t.getMilliseconds(),e,3)}function fm(t,e){return hm(t,e)+"000"}function pm(t,e){return Ng(t.getMonth()+1,e,2)}function dm(t,e){return Ng(t.getMinutes(),e,2)}function vm(t,e){return Ng(t.getSeconds(),e,2)}function gm(t){var e=t.getDay();return 0===e?7:e}function mm(t,e){return Ng(Qv.count(Hv(t)-1,t),e,2)}function ym(t,e){var n=t.getDay();return t=n>=4||0===n?ng(t):ng.ceil(t),Ng(ng.count(Hv(t),t)+(4===Hv(t).getDay()),e,2)}function _m(t){return t.getDay()}function bm(t,e){return Ng(Jv.count(Hv(t)-1,t),e,2)}function wm(t,e){return Ng(t.getFullYear()%100,e,2)}function xm(t,e){return Ng(t.getFullYear()%1e4,e,4)}function Om(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ng(e/60|0,"0",2)+Ng(e%60,"0",2)}function Sm(t,e){return Ng(t.getUTCDate(),e,2)}function Em(t,e){return Ng(t.getUTCHours(),e,2)}function Tm(t,e){return Ng(t.getUTCHours()%12||12,e,2)}function Mm(t,e){return Ng(1+Sg.count(Tg(t),t),e,3)}function Am(t,e){return Ng(t.getUTCMilliseconds(),e,3)}function Cm(t,e){return Am(t,e)+"000"}function Pm(t,e){return Ng(t.getUTCMonth()+1,e,2)}function km(t,e){return Ng(t.getUTCMinutes(),e,2)}function Dm(t,e){return Ng(t.getUTCSeconds(),e,2)}function Lm(t){var e=t.getUTCDay();return 0===e?7:e}function Rm(t,e){return Ng(gg.count(Tg(t)-1,t),e,2)}function Im(t,e){var n=t.getUTCDay();return t=n>=4||0===n?bg(t):bg.ceil(t),Ng(bg.count(Tg(t),t)+(4===Tg(t).getUTCDay()),e,2)}function jm(t){return t.getUTCDay()}function Nm(t,e){return Ng(mg.count(Tg(t)-1,t),e,2)}function Vm(t,e){return Ng(t.getUTCFullYear()%100,e,2)}function Bm(t,e){return Ng(t.getUTCFullYear()%1e4,e,4)}function Gm(){return"+0000"}function Um(){return"%"}function zm(t){return+t}function Hm(t){return Math.floor(+t/1e3)}function Fm(t){return kg=Pg(t),Dg=kg.format,kg.parse,kg.utcFormat,kg.utcParse,kg}Fm({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Wm=1e3,Ym=60*Wm,Xm=60*Ym,qm=24*Xm,Zm=7*qm,$m=30*qm,Km=365*qm;function Qm(t){return new Date(t)}function Jm(t){return t instanceof Date?+t:+new Date(+t)}function ty(t,e,n,r,i,o,a,s,u){var c=ev(qd,qd),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,Wm],[a,5,5*Wm],[a,15,15*Wm],[a,30,30*Wm],[o,1,Ym],[o,5,5*Ym],[o,15,15*Ym],[o,30,30*Ym],[i,1,Xm],[i,3,3*Xm],[i,6,6*Xm],[i,12,12*Xm],[r,1,qm],[r,2,2*qm],[n,1,Zm],[e,1,$m],[e,3,3*$m],[t,1,Km]];function w(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=_p((function(t){return t[2]})).right(b,o);a===b.length?(i=Dp(n/Km,r/Km,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(Dp(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(Vp.call(t,Jm)):h().map(Qm)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=x(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?w:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(Av(n,t)):c},c.copy=function(){return Jd(c,ty(t,e,n,r,i,o,a,s,u))},c}var ey=function(){return jp.apply(ty(Hv,Wv,Qv,ag,ug,lg,fg,dg,Dg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},ny=Uv((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),ry=(ny.range,Uv((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*qv)}),(function(t,e){return(e-t)/qv}),(function(t){return t.getUTCHours()}))),iy=(ry.range,Uv((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Xv)}),(function(t,e){return(e-t)/Xv}),(function(t){return t.getUTCMinutes()})));iy.range;var oy=Array.prototype.slice,ay=function(t){return function(){return t}},sy=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},uy=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function cy(t,e){return t[e]}var ly=function(){var t=ay([]),e=uy,n=sy,r=cy;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:ay(oy.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:ay(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?uy:"function"===typeof t?t:ay(oy.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?sy:t,i):n},i},hy=function(){return hy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},hy.apply(this,arguments)},fy=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(){if(!this.get("data"))return null;var t=this.getDataGroups(),e=bf.clone(this.get("data")),n=this.getOptions().data.groupMapsTo,r=this.getOptions().axes;return r&&Object.keys(r).forEach((function(t){var n=r[t].mapsTo,i=r[t].scaleType;if(i!==P.LINEAR&&i!==P.LOG||(e=e.map((function(t){var e;return hy(hy({},t),(e={},e[n]=Number(t[n]),e))}))),r[t].mapsTo&&r[t].domain)if(i===P.LABELS)e=e.filter((function(e){return r[t].domain.includes(e[n])}));else{var o=r[t].domain,a=o[0],s=o[1];e=e.filter((function(t){return t[n]>=a&&t[n]<=s}))}})),e.filter((function(e){return t.find((function(t){return t.name===e[n]}))}))},t.prototype.getDisplayData=function(){if(!this.get("data"))return null;var t=Pf.items.status.ACTIVE,e=this.getDataGroups(),n=this.getOptions().data.groupMapsTo,r=this.getAllDataFromDomain();return r.filter((function(r){return e.find((function(e){return e.name===r[n]&&e.status===t}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(bf.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(){var t=bf.getProperty(this.getOptions(),"data","loading");return t?[]:this.get("dataGroups")},t.prototype.getActiveDataGroups=function(){var t=Pf.items.status.ACTIVE;return this.getDataGroups().filter((function(e){return e.status===t}))},t.prototype.getDataGroupNames=function(){return this.getDataGroups().map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(){return this.getActiveDataGroups().map((function(t){return t.name}))},t.prototype.getGroupedData=function(){var t=this.getDisplayData(),e={},n=this.getOptions().data.groupMapsTo;return t.map((function(t){var r=t[n];null!==e[r]&&void 0!==e[r]?e[r].push(t):e[r]=[t]})),Object.keys(e).map((function(t){return{name:t,data:e[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getDisplayData(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=pp(n,(function(t){return t[r]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=t.axes[a].scaleType;s===P.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==P.LOG&&s!==P.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var o={sharedStackKey:t};return u.forEach((function(a){var s=n.find((function(n){return n[e]===a&&n[r].toString()===t}));o[a]=s?s[i]:null})),o}))},t.prototype.getStackedData=function(t){var e=(void 0===t?{percentage:!1}:t).percentage,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDataGroupNames(),o=this.getDataValuesGroupedByKeys();if(e){var a=bf.fromPairs(o.map((function(t){return[t.sharedStackKey,0]})));o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]+=t[e]}))})),o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]?t[e]=t[e]/a[t.sharedStackKey]*100:t[e]=0}))}))}return ly().keys(i)(o).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var o=t[n];return o[r]=i[e],o}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:bf.merge(this.getOptions(),t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(W.Model.UPDATE,{animate:t}))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=Pf.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(W.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){if(!this.isUserProvidedColorScaleValid())return null;var r=this.getOptions(),i=this.getFillScale()(t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){if(!this.isUserProvidedColorScaleValid())return null;var r=this.getOptions(),i=this.colorScale(t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.getFillScale=function(){return this.colorScale},t.prototype.isUserProvidedColorScaleValid=function(){var t=bf.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return!(null==t||Object.keys(t).length<e.length)&&e.every((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){if(this.isUserProvidedColorScaleValid())return t.originalClassName;var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=bf.getProperty(t,"label");if(null===a){var s=bf.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(T).forEach((function(t){var r=T[t],i=e.axes[r];if(i&&i.scaleType===P.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){void 0===t[e].getTime&&(t[e]=new Date(t[e]))}))})),t},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t=this.sanitizeDateValues(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=Pf.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=pp(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){if(this.isUserProvidedColorScaleValid()){var t=this.getOptions(),e=bf.getProperty(t,"color","scale"),n=[];this.allDataGroups.forEach((function(t){e[t]&&n.push(e[t])})),this.colorScale=Up().range(n).domain(this.allDataGroups)}},t.prototype.setColorClassNames=function(){var t=bf.getProperty(this.getOptions(),"color","pairing"),e=bf.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=bf.getProperty(t,"option"),r=Mf.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.isUserProvidedColorScaleValid()||(this.colorClassNames=Up().range(o).domain(this.allDataGroups))},t}(),py=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}();function dy(){}var vy=function(t){return null==t?dy:function(){return this.querySelector(t)}},gy=function(t){"function"!==typeof t&&(t=vy(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new Y_(r,this._parents)};function my(){return[]}var yy=function(t){return null==t?my:function(){return this.querySelectorAll(t)}},_y=function(t){"function"!==typeof t&&(t=yy(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new Y_(r,i)},by=function(t){return function(){return this.matches(t)}},wy=function(t){"function"!==typeof t&&(t=by(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Y_(r,this._parents)},xy=function(t){return new Array(t.length)},Oy=function(){return new Y_(this._enter||this._groups.map(xy),this._parents)};function Sy(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Sy.prototype={constructor:Sy,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ey=function(t){return function(){return t}},Ty="$";function My(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Sy(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function Ay(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=Ty+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=Ty+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new Sy(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var Cy=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?Ay:My,r=this._parents,i=this._groups;"function"!==typeof t&&(t=Ey(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,w=0;b<d;++b)if(y=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);y._next=_||null}}return a=new Y_(a,r),a._enter=s,a._exit=u,a},Py=function(){return new Y_(this._exit||this._groups.map(xy),this._parents)},ky=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},Dy=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new Y_(a,this._parents)},Ly=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},Ry=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Iy);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new Y_(i,this._parents).order()};function Iy(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var jy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Ny=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},Vy=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},By=function(){var t=0;return this.each((function(){++t})),t},Gy=function(){return!this.node()},Uy=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},zy="http://www.w3.org/1999/xhtml",Hy={svg:"http://www.w3.org/2000/svg",xhtml:zy,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Fy=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Hy.hasOwnProperty(e)?{space:Hy[e],local:t}:t};function Wy(t){return function(){this.removeAttribute(t)}}function Yy(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xy(t,e){return function(){this.setAttribute(t,e)}}function qy(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Zy(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function $y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Ky=function(t,e){var n=Fy(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Yy:Wy:"function"===typeof e?n.local?$y:Zy:n.local?qy:Xy)(n,e))},Qy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Jy(t){return function(){this.style.removeProperty(t)}}function t_(t,e,n){return function(){this.style.setProperty(t,e,n)}}function e_(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var n_=function(t,e,n){return arguments.length>1?this.each((null==e?Jy:"function"===typeof e?e_:t_)(t,e,null==n?"":n)):r_(this.node(),t)};function r_(t,e){return t.style.getPropertyValue(e)||Qy(t).getComputedStyle(t,null).getPropertyValue(e)}function i_(t){return function(){delete this[t]}}function o_(t,e){return function(){this[t]=e}}function a_(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var s_=function(t,e){return arguments.length>1?this.each((null==e?i_:"function"===typeof e?a_:o_)(t,e)):this.node()[t]};function u_(t){return t.trim().split(/^|\s+/)}function c_(t){return t.classList||new l_(t)}function l_(t){this._node=t,this._names=u_(t.getAttribute("class")||"")}function h_(t,e){var n=c_(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function f_(t,e){var n=c_(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function p_(t){return function(){h_(this,t)}}function d_(t){return function(){f_(this,t)}}function v_(t,e){return function(){(e.apply(this,arguments)?h_:f_)(this,t)}}l_.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var g_=function(t,e){var n=u_(t+"");if(arguments.length<2){var r=c_(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?v_:e?p_:d_)(n,e))};function m_(){this.textContent=""}function y_(t){return function(){this.textContent=t}}function __(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var b_=function(t){return arguments.length?this.each(null==t?m_:("function"===typeof t?__:y_)(t)):this.node().textContent};function w_(){this.innerHTML=""}function x_(t){return function(){this.innerHTML=t}}function O_(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var S_=function(t){return arguments.length?this.each(null==t?w_:("function"===typeof t?O_:x_)(t)):this.node().innerHTML};function E_(){this.nextSibling&&this.parentNode.appendChild(this)}var T_=function(){return this.each(E_)};function M_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var A_=function(){return this.each(M_)};function C_(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===zy&&e.documentElement.namespaceURI===zy?e.createElement(t):e.createElementNS(n,t)}}function P_(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var k_=function(t){var e=Fy(t);return(e.local?P_:C_)(e)},D_=function(t){var e="function"===typeof t?t:k_(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function L_(){return null}var R_=function(t,e){var n="function"===typeof t?t:k_(t),r=null==e?L_:"function"===typeof e?e:vy(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function I_(){var t=this.parentNode;t&&t.removeChild(this)}var j_=function(){return this.each(I_)};function N_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function V_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var B_=function(t){return this.select(t?V_:N_)},G_=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function U_(t,e,n){var r=Qy(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function z_(t,e){return function(){return U_(this,t,e)}}function H_(t,e){return function(){return U_(this,t,e.apply(this,arguments))}}var F_=function(t,e){return this.each(("function"===typeof e?H_:z_)(t,e))},W_=[null];function Y_(t,e){this._groups=t,this._parents=e}function X_(){return new Y_([[document.documentElement]],W_)}Y_.prototype=X_.prototype={constructor:Y_,select:gy,selectAll:_y,filter:wy,data:Cy,enter:Oy,exit:Py,join:ky,merge:Dy,order:Ly,sort:Ry,call:jy,nodes:Ny,node:Vy,size:By,empty:Gy,each:Uy,attr:Ky,style:n_,property:s_,classed:g_,text:b_,html:S_,raise:T_,lower:A_,append:D_,insert:R_,remove:j_,clone:B_,datum:G_,on:yf,dispatch:F_};var q_=X_,Z_=function(t){return"string"===typeof t?new Y_([[document.querySelector(t)]],[document.documentElement]):new Y_([[t]],W_)},$_={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "},K_=$_,Q_=K_,J_=n("2da1"),tb=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tb(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=Z_(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:bf.getProperty(t.node(),"width","baseVal","value"),height:bf.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===D.CENTER?a=Math.floor((o-i.width)/2):t===D.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Z_(this.getHolder()).classed(Q_.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"style","prefix"),n=Z_(this.getHolder()).append("svg").classed(Q_.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");this.svg=n.node()},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(Z_(this.svg),{useBBox:!0}).height,n=Z_(this.svg).attr("class"),r=Z_(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(Z_(t),{useBBox:!0}).height)})),i<=t?Z_(this.svg).attr("height",i):Z_(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&Z_(e).on("mouseover",(function(){t.services.events.dispatchEvent(W.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(W.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=bf.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent(W.Chart.RESIZE))}),12.5),o=new J_["a"](i);o.observe(e)}},e}(py),nb=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nb(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(py),ib={value:function(){}};function ob(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new ab(r)}function ab(t){this._=t}function sb(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ub(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function cb(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ib,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}ab.prototype=ob.prototype={constructor:ab,on:function(t,e){var n,r=this._,i=sb(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=cb(r[n],t.name,e);else if(null==e)for(n in r)r[n]=cb(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=ub(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ab(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var lb,hb,fb=ob,pb=0,db=0,vb=0,gb=1e3,mb=0,yb=0,_b=0,bb="object"===typeof performance&&performance.now?performance:Date,wb="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function xb(){return yb||(wb(Ob),yb=bb.now()+_b)}function Ob(){yb=0}function Sb(){this._call=this._time=this._next=null}function Eb(t,e,n){var r=new Sb;return r.restart(t,e,n),r}function Tb(){xb(),++pb;var t,e=lb;while(e)(t=yb-e._time)>=0&&e._call.call(null,t),e=e._next;--pb}function Mb(){yb=(mb=bb.now())+_b,pb=db=0;try{Tb()}finally{pb=0,Cb(),yb=0}}function Ab(){var t=bb.now(),e=t-mb;e>gb&&(_b-=e,mb=t)}function Cb(){var t,e,n=lb,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:lb=e);hb=t,Pb(r)}function Pb(t){if(!pb){db&&(db=clearTimeout(db));var e=t-yb;e>24?(t<1/0&&(db=setTimeout(Mb,t-bb.now()-_b)),vb&&(vb=clearInterval(vb))):(vb||(mb=bb.now(),vb=setInterval(Ab,gb)),pb=1,wb(Mb))}}Sb.prototype=Eb.prototype={constructor:Sb,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?xb():+n)+(null==e?0:+e),this._next||hb===this||(hb?hb._next=this:lb=this,hb=this),this._call=t,this._time=n,Pb()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pb())}};var kb=function(t,e,n){var r=new Sb;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Db=fb("start","end","cancel","interrupt"),Lb=[],Rb=0,Ib=1,jb=2,Nb=3,Vb=4,Bb=5,Gb=6,Ub=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Wb(t,n,{name:e,index:r,group:i,on:Db,tween:Lb,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Rb})};function zb(t,e){var n=Fb(t,e);if(n.state>Rb)throw new Error("too late; already scheduled");return n}function Hb(t,e){var n=Fb(t,e);if(n.state>Nb)throw new Error("too late; already running");return n}function Fb(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Wb(t,e,n){var r,i=t.__transition;function o(t){n.state=Ib,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==Ib)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Nb)return kb(a);f.state===Vb?(f.state=Gb,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=Gb,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(kb((function(){n.state===Nb&&(n.state=Vb,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=jb,n.on.call("start",t,t.__data__,n.index,n.group),n.state===jb){for(n.state=Nb,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=Bb,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Bb&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Gb,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Eb(o,0,n.time)}var Yb,Xb,qb,Zb,$b=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>jb&&n.state<Bb,n.state=Gb,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Kb=function(t){return this.each((function(){$b(this,t)}))},Qb=180/Math.PI,Jb={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tw=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Qb,skewX:Math.atan(u)*Qb,scaleX:a,scaleY:s}};function ew(t){return"none"===t?Jb:(Yb||(Yb=document.createElement("DIV"),Xb=document.documentElement,qb=document.defaultView),Yb.style.transform=t,t=qb.getComputedStyle(Xb.appendChild(Yb),null).getPropertyValue("transform"),Xb.removeChild(Yb),t=t.slice(7,-1).split(","),tw(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function nw(t){return null==t?Jb:(Zb||(Zb=document.createElementNS("http://www.w3.org/2000/svg","g")),Zb.setAttribute("transform",t),(t=Zb.transform.baseVal.consolidate())?(t=t.matrix,tw(t.a,t.b,t.c,t.d,t.e,t.f)):Jb)}function rw(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:jd(t,i)},{i:u-2,x:jd(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:jd(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:jd(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:jd(t,n)},{i:s-2,x:jd(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var iw=rw(ew,"px, ","px)","deg)"),ow=rw(nw,", ",")",")");function aw(t,e){var n,r;return function(){var i=Hb(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function sw(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Hb(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var uw=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Fb(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?aw:sw)(n,t,e))};function cw(t,e,n){var r=t._id;return t.each((function(){var t=Hb(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Fb(t,r).value[e]}}var lw=function(t,e){var n;return("number"===typeof e?jd:e instanceof ud?Pd:(n=ud(e))?(e=n,Pd):zd)(t,e)};function hw(t){return function(){this.removeAttribute(t)}}function fw(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pw(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function dw(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function vw(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function gw(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var mw=function(t,e){var n=Fy(t),r="transform"===n?ow:lw;return this.attrTween(t,"function"===typeof e?(n.local?gw:vw)(n,r,cw(this,"attr."+t,e)):null==e?(n.local?fw:hw)(n):(n.local?dw:pw)(n,r,e))};function yw(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function _w(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function bw(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&_w(t,i)),n}return i._value=e,i}function ww(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&yw(t,i)),n}return i._value=e,i}var xw=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Fy(t);return this.tween(n,(r.local?bw:ww)(r,e))};function Ow(t,e){return function(){zb(this,t).delay=+e.apply(this,arguments)}}function Sw(t,e){return e=+e,function(){zb(this,t).delay=e}}var Ew=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Ow:Sw)(e,t)):Fb(this.node(),e).delay};function Tw(t,e){return function(){Hb(this,t).duration=+e.apply(this,arguments)}}function Mw(t,e){return e=+e,function(){Hb(this,t).duration=e}}var Aw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Tw:Mw)(e,t)):Fb(this.node(),e).duration};function Cw(t,e){if("function"!==typeof e)throw new Error;return function(){Hb(this,t).ease=e}}var Pw=function(t){var e=this._id;return arguments.length?this.each(Cw(e,t)):Fb(this.node(),e).ease},kw=function(t){"function"!==typeof t&&(t=by(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new ax(r,this._parents,this._name,this._id)},Dw=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new ax(a,this._parents,this._name,this._id)};function Lw(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function Rw(t,e,n){var r,i,o=Lw(e)?zb:Hb;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Iw=function(t,e){var n=this._id;return arguments.length<2?Fb(this.node(),n).on.on(t):this.each(Rw(n,t,e))};function jw(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var Nw=function(){return this.on("end.remove",jw(this._id))},Vw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=vy(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,Ub(h[f],e,n,f,h,Fb(s,n)));return new ax(o,this._parents,e,n)},Bw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=yy(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=Fb(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Ub(f,e,n,v,p,d);o.push(p),a.push(u)}return new ax(o,a,e,n)},Gw=q_.prototype.constructor,Uw=function(){return new Gw(this._groups,this._parents)};function zw(t,e){var n,r,i;return function(){var o=r_(this,t),a=(this.style.removeProperty(t),r_(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Hw(t){return function(){this.style.removeProperty(t)}}function Fw(t,e,n){var r,i,o=n+"";return function(){var a=r_(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Ww(t,e,n){var r,i,o;return function(){var a=r_(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=r_(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Yw(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Hb(this,t),c=u.on,l=null==u.value[a]?o||(o=Hw(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var Xw=function(t,e,n){var r="transform"===(t+="")?iw:lw;return null==e?this.styleTween(t,zw(t,r)).on("end.style."+t,Hw(t)):"function"===typeof e?this.styleTween(t,Ww(t,r,cw(this,"style."+t,e))).each(Yw(this._id,t)):this.styleTween(t,Fw(t,r,e),n).on("end.style."+t,null)};function qw(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Zw(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&qw(t,o,n)),r}return o._value=e,o}var $w=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,Zw(t,e,null==n?"":n))};function Kw(t){return function(){this.textContent=t}}function Qw(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Jw=function(t){return this.tween("text","function"===typeof t?Qw(cw(this,"text",t)):Kw(null==t?"":t+""))};function tx(t){return function(e){this.textContent=t.call(this,e)}}function ex(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&tx(r)),e}return r._value=t,r}var nx=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,ex(t))},rx=function(){for(var t=this._name,e=this._id,n=ux(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=Fb(a,e);Ub(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new ax(r,this._parents,t,n)},ix=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=Hb(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},ox=0;function ax(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function sx(t){return q_().transition(t)}function ux(){return++ox}var cx=q_.prototype;function lx(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ax.prototype=sx.prototype={constructor:ax,select:Vw,selectAll:Bw,filter:kw,merge:Dw,selection:Uw,transition:rx,call:cx.call,nodes:cx.nodes,node:cx.node,size:cx.size,empty:cx.empty,each:cx.each,on:Iw,attr:mw,attrTween:xw,style:Xw,styleTween:$w,text:Jw,textTween:nx,remove:Nw,tween:uw,delay:Ew,duration:Aw,ease:Pw,end:ix};var hx={time:null,delay:0,duration:250,ease:lx};function fx(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return hx.time=xb(),hx;return n}var px=function(t){var e,n;t instanceof ax?(e=t._id,t=t._name):(e=ux(),(n=hx).time=xb(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&Ub(a,t,e,c,s,n||fx(a,e));return new ax(r,this._parents,t,e)};q_.prototype.interrupt=Kb,q_.prototype.transition=px;var dx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return dx(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(W.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=sx(t).duration(bf.getProperty(Nf,t,"duration")||Nf.default.duration);return this.pendingTransitions[r._id]=r,r.on("end interrupt cancel",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=sx(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(py),gx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gx(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(py);function yx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function _x(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e);return n.getFullYear()-r.getFullYear()}function bx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function wx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e),i=bx(n,r),o=Math.abs(_x(n,r));n.setFullYear(n.getFullYear()-i*o);var a=bx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function xx(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Ox(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Sx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=xx(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=Ox(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Ex(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Sx(t,12*n)}function Tx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Ex(t,-n)}function Mx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function Ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e),i=bx(n,r),o=Math.abs(Mx(n,r));n.setMonth(n.getMonth()-i*o);var a=bx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Sx(t,-n)}var Px=6e4;function kx(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Px;return n*Px+r}function Dx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t);return e.setHours(0,0,0,0),e}var Lx=864e5;function Rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Dx(t),r=Dx(e),i=n.getTime()-kx(n),o=r.getTime()-kx(r);return Math.round((i-o)/Lx)}function Ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e),i=bx(n,r),o=Math.abs(Rx(n,r));n.setDate(n.getDate()-i*o);var a=bx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function jx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=xx(e);return n.setDate(n.getDate()+r),n}function Nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return jx(t,-n)}function Vx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t),r=yx(e);return n.getTime()-r.getTime()}var Bx=36e5;function Gx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Vx(t,e)/Bx;return n>0?Math.floor(n):Math.ceil(n)}function Ux(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=yx(t).getTime(),r=xx(e);return new Date(n+r)}var zx=36e5;function Hx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Ux(t,n*zx)}function Fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Hx(t,-n)}var Wx=6e4;function Yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Vx(t,e)/Wx;return n>0?Math.floor(n):Math.ceil(n)}var Xx=6e4;function qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Ux(t,n*Xx)}function Zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return qx(t,-n)}function $x(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Vx(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function Kx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Ux(t,1e3*n)}function Qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Kx(t,-n)}var Jx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return Jx(e,t),e.prototype.getDomainAxisPosition=function(){return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(){return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return bf.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(T).map((function(t){return T[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findMainVerticalAxisPosition(),e=this.findMainHorizontalAxisPosition(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.domainAxisPosition,this.rangeAxisPosition=n.rangeAxisPosition},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==T.LEFT&&this.rangeAxisPosition!==T.RIGHT||this.domainAxisPosition!==T.BOTTOM&&this.domainAxisPosition!==T.TOP?this.orientation=C.HORIZONTAL:this.orientation=C.VERTICAL},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[T.BOTTOM,T.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[T.LEFT,T.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=bf.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=void 0!==r[c]?r[c]:r;switch(e){case P.LABELS:o=t(l)+t.step()/2;break;case P.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){return this.getValueThroughAxisPosition(this.domainAxisPosition,t,e)},e.prototype.getRangeValue=function(t,e){return this.getValueThroughAxisPosition(this.rangeAxisPosition,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"axes",this.domainAxisPosition);return e.mapsTo},e.prototype.getRangeIdentifier=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"axes",this.rangeAxisPosition);return e.mapsTo},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=bf.getProperty(n,"axes",t);if(r.scaleType===P.TIME){var i=bf.getProperty(n,"timeScale","addSpaceOnEdges");return eO(e,i)}return nO(e,Cf.paddingRatio)},e.prototype.findMainVerticalAxisPosition=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"axes");return null===bf.getProperty(e,T.LEFT)&&null!==bf.getProperty(e,T.RIGHT)||!0===bf.getProperty(e,T.RIGHT,"main")?T.RIGHT:T.LEFT},e.prototype.findMainHorizontalAxisPosition=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"axes");return null===bf.getProperty(e,T.BOTTOM)&&null!==bf.getProperty(e,T.TOP)||!0===bf.getProperty(e,T.TOP,"main")?T.TOP:T.BOTTOM},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=bf.getProperty(n,"axes",t),i=bf.getProperty(n,"axes",e),o=r.scaleType||P.LINEAR,a=i.scaleType||P.LINEAR,s={domainAxisPosition:null,rangeAxisPosition:null};return a===P.LABELS||a===P.TIME?(s.domainAxisPosition=e,s.rangeAxisPosition=t):o===P.LABELS||o===P.TIME?(s.domainAxisPosition=t,s.rangeAxisPosition=e):(s.domainAxisPosition=e,s.rangeAxisPosition=t),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=bf.getProperty(e,"axes",t),r=n.includeZero,i=bf.getProperty(n,"scaleType")||P.LINEAR;if(this.model.isDataEmpty())return[];var o,a,s=this.model.getDisplayData(),u=n.mapsTo,c=n.percentage;if(n.domain)return i===P.LABELS?n.domain:this.extendsDomain(t,n.domain);if(c)return[0,100];if(n&&i===P.LABELS)return pp(s,(function(t){return t[u]})).keys();if(n.stacked){var l=this.services.zoom.filterDataForRangeAxis(this.model.getDataValuesGroupedByKeys(),{stacked:!0});a=l.map((function(t){return Ip(mp(t))}))}else a=i===P.TIME?s.map((function(t){return t[u]})):this.services.zoom.filterDataForRangeAxis(s).map((function(t){return t[u]}));return i!==P.TIME&&r&&a.push(0),o=Sp(a),o=this.extendsDomain(t,o),o},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=bf.getProperty(e,"axes",t);if(!n)return null;var r,i=bf.getProperty(n,"scaleType")||P.LINEAR;return this.scaleTypes[t]=i,r=i===P.TIME?ey():i===P.LOG?Vv().base(n.base||10):i===P.LABELS?zp():Mv(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=bf.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==P.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=bf.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(py);function eO(t,e){var n=new Date(t[0]),r=new Date(t[1]);return wx(r,n)>1?[Tx(n,e),Ex(r,e)]:Ax(r,n)>1?[Cx(n,e),Sx(r,e)]:Ix(r,n)>1?[Nx(n,e),jx(r,e)]:Gx(r,n)>1?[Fx(n,e),Hx(r,e)]:Yx(r,n)>30?[Zx(n,30*e),qx(r,30*e)]:Yx(r,n)>1?[Zx(n,e),qx(r,e)]:$x(r,n)>15?[Qx(n,15*e),Kx(r,15*e)]:$x(r,n)>1?[Qx(n,e),Kx(r,e)]:[n,r]}function nO(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function rO(t){this._context=t}rO.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var iO=function(t){return new rO(t)},oO=function(){};function aO(t){this._context=t}aO.prototype={areaStart:oO,areaEnd:oO,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var sO=function(t){return new aO(t)};function uO(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function cO(t){this._context=t}cO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:uO(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:uO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var lO=function(t){return new cO(t)};function hO(t){this._context=t}hO.prototype={areaStart:oO,areaEnd:oO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:uO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var fO=function(t){return new hO(t)};function pO(t){this._context=t}pO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:uO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var dO=function(t){return new pO(t)};function vO(t,e){this._basis=new cO(t),this._beta=e}vO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var gO=function t(e){function n(t){return 1===e?new cO(t):new vO(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function mO(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function yO(t,e){this._context=t,this._k=(1-e)/6}yO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:mO(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:mO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _O=function t(e){function n(t){return new yO(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bO(t,e){this._context=t,this._k=(1-e)/6}bO.prototype={areaStart:oO,areaEnd:oO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:mO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var wO=function t(e){function n(t){return new bO(t,e)}return n.tension=function(e){return t(+e)},n}(0);function xO(t,e){this._context=t,this._k=(1-e)/6}xO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:mO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var OO=function t(e){function n(t){return new xO(t,e)}return n.tension=function(e){return t(+e)},n}(0),SO=Math.abs,EO=Math.atan2,TO=Math.cos,MO=Math.max,AO=Math.min,CO=Math.sin,PO=Math.sqrt,kO=1e-12,DO=Math.PI,LO=DO/2,RO=2*DO;function IO(t){return t>1?0:t<-1?DO:Math.acos(t)}function jO(t){return t>=1?LO:t<=-1?-LO:Math.asin(t)}function NO(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>kO){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>kO){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function VO(t,e){this._context=t,this._alpha=e}VO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:NO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var BO=function t(e){function n(t){return e?new VO(t,e):new yO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function GO(t,e){this._context=t,this._alpha=e}GO.prototype={areaStart:oO,areaEnd:oO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:NO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var UO=function t(e){function n(t){return e?new GO(t,e):new bO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zO(t,e){this._context=t,this._alpha=e}zO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:NO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var HO=function t(e){function n(t){return e?new zO(t,e):new xO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function FO(t){return t<0?-1:1}function WO(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(FO(o)+FO(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function YO(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function XO(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function qO(t){this._context=t}function ZO(t){this._context=new $O(t)}function $O(t){this._context=t}function KO(t){return new qO(t)}function QO(t){return new ZO(t)}function JO(t){this._context=t}function tS(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}qO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:XO(this,this._t0,YO(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,XO(this,YO(this,n=WO(this,t,e)),n);break;default:XO(this,this._t0,n=WO(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ZO.prototype=Object.create(qO.prototype)).point=function(t,e){qO.prototype.point.call(this,e,t)},$O.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},JO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=tS(t),i=tS(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var eS=function(t){return new JO(t)};function nS(t,e){this._context=t,this._t=e}nS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var rS=function(t){return new nS(t,.5)};function iS(t){return new nS(t,0)}function oS(t){return new nS(t,1)}var aS,sS,uS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:iO,curveLinearClosed:sO,curveBasis:lO,curveBasisClosed:fO,curveBasisOpen:dO,curveBundle:gO,curveCardinal:_O,curveCardinalClosed:wO,curveCardinalOpen:OO,curveCatmullRom:BO,curveCatmullRomClosed:UO,curveCatmullRomOpen:HO,curveMonotoneX:KO,curveMonotoneY:QO,curveNatural:eS,curveStep:rS,curveStepAfter:oS,curveStepBefore:iS},e}return uS(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(py),lS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!bf.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=bf.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===T.BOTTOM&&e===P.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Sp(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(W.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return bf.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=bf.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=Bf.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=bf.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return bf.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return bf.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(py),fS=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(Z_(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=bf.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Q_.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(Q_.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=bf.getProperty(this.model.getOptions(),"style","prefix"),n=eb.appendOrSelect(this.parent,"g."+Q_.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var r=this.model.get("chartClipId");r&&n.attr("clip-path","url(#"+r+")")}return n}return this.parent},t}(),pS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return pS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GROUP).attr("data-name","legend-items"),n=this.model.getOptions(),r=bf.getProperty(n,"legend"),i=this.model.getDataGroups(),a=bf.getProperty(r,"order");a&&(i=this.sortDataGroups(i,a));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===Pf.items.status.ACTIVE})),c=Pf.checkbox.radius,l=bf.getProperty(r,"truncation","type"),h=bf.getProperty(r,"truncation","threshold"),f=bf.getProperty(r,"truncation","numCharacter"),p=bf.getProperty(n,"color","pairing","option");u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",o.CHECKBOX).attr("tabindex",0).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===Pf.items.status.ACTIVE})).attr("width",2*c).attr("height",2*c).attr("rx",1).attr("ry",1).attr("class",(function(e,n){if(p)return t.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===Pf.items.status.ACTIVE?t.model.getFillColor(e.name):null})).classed("active",(function(t,e){return t.status===Pf.items.status.ACTIVE}));var d=u.append("text").merge(s.select("text"));l!==A.NONE?d.html((function(t){return t.name.length>h?bf.truncateLabel(t.name,l,f):t.name})):d.html((function(t){return t.name})),this.breakItemsIntoLines(u),s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var v=bf.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",v),v&&u.size()>0&&this.addEventListeners();var g=bf.getProperty(r,"alignment"),m=eb.getAlignmentOffset(g,e,this.getParent());e.attr("transform","translate("+m+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=Pf.checkbox.radius,o=Pf.items.horizontalSpace,a=Pf.items.verticalSpace,s=Pf.items.textYOffset,u=2*i+Pf.checkbox.spaceAfter,c=Pf.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=bf.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=Z_(this),l=Z_(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===L.VERTICAL)f===L.VERTICAL&&0!==r&&d++;else{var g=eb.getSVGElementSize(e.parent,{useAttr:!0}),m=eb.getSVGElementSize(Z_(this).select("text"),{useBBox:!0}),y=eb.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+y.width+u+o,p+u+m.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b+3),b;var w=(!f||f===L.HORIZONTAL)&&"0"===c.select("rect.checkbox").attr("y"),x=f===L.VERTICAL&&"0"===c.select("rect.checkbox").attr("x"),O=w||x;h&&c.select("g.check").empty()&&O?(c.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=bf.getProperty(n,"legend"),i=bf.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(W.Legend.ITEM_HOVER,{hoveredElement:Z_(this)});var e=Pf.checkbox.radius,n=Z_(this);n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(W.Legend.ITEM_CLICK,{clickedElement:Z_(this)});var e=Z_(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=Z_(this);e.select("rect.hover-stroke").remove(),t.services.events.dispatchEvent(W.Tooltip.HIDE),t.services.events.dispatchEvent(W.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!hf.key||"Enter"!==hf.key&&" "!==hf.key||(hf.preventDefault(),t.model.toggleDataLabel(e.name))}))},e}(fS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(sS||(sS={}));var vS=(aS={},aS[sS.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},aS[sS.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},aS[sS.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},aS[sS.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},aS),gS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},mS=function(){function t(t){void 0===t&&(t={}),this.positions=vS,this.positions=Object.assign({},vS,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:gS.innerHeight-gS.scrollY,height:gS.innerWidth-gS.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),yS=(new mS,mS);function _S(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t);return!isNaN(e)}var bS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function wS(t,e,n){var r;return n=n||{},r="string"===typeof bS[t]?bS[t]:1===e?bS[t].one:bS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function xS(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var OS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},SS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ES={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TS={date:xS({formats:OS,defaultWidth:"full"}),time:xS({formats:SS,defaultWidth:"full"}),dateTime:xS({formats:ES,defaultWidth:"full"})},MS=TS,AS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function CS(t,e,n,r){return AS[t]}function PS(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var kS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},DS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},LS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},RS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},IS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function NS(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var VS={ordinalNumber:NS,era:PS({values:kS,defaultWidth:"wide"}),quarter:PS({values:DS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:PS({values:LS,defaultWidth:"wide"}),day:PS({values:RS,defaultWidth:"wide"}),dayPeriod:PS({values:IS,defaultWidth:"wide",formattingValues:jS,defaultFormattingWidth:"wide"})},BS=VS;function GS(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function US(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?HS(l,(function(t){return t.test(r)})):zS(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function zS(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function HS(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var FS=/^(\d+)(th|st|nd|rd)?/i,WS=/\d+/i,YS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},XS={any:[/^b/i,/^(a|c)/i]},qS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZS={any:[/1/i,/2/i,/3/i,/4/i]},$S={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},KS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},QS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},JS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tE={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},eE={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},nE={ordinalNumber:GS({matchPattern:FS,parsePattern:WS,valueCallback:function(t){return parseInt(t,10)}}),era:US({matchPatterns:YS,defaultMatchWidth:"wide",parsePatterns:XS,defaultParseWidth:"any"}),quarter:US({matchPatterns:qS,defaultMatchWidth:"wide",parsePatterns:ZS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:US({matchPatterns:$S,defaultMatchWidth:"wide",parsePatterns:KS,defaultParseWidth:"any"}),day:US({matchPatterns:QS,defaultMatchWidth:"wide",parsePatterns:JS,defaultParseWidth:"any"}),dayPeriod:US({matchPatterns:tE,defaultMatchWidth:"any",parsePatterns:eE,defaultParseWidth:"any"})},rE=nE,iE={code:"en-US",formatDistance:wS,formatLong:MS,formatRelative:CS,localize:BS,match:rE,options:{weekStartsOn:0,firstWeekContainsDate:1}},oE=iE;function aE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=xx(e);return Ux(t,-n)}function sE(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var uE={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return sE("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):sE(n+1,2)},d:function(t,e){return sE(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return sE(t.getUTCHours()%12||12,e.length)},H:function(t,e){return sE(t.getUTCHours(),e.length)},m:function(t,e){return sE(t.getUTCMinutes(),e.length)},s:function(t,e){return sE(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return sE(i,e.length)}},cE=uE,lE=864e5;function hE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/lE)+1}function fE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=yx(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function pE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=fE(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=fE(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function dE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=pE(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=fE(n);return r}var vE=6048e5;function gE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=yx(t),n=fE(e).getTime()-dE(e).getTime();return Math.round(n/vE)+1}function mE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:xx(i),a=null==n.weekStartsOn?o:xx(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=yx(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function yE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=yx(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:xx(a),u=null==i.firstWeekContainsDate?s:xx(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=mE(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=mE(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function _E(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:xx(i),a=null==n.firstWeekContainsDate?o:xx(n.firstWeekContainsDate),s=yE(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=mE(u,e);return c}var bE=6048e5;function wE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=yx(t),r=mE(n,e).getTime()-_E(n,e).getTime();return Math.round(r/bE)+1}var xE={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},OE={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return cE.y(t,e)},Y:function(t,e,n,r){var i=yE(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return sE(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):sE(o,e.length)},R:function(t,e){var n=pE(t);return sE(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return sE(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return sE(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return sE(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return cE.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return sE(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=wE(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):sE(i,e.length)},I:function(t,e,n){var r=gE(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):sE(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):cE.d(t,e)},D:function(t,e,n){var r=hE(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):sE(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return sE(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return sE(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return sE(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?xE.noon:0===i?xE.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?xE.evening:i>=12?xE.afternoon:i>=4?xE.morning:xE.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return cE.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):cE.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):sE(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):sE(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):cE.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):cE.s(t,e)},S:function(t,e){return cE.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return EE(o);case"XXXX":case"XX":return TE(o);case"XXXXX":case"XXX":default:return TE(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return EE(o);case"xxxx":case"xx":return TE(o);case"xxxxx":case"xxx":default:return TE(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+SE(o,":");case"OOOO":default:return"GMT"+TE(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+SE(o,":");case"zzzz":default:return"GMT"+TE(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return sE(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return sE(o,e.length)}};function SE(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+sE(o,2)}function EE(t,e){if(t%60===0){var n=t>0?"-":"+";return n+sE(Math.abs(t)/60,2)}return TE(t,e)}function TE(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=sE(Math.floor(i/60),2),a=sE(i%60,2);return r+o+n+a}var ME=OE;function AE(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function CE(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function PE(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return AE(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",AE(i,e)).replace("{{time}}",CE(o,e))}var kE={p:CE,P:PE},DE=kE,LE=["D","DD"],RE=["YY","YYYY"];function IE(t){return-1!==LE.indexOf(t)}function jE(t){return-1!==RE.indexOf(t)}function NE(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var VE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GE=/^'([^]*?)'?$/,UE=/''/g,zE=/[a-zA-Z]/;function HE(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||oE,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:xx(a),u=null==i.firstWeekContainsDate?s:xx(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:xx(c),h=null==i.weekStartsOn?l:xx(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=yx(t);if(!_S(f))throw new RangeError("Invalid time value");var p=kx(f),d=aE(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(BE).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=DE[e];return n(t,o.formatLong,v)}return t})).join("").match(VE).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return FE(t);var n=ME[e];if(n)return!i.useAdditionalWeekYearTokens&&jE(t)&&NE(t),!i.useAdditionalDayOfYearTokens&&IE(t)&&NE(t),n(d,t,o.localize,v);if(e.match(zE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function FE(t){return t.match(GE)[1].replace(UE,"'")}var WE=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function YE(t,e,n,r){var i=0===e,o=2===Number(HE(new Date(t),"c")),a=1===Number(HE(new Date(t),"q"));switch(n){case"15seconds":return i||QE(t)||JE(t)||tT(t);case"minute":return i||QE(t)||JE(t)||tT(t);case"30minutes":return i||QE(t)||JE(t)||tT(t);case"hourly":return i||QE(t)||JE(t)||tT(t);case"daily":return r?i||o||tT(t):i||JE(t)||tT(t);case"monthly":return i||tT(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function XE(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=bf.getProperty(r,"timeIntervalFormats")[o],u=bf.getProperty(s,"primary"),c=bf.getProperty(s,"secondary"),l=YE(t,e,n,i)?u:c,h=r.localeObject;return HE(a,l,{locale:h})}function qE(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function ZE(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function $E(t){var e=WE.reduce((function(e,n,r){n[0];var i=n[1],o=WE[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return WE[e][0]}function KE(t){if(1===t.length)return"15seconds";var e=ZE(t),n=Rp(e);return $E(n)}function QE(t){var e=qE(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function JE(t){var e=qE(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function tT(t){var e=qE(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var eT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nT=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new yS,i}return eT(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=bf.getProperty(this.model.getOptions(),"style","prefix");this.thresholdClass=Q_.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=eb.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=eb.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=eb.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===P.LABELS,v=f.range(),g=v[0],m=v[1],y=p.range(),_=y[0],b=y[1],w=this.services.cartesianScales,x=w.getOrientation(),O=function(t){return w.getDomainValue(t)},S=function(t){return w.getRangeValue(t)},E=bf.flipDomainAndRangeBasedOnOrientation(O,S,x),M=E[0],A=E[1];if(o===T.TOP||o===T.BOTTOM){var C=M(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",_-b).classed("rotate",!0)}else{C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",m-g),u.attr("width",m-g)}var k=this;this.services.events.addEventListener(W.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===k.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(W.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.model.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===P.TIME){var o=[T.LEFT,T.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=bf.getProperty(r,"timeScale"),l=KE(u.ticks());return XE(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=Z_(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=eb.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=Of(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[sS.RIGHT,sS.LEFT,sS.TOP,sS.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;eb.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(W.Threshold.SHOW,{hoveredElement:Z_(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(W.Threshold.HIDE,{hoveredElement:Z_(t.threshold)})}))},e}(fS),rT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return rT(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.model.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=eb.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=eb.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(W.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return eb.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(fS),oT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return oT(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.model.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=eb.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.model.getOptions(),eb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=Df.status.indicatorSize/2,a=eb.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=eb.appendOrSelect(e,"text.meter-title"),r=!0===bf.getProperty(this.model.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=Df.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=eb.appendOrSelect(this.parent,"tspan"),i=Df.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=eb.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=eb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=eb.appendOrSelect(this.parent,"text.percent-value"),r=Df.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=eb.appendOrSelect(this.parent,"g.status-indicator").node(),a=eb.getSVGElementSize(o,{useBBox:!0}).width+Df.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case z.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case z.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case z.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(iT),sT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uT=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new yS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=eb.appendOrSelect(i.tooltip,"div.content-box");if(bf.getProperty(i.model.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip">'+t.detail.content+"</div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return sT(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(W.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(W.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(W.Tooltip.HIDE,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(W.Tooltip.MOVE,null),this.services.events.removeEventListener(W.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(W.Tooltip.HIDE,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.model.getOptions(),r=bf.getProperty(n,"tooltip","truncation","type"),i=bf.getProperty(n,"tooltip","truncation","threshold"),o=bf.getProperty(n,"tooltip","truncation","numCharacter");return r!==A.NONE?t.map((function(t){return t.value=e.valueFormatter(t.value),t.label&&t.label.length>i&&(t.label=bf.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=bf.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip">'+t.detail.content+"</div>";else{var n=this.getItems(t),r=this.formatItems(n),i=this.model.isUserProvidedColorScaleValid();e="<ul class='multi-tooltip'>"+r.map((function(t){return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class&&!i?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color&&i?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<p class="label">'+t.label+'</p>\n\t\t\t\t\t\t\t\t<p class="value">'+t.value+"</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t){var e=this.model.getOptions(),n=bf.getProperty(e,"tooltip","valueFormatter");return n?n(t):t.toLocaleString()},e.prototype.render=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"tooltip","enabled");if(e){var n=Z_(this.services.domUtils.getHolder()),r=bf.getProperty(t,"style","prefix");this.tooltip=eb.appendOrSelect(n,"div."+Q_.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.model.getOptions(),o=bf.getProperty(i,"zoomBar","top","enabled"),a=bf.getProperty(t,"detail","mousePosition");if(a){var s=bf.getProperty(i,"zoomBar","top","type"),u=Bf.height[s];o&&(a[1]+=u+Bf.spacerHeight)}else a=Of(n);var c=this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[sS.RIGHT,sS.LEFT,sS.TOP,sS.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),l=jf.horizontalOffset;c===sS.LEFT&&(l*=-1),e=this.positionService.findPositionAt({left:a[0]+l,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(fS),cT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cT(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.model.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=i.getDomainAxisScaleType(),u=i.getRangeAxisOptions(),c=i.getRangeIdentifier(),l=(i.getRangeAxisScaleType(),r.data.groupMapsTo),h=o.title;if(!h){var f=i.getDomainAxisPosition();h=f===T.BOTTOM||f===T.TOP?"x-value":"y-value"}var p,d=n[0][a];if(s===P.TIME?d=HE(new Date(n[0][a]),"MMM d, yyyy"):s===P.LINEAR&&(d=d.toLocaleString()),1===n.length){var v=n[0],g=u.title;if(!g){var m=i.getRangeAxisPosition();g=m===T.LEFT||m===T.RIGHT?"y-value":"x-value"}p=[{label:h,value:d},{label:g,value:v[c]},{label:r.tooltip.groupLabel||"Group",value:v[l],color:this.model.getFillColor(v[l]),class:this.model.getColorClassName({classNameTypes:[E.TOOLTIP],dataGroupName:v[l]})}]}else n.length>1&&(p=[{label:h,value:this.valueFormatter(d)}],p=p.concat(n.map((function(t){return{label:t[l],value:e.valueFormatter(t[c]),color:e.model.getFillColor(t[l]),class:e.model.getColorClassName({classNameTypes:[E.TOOLTIP],dataGroupName:t[l]})}})).sort((function(t,e){return e.value-t.value}))),!0===bf.getProperty(r,"tooltip","showTotal")&&p.push({label:r.tooltip.totalLabel||"Total",value:this.valueFormatter(n.reduce((function(t,e){return t+e[c]}),0)),bold:!0}));return p},e}(uT),hT=Math.PI,fT=2*hT,pT=1e-6,dT=fT-pT;function vT(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function gT(){return new vT}vT.prototype=gT.prototype={constructor:vT,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>pT)if(Math.abs(l*s-u*c)>pT&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((hT-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>pT&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>pT||Math.abs(this._y1-c)>pT)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%fT+fT),h>dT?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>pT&&(this._+="A"+n+","+n+",0,"+ +(h>=hT)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var mT=gT;function yT(t){return t[0]}function _T(t){return t[1]}var bT=function(){var t=yT,e=_T,n=ay(!0),r=null,i=iO,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=mT())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:ay(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:ay(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:ay(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},wT=function(){var t=yT,e=null,n=ay(0),r=_T,i=ay(!0),o=null,a=iO,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=mT())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return bT().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:ay(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:ay(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:ay(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:ay(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:ay(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:ay(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:ay(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},xT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?Af.opacity.unselected:Af.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Af.opacity.selected)},e}return xT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=wT().curve(this.services.curves.getD3Curve());o===C.VERTICAL?(a.x((function(t,e){return i.getDomainValue(t,e)})).y0(i.getRangeValue(0)).y1((function(t,e){return i.getRangeValue(t,e)})),r=this.services.cartesianScales.getMainYScale().domain()):(a.x0(i.getRangeValue(0)).x1((function(t,e){return i.getRangeValue(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})),r=this.services.cartesianScales.getMainXScale().domain());var s=this.model.getGroupedData(),u=bf.getProperty(this.model.getOptions(),"color","gradient","enabled"),c=s&&1===s.length&&u;s.length>1&&u&&console.error("Gradients can only be enabled when having 1 single dataset");var l=n.selectAll("path.area").data(s,(function(t){return t.name})),h=bf.getProperty(this.model.getOptions(),"style","prefix"),f=eb.appendOrSelect(Z_(this.services.domUtils.getHolder()),"svg."+Q_.prefix+"--"+h+"--chart-svg"),p=f.select("path."+this.model.getColorClassName({classNameTypes:[E.STROKE],dataGroupName:s[0].name})).node(),d=p?getComputedStyle(p,null).getPropertyValue("stroke"):null;c&&d?mx.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:mx.getStops(r,d)}):this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()})),l.exit().attr("opacity",0).remove();var v=this,g=l.enter().append("path");c?g.merge(l).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):g.attr("opacity",0).merge(l).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("fill",(function(t){return v.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Af.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(fS),ST=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0][i]!==n.datum().name?Af.opacity.unselected:Af.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Af.opacity.selected)},e}return ST(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=this.services.cartesianScales.getDomainAxisPosition(),l=this.services.cartesianScales.getScaleTypeByPosition(c),h=l===P.TIME;if(h){var f=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),p=this.model.getStackedData({percentage:f}),d=n.selectAll("path.area").data(p,(function(t){return t[0][a]}));this.areaGenerator=wT().x((function(t){return s(new Date(t.data.sharedStackKey))})).y0((function(t){return u(t[0])})).y1((function(t){return u(t[1])})).curve(this.services.curves.getD3Curve()),d.exit().attr("opacity",0).remove();var v=d.enter().append("path").attr("opacity",0);v.merge(d).data(p,(function(t){return t[0][a]})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[0][a],originalClassName:"area"})})).attr("fill",(function(t){return r.model.getFillColor(t[0][a])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Af.opacity.selected).attr("d",this.areaGenerator)}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(fS),TT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return TT(e,t),e.prototype.getBarWidth=function(t){var e=this.model.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=eb.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(fS),AT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return AT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),a=i.selectAll("path.bar").data(this.model.getDisplayData(),(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[r],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);if(!e.isOutsideZoomedDomain(i,o))return bf.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=Z_(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(W.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){Z_(this);t.services.events.dispatchEvent(W.Bar.BAR_MOUSEMOVE,{element:Z_(this),datum:e}),t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(W.Bar.BAR_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(W.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(MT),PT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return PT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier();this.setGroupScale();var s=this.getContainerSVG({withinChartClip:!0}),u=pp(n,(function(t){return t[a]})).keys(),c=s.selectAll("g.bars").data(u,(function(t){return t}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars"),h=l.merge(c).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===C.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"})).selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[i],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeValue(0),u=e.services.cartesianScales.getRangeValue(t.value);if(!e.isOutsideZoomedDomain(o,a))return bf.generateSVGPathString({x0:o,x1:a,y0:s,y1:u},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=Z_(this);n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(W.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(W.Bar.BAR_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(W.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this.model.getDisplayData(),n=this.services.cartesianScales.getDomainIdentifier();return e.filter((function(e){return e[n]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getActiveDataGroupNames().length,e=this.getTotalGroupPadding();return this.getBarWidth()*t+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getActiveDataGroupNames().length;if(1===t)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t-1)},e.prototype.getBarWidth=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"bars","width"),n=bf.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getActiveDataGroupNames().length,i=this.getTotalGroupPadding(),o=this.services.cartesianScales.getDomainScale();return Math.min(n,(o.step()-i)/r)},e.prototype.setGroupScale=function(){this.groupScale=zp().domain(this.model.getActiveDataGroupNames()).rangeRound([0,this.getGroupWidth()])},e}(MT),DT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return DT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=(this.model.getDisplayData(),this.model.getOptions()),i=r.data.groupMapsTo,a=(this.services.cartesianScales.getDomainIdentifier(),this.model.getStackedData()),s=n.selectAll("g.bars").data(a,(function(t){return t.key}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[i],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===C.VERTICAL?c+=1:c-=1),bf.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=Z_(this);i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(W.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(),a=n.services.cartesianScales.getDomainIdentifier(),s=n.services.cartesianScales.getRangeIdentifier(),u=o.find((function(n){return n[s]===t.data[t.group]&&n[a].toString()===t.data.sharedStackKey&&n[e]===t.group}));void 0===u&&(r={},r[a]=t.data.sharedStackKey,r[s]=t.data[t.group],r[e]=t.group,u=r),n.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:i,data:[u]})})).on("mousemove",(function(t){var e=Z_(this);n.services.events.dispatchEvent(W.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(W.Bar.BAR_CLICK,{element:Z_(this),datum:t})})).on("mouseout",(function(t){var e=Z_(this);e.classed("hovered",!1),n.services.events.dispatchEvent(W.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(W.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(MT),RT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),IT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return RT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(W.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(W.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.render=function(t){var e=bf.getProperty(this.model.getOptions(),"points","enabled")||bf.getProperty(this.model.getOptions(),"bubble","enabled");if(e){var n,r=this.getContainerSVG({withinChartClip:!0}),i=this.model.getOptions(),o=i.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier(),s=this.services.cartesianScales.getRangeIdentifier(),u=this.configs.stacked;if(u){var c=Object.keys(i.axes).some((function(t){return i.axes[t].percentage}));n=this.model.getStackedData({percentage:c})}else n=this.model.getDisplayData().filter((function(t){return void 0!==t[s]&&null!==t[s]}));n=this.filterBasedOnZoomDomain(n);var l=r.selectAll("circle.dot").data(n,(function(t){return t[o]+"-"+t[a]}));l.exit().attr("opacity",0).remove();var h=l.enter().append("circle").classed("dot",!0).attr("opacity",0),f=h.merge(l);this.styleCircles(f,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this.configs.handleThresholds;if(!n)return!1;var r=this.services.cartesianScales,i=r.getOrientation(),o=bf.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),i),a=o[0],s=o[1],u=bf.flipDomainAndRangeBasedOnOrientation((function(t,e){return r.getDomainValue(t,e)}),(function(t,e){return r.getRangeValue(t,e)}),i),c=u[0],l=u[1],h=c(t,e),f=l(t,e);return s&&a?f<=s.scaleValue&&h>=a.scaleValue:s?f<=s.scaleValue:a?h>=a.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.points,a=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=c.getDomainIdentifier(),p=c.getRangeIdentifier(),d=function(t,e){return c.getDomainValue(t,e)},v=function(t,e){return c.getRangeValue(t,e)},g=bf.flipDomainAndRangeBasedOnOrientation(d,v,c.getOrientation()),m=g[0],y=g[1],_=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=n.model.getIsFilled(t[h],t[f],t,a),r=e?[E.FILL,E.STROKE]:[E.STROKE];return n.model.getColorClassName({classNameTypes:r,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){return n.model.getIsFilled(t[h],t[f],t,a)})).classed("unfilled",(function(t){return!n.model.getIsFilled(t[h],t[f],t,a)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",m).attr("cy",y).attr("r",r.points.radius).attr("fill",(function(t){if(n.model.getIsFilled(t[h],t[f],t,a))return n.model.getFillColor(t[h],t[f],t)})).attr("fill-opacity",a?s:1).attr("stroke",(function(t){return n.model.getStrokeColor(t[h],t[f],t)})).attr("opacity",_?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t[p]})),this.addEventListeners()},e.prototype.getTooltipData=function(t,e){var n=this;return this.model.getDisplayData().filter((function(r){return t===n.services.cartesianScales.getDomainValue(r)&&e===n.services.cartesianScales.getRangeValue(r)}))},e.prototype.addEventListeners=function(){var t=this,e=t.model.getOptions().data.groupMapsTo,n=this.services.cartesianScales.getDomainIdentifier();this.parent.selectAll("circle").on("mouseover",(function(r){var i=Z_(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:n[e],originalClassName:i.attr("class")})})).style("fill",(function(r){return t.model.getFillColor(r[e],r[n],r)})).classed("unfilled",!1);var o=t.services.cartesianScales.getDomainValue(r),a=t.services.cartesianScales.getRangeValue(r),s=t.getTooltipData(o,a);t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:i,data:s}),t.services.events.dispatchEvent(W.Scatter.SCATTER_MOUSEOVER,{element:i,datum:r})})).on("mousemove",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(W.Scatter.SCATTER_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this);n.classed("hovered",!1),t.configs.filled||"1"!==n.attr("fill-opacity")||(n.classed("unfilled",!0),n.style("fill",null)),t.services.events.dispatchEvent(W.Scatter.SCATTER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(W.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(W.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(fS),jT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return jT(e,t),e.prototype.getRadiusScale=function(t){var e=this.model.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=eb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?Sp(i):[1,1];return Mv().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales.getDomainIdentifier();t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[E.FILL,E.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).attr("fill",(function(t){return n.model.getFillColor(t[s],t[u],t)})).attr("stroke",(function(t){return n.model.getStrokeColor(t[s],t[u],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(IT),VT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?kf.opacity.unselected:kf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",kf.opacity.selected)},e}return VT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=bf.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.model.getOptions(),p=bT().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({percentage:v}),y=this.services.cartesianScales.getDomainIdentifier(),_=this.services.cartesianScales.getRangeIdentifier();d=m.map((function(t){return{name:t[0][g],data:t.map((function(t){var e;return e={},e[y]=t.data.sharedStackKey,e[g]=t[g],e[_]=t[1],e})),hidden:!bf.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData();var b=n.selectAll("path.line").data(d,(function(t){return t.name}));b.exit().attr("opacity",0).remove();var w=b.enter().append("path").classed("line",!0).attr("opacity",0);w.merge(b).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.STROKE],dataGroupName:t.name,originalClassName:"line"})})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data,r=e.services.cartesianScales.getRangeIdentifier();return n.map((function(t){return t[r]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(fS),GT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),UT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return GT(e,t),e.prototype.render=function(t){var e=bf.getProperty(this.model.getOptions(),"points","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier(),s=this.services.cartesianScales.getRangeIdentifier(),u=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),c=this.model.getStackedData({percentage:u}),l=n.selectAll("g.dots").data(c,(function(t){return t[0][i]}));l.exit().attr("opacity",0).remove();var h=l.enter().append("g").classed("dots",!0).attr("role",o.GROUP),f=h.merge(l).selectAll("circle.dot").data((function(t){return t}));f.exit().attr("opacity",0).remove();var p=f.enter().append("circle").classed("dot",!0).attr("opacity",0),d=p.merge(f).datum((function(t){var e,n=t[i];return e={},e[i]=n,e[a]=t["data"]["sharedStackKey"],e[s]=t[1],e}));this.styleCircles(d,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=this.model.getOptions(),a=o.data.groupMapsTo,s=Object.keys(o.axes).some((function(t){return o.axes[t].percentage})),u=this.model.getStackedData({percentage:s}),c=[];return u.forEach((function(o,u){o.forEach((function(o,l){var h,f=o[a],p=o["data"]["sharedStackKey"],d=o["data"][f],v=o[1];null!==d&&void 0!==d&&t===n.services.cartesianScales.getDomainValue(p)&&e===n.services.cartesianScales.getRangeValue(v)&&(s&&(d=n.model.getStackedData()[u][l]["data"][f]),null!==d&&c.push((h={},h[a]=f,h[r]=p,h[i]=d,h)))}))})),this.model.getDisplayData().filter((function(t){return void 0!==c.find((function(e){return e[a]==t[a]&&e[r]==t[r]&&e[i]==t[i]}))}))},e}(IT);function zT(t){return t.innerRadius}function HT(t){return t.outerRadius}function FT(t){return t.startAngle}function WT(t){return t.endAngle}function YT(t){return t&&t.padAngle}function XT(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<kO))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function qT(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/PO(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,w=i-o,x=f*v-d*p,O=(_<0?-1:1)*PO(MO(0,w*w*b-x*x)),S=(x*_-y*O)/b,E=(-x*y-_*O)/b,T=(x*_+y*O)/b,M=(-x*y+_*O)/b,A=S-g,C=E-m,P=T-g,k=M-m;return A*A+C*C>P*P+k*k&&(S=T,E=M),{cx:S,cy:E,x01:-l,y01:-h,x11:S*(i/w-1),y11:E*(i/w-1)}}var ZT=function(){var t=zT,e=HT,n=ay(0),r=null,i=FT,o=WT,a=YT,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-LO,p=o.apply(this,arguments)-LO,d=SO(p-f),v=p>f;if(s||(s=u=mT()),h<l&&(c=h,h=l,l=c),h>kO)if(d>RO-kO)s.moveTo(h*TO(f),h*CO(f)),s.arc(0,0,h,f,p,!v),l>kO&&(s.moveTo(l*TO(p),l*CO(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,w=p,x=d,O=d,S=a.apply(this,arguments)/2,E=S>kO&&(r?+r.apply(this,arguments):PO(l*l+h*h)),T=AO(SO(h-l)/2,+n.apply(this,arguments)),M=T,A=T;if(E>kO){var C=jO(E/l*CO(S)),P=jO(E/h*CO(S));(x-=2*C)>kO?(C*=v?1:-1,b+=C,w-=C):(x=0,b=w=(f+p)/2),(O-=2*P)>kO?(P*=v?1:-1,y+=P,_-=P):(O=0,y=_=(f+p)/2)}var k=h*TO(y),D=h*CO(y),L=l*TO(w),R=l*CO(w);if(T>kO){var I,j=h*TO(_),N=h*CO(_),V=l*TO(b),B=l*CO(b);if(d<DO&&(I=XT(k,D,V,B,j,N,L,R))){var G=k-I[0],U=D-I[1],z=j-I[0],H=N-I[1],F=1/CO(IO((G*z+U*H)/(PO(G*G+U*U)*PO(z*z+H*H)))/2),W=PO(I[0]*I[0]+I[1]*I[1]);M=AO(T,(l-W)/(F-1)),A=AO(T,(h-W)/(F+1))}}O>kO?A>kO?(g=qT(V,B,k,D,h,A,v),m=qT(j,N,L,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<T?s.arc(g.cx,g.cy,A,EO(g.y01,g.x01),EO(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,A,EO(g.y01,g.x01),EO(g.y11,g.x11),!v),s.arc(0,0,h,EO(g.cy+g.y11,g.cx+g.x11),EO(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,A,EO(m.y11,m.x11),EO(m.y01,m.x01),!v))):(s.moveTo(k,D),s.arc(0,0,h,y,_,!v)):s.moveTo(k,D),l>kO&&x>kO?M>kO?(g=qT(L,R,j,N,l,-M,v),m=qT(k,D,V,B,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,EO(g.y01,g.x01),EO(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,EO(g.y01,g.x01),EO(g.y11,g.x11),!v),s.arc(0,0,l,EO(g.cy+g.y11,g.cx+g.x11),EO(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,EO(m.y11,m.x11),EO(m.y01,m.x01),!v))):s.arc(0,0,l,w,b,v):s.lineTo(L,R)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-DO/2;return[TO(r)*n,CO(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:ay(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:ay(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:ay(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:ay(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:ay(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:ay(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:ay(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},$T=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},KT=function(t){return t},QT=function(){var t=KT,e=$T,n=null,r=ay(0),i=ay(RO),o=ay(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(RO,Math.max(-RO,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:ay(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:ay(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:ay(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:ay(+t),a):o},a},JT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function tM(t,e){var n=this,r=Hd(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var eM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return JT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return Lf.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData(),a=this.model.getOptions(),s=a.data.groupMapsTo,u=this.computeRadius();this.arc=ZT().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=ZT().innerRadius(this.getInnerRadius()).outerRadius(u+Lf.hoverArc.outerRadiusOffset);var c=QT().value((function(t){return t.value})).sort(null).padAngle(Lf.padAngle),l=c(i).sort((function(t,e){return t.index-e.index})),h=eb.appendOrSelect(r,"g.slices").attr("role",o.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).attr("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+bf.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return tM.bind(this)(t,n.arc)}));var d=l.filter((function(t){return t.value>0})),v=eb.appendOrSelect(r,"g.labels").attr("role",o.GROUP).attr("data-name","labels"),g=v.selectAll("text.pie-label").data(d,(function(t){return t.data[s]}));g.exit().attr("opacity",0).remove();var m=g.enter().append("text").classed("pie-label",!0),y=[];m.merge(g).style("text-anchor","middle").text((function(t){return a.pie.labels.formatter?a.pie.labels.formatter(t):bf.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=d.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<Lf.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+Lf.callout.offsetX+Lf.callout.textMargin+t.textOffsetX,o=t.yPosition-Lf.callout.offsetY,t.direction=j.RIGHT,y.push(t)):(i=t.xPosition-Lf.callout.offsetX-t.textOffsetX-Lf.callout.textMargin,o=t.yPosition-Lf.callout.offsetY,t.direction=j.LEFT,y.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var _=bf.getProperty(a,"donut")?"donut":"pie",b=bf.getProperty(a,_,"alignment"),w=eb.getSVGElementSize(this.getParent(),{useAttr:!0}).width,x=u+Lf.xOffset;b===D.CENTER?x=w/2:b===D.RIGHT&&(x=w-u-Lf.xOffset);var O=u+Lf.yOffset;y.length>0&&(O+=Lf.yOffsetCallout),r.attr("transform","translate("+x+", "+O+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=eb.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===j.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+Lf.callout.offsetX,y:n-Lf.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-Lf.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-Lf.callout.offsetX,y:n-Lf.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+Lf.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return Z_(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var a=r.append("line").classed("horizontal-line",!0);a.merge(e.selectAll("line.horizontal-line")).datum((function(t){return Z_(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mouseover",(function(e){var n=Z_(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(W.Pie.SLICE_MOUSEOVER,{element:Z_(this),datum:e});var r=t.model.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(W.Pie.SLICE_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(W.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=eb.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Lf.radiusOffset},e}(fS),nM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rM="4,10 8,6 12,10",iM="12,6 8,10 4,6",oM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return nM(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=bf.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"gauge","type"),n=e===G.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.model.getOptions(),n=bf.getProperty(e,"gauge","deltaArrow","direction");switch(n){case U.UP:return rM;case U.DOWN:return iM;default:return t>0?rM:iM}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.getValue(),u=this.getValueRatio(),c=this.getArcSize(),l=this.getStartAngle(),h=u*c,f=l+h,p=l+c,d=this.computeRadius(),v=this.getInnerRadius();this.backgroundArc=ZT().innerRadius(v).outerRadius(d).startAngle(f).endAngle(p),this.arc=ZT().innerRadius(v).outerRadius(d).startAngle(l).endAngle(f),eb.appendOrSelect(r,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var g=r.selectAll("path.arc-foreground").data([s]);g.enter().append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[a],originalClassName:"arc-foreground"})})).attr("fill",(function(t){return n.model.getFillColor(t[a])})).merge(g).attr("d",this.arc).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),r.attr("transform","translate("+d+", "+d+")"),this.drawValueNumber(),this.drawDelta(),g.exit().remove(),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.model.getOptions(),n=bf.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=bf.getProperty(e,"gauge","valueFontSize"),s=bf.getProperty(e,"gauge","deltaFontSize"),u=bf.getProperty(e,"gauge","numberSpacing"),c=0;n!==G.FULL||i?n===G.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=eb.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=eb.appendOrSelect(l,"g.gauge-value-number").attr("transform","translate(-10, 0)"),f=bf.getProperty(e,"gauge","numberFormatter"),p=h.selectAll("text.gauge-value-number").data([r]);p.enter().append("text").attr("class","gauge-value-number").merge(p).style("font-size",a(o)+"px").attr("text-anchor","middle").text((function(t){return f(t)}));var d=eb.getSVGElementSize(eb.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width;eb.appendOrSelect(h,"text.gauge-value-symbol").style("font-size",a(o)/2+"px").attr("x",d/2).text("%")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?bf.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?bf.getProperty(n,"gauge","numberFormatter"):function(){return null},s=bf.getProperty(n,"gauge","deltaArrow","size"),u=bf.getProperty(n,"gauge","numberSpacing"),c=eb.appendOrSelect(e,"g.gauge-numbers"),l=eb.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=eb.appendOrSelect(l,"text.gauge-delta-number");h.data(null===r?[]:[r]),h.enter().append("text").classed("gauge-delta-number",!0).merge(h).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=eb.getSVGElementSize(eb.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=bf.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),eb.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=bf.getProperty(n,"gauge","status");eb.appendOrSelect(d,"polygon.gauge-delta-arrow").attr("class",null!==v?"gauge-delta-arrow status--"+v:"").attr("fill",(function(){return null===v?"currentColor":null})).attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=bf.getProperty(this.model.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc").on("mouseover",(function(e){t.services.events.dispatchEvent(W.Gauge.ARC_MOUSEOVER,{element:Z_(this),datum:e})})).on("mousemove",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(W.Gauge.ARC_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=bf.getProperty(t,"gauge","type"),n=eb.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===G.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(fS),aM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return aM(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=eb.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();eb.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(Z_(this))})),eb.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(bf.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=bf.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Fd:jd;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(eM);function uM(t){return+t}var cM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return cM(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=eb.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=bf.getProperty(this.model.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===N.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===N.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===N.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==N.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===C.VERTICAL&&this.drawYGrid(t),e===C.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=Mv().domain([0,1]).range(t),this.yScale=Mv().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=eb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=eb.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=eb.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=bf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=eb.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=bf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=eb.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=eb.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=eb.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=bf.getProperty(this.model.getOptions(),u,"alignment");eb.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=ZT().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(Lf.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=eb.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+Lf.xOffset;c===D.CENTER?d=o/2:c===D.RIGHT&&(d=o-t-Lf.xOffset);var v=t+Lf.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=eb.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Lf.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=eb.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=eb.appendOrSelect(a,"defs").lower(),h=eb.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease(uM).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(fS),hM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return hM(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=eb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=bf.getProperty(this.model.getOptions(),"data","loading"),s=!bf.getProperty(this.model.getOptions(),"grid","x","enabled")&&!bf.getProperty(this.model.getOptions(),"grid","y","enabled")&&!bf.getProperty(this.model.getOptions(),"axes","bottom","visible")&&!bf.getProperty(this.model.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=eb.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=eb.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=eb.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(lM),pM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return pM(e,t),e.prototype.render=function(){eb.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||If.default.size).attr("height",this.configs.size||If.default.size).attr("opacity",0)},e}(fS);function vM(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var gM=function(){return this.eachAfter(vM)},mM=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},yM=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},_M=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},bM=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},wM=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},xM=function(t){var e=this,n=OM(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function OM(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var SM=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},EM=function(){var t=[];return this.each((function(e){t.push(e)})),t},TM=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},MM=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function AM(t,e){var n,r,i,o,a,s=new LM(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=PM);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new LM(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(DM)}function CM(){return AM(this).eachBefore(kM)}function PM(t){return t.children}function kM(t){t.data=t.data.data}function DM(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function LM(t){this.data=t,this.depth=this.height=0,this.parent=null}LM.prototype=AM.prototype={constructor:LM,count:gM,each:mM,eachAfter:_M,eachBefore:yM,sum:bM,sort:wM,path:xM,ancestors:SM,descendants:EM,leaves:TM,links:MM,copy:CM};var RM=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},IM=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},jM=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},NM=(1+Math.sqrt(5))/2;function VM(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,w=y.length,x=e.value;while(_<w){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<w);for(h=f=l,v=Math.max(c/u,u/c)/(x*t),g=l*l*v,d=Math.max(f/g,g/h);b<w;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?RM(a,n,r,i,x?r+=c*l/x:o):IM(a,n,r,x?n+=u*l/x:i,o),x-=l,_=b}return m}var BM=function t(e){function n(t,n,r,i,o){VM(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(NM);function GM(t){if("function"!==typeof t)throw new Error;return t}function UM(){return 0}var zM=function(t){return function(){return t}},HM=function(){var t=BM,e=!1,n=1,r=1,i=[0],o=UM,a=UM,s=UM,u=UM,c=UM;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(jM),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=GM(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:zM(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:zM(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:zM(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:zM(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:zM(+t),l):c},l},FM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WM=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===R.ROW_REVERSE||a.configs.direction===R.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return FM(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=bf.getProperty(t,"data","growth","x");return e===I.PREFERRED||e===I.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=bf.getProperty(t,"data","growth","x");return e===I.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=eb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=AM({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===R.ROW||this.configs.direction===R.ROW_REVERSE?RM:IM;HM().tile(s).size([i,o])(a);var u=this.configs.direction===R.ROW||this.configs.direction===R.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(Z_(n));var i=bf.getProperty(e,"data","growth","x");i!==I.PREFERRED&&i!==I.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=bf.getProperty(t,"data","growth","x"),n=eb.getSVGElementSize(Z_(this),{useBBox:!0});if("legend"===t.data.id){var r=eb.getSVGElementSize(Z_(this),{useAttrs:!0});r.height<40&&(n.height=r.height)}if(e===I.PREFERRED){var a=u?n.width:n.height,s=u?i:o;t.data.size=a/s*100}})),c.exit().remove(),this.children.filter((function(t){var e=bf.getProperty(t,"growth","x");return e===I.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=AM({children:this.children}).sum((function(t){return t.size})),HM().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=bf.getProperty(e,"data","growth","x");r===I.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(fS),YM=Array.prototype.slice,XM=function(t){return t},qM=1,ZM=2,$M=3,KM=4,QM=1e-6;function JM(t){return"translate("+(t+.5)+",0)"}function tA(t){return"translate(0,"+(t+.5)+")"}function eA(t){return function(e){return+t(e)}}function nA(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function rA(){return!this.__axis}function iA(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===qM||t===KM?-1:1,c=t===KM||t===ZM?"x":"y",l=t===qM||t===$M?JM:tA;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):XM:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?nA:eA)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),x=w.exit(),O=w.enter().append("g").attr("class","tick"),S=w.select("line"),E=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(O),S=S.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),E=E.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===qM?"0em":t===$M?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),S=S.transition(h),E=E.transition(h),x=x.transition(h).attr("opacity",QM).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",QM).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),x.remove(),b.attr("d",t===KM||t==ZM?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),S.attr(c+"2",u*o),E.attr(c,u*d).text(p),_.filter(rA).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ZM?"start":t===KM?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=YM.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:YM.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:YM.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function oA(t){return iA(qM,t)}function aA(t){return iA(ZM,t)}function sA(t){return iA($M,t)}function uA(t){return iA(KM,t)}var cA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lA=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return cA(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.model.getOptions(),a=bf.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=eb.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=eb.appendOrSelect(s,"g.axis."+r);r===T.BOTTOM||r===T.TOP?(e=this.configs.axes[T.LEFT]?this.margins.left:0,n=this.configs.axes[T.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===P.LABELS?p.rangeRound([e,n]):p.range([e,n]),r){case T.LEFT:f=uA;break;case T.BOTTOM:f=sA;break;case T.RIGHT:f=aA;break;case T.TOP:f=oA;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=eb.appendOrSelect(h,"g.ticks");d||(v.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP),v.attr("aria-label",r+" ticks"));var g=eb.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=bf.getProperty(i,"axes",r),y=this.scaleType===P.TIME||m.scaleType===P.TIME,_=r===T.LEFT||r===T.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),a){var w=bf.getProperty(m,"scaleType"),x=bf.getProperty(i,"data","loading"),O=bf.getProperty(m,"ticks","number"),S=bf.getProperty(m,"ticks","values"),E=bf.getProperty(m,"truncation","type"),M=bf.getProperty(m,"truncation","threshold"),C=bf.getProperty(m,"truncation","numCharacter"),k=null!==O,D=bf.getProperty(i,"timeScale"),L=eb.appendOrSelect(g,"g.tick"),R=eb.appendOrSelect(L,"text").text("0"),I=eb.getSVGElementSize(R.node(),{useBBox:!0}).height;L.remove();var j,N=this.scaleType||m.scaleType||P.LINEAR,V=f(p).tickSizeOuter(0);if(p.ticks){var B=void 0;if(k?B=O:(B=Cf.ticks.number,_&&(B=this.getNumberOfFittingTicks(l,I,Cf.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(B=0),V.ticks(B),y)if(p.ticks(B).length){var G=bf.getProperty(i,"timeScale","addSpaceOnEdges"),U=bf.getProperty(i,"axes",r,"domain"),z=void 0,F=p.copy();G&&!U&&F.nice(B),z=F.ticks(B),G&&z.length>2&&!U&&(z.splice(z.length-1,1),z.splice(0,1)),V.tickValues(z)}else V.tickValues([])}var W=bf.getProperty(m,"ticks","formatter");if(y){var Y=KE(V.tickValues());j=null===W?function(t,e){return XE(t,e,Y,D)}:function(t,e){var n=XE(t,e,Y,D);return W(t,e,n)}}else null===W?N===P.LINEAR&&(j=function(t){return t.toLocaleString()}):j=W;V.tickFormat(j);var X,q=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=q[0],$=q[1];if(S){if(y)S.forEach((function(t,e){void 0===t.getTime&&(S[e]=new Date(t))})),X=S.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date($).getTime()}));else if(w===P.LABELS){var K=this.services.cartesianScales.getScaleByPosition(r).domain();X=S.filter((function(t){return K.includes(t)}))}else X=S.filter((function(t){return t>=Z&&t<=$}));V.tickValues(X)}switch(r){case T.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case T.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case T.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case T.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(m.title){var J=eb.appendOrSelect(h,"text.axis-title").html(Q||x?"":m.title);switch(r){case T.LEFT:J.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case T.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+l+")").style("text-anchor","middle");break;case T.RIGHT:J.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case T.TOP:var tt=eb.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+tt/2+")").style("text-anchor","middle");break}}if(y){var et=KE(V.tickValues()),nt=D.showDayName,rt=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(V);var it=rt.selectAll(".tick").data(V.tickValues(),p).order().select("text");it.style("font-weight",(function(t,e){return YE(t,e,et,nt)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(V):v.call(V);if(g.call(V),r===T.BOTTOM||r===T.TOP){var ot=!1,at=bf.getProperty(m,"ticks","rotation");if(at===H.ALWAYS)ot=!0;else if(at===H.NEVER)ot=!1;else if(!at||at===H.AUTO)if(p.step){var st=g.selectAll("g.tick text").nodes();ot=st.some((function(t){return eb.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ut=bf.getProperty(m,"ticks","rotateIfSmallerThan")||Cf.ticks.rotateIfSmallerThan,ct=y?V.tickValues().length:p.ticks().length,lt=c/ct/2;ot=y?lt<2*ut:lt<ut}ot?(k||(V.ticks(this.getNumberOfFittingTicks(c,I,Cf.ticks.horizontalSpaceRatio)),g.call(V),v.call(V)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===T.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),E!==A.NONE&&w===P.LABELS&&!S){var ht=this.model.getDataValuesGroupedByKeys();if(ht.length>0){var ft=ht.map((function(t){return t.sharedStackKey})),pt=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(pt),h.selectAll("g.tick text").data(ft).text((function(t){return t.length>M?bf.truncateLabel(t,E,C):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(ft).text((function(t){return t.length>M?bf.truncateLabel(t,E,C):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(ft)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=eb.appendOrSelect(t,"g.axis."+e),r=this.model.getOptions(),i=bf.getProperty(r,"axes",e),o=bf.getProperty(i,"scaleType"),a=bf.getProperty(i,"truncation","threshold"),s=(this.scaleType===P.TIME||(i.scaleType,P.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(W.Axis.LABEL_MOUSEOVER,{element:Z_(this),datum:t}),o===P.LABELS&&t.length>a&&s.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:Z_(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(W.Axis.LABEL_MOUSEMOVE,{element:Z_(this),datum:t}),o===P.LABELS&&t.length>a&&s.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(W.Axis.LABEL_CLICK,{element:Z_(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(W.Axis.LABEL_MOUSEOUT,{element:Z_(this),datum:t}),o===P.LABELS&&s.services.events.dispatchEvent(W.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return bf.clamp(r,2,Cf.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=eb.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(fS),hA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fA=function(){return fA=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},fA.apply(this,arguments)},pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return hA(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(T),i=bf.getProperty(this.model.getOptions(),"axes");r.forEach((function(t){var e=i[T[t]];e&&(n[T[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=T[t];if(e.configs.axes[n]&&!e.children[n]){var r=new lA(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=eb.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(r=i.getTitleRef().empty()?0:eb.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a){case T.TOP:o.top=l+r;break;case T.BOTTOM:o.bottom=l+r;break;case T.LEFT:o.left=c+r;break;case T.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(W.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=bf.getProperty(this.model.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new nT(n.model,n.services,fA(fA({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(fS);var dA=function(){hf.preventDefault(),hf.stopImmediatePropagation()},vA=function(t){var e=t.document.documentElement,n=Z_(t).on("dragstart.drag",dA,!0);"onselectstart"in e?n.on("selectstart.drag",dA,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function gA(t,e){var n=t.document.documentElement,r=Z_(t).on("dragstart.drag",null);e&&(r.on("click.drag",dA,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var mA=function(t,e,n){arguments.length<3&&(n=e,e=wf().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return xf(t,r);return null},yA=function(t){return function(){return t}},_A=function(t,e,n){this.target=t,this.type=e,this.selection=n};function bA(){hf.stopImmediatePropagation()}var wA=function(){hf.preventDefault(),hf.stopImmediatePropagation()},xA={name:"drag"},OA={name:"space"},SA={name:"handle"},EA={name:"center"};function TA(t){return[+t[0],+t[1]]}function MA(t){return[TA(t[0]),TA(t[1])]}function AA(t){return function(e){return mA(e,hf.touches,t)}}var CA={name:"x",handles:["w","e"].map(jA),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},PA={name:"y",handles:["n","s"].map(jA),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},kA=(["n","w","e","s","nw","ne","sw","se"].map(jA),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),DA={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},LA={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},RA={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},IA={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function jA(t){return{type:t}}function NA(){return!hf.ctrlKey&&!hf.button}function VA(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function BA(){return navigator.maxTouchPoints||"ontouchstart"in this}function GA(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function UA(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function zA(){return HA(CA)}function HA(t){var e,n=VA,r=NA,i=BA,o=!0,a=fb("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([jA("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",kA.overlay).merge(n).each((function(){var t=GA(this).extent;Z_(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([jA("selection")]).enter().append("rect").attr("class","selection").attr("cursor",kA.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return kA[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=Z_(this),e=GA(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||hf.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=hf.target.__data__.type,_="selection"===(o&&hf.metaKey?y="overlay":y)?xA:o&&hf.altKey?EA:SA,b=t===PA?null:RA[y],w=t===CA?null:IA[y],x=GA(m),O=x.extent,S=x.selection,E=O[0][0],T=O[0][1],M=O[1][0],A=O[1][1],C=0,P=0,k=b&&w&&o&&hf.shiftKey,D=hf.touches?AA(hf.changedTouches[0].identifier):Of,L=D(m),R=L,I=l(m,arguments,!0).beforestart();"overlay"===y?(S&&(d=!0),x.selection=S=[[n=t===PA?E:L[0],a=t===CA?T:L[1]],[u=t===PA?M:n,f=t===CA?A:a]]):(n=S[0][0],a=S[0][1],u=S[1][0],f=S[1][1]),i=n,s=a,h=u,p=f;var j=Z_(m).attr("pointer-events","none"),N=j.selectAll(".overlay").attr("cursor",kA[y]);if(hf.touches)I.moved=B,I.ended=U;else{var V=Z_(hf.view).on("mousemove.brush",B,!0).on("mouseup.brush",U,!0);o&&V.on("keydown.brush",z,!0).on("keyup.brush",H,!0),vA(hf.view)}bA(),$b(m),c.call(m),I.start()}function B(){var t=D(m);!k||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,wA(),G()}function G(){var t;switch(C=R[0]-L[0],P=R[1]-L[1],_){case OA:case xA:b&&(C=Math.max(E-n,Math.min(M-u,C)),i=n+C,h=u+C),w&&(P=Math.max(T-a,Math.min(A-f,P)),s=a+P,p=f+P);break;case SA:b<0?(C=Math.max(E-n,Math.min(M-n,C)),i=n+C,h=u):b>0&&(C=Math.max(E-u,Math.min(M-u,C)),i=n,h=u+C),w<0?(P=Math.max(T-a,Math.min(A-a,P)),s=a+P,p=f):w>0&&(P=Math.max(T-f,Math.min(A-f,P)),s=a,p=f+P);break;case EA:b&&(i=Math.max(E,Math.min(M,n-C*b)),h=Math.max(E,Math.min(M,u+C*b))),w&&(s=Math.max(T,Math.min(A,a-P*w)),p=Math.max(T,Math.min(A,f+P*w)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in DA&&N.attr("cursor",kA[y=DA[y]])),p<s&&(w*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in LA&&N.attr("cursor",kA[y=LA[y]])),x.selection&&(S=x.selection),v&&(i=S[0][0],h=S[1][0]),g&&(s=S[0][1],p=S[1][1]),S[0][0]===i&&S[0][1]===s&&S[1][0]===h&&S[1][1]===p||(x.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(bA(),hf.touches){if(hf.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else gA(hf.view,d),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),N.attr("cursor",kA.overlay),x.selection&&(S=x.selection),UA(S)&&(x.selection=null,c.call(m)),I.end()}function z(){switch(hf.keyCode){case 16:k=b&&w;break;case 18:_===SA&&(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=EA,G());break;case 32:_!==SA&&_!==EA||(b<0?u=h-C:b>0&&(n=i-C),w<0?f=p-P:w>0&&(a=s-P),_=OA,N.attr("cursor",kA.selection),G());break;default:return}wA()}function H(){switch(hf.keyCode){case 16:k&&(v=g=k=!1,G());break;case 18:_===EA&&(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=SA,G());break;case 32:_===OA&&(hf.altKey?(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=EA):(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=SA),N.attr("cursor",kA[y]),G());break;default:return}wA()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=MA(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Hd(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();$b(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){_f(new _A(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:yA(MA(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:yA(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:yA(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var FA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return FA(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=eb.appendOrSelect(r,"svg.chart-grid-backdrop"),a=eb.appendOrSelect(o,"g."+this.type),s=eb.appendOrSelect(a,this.selectionSelector),u=eb.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=eb.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===P.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=hf.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=ey().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},w=function(){var t=hf.selection;null!==t&&(b(t[0],t[1]),a.call(x.move,null),g.style("display","none"))},x=zA().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",w);a.call(x);var O=this.services.zoom.getZoomRatio();o.on("click",(function(){if(hf.shiftKey){var t=Of(a.node())[0],e=t-c*O/2;e<0&&(e=0);var n=t+c*O/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(fS),YA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),XA=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return YA(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=eb.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=eb.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(fS),qA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return qA(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=bf.getProperty(this.model.getOptions(),"grid","x","enabled"),n=bf.getProperty(this.model.getOptions(),"grid","y","enabled");(e||n)&&(this.drawBackdrop(e,n),e&&(eb.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(eb.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=sA(r).tickSizeInner(-n).tickSizeOuter(0),o=bf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=uA(r).tickSizeInner(-n).tickSizeOuter(0),o=bf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(bf.getTranslationValues(t).tx)-Number(bf.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+bf.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+bf.getTranslationValues(s).tx-+bf.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=eb.getSVGElementSize(u).width;o=c-+bf.getTranslationValues(a).tx}else o=+bf.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=bf.getProperty(this.model.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=bf.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=eb.appendOrSelect(n,"svg.chart-grid-backdrop");var h=eb.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",s-a).attr("height",c-l).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){this.model.getOptions();t.selectAll("text").remove(),t.select(".domain").remove()},e}(fS),$A=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KA=5;function QA(t,e){return t>e-KA&&t<e+KA}var JA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=bf.getProperty(e.model.getOptions(),"grid","x","enabled"),e.isYGridEnabled=bf.getProperty(e.model.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return $A(e,t),e.prototype.render=function(){var t=bf.getProperty(this.model.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===C.HORIZONTAL?r:n,s=eb.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=eb.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return QA(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(W.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=this.services.cartesianScales.getRangeIdentifier(),y=g.map((function(t){return t.originalData})).filter((function(t){var e=t[m];return null!==e&&void 0!==e})),_=g.map((function(t){return t.domainValue})),b=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return _.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!bf.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(W.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(y)}),s.attr("opacity",1);var w=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",w.domainValue).attr("y2",w.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",w.domainValue).attr("x2",w.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=eb.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(W.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=Of(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=bf.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=eb.appendOrSelect(t,"svg.chart-grid-backdrop");eb.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(fS),tC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tC(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e.prototype.hideRuler=function(){var t=this.parent,e=eb.appendOrSelect(t,"g.ruler");this.services.events.dispatchEvent(W.Tooltip.HIDE),e.attr("opacity",0)},e}(JA),nC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return nC(e,t),e.prototype.init=function(){var t=this,e=this.model.getOptions(),n=Z_(this.services.domUtils.getHolder()),r=bf.getProperty(e,"style","prefix");this.overflowMenu=eb.appendOrSelect(n,"div."+Q_.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(W.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(W.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=bf.getProperty(this.model.getOptions(),"data","loading"),n=Vf.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),a=-6;i.attr("transform","translate(0, "+(r+a)+")");var s=eb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+a+n;var c=eb.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",Vf.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)eb.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",Vf.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=eb.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=eb.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=eb.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+Vf.iconPadding).attr("y",Vf.iconPadding).attr("width",Vf.iconSize).attr("height",Vf.iconSize).attr("viewBox","0 0 32 32").attr("role",o.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",o.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(hf.key&&"Enter"===hf.key||" "===hf.key)&&(hf.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(W.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(W.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=Z_("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=Z_("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=Z_("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===hf.key?n.clickFunction():"ArrowUp"===hf.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===hf.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}hf.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+o.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+o.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=bf.getProperty(this.model.getOptions(),"toolbar","numberOfIcons"),n=bf.getProperty(this.model.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case F.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case F.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case F.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case F.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case F.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case F.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(fS),iC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),oC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return iC(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeScale().domain(),n=e[0],r=e[1],i=n>0&&r<0||n<0&&r>0;if(i){var o=this.getContainerSVG(),a=this.services.cartesianScales.getDomainScale().range(),s=a[0],u=a[1],c=+this.services.cartesianScales.getRangeValue(0)+.5;if(!c){var l=this.services.cartesianScales.getRangeAxisPosition(),h=this.services.cartesianScales.getScaleByPosition(l);c=h.range()[0]}var f=bf.flipSVGCoordinatesBasedOnOrientation({x0:s,x1:u,y0:c,y1:c},this.services.cartesianScales.getOrientation()),p=eb.appendOrSelect(o,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}},e}(fS),aC=n("330a"),sC=n.n(aC),uC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=zA(),e}return uC(e,t),e.prototype.init=function(){this.services.events.addEventListener(W.ZoomBar.UPDATE,this.render.bind(this));var t=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(T.TOP),i=this.services.zoom.isZoomBarLocked(T.TOP),o=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"type"),a=Bf.height[o],s=eb.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=eb.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);eb.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",Bf.spacerHeight).attr("opacity",1).attr("fill","none");if(o===M.GRAPH_VIEW?eb.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%"):o===M.SLIDER_VIEW&&eb.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2),!r){var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===P.TIME){var v=this.services.zoom.getZoomBarData();if(sC()(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),m===y||m&&y&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()||this.model.set({initialZoomDomain:y,zoomDomain:y||g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(Sp(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");if(o===M.GRAPH_VIEW){this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId);var b=bT()([[u,a],[s,a]]);eb.appendOrSelect(l,"path.zoom-bg-baseline").attr("d",b)}this.addBrushEventListener(_,u,s);var w=eb.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())w.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var x=_.map((function(t){return e.xScale(t)}));x[1]-x[0]<this.MIN_SELECTION_DIFF||(w.call(this.brush.move,x),this.updateBrushHandle(this.getContainerSVG(),x,_))}i&&(this.brush.filter((function(){return!1})),w.selectAll("rect").attr("cursor","auto"))}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=hf.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"type"),a=Bf.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=hf.sourceEvent&&("mousemove"===hf.sourceEvent.type||"mouseup"===hf.sourceEvent.type||"mousedown"===hf.sourceEvent.type||"touchstart"===hf.sourceEvent.type||"touchmove"===hf.sourceEvent.type||"touchend"===hf.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===hf.type?i=W.ZoomBar.SELECTION_START:"brush"===hf.type?i=W.ZoomBar.SELECTION_IN_PROGRESS:"end"===hf.type&&(i=W.ZoomBar.SELECTION_END),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=Bf.handleWidth,o=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"type"),a=Bf.height[o],s=-i/2,u=Bf.handleBarWidth,c=o===M.GRAPH_VIEW?Bf.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===M.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"type"),n=Bf.height[e],r=(eb.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");eb.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"type"),p=Bf.height[f],d=wT().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=eb.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=eb.appendOrSelect(t,"clipPath").attr("id",e);eb.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=bf.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(W.ZoomBar.UPDATE,this.render.bind(this))},e}(fS),lC=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},hC=function(){function t(t,e){this.services={domUtils:eb,events:rb,gradientUtils:mx,transitions:vx},this.model=new fy(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!0}),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener(W.Model.UPDATE,(function(t){var e=!!bf.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(W.Chart.RESIZE,(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent(W.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new iT(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},n={id:"legend",components:[new dS(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},r={id:"graph-frame",components:t,growth:{x:I.STRETCH,y:I.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=R.COLUMN;if(i){var a=bf.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=R.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=L.VERTICAL)):"right"===a?(o=R.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=L.VERTICAL)):"bottom"===a&&(o=R.COLUMN_REVERSE)}var s={id:"spacer",components:[new dM(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},u={id:"full-frame",components:[new WM(this.model,this.services,lC(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:I.STRETCH,y:I.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new dM(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}};c.push(l)}return c.push(u),[new uT(this.model,this.services),new WM(this.model,this.services,c,{direction:R.COLUMN})]},t}(),fC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pC=function(t){function e(e){return t.call(this,e)||this}return fC(e,t),e.prototype.setData=function(e){var n;return e&&(n=t.prototype.setData.call(this,e),bf.getProperty(this.getOptions(),"zoomBar")&&this.setZoomBarData()),n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(bf.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=bf.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e}(fy),dC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vC=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},gC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:tO,curves:cS,zoom:hS}),r.model=new pC(r.services),r}return dC(e,t),e.prototype.getAxisChartComponents=function(t){var e=bf.getProperty(this.model.getOptions(),"zoomBar",T.TOP,"enabled"),n=bf.getProperty(this.model.getOptions(),"toolbar","enabled");this.services.cartesianScales.findDomainAndRangeAxes();var r=this.services.cartesianScales.getMainXAxisPosition(),i=bf.getProperty(this.model.getOptions(),"axes",r,"scaleType"),o=e&&r===T.BOTTOM&&i===P.TIME,a=this.services.zoom.isZoomBarLocked(T.TOP),s=!!this.model.getOptions().title,u={id:"title",components:[new iT(this.model,this.services)],growth:{x:I.STRETCH,y:I.FIXED}},c={id:"toolbar",components:[new rC(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},l={id:"header",components:[new WM(this.model,this.services,vC([u],n?[c]:[]),{direction:R.ROW})],growth:{x:I.PREFERRED,y:I.FIXED}},h={id:"legend",components:[new dS(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}};o&&!a&&t.push(new XA(this.model,this.services),new WA(this.model,this.services));var f={id:"graph-frame",components:t,growth:{x:I.STRETCH,y:I.FIXED}},p=!1!==this.model.getOptions().legend.enabled,d=R.COLUMN;if(p){var v=bf.getProperty(this.model.getOptions(),"legend","position");v===k.LEFT?(d=R.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=L.VERTICAL)):v===k.RIGHT?(d=R.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=L.VERTICAL)):v===k.BOTTOM&&(d=R.COLUMN_REVERSE)}var g={id:"spacer",components:[new dM(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},m={id:"full-frame",components:[new WM(this.model,this.services,vC(p?[h]:[],p?[g]:[],[f]),{direction:d})],growth:{x:I.STRETCH,y:I.FIXED}},y={id:"zoom-bar",components:[new cC(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},_=[];if(s||n){_.push(l);var b={id:"spacer",components:[new dM(this.model,this.services,n?{size:15}:void 0)],growth:{x:I.PREFERRED,y:I.FIXED}};_.push(b)}return o&&_.push(y),_.push(m),[new lT(this.model,this.services),new WM(this.model,this.services,_,{direction:R.COLUMN})]},e}(hC),mC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(bf.clone(cp.areaChart),n.options)),r.init(e,n),r}return mC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new JA(this.model,this.services),new BT(this.model,this.services),new OT(this.model,this.services),new IT(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0})],e=this.getAxisChartComponents(t);return e},e}(gC),_C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.stackedAreaChart,n.options)),r.init(e,n),r}return _C(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new JA(this.model,this.services),new ET(this.model,this.services),new BT(this.model,this.services,{stacked:!0}),new UT(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0})],e=this.getAxisChartComponents(t);return e},e}(gC),wC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.simpleBarChart,n.options)),r.init(e,n),r}return wC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new CT(this.model,this.services),new oC(this.model,this.services),new lM(this.model,this.services,{skeleton:N.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(gC),OC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),SC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.groupedBarChart,n.options)),r.init(e,n),r}return OC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new kT(this.model,this.services),new oC(this.model,this.services),new lM(this.model,this.services,{skeleton:N.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(gC),EC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.stackedBarChart,n.options)),r.init(e,n),r}return EC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new eC(this.model,this.services),new LT(this.model,this.services),new lM(this.model,this.services,{skeleton:N.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(gC),MC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.bubbleChart,n.options)),r.init(e,n),r}return MC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new JA(this.model,this.services),new NT(this.model,this.services),new lM(this.model,this.services,{skeleton:N.GRID})],e=this.getAxisChartComponents(t);return e},e}(gC),CC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.lineChart,n.options)),r.init(e,n),r}return CC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new JA(this.model,this.services),new BT(this.model,this.services),new IT(this.model,this.services,{handleThresholds:!0}),new fM(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(gC),kC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.scatterChart,n.options)),r.init(e,n),r}return kC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new ZA(this.model,this.services),new JA(this.model,this.services),new IT(this.model,this.services),new lM(this.model,this.services,{skeleton:N.GRID})],e=this.getAxisChartComponents(t);return e},e}(gC),LC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RC=function(t){function e(e){return t.call(this,e)||this}return LC(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(fy),IC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jC=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new RC(i.services),r?i:(i.model.setOptions(bf.mergeDefaultChartOptions(cp.pieChart,n.options)),i.init(e,n),i)}return IC(e,t),e.prototype.getComponents=function(){var t=[new eM(this.model,this.services),new lM(this.model,this.services,{skeleton:N.PIE})],e=this.getChartComponents(t);return e},e}(hC),NC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VC=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.donutChart,n.options)),r.init(e,n),r}return NC(e,t),e.prototype.getComponents=function(){var t=[new sM(this.model,this.services),new lM(this.model,this.services,{skeleton:N.DONUT})],e=this.getChartComponents(t);return e},e}(jC),BC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GC=function(t){function e(e){return t.call(this,e)||this}return BC(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=Pf.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=bf.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=bf.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(fy),UC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return UC(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getOptions(),a=this.model.getDisplayData(),s=this.model.getStatus(),u=eb.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=Mv().domain([0,100]).range([0,u]);eb.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",bf.getProperty(i,"meter","height"));var h=a.value>=100,f=r.selectAll("rect.value").data([a]),p=null==s||n.model.isUserProvidedColorScaleValid()?"":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",bf.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).attr("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=bf.getProperty(i,"meter","peak"),v=null!==d&&d<a.value?a.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",bf.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(fS),HC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new GC(r.services),r.model.setOptions(bf.merge(bf.clone(cp.meterChart),n.options)),r.init(e,n),r}return HC(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new zC(this.model,this.services)],growth:{x:I.STRETCH,y:I.FIXED}},e={id:"title",components:[new aT(this.model,this.services)],growth:{x:I.PREFERRED,y:I.FIXED}},n={id:"spacer",components:[new dM(this.model,this.services,{size:8})],growth:{x:I.PREFERRED,y:I.FIXED}},r=[new WM(this.model,this.services,[e,n,t],{direction:R.COLUMN})],i=this.getChartComponents(r);return i},e}(hC);function WC(t){var e=YC(qC(t),360);return XC(e,[0,10])||XC(e,[350,0])?{textAnchor:V.START,dominantBaseline:B.MIDDLE}:XC(e,[10,80])?{textAnchor:V.START,dominantBaseline:B.HANGING}:XC(e,[80,100])?{textAnchor:V.MIDDLE,dominantBaseline:B.HANGING}:XC(e,[100,170])?{textAnchor:V.END,dominantBaseline:B.HANGING}:XC(e,[170,190])?{textAnchor:V.END,dominantBaseline:B.MIDDLE}:XC(e,[190,260])?{textAnchor:V.END,dominantBaseline:B.BASELINE}:XC(e,[260,280])?{textAnchor:V.MIDDLE,dominantBaseline:B.BASELINE}:{textAnchor:V.START,dominantBaseline:B.BASELINE}}function YC(t,e){return(t%e+e)%e}function XC(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function qC(t){return t*(180/Math.PI)}function ZC(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function $C(t,e){return e*Math.sin(t-Math.PI/2)}var KC=JC(iO);function QC(t){this._curve=t}function JC(t){function e(e){return new QC(t(e))}return e._curve=t,e}function tP(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(JC(t)):e()._curve},t}QC.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var eP,nP,rP,iP=function(){return tP(bT().curve(KC))},oP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=eb.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=eb.appendOrSelect(n,"text").text(t),i=eb.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.model.getOptions(),r=bf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=bf.getProperty(n,"data","groupMapsTo"),s=bf.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return bf.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.model.getOptions(),r=bf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=bf.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:bf.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?Rf.opacity.unselected:Rf.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Rf.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",Rf.opacity.selected).style("stroke-opacity",1)},e}return oP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=eb.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,a=r.height,s=this.model.getData(),u=this.model.getDisplayData(),c=this.model.getGroupedData(),l=this.model.getOptions(),h=bf.getProperty(l,"radar","axes"),f=h.angle,p=h.value,d=bf.getProperty(l,"data","groupMapsTo"),v=Rf,g=v.xLabelPadding,m=v.yLabelPadding,y=v.yTicksNumber,_=v.minRange,b=v.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[f]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[d]})))),this.displayDataNormalized=this.normalizeFlatData(u),this.groupedDataNormalized=this.normalizeGroupedData(c);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,x=2*(w+m),O=Math.min(i,a),S=O-x,T=S/2;if(!(T<=0)){var M=zp().domain(this.displayDataNormalized.map((function(t){return t[f]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),A=Mv().domain([0,Lp(this.displayDataNormalized.map((function(t){return t[p]})))]).range([_,T]).nice(y),C=A.ticks(y),P=function(t){return e.model.getFillColor(t)},k=iP().angle((function(t){return M(t[f])+Math.PI/2})).radius((function(t){return A(t[p])})).curve(sO),D=iP().angle(k.angle()).radius((function(t){return eP?eP(t[p]):_})).curve(k.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=$C(M(t),T);return n+r})),R=Lp(L),I={x:R+g,y:a/2},j=eb.appendOrSelect(n,"g.y-axes").attr("role",o.GROUP),N=j.selectAll("path").data(C,(function(t){return t})),V=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[f]=e,n[p]=t,n}))};N.join((function(n){return n.append("path").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill","none").attr("d",(function(t){return D(V(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return k(V(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return k(V(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return k(V(t))})).attr("opacity",0).remove()}))}));var B=eb.appendOrSelect(n,"g.x-axes").attr("role",o.GROUP),G=B.selectAll("line").data(this.uniqueKeys,(function(t){return t}));G.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+bf.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return ZC(M(t),0,I).x})).attr("y1",(function(t){return ZC(M(t),0,I).y})).attr("x2",(function(t){return ZC(M(t),0,I).x})).attr("y2",(function(t){return ZC(M(t),0,I).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return ZC(M(t),A.range()[0],I).x})).attr("y1",(function(t){return ZC(M(t),A.range()[0],I).y})).attr("x2",(function(t){return ZC(M(t),A.range()[1],I).x})).attr("y2",(function(t){return ZC(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return ZC(M(t),A.range()[0],I).x})).attr("y1",(function(t){return ZC(M(t),A.range()[0],I).y})).attr("x2",(function(t){return ZC(M(t),A.range()[1],I).x})).attr("y2",(function(t){return ZC(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var U=eb.appendOrSelect(n,"g.x-labels").attr("role",o.GROUP),z=U.selectAll("text").data(this.uniqueKeys);z.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return ZC(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return ZC(M(t),A.range()[1]+g,I).y})).style("text-anchor",(function(t){return WC(M(t)).textAnchor})).style("dominant-baseline",(function(t){return WC(M(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return ZC(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return ZC(M(t),A.range()[1]+g,I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var H=eb.appendOrSelect(n,"g.blobs").attr("role",o.GROUP),F=H.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));F.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL,E.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill",(function(t){return P(t.name)})).style("fill-opacity",Rf.opacity.selected).attr("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return D(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return k(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL,E.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("fill",(function(t){return P(t.name)})).attr("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return k(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return k(t.data)})).attr("opacity",0).remove()}))}));var W=eb.appendOrSelect(n,"g.dots").attr("role",o.GROUP),Y=W.selectAll("circle").data(this.displayDataNormalized);Y.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[E.FILL],dataGroupName:t[d],originalClassName:bf.kebabCase(t[f])})})).attr("cx",(function(t){return ZC(M(t[f]),A(t[p]),I).x})).attr("cy",(function(t){return ZC(M(t[f]),A(t[p]),I).y})).attr("r",0).attr("opacity",0).attr("fill",(function(t){return P(t[d])}));var X=eb.appendOrSelect(n,"g.x-axes-rect").attr("role",o.GROUP),q=X.selectAll("rect").data(this.uniqueKeys);q.join((function(t){return t.append("rect").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",I.x).attr("y",I.y-b/2).attr("width",A.range()[1]).attr("height",b).attr("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+qC(M(t))+", "+I.x+", "+I.y+")"}));var Z=eb.appendOrSelect(n,"g.y-labels").attr("role",o.GROUP),$=Z.selectAll("text").data(Sp(C));$.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return ZC(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return ZC(-Math.PI/2,A(t),I).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return ZC(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return ZC(-Math.PI/2,A(t),I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var K=bf.getProperty(l,"radar","alignment"),Q=eb.getAlignmentOffset(K,n,this.getParent());n.attr("transform","translate("+Q+", 0)"),this.addEventListeners(),eP=A}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(W.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(W.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=bf.getProperty(this.model.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=Z_(this);t.services.events.dispatchEvent(W.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+bf.kebabCase(n)),o=t.parent.selectAll(".dots circle."+bf.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",Rf.dotsRadius);var a=t.displayDataNormalized.filter((function(t){return t[e]===n})),s=t.model.getOptions(),u=s.data.groupMapsTo,c=bf.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(W.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[E.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=Z_(this);t.services.events.dispatchEvent(W.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(W.Radar.X_AXIS_CLICK,{element:Z_(this),datum:e})})).on("mouseout",(function(e){var n=Z_(this),r=t.parent.select(".x-axes .x-axis-"+bf.kebabCase(e)),i=t.parent.selectAll(".dots circle."+bf.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(W.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(W.Tooltip.HIDE)}))},e}(fS),sP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uP=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(bf.mergeDefaultChartOptions(cp.radarChart,n.options)),i.init(e,n),i)}return sP(e,t),e.prototype.getComponents=function(){var t=[new aP(this.model,this.services)],e=this.getChartComponents(t);return e},e}(hC),cP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(bf.mergeDefaultChartOptions(cp.gaugeChart,n.options)),r.init(e,n),r}return cP(e,t),e.prototype.getComponents=function(){var t=[new oM(this.model,this.services)],e=this.getChartComponents(t);return e},e}(hC),hP={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},fP=hP;function pP(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var dP=pP(fP,nP,rP,!1,null,null,null),vP=dP.exports,gP={name:"CcvAreaChart",extends:vP,mounted:function(){this.coreChart=new yC(this.$el,{data:this.data,options:this.options})}},mP=gP,yP=pP(mP,x,O,!1,null,null,null),_P=yP.exports,bP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},wP=[],xP={name:"CcvStackedAreaChart",extends:vP,mounted:function(){this.coreChart=new bC(this.$el,{data:this.data,options:this.options})}},OP=xP,SP=pP(OP,bP,wP,!1,null,null,null),EP=SP.exports,TP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},MP=[],AP={name:"CcvSimpleBarChart",extends:vP,mounted:function(){this.coreChart=new xC(this.$el,{data:this.data,options:this.options})}},CP=AP,PP=pP(CP,TP,MP,!1,null,null,null),kP=PP.exports,DP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},LP=[],RP={name:"CcvGroupedBarChart",extends:vP,mounted:function(){this.coreChart=new SC(this.$el,{data:this.data,options:this.options})}},IP=RP,jP=pP(IP,DP,LP,!1,null,null,null),NP=jP.exports,VP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},BP=[],GP={name:"CcvStackedBarChart",extends:vP,mounted:function(){this.coreChart=new TC(this.$el,{data:this.data,options:this.options})}},UP=GP,zP=pP(UP,VP,BP,!1,null,null,null),HP=zP.exports,FP=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},WP=[],YP={name:"CcvBubbleChart",extends:vP,mounted:function(){this.coreChart=new AC(this.$el,{data:this.data,options:this.options})}},XP=YP,qP=pP(XP,FP,WP,!1,null,null,null),ZP=qP.exports,$P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},KP=[],QP={name:"CcvDonutChart",extends:vP,mounted:function(){this.coreChart=new VC(this.$el,{data:this.data,options:this.options})}},JP=QP,tk=pP(JP,$P,KP,!1,null,null,null),ek=tk.exports,nk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},rk=[],ik={name:"CcvGaugeChart",extends:vP,mounted:function(){this.coreChart=new lP(this.$el,{data:this.data,options:this.options})}},ok=ik,ak=pP(ok,nk,rk,!1,null,null,null),sk=ak.exports,uk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},ck=[],lk={name:"CcvLineChart",extends:vP,mounted:function(){this.coreChart=new PC(this.$el,{data:this.data,options:this.options})}},hk=lk,fk=pP(hk,uk,ck,!1,null,null,null),pk=fk.exports,dk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},vk=[],gk={name:"CcvPieChart",extends:vP,mounted:function(){this.coreChart=new jC(this.$el,{data:this.data,options:this.options})}},mk=gk,yk=pP(mk,dk,vk,!1,null,null,null),_k=yk.exports,bk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},wk=[],xk={name:"CcvScatterChart",extends:vP,mounted:function(){this.coreChart=new DC(this.$el,{data:this.data,options:this.options})}},Ok=xk,Sk=pP(Ok,bk,wk,!1,null,null,null),Ek=Sk.exports,Tk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},Mk=[],Ak={name:"CcvMeterChart",extends:vP,mounted:function(){this.coreChart=new FC(this.$el,{data:this.data,options:this.options})}},Ck=Ak,Pk=pP(Ck,Tk,Mk,!1,null,null,null),kk=Pk.exports,Dk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},Lk=[],Rk={name:"CcvRadarChart",extends:vP,mounted:function(){this.coreChart=new uP(this.$el,{data:this.data,options:this.options})}},Ik=Rk,jk=pP(Ik,Dk,Lk,!1,null,null,null),Nk=jk.exports,Vk=[_P,EP,kP,NP,HP,ZP,ek,sk,pk,_k,Ek,kk,Nk],Bk={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Vk[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=Vk[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvAreaChart",(function(){return _P})),n.d(e,"CcvStackedAreaChart",(function(){return EP})),n.d(e,"CcvSimpleBarChart",(function(){return kP})),n.d(e,"CcvGroupedBarChart",(function(){return NP})),n.d(e,"CcvStackedBarChart",(function(){return HP})),n.d(e,"CcvBubbleChart",(function(){return ZP})),n.d(e,"CcvDonutChart",(function(){return ek})),n.d(e,"CcvGaugeChart",(function(){return sk})),n.d(e,"CcvLineChart",(function(){return pk})),n.d(e,"CcvPieChart",(function(){return _k})),n.d(e,"CcvScatterChart",(function(){return Ek})),n.d(e,"CcvMeterChart",(function(){return kk})),n.d(e,"CcvRadarChart",(function(){return Nk}));e["default"]=Bk},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"201b":function(t,e,n){var r=n("7bdd"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"212d":function(t,e,n){var r=n("bf10"),i=n("201b"),o=r(i,"Promise");t.exports=o},2402:function(t,e){e.f=Object.getOwnPropertySymbols},2822:function(t,e,n){var r=n("4b2c"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=u},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=S(0,0,0,0);function v(t){return parseFloat(t)||0}function g(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function y(t){var e=t.getBBox();return S(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!w(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return S(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function w(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?y(t):_(t):d}function O(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function S(t,e,n,r){return{x:t,y:e,width:n,height:r}}var E=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=t};E.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=O(e);f(this,{target:t,contentRect:n})},M=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};M.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new E(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(t){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new M(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:C}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,x){i(n,e,l);var O,S,E,T=function(t){if(t===p&&k)return k;if(!v&&t in C)return C[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,C=t.prototype,P=C[g]||C["@@iterator"]||p&&C[p],k=!v&&P||T(p),D="Array"==e&&C.entries||P;if(D&&(O=o(D.call(new t)),d!==Object.prototype&&O.next&&(h||o(O)===d||(a?a(O,d):"function"!=typeof O[g]&&u(O,g,b)),s(O,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(A=!0,k=function(){return P.call(this)}),h&&!x||C[g]===k||u(C,g,k),f[e]=k,p)if(S={values:T(y),keys:w?k:T(m),entries:T(_)},x)for(E in S)!v&&!A&&E in C||c(C,E,S[E]);else r({target:e,proto:!0,forced:v||A},S);return S}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"330a":function(t,e,n){var r=n("e2e2"),i=n("9243"),o=n("6efc"),a=n("c316"),s=n("f72d"),u=n("dda8"),c=n("09b2"),l=n("41dd"),h="[object Map]",f="[object Set]",p=Object.prototype,d=p.hasOwnProperty;function v(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||o(t)))return!t.length;var e=i(t);if(e==h||e==f)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}t.exports=v},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},3819:function(t,e,n){var r=n("bf10"),i=n("201b"),o=r(i,"Set");t.exports=o},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3ad3":function(t,e,n){var r=n("4c0b"),i=r(Object.keys,Object);t.exports=i},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},"405d":function(t,e,n){var r=n("bf10"),i=n("201b"),o=r(i,"DataView");t.exports=o},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"41dd":function(t,e,n){var r=n("eff8"),i=n("494f"),o=n("4fab"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},"494f":function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},"4b2c":function(t,e,n){var r=n("201b"),i=r.Symbol;t.exports=i},"4c0b":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},"4fab":function(t,e,n){(function(t){var r=n("7bdd"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u}).call(this,n("6984")(t))},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},6984:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},"6efc":function(t,e,n){var r=n("ff7d"),i=n("b4b4"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"735f":function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7bdd":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("7d15"))},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[t]}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"907a":function(t,e){var n=Object.prototype,r=n.toString;function i(t){return r.call(t)}t.exports=i},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},9243:function(t,e,n){var r=n("405d"),i=n("a9e0"),o=n("212d"),a=n("3819"),s=n("e3e5"),u=n("0e19"),c=n("735f"),l="[object Map]",h="[object Object]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",v="[object DataView]",g=c(r),m=c(i),y=c(o),_=c(a),b=c(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=v||i&&w(new i)!=l||o&&w(o.resolve())!=f||a&&w(new a)!=p||s&&w(new s)!=d)&&(w=function(t){var e=u(t),n=e==h?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return v;case m:return l;case y:return f;case _:return p;case b:return d}return e}),t.exports=w},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},a9e0:function(t,e,n){var r=n("bf10"),i=n("201b"),o=r(i,"Map");t.exports=o},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b4b4:function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},b506:function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b742:function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=r},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},bf10:function(t,e,n){var r=n("e672"),i=n("e29f");function o(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=o},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c316:function(t,e){var n=Array.isArray;t.exports=n},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),w=r(d,v,3),x=a(b.length),O=0,S=g||s,E=e?S(p,x):n?S(p,0):void 0;x>O;O++)if((f||O in b)&&(m=b[O],y=w(m,O,_),t))if(e)E[O]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:u.call(E,m)}else if(l)return!1;return h?-1:c||l?l:E}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),x=n("ee58"),O=n("2402"),S=n("185a"),E=n("abdf"),T=n("e129"),M=n("5b12"),A=n("b8ba"),C=n("4cdd"),P=n("332c"),k=n("d687"),D=n("1d8a"),L=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),V=n("d054").forEach,B=P("hidden"),G="Symbol",U="prototype",z=L("toPrimitive"),H=N.set,F=N.getterFor(G),W=Object[U],Y=i.Symbol,X=o("JSON","stringify"),q=S.f,Z=E.f,$=x.f,K=T.f,Q=C("symbols"),J=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],Z(t,e,n),r&&t!==W&&Z(W,e,r)}:Z,at=function(t,e){var n=Q[t]=_(Y[U]);return H(n,{type:G,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,B)||Z(t,B,y(1,{})),t[B][r]=!0),ot(t,r,n)):Z(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return V(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=K.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,B)&&this[B][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=q(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},pt=function(t){var e=$(g(t)),n=[];return V(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=$(e?J:g(t)),r=[];return V(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===W&&n.call(J,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[U],"toString",(function(){return F(this).tag})),A(Y,"withoutSetter",(function(t){return at(D(t),t)})),T.f=ht,E.f=ut,S.f=ft,w.f=x.f=pt,O.f=dt,R.f=function(t){return at(L(t),t)},s&&(Z(Y[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),V(b(nt),(function(t){I(t)})),r({target:G,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),X){var vt=!u||l((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,X.apply(null,i)}})}Y[U][z]||M(Y[U],z,Y[U].valueOf),j(Y,G),k[B]=!0},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},daaf:function(t,e,n){var r=n("0e19"),i=n("b506"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function c(t){if(!i(t))return!1;var e=r(t);return e==a||e==s||e==o||e==u}t.exports=c},dca0:function(t,e,n){var r=n("201b"),i=r["__core-js_shared__"];t.exports=i},dda8:function(t,e,n){(function(t){var r=n("201b"),i=n("0e30"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i;t.exports=l}).call(this,n("6984")(t))},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e29f:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},e2e2:function(t,e,n){var r=n("09b2"),i=n("3ad3"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},e3e5:function(t,e,n){var r=n("bf10"),i=n("201b"),o=r(i,"WeakMap");t.exports=o},e672:function(t,e,n){var r=n("daaf"),i=n("f6f6"),o=n("b506"),a=n("735f"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,h=c.toString,f=l.hasOwnProperty,p=RegExp("^"+h.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(t){if(!o(t)||i(t))return!1;var e=r(t)?p:u;return e.test(a(t))}t.exports=d},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},eff8:function(t,e,n){var r=n("0e19"),i=n("b742"),o=n("b4b4"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",h="[object Function]",f="[object Map]",p="[object Number]",d="[object Object]",v="[object RegExp]",g="[object Set]",m="[object String]",y="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",E="[object Int32Array]",T="[object Uint8Array]",M="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]",P={};function k(t){return o(t)&&i(t.length)&&!!P[r(t)]}P[w]=P[x]=P[O]=P[S]=P[E]=P[T]=P[M]=P[A]=P[C]=!0,P[a]=P[s]=P[_]=P[u]=P[b]=P[c]=P[l]=P[h]=P[f]=P[p]=P[d]=P[v]=P[g]=P[m]=P[y]=!1,t.exports=k},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},f6f6:function(t,e,n){var r=n("dca0"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!i&&i in t}t.exports=o},f72d:function(t,e,n){var r=n("daaf"),i=n("b742");function o(t){return null!=t&&i(t.length)&&!r(t)}t.exports=o},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff7d:function(t,e,n){var r=n("0e19"),i=n("b4b4"),o="[object Arguments]";function a(t){return i(t)&&r(t)==o}t.exports=a},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("7326")(t))},"083f":function(t,e,n){var r=n("7526");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Toolbar",(function(){return u})),n.d(i,"ZoomBar",(function(){return c})),n.d(i,"ZoomDomain",(function(){return l})),n.d(i,"Axis",(function(){return h})),n.d(i,"Area",(function(){return f})),n.d(i,"Pie",(function(){return p})),n.d(i,"Gauge",(function(){return d})),n.d(i,"Bar",(function(){return v})),n.d(i,"Scatter",(function(){return g})),n.d(i,"Line",(function(){return m})),n.d(i,"Radar",(function(){return y})),n.d(i,"Treemap",(function(){return _})),n.d(i,"Tooltip",(function(){return b})),n.d(i,"Threshold",(function(){return w})),n.d(i,"Legend",(function(){return x})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,w,x,O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},S=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(u||(u={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(c||(c={})),function(t){t["CHANGE"]="zoom-domain-change"}(l||(l={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(h||(h={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(f||(f={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(p||(p={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(d||(d={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(v||(v={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(g||(g={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(m||(m={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(y||(y={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(_||(_={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(b||(b={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(w||(w={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(x||(x={}));var E,T,M,A,C,P,k,D,L,R,I,j,N,V,G,B,U,z,H,F,W,Y=i;function X(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(E||(E={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(T||(T={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(M||(M={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(A||(A={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(C||(C={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(P||(P={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(k||(k={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(D||(D={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(L||(L={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(R||(R={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(I||(I={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(j||(j={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(N||(N={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(V||(V={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(G||(G={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(B||(B={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(U||(U={})),function(t){t["UP"]="up",t["DOWN"]="down"}(z||(z={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(H||(H={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(F||(F={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}(W||(W={}));var q=X,Z=n("7f0d"),$=function(){return Z["a"].Date.now()},K=$,Q=Z["a"].Symbol,J=Q,tt=Object.prototype,et=tt.hasOwnProperty,nt=tt.toString,rt=J?J.toStringTag:void 0;function it(t){var e=et.call(t,rt),n=t[rt];try{t[rt]=void 0;var r=!0}catch(o){}var i=nt.call(t);return r&&(e?t[rt]=n:delete t[rt]),i}var ot=it,at=Object.prototype,st=at.toString;function ut(t){return st.call(t)}var ct=ut,lt="[object Null]",ht="[object Undefined]",ft=J?J.toStringTag:void 0;function pt(t){return null==t?void 0===t?ht:lt:ft&&ft in Object(t)?ot(t):ct(t)}var dt=pt;function vt(t){return null!=t&&"object"==typeof t}var gt=vt,mt="[object Symbol]";function yt(t){return"symbol"==typeof t||gt(t)&&dt(t)==mt}var _t=yt,bt=NaN,wt=/^\s+|\s+$/g,xt=/^[-+]0x[0-9a-f]+$/i,Ot=/^0b[01]+$/i,St=/^0o[0-7]+$/i,Et=parseInt;function Tt(t){if("number"==typeof t)return t;if(_t(t))return bt;if(q(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=q(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(wt,"");var n=Ot.test(t);return n||St.test(t)?Et(t.slice(2),n?2:8):xt.test(t)?bt:+t}var Mt=Tt,At="Expected a function",Ct=Math.max,Pt=Math.min;function kt(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(At);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?Pt(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=K();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y(K())}function w(){var t=K(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=Mt(e)||0,q(n)&&(l=!!n.leading,h="maxWait"in n,o=h?Ct(Mt(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var Dt=kt;function Lt(){this.__data__=[],this.size=0}var Rt=Lt;function It(t,e){return t===e||t!==t&&e!==e}var jt=It;function Nt(t,e){var n=t.length;while(n--)if(jt(t[n][0],e))return n;return-1}var Vt=Nt,Gt=Array.prototype,Bt=Gt.splice;function Ut(t){var e=this.__data__,n=Vt(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Bt.call(e,n,1),--this.size,!0}var zt=Ut;function Ht(t){var e=this.__data__,n=Vt(e,t);return n<0?void 0:e[n][1]}var Ft=Ht;function Wt(t){return Vt(this.__data__,t)>-1}var Yt=Wt;function Xt(t,e){var n=this.__data__,r=Vt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var qt=Xt;function Zt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Zt.prototype.clear=Rt,Zt.prototype["delete"]=zt,Zt.prototype.get=Ft,Zt.prototype.has=Yt,Zt.prototype.set=qt;var $t=Zt;function Kt(){this.__data__=new $t,this.size=0}var Qt=Kt;function Jt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var te=Jt;function ee(t){return this.__data__.get(t)}var ne=ee;function re(t){return this.__data__.has(t)}var ie=re,oe="[object AsyncFunction]",ae="[object Function]",se="[object GeneratorFunction]",ue="[object Proxy]";function ce(t){if(!q(t))return!1;var e=dt(t);return e==ae||e==se||e==oe||e==ue}var le=ce,he=Z["a"]["__core-js_shared__"],fe=he,pe=function(){var t=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function de(t){return!!pe&&pe in t}var ve=de,ge=Function.prototype,me=ge.toString;function ye(t){if(null!=t){try{return me.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var _e=ye,be=/[\\^$.*+?()[\]{}|]/g,we=/^\[object .+?Constructor\]$/,xe=Function.prototype,Oe=Object.prototype,Se=xe.toString,Ee=Oe.hasOwnProperty,Te=RegExp("^"+Se.call(Ee).replace(be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Me(t){if(!q(t)||ve(t))return!1;var e=le(t)?Te:we;return e.test(_e(t))}var Ae=Me;function Ce(t,e){return null==t?void 0:t[e]}var Pe=Ce;function ke(t,e){var n=Pe(t,e);return Ae(n)?n:void 0}var De=ke,Le=De(Z["a"],"Map"),Re=Le,Ie=De(Object,"create"),je=Ie;function Ne(){this.__data__=je?je(null):{},this.size=0}var Ve=Ne;function Ge(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Be=Ge,Ue="__lodash_hash_undefined__",ze=Object.prototype,He=ze.hasOwnProperty;function Fe(t){var e=this.__data__;if(je){var n=e[t];return n===Ue?void 0:n}return He.call(e,t)?e[t]:void 0}var We=Fe,Ye=Object.prototype,Xe=Ye.hasOwnProperty;function qe(t){var e=this.__data__;return je?void 0!==e[t]:Xe.call(e,t)}var Ze=qe,$e="__lodash_hash_undefined__";function Ke(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=je&&void 0===e?$e:e,this}var Qe=Ke;function Je(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Je.prototype.clear=Ve,Je.prototype["delete"]=Be,Je.prototype.get=We,Je.prototype.has=Ze,Je.prototype.set=Qe;var tn=Je;function en(){this.size=0,this.__data__={hash:new tn,map:new(Re||$t),string:new tn}}var nn=en;function rn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var on=rn;function an(t,e){var n=t.__data__;return on(e)?n["string"==typeof e?"string":"hash"]:n.map}var sn=an;function un(t){var e=sn(this,t)["delete"](t);return this.size-=e?1:0,e}var cn=un;function ln(t){return sn(this,t).get(t)}var hn=ln;function fn(t){return sn(this,t).has(t)}var pn=fn;function dn(t,e){var n=sn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var vn=dn;function gn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}gn.prototype.clear=nn,gn.prototype["delete"]=cn,gn.prototype.get=hn,gn.prototype.has=pn,gn.prototype.set=vn;var mn=gn,yn=200;function _n(t,e){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!Re||r.length<yn-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new mn(r)}return n.set(t,e),this.size=n.size,this}var bn=_n;function wn(t){var e=this.__data__=new $t(t);this.size=e.size}wn.prototype.clear=Qt,wn.prototype["delete"]=te,wn.prototype.get=ne,wn.prototype.has=ie,wn.prototype.set=bn;var xn=wn;function On(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var Sn=On,En=function(){try{var t=De(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Tn=En;function Mn(t,e,n){"__proto__"==e&&Tn?Tn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var An=Mn,Cn=Object.prototype,Pn=Cn.hasOwnProperty;function kn(t,e,n){var r=t[e];Pn.call(t,e)&&jt(r,n)&&(void 0!==n||e in t)||An(t,e,n)}var Dn=kn;function Ln(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?An(n,s,u):Dn(n,s,u)}return n}var Rn=Ln;function In(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var jn=In,Nn="[object Arguments]";function Vn(t){return gt(t)&&dt(t)==Nn}var Gn=Vn,Bn=Object.prototype,Un=Bn.hasOwnProperty,zn=Bn.propertyIsEnumerable,Hn=Gn(function(){return arguments}())?Gn:function(t){return gt(t)&&Un.call(t,"callee")&&!zn.call(t,"callee")},Fn=Hn,Wn=Array.isArray,Yn=Wn,Xn=n("4cf0"),qn=9007199254740991,Zn=/^(?:0|[1-9]\d*)$/;function $n(t,e){var n=typeof t;return e=null==e?qn:e,!!e&&("number"==n||"symbol"!=n&&Zn.test(t))&&t>-1&&t%1==0&&t<e}var Kn=$n,Qn=9007199254740991;function Jn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Qn}var tr=Jn,er="[object Arguments]",nr="[object Array]",rr="[object Boolean]",ir="[object Date]",or="[object Error]",ar="[object Function]",sr="[object Map]",ur="[object Number]",cr="[object Object]",lr="[object RegExp]",hr="[object Set]",fr="[object String]",pr="[object WeakMap]",dr="[object ArrayBuffer]",vr="[object DataView]",gr="[object Float32Array]",mr="[object Float64Array]",yr="[object Int8Array]",_r="[object Int16Array]",br="[object Int32Array]",wr="[object Uint8Array]",xr="[object Uint8ClampedArray]",Or="[object Uint16Array]",Sr="[object Uint32Array]",Er={};function Tr(t){return gt(t)&&tr(t.length)&&!!Er[dt(t)]}Er[gr]=Er[mr]=Er[yr]=Er[_r]=Er[br]=Er[wr]=Er[xr]=Er[Or]=Er[Sr]=!0,Er[er]=Er[nr]=Er[dr]=Er[rr]=Er[vr]=Er[ir]=Er[or]=Er[ar]=Er[sr]=Er[ur]=Er[cr]=Er[lr]=Er[hr]=Er[fr]=Er[pr]=!1;var Mr=Tr;function Ar(t){return function(e){return t(e)}}var Cr=Ar,Pr=n("01ff"),kr=Pr["a"]&&Pr["a"].isTypedArray,Dr=kr?Cr(kr):Mr,Lr=Dr,Rr=Object.prototype,Ir=Rr.hasOwnProperty;function jr(t,e){var n=Yn(t),r=!n&&Fn(t),i=!n&&!r&&Object(Xn["a"])(t),o=!n&&!r&&!i&&Lr(t),a=n||r||i||o,s=a?jn(t.length,String):[],u=s.length;for(var c in t)!e&&!Ir.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Kn(c,u))||s.push(c);return s}var Nr=jr,Vr=Object.prototype;function Gr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Vr;return t===n}var Br=Gr;function Ur(t,e){return function(n){return t(e(n))}}var zr=Ur,Hr=zr(Object.keys,Object),Fr=Hr,Wr=Object.prototype,Yr=Wr.hasOwnProperty;function Xr(t){if(!Br(t))return Fr(t);var e=[];for(var n in Object(t))Yr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var qr=Xr;function Zr(t){return null!=t&&tr(t.length)&&!le(t)}var $r=Zr;function Kr(t){return $r(t)?Nr(t):qr(t)}var Qr=Kr;function Jr(t,e){return t&&Rn(e,Qr(e),t)}var ti=Jr;function ei(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var ni=ei,ri=Object.prototype,ii=ri.hasOwnProperty;function oi(t){if(!q(t))return ni(t);var e=Br(t),n=[];for(var r in t)("constructor"!=r||!e&&ii.call(t,r))&&n.push(r);return n}var ai=oi;function si(t){return $r(t)?Nr(t,!0):ai(t)}var ui=si;function ci(t,e){return t&&Rn(e,ui(e),t)}var li=ci,hi=n("d6f0");function fi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var pi=fi;function di(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var vi=di;function gi(){return[]}var mi=gi,yi=Object.prototype,_i=yi.propertyIsEnumerable,bi=Object.getOwnPropertySymbols,wi=bi?function(t){return null==t?[]:(t=Object(t),vi(bi(t),(function(e){return _i.call(t,e)})))}:mi,xi=wi;function Oi(t,e){return Rn(t,xi(t),e)}var Si=Oi;function Ei(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Ti=Ei,Mi=zr(Object.getPrototypeOf,Object),Ai=Mi,Ci=Object.getOwnPropertySymbols,Pi=Ci?function(t){var e=[];while(t)Ti(e,xi(t)),t=Ai(t);return e}:mi,ki=Pi;function Di(t,e){return Rn(t,ki(t),e)}var Li=Di;function Ri(t,e,n){var r=e(t);return Yn(t)?r:Ti(r,n(t))}var Ii=Ri;function ji(t){return Ii(t,Qr,xi)}var Ni=ji;function Vi(t){return Ii(t,ui,ki)}var Gi=Vi,Bi=De(Z["a"],"DataView"),Ui=Bi,zi=De(Z["a"],"Promise"),Hi=zi,Fi=De(Z["a"],"Set"),Wi=Fi,Yi=De(Z["a"],"WeakMap"),Xi=Yi,qi="[object Map]",Zi="[object Object]",$i="[object Promise]",Ki="[object Set]",Qi="[object WeakMap]",Ji="[object DataView]",to=_e(Ui),eo=_e(Re),no=_e(Hi),ro=_e(Wi),io=_e(Xi),oo=dt;(Ui&&oo(new Ui(new ArrayBuffer(1)))!=Ji||Re&&oo(new Re)!=qi||Hi&&oo(Hi.resolve())!=$i||Wi&&oo(new Wi)!=Ki||Xi&&oo(new Xi)!=Qi)&&(oo=function(t){var e=dt(t),n=e==Zi?t.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case to:return Ji;case eo:return qi;case no:return $i;case ro:return Ki;case io:return Qi}return e});var ao=oo,so=Object.prototype,uo=so.hasOwnProperty;function co(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&uo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var lo=co,ho=Z["a"].Uint8Array,fo=ho;function po(t){var e=new t.constructor(t.byteLength);return new fo(e).set(new fo(t)),e}var vo=po;function go(t,e){var n=e?vo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var mo=go,yo=/\w*$/;function _o(t){var e=new t.constructor(t.source,yo.exec(t));return e.lastIndex=t.lastIndex,e}var bo=_o,wo=J?J.prototype:void 0,xo=wo?wo.valueOf:void 0;function Oo(t){return xo?Object(xo.call(t)):{}}var So=Oo;function Eo(t,e){var n=e?vo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var To=Eo,Mo="[object Boolean]",Ao="[object Date]",Co="[object Map]",Po="[object Number]",ko="[object RegExp]",Do="[object Set]",Lo="[object String]",Ro="[object Symbol]",Io="[object ArrayBuffer]",jo="[object DataView]",No="[object Float32Array]",Vo="[object Float64Array]",Go="[object Int8Array]",Bo="[object Int16Array]",Uo="[object Int32Array]",zo="[object Uint8Array]",Ho="[object Uint8ClampedArray]",Fo="[object Uint16Array]",Wo="[object Uint32Array]";function Yo(t,e,n){var r=t.constructor;switch(e){case Io:return vo(t);case Mo:case Ao:return new r(+t);case jo:return mo(t,n);case No:case Vo:case Go:case Bo:case Uo:case zo:case Ho:case Fo:case Wo:return To(t,n);case Co:return new r;case Po:case Lo:return new r(t);case ko:return bo(t);case Do:return new r;case Ro:return So(t)}}var Xo=Yo,qo=Object.create,Zo=function(){function t(){}return function(e){if(!q(e))return{};if(qo)return qo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),$o=Zo;function Ko(t){return"function"!=typeof t.constructor||Br(t)?{}:$o(Ai(t))}var Qo=Ko,Jo="[object Map]";function ta(t){return gt(t)&&ao(t)==Jo}var ea=ta,na=Pr["a"]&&Pr["a"].isMap,ra=na?Cr(na):ea,ia=ra,oa="[object Set]";function aa(t){return gt(t)&&ao(t)==oa}var sa=aa,ua=Pr["a"]&&Pr["a"].isSet,ca=ua?Cr(ua):sa,la=ca,ha=1,fa=2,pa=4,da="[object Arguments]",va="[object Array]",ga="[object Boolean]",ma="[object Date]",ya="[object Error]",_a="[object Function]",ba="[object GeneratorFunction]",wa="[object Map]",xa="[object Number]",Oa="[object Object]",Sa="[object RegExp]",Ea="[object Set]",Ta="[object String]",Ma="[object Symbol]",Aa="[object WeakMap]",Ca="[object ArrayBuffer]",Pa="[object DataView]",ka="[object Float32Array]",Da="[object Float64Array]",La="[object Int8Array]",Ra="[object Int16Array]",Ia="[object Int32Array]",ja="[object Uint8Array]",Na="[object Uint8ClampedArray]",Va="[object Uint16Array]",Ga="[object Uint32Array]",Ba={};function Ua(t,e,n,r,i,o){var a,s=e&ha,u=e&fa,c=e&pa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!q(t))return t;var l=Yn(t);if(l){if(a=lo(t),!s)return pi(t,a)}else{var h=ao(t),f=h==_a||h==ba;if(Object(Xn["a"])(t))return Object(hi["a"])(t,s);if(h==Oa||h==da||f&&!i){if(a=u||f?{}:Qo(t),!s)return u?Li(t,li(a,t)):Si(t,ti(a,t))}else{if(!Ba[h])return i?t:{};a=Xo(t,h,s)}}o||(o=new xn);var p=o.get(t);if(p)return p;o.set(t,a),la(t)?t.forEach((function(r){a.add(Ua(r,e,n,r,t,o))})):ia(t)&&t.forEach((function(r,i){a.set(i,Ua(r,e,n,i,t,o))}));var d=c?u?Gi:Ni:u?keysIn:Qr,v=l?void 0:d(t);return Sn(v||t,(function(r,i){v&&(i=r,r=t[i]),Dn(a,i,Ua(r,e,n,i,t,o))})),a}Ba[da]=Ba[va]=Ba[Ca]=Ba[Pa]=Ba[ga]=Ba[ma]=Ba[ka]=Ba[Da]=Ba[La]=Ba[Ra]=Ba[Ia]=Ba[wa]=Ba[xa]=Ba[Oa]=Ba[Sa]=Ba[Ea]=Ba[Ta]=Ba[Ma]=Ba[ja]=Ba[Na]=Ba[Va]=Ba[Ga]=!0,Ba[ya]=Ba[_a]=Ba[Aa]=!1;var za=Ua,Ha=1,Fa=4;function Wa(t){return za(t,Ha|Fa)}var Ya=Wa;function Xa(t,e,n){(void 0===n||jt(t[e],n))&&(void 0!==n||e in t)||An(t,e,n)}var qa=Xa;function Za(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var $a=Za,Ka=$a(),Qa=Ka;function Ja(t){return gt(t)&&$r(t)}var ts=Ja,es="[object Object]",ns=Function.prototype,rs=Object.prototype,is=ns.toString,os=rs.hasOwnProperty,as=is.call(Object);function ss(t){if(!gt(t)||dt(t)!=es)return!1;var e=Ai(t);if(null===e)return!0;var n=os.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&is.call(n)==as}var us=ss;function cs(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ls=cs;function hs(t){return Rn(t,ui(t))}var fs=hs;function ps(t,e,n,r,i,o,a){var s=ls(t,n),u=ls(e,n),c=a.get(u);if(c)qa(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Yn(u),p=!f&&Object(Xn["a"])(u),d=!f&&!p&&Lr(u);l=u,f||p||d?Yn(s)?l=s:ts(s)?l=pi(s):p?(h=!1,l=Object(hi["a"])(u,!0)):d?(h=!1,l=To(u,!0)):l=[]:us(u)||Fn(u)?(l=s,Fn(s)?l=fs(s):q(s)&&!le(s)||(l=Qo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),qa(t,n,l)}}var ds=ps;function vs(t,e,n,r,i){t!==e&&Qa(e,(function(o,a){if(i||(i=new xn),q(o))ds(t,e,a,n,vs,r,i);else{var s=r?r(ls(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),qa(t,a,s)}}),ui)}var gs=vs;function ms(t){return t}var ys=ms;function _s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var bs=_s,ws=Math.max;function xs(t,e,n){return e=ws(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=ws(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),bs(t,this,s)}}var Os=xs;function Ss(t){return function(){return t}}var Es=Ss,Ts=Tn?function(t,e){return Tn(t,"toString",{configurable:!0,enumerable:!1,value:Es(e),writable:!0})}:ys,Ms=Ts,As=800,Cs=16,Ps=Date.now;function ks(t){var e=0,n=0;return function(){var r=Ps(),i=Cs-(r-n);if(n=r,i>0){if(++e>=As)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ds=ks,Ls=Ds(Ms),Rs=Ls;function Is(t,e){return Rs(Os(t,e,ys),t+"")}var js=Is;function Ns(t,e,n){if(!q(n))return!1;var r=typeof e;return!!("number"==r?$r(n)&&Kn(e,n.length):"string"==r&&e in n)&&jt(n[e],t)}var Vs=Ns;function Gs(t){return js((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Vs(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var Bs=Gs,Us=Bs((function(t,e,n){gs(t,e,n)})),zs=Us,Hs="__lodash_hash_undefined__";function Fs(t){return this.__data__.set(t,Hs),this}var Ws=Fs;function Ys(t){return this.__data__.has(t)}var Xs=Ys;function qs(t){var e=-1,n=null==t?0:t.length;this.__data__=new mn;while(++e<n)this.add(t[e])}qs.prototype.add=qs.prototype.push=Ws,qs.prototype.has=Xs;var Zs=qs;function $s(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var Ks=$s;function Qs(t){return t!==t}var Js=Qs;function tu(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var eu=tu;function nu(t,e,n){return e===e?eu(t,e,n):Ks(t,Js,n)}var ru=nu;function iu(t,e){var n=null==t?0:t.length;return!!n&&ru(t,e,0)>-1}var ou=iu;function au(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var su=au;function uu(t,e){return t.has(e)}var cu=uu;function lu(){}var hu=lu;function fu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var pu=fu,du=1/0,vu=Wi&&1/pu(new Wi([,-0]))[1]==du?function(t){return new Wi(t)}:hu,gu=vu,mu=200;function yu(t,e,n){var r=-1,i=ou,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=su;else if(o>=mu){var c=e?null:gu(t);if(c)return pu(c);a=!1,i=cu,u=new Zs}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var _u=yu;function bu(t){return t&&t.length?_u(t):[]}var wu=bu;function xu(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var Ou=xu;function Su(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=Mt(n),n=n===n?n:0),void 0!==e&&(e=Mt(e),e=e===e?e:0),Ou(Mt(t),e,n)}var Eu=Su,Tu="[object Map]",Mu="[object Set]",Au=Object.prototype,Cu=Au.hasOwnProperty;function Pu(t){if(null==t)return!0;if($r(t)&&(Yn(t)||"string"==typeof t||"function"==typeof t.splice||Object(Xn["a"])(t)||Lr(t)||Fn(t)))return!t.length;var e=ao(t);if(e==Tu||e==Mu)return!t.size;if(Br(t))return!qr(t).length;for(var n in t)if(Cu.call(t,n))return!1;return!0}var ku=Pu;function Du(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Lu=Du,Ru=1,Iu=2;function ju(t,e,n,r,i,o){var a=n&Ru,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&Iu?new Zs:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!Lu(e,(function(t,e){if(!cu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var Nu=ju;function Vu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Gu=Vu,Bu=1,Uu=2,zu="[object Boolean]",Hu="[object Date]",Fu="[object Error]",Wu="[object Map]",Yu="[object Number]",Xu="[object RegExp]",qu="[object Set]",Zu="[object String]",$u="[object Symbol]",Ku="[object ArrayBuffer]",Qu="[object DataView]",Ju=J?J.prototype:void 0,tc=Ju?Ju.valueOf:void 0;function ec(t,e,n,r,i,o,a){switch(n){case Qu:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ku:return!(t.byteLength!=e.byteLength||!o(new fo(t),new fo(e)));case zu:case Hu:case Yu:return jt(+t,+e);case Fu:return t.name==e.name&&t.message==e.message;case Xu:case Zu:return t==e+"";case Wu:var s=Gu;case qu:var u=r&Bu;if(s||(s=pu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Uu,a.set(t,e);var l=Nu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case $u:if(tc)return tc.call(t)==tc.call(e)}return!1}var nc=ec,rc=1,ic=Object.prototype,oc=ic.hasOwnProperty;function ac(t,e,n,r,i,o){var a=n&rc,s=Ni(t),u=s.length,c=Ni(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:oc.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],m=e[f];if(r)var y=a?r(m,g,f,e,t,o):r(g,m,f,t,e,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var sc=ac,uc=1,cc="[object Arguments]",lc="[object Array]",hc="[object Object]",fc=Object.prototype,pc=fc.hasOwnProperty;function dc(t,e,n,r,i,o){var a=Yn(t),s=Yn(e),u=a?lc:ao(t),c=s?lc:ao(e);u=u==cc?hc:u,c=c==cc?hc:c;var l=u==hc,h=c==hc,f=u==c;if(f&&Object(Xn["a"])(t)){if(!Object(Xn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new xn),a||Lr(t)?Nu(t,e,n,r,i,o):nc(t,e,u,n,r,i,o);if(!(n&uc)){var p=l&&pc.call(t,"__wrapped__"),d=h&&pc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new xn),i(v,g,n,r,o)}}return!!f&&(o||(o=new xn),sc(t,e,n,r,i,o))}var vc=dc;function gc(t,e,n,r,i){return t===e||(null==t||null==e||!gt(t)&&!gt(e)?t!==t&&e!==e:vc(t,e,n,r,gc,i))}var mc=gc;function yc(t,e){return mc(t,e)}var _c=yc,bc=J?J.isConcatSpreadable:void 0;function wc(t){return Yn(t)||Fn(t)||!!(bc&&t&&t[bc])}var xc=wc;function Oc(t,e,n,r,i){var o=-1,a=t.length;n||(n=xc),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Oc(s,e-1,n,r,i):Ti(i,s):r||(i[i.length]=s)}return i}var Sc=Oc;function Ec(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var Tc=Ec,Mc=1,Ac=2;function Cc(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new xn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?mc(l,c,Mc|Ac,r,h):f))return!1}}return!0}var Pc=Cc;function kc(t){return t===t&&!q(t)}var Dc=kc;function Lc(t){var e=Qr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Dc(i)]}return e}var Rc=Lc;function Ic(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var jc=Ic;function Nc(t){var e=Rc(t);return 1==e.length&&e[0][2]?jc(e[0][0],e[0][1]):function(n){return n===t||Pc(n,t,e)}}var Vc=Nc,Gc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bc=/^\w*$/;function Uc(t,e){if(Yn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!_t(t))||(Bc.test(t)||!Gc.test(t)||null!=e&&t in Object(e))}var zc=Uc,Hc="Expected a function";function Fc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Hc);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fc.Cache||mn),n}Fc.Cache=mn;var Wc=Fc,Yc=500;function Xc(t){var e=Wc(t,(function(t){return n.size===Yc&&n.clear(),t})),n=e.cache;return e}var qc=Xc,Zc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$c=/\\(\\)?/g,Kc=qc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Zc,(function(t,n,r,i){e.push(r?i.replace($c,"$1"):n||t)})),e})),Qc=Kc,Jc=1/0,tl=J?J.prototype:void 0,el=tl?tl.toString:void 0;function nl(t){if("string"==typeof t)return t;if(Yn(t))return Tc(t,nl)+"";if(_t(t))return el?el.call(t):"";var e=t+"";return"0"==e&&1/t==-Jc?"-0":e}var rl=nl;function il(t){return null==t?"":rl(t)}var ol=il;function al(t,e){return Yn(t)?t:zc(t,e)?[t]:Qc(ol(t))}var sl=al,ul=1/0;function cl(t){if("string"==typeof t||_t(t))return t;var e=t+"";return"0"==e&&1/t==-ul?"-0":e}var ll=cl;function hl(t,e){e=sl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[ll(e[n++])];return n&&n==r?t:void 0}var fl=hl;function pl(t,e,n){var r=null==t?void 0:fl(t,e);return void 0===r?n:r}var dl=pl;function vl(t,e){return null!=t&&e in Object(t)}var gl=vl;function ml(t,e,n){e=sl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=ll(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&tr(i)&&Kn(a,i)&&(Yn(t)||Fn(t)))}var yl=ml;function _l(t,e){return null!=t&&yl(t,e,gl)}var bl=_l,wl=1,xl=2;function Ol(t,e){return zc(t)&&Dc(e)?jc(ll(t),e):function(n){var r=dl(n,t);return void 0===r&&r===e?bl(n,t):mc(e,r,wl|xl)}}var Sl=Ol;function El(t){return function(e){return null==e?void 0:e[t]}}var Tl=El;function Ml(t){return function(e){return fl(e,t)}}var Al=Ml;function Cl(t){return zc(t)?Tl(ll(t)):Al(t)}var Pl=Cl;function kl(t){return"function"==typeof t?t:null==t?ys:"object"==typeof t?Yn(t)?Sl(t[0],t[1]):Vc(t):Pl(t)}var Dl=kl;function Ll(t,e){return t&&Qa(t,e,Qr)}var Rl=Ll;function Il(t,e){return function(n,r){if(null==n)return n;if(!$r(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var jl=Il,Nl=jl(Rl),Vl=Nl;function Gl(t,e){var n=-1,r=$r(t)?Array(t.length):[];return Vl(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Bl=Gl;function Ul(t,e){var n=Yn(t)?Tc:Bl;return n(t,Dl(e,3))}var zl=Ul,Hl=1/0;function Fl(t,e){return Sc(zl(t,e),Hl)}var Wl=Fl;function Yl(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var Xl=Yl;function ql(t){return function(e){return null==t?void 0:t[e]}}var Zl=ql,$l={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Kl=Zl($l),Ql=Kl,Jl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,th="\\u0300-\\u036f",eh="\\ufe20-\\ufe2f",nh="\\u20d0-\\u20ff",rh=th+eh+nh,ih="["+rh+"]",oh=RegExp(ih,"g");function ah(t){return t=ol(t),t&&t.replace(Jl,Ql).replace(oh,"")}var sh=ah,uh=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ch(t){return t.match(uh)||[]}var lh=ch,hh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fh(t){return hh.test(t)}var ph=fh,dh="\\ud800-\\udfff",vh="\\u0300-\\u036f",gh="\\ufe20-\\ufe2f",mh="\\u20d0-\\u20ff",yh=vh+gh+mh,_h="\\u2700-\\u27bf",bh="a-z\\xdf-\\xf6\\xf8-\\xff",wh="\\xac\\xb1\\xd7\\xf7",xh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Oh="\\u2000-\\u206f",Sh=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Eh="A-Z\\xc0-\\xd6\\xd8-\\xde",Th="\\ufe0e\\ufe0f",Mh=wh+xh+Oh+Sh,Ah="['’]",Ch="["+Mh+"]",Ph="["+yh+"]",kh="\\d+",Dh="["+_h+"]",Lh="["+bh+"]",Rh="[^"+dh+Mh+kh+_h+bh+Eh+"]",Ih="\\ud83c[\\udffb-\\udfff]",jh="(?:"+Ph+"|"+Ih+")",Nh="[^"+dh+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",Gh="[\\ud800-\\udbff][\\udc00-\\udfff]",Bh="["+Eh+"]",Uh="\\u200d",zh="(?:"+Lh+"|"+Rh+")",Hh="(?:"+Bh+"|"+Rh+")",Fh="(?:"+Ah+"(?:d|ll|m|re|s|t|ve))?",Wh="(?:"+Ah+"(?:D|LL|M|RE|S|T|VE))?",Yh=jh+"?",Xh="["+Th+"]?",qh="(?:"+Uh+"(?:"+[Nh,Vh,Gh].join("|")+")"+Xh+Yh+")*",Zh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$h="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kh=Xh+Yh+qh,Qh="(?:"+[Dh,Vh,Gh].join("|")+")"+Kh,Jh=RegExp([Bh+"?"+Lh+"+"+Fh+"(?="+[Ch,Bh,"$"].join("|")+")",Hh+"+"+Wh+"(?="+[Ch,Bh+zh,"$"].join("|")+")",Bh+"?"+zh+"+"+Fh,Bh+"+"+Wh,$h,Zh,kh,Qh].join("|"),"g");function tf(t){return t.match(Jh)||[]}var ef=tf;function nf(t,e,n){return t=ol(t),e=n?void 0:e,void 0===e?ph(t)?ef(t):lh(t):t.match(e)||[]}var rf=nf,of="['’]",af=RegExp(of,"g");function sf(t){return function(e){return Xl(rf(sh(e).replace(af,"")),t,"")}}var uf=sf,cf=uf((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),lf=cf;function hf(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var ff=hf;function pf(t,e){var n;return Vl(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var df=pf;function vf(t,e,n){var r=Yn(t)?Lu:df;return n&&Vs(t,e,n)&&(e=void 0),r(t,Dl(e,3))}var gf=vf,mf={},yf=null;if("undefined"!==typeof document){var _f=document.documentElement;"onmouseenter"in _f||(mf={mouseenter:"mouseover",mouseleave:"mouseout"})}function bf(t,e,n){return t=wf(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function wf(t,e,n){return function(r){var i=yf;yf=r;try{t.call(this,this.__data__,e,n)}finally{yf=i}}}function xf(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Of(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function Sf(t,e,n){var r=mf.hasOwnProperty(t.type)?bf:wf;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}var Ef=function(t,e,n){var r,i,o=xf(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Sf:Of,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function Tf(t,e,n,r){var i=yf;t.sourceEvent=yf,yf=t;try{return e.apply(n,r)}finally{yf=i}}var Mf,Af=function(){var t,e=yf;while(t=e.sourceEvent)e=t;return e},Cf=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Pf=function(t){var e=Af();return e.changedTouches&&(e=e.changedTouches[0]),Cf(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=Pf(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===k.TIME?o["mapsTo"]="date":s===k.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===C.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===C.FRONT_LINE?"..."+t.substr(-n):e===C.END_LINE?t.substr(0,n)+"...":void 0}function l(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function h(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function f(t){return t.each((function(){this.parentNode.appendChild(this)}))}function p(t,e,n){return n===P.VERTICAL?[t,e]:[e,t]}t.debounce=Dt,t.clone=Ya,t.merge=zs,t.removeArrayDuplicates=wu,t.clamp=Eu,t.isEmpty=ku,t.isEqual=_c,t.flatMapDeep=Wl,t.kebabCase=lf,t.fromPairs=ff,t.some=gf,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.arrayDifferences=l,t.getDuplicateValues=h,t.moveToFront=f,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===P.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=p,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(Mf||(Mf={}));var kf,Df=n("39ba"),Lf=n.n(Df),Rf={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},If={opacity:{unselected:0,selected:.4}},jf={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},paddingRatio:.1},Nf={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},Vf={opacity:{unselected:.3,selected:1}},Gf={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},Bf={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},Uf={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},zf={default:{size:24}},Hf={horizontalOffset:10},Ff={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},Wf={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Yf={height:(kf={},kf[A.GRAPH_VIEW]=32,kf[A.SLIDER_VIEW]=10,kf),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Xf={type:C.END_LINE,threshold:16,numCharacter:14},qf={enabled:!0,position:D.BOTTOM,clickable:!0,truncation:Xf,alignment:L.LEFT,order:null},Zf={x:{enabled:!0,numberOfTicks:15},y:{enabled:!0,numberOfTicks:5}},$f={enabled:!0},Kf={enabled:!0,showTotal:!0,valueFormatter:function(t){return t.toLocaleString()},truncation:Xf},Qf={top:{visible:!0,includeZero:!0,truncation:Xf},bottom:{visible:!0,includeZero:!0,truncation:Xf},left:{visible:!0,includeZero:!0,truncation:Xf},right:{visible:!0,includeZero:!0,truncation:Xf}},Jf={addSpaceOnEdges:1,showDayName:!1,localeObject:Lf.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},tp={width:null,height:null,resizable:!0,tooltip:Kf,legend:qf,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},ep=Mf.merge({},tp,{axes:Qf,timeScale:Jf,grid:Zf,ruler:$f,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:A.GRAPH_VIEW},updateRangeAxis:!1},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),np=Mf.merge({},ep,{bars:{maxWidth:16},timeScale:Mf.merge(Jf,{addSpaceOnEdges:1})}),rp=Mf.merge({},np,{}),ip=Mf.merge({},np,{}),op=Mf.merge({},np,{bars:Mf.merge({},np.bars,{dividerSize:1.5})}),ap=Mf.merge({},ep,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),sp=Mf.merge({},ap,{points:{radius:3,filled:!1,enabled:!0}}),up=Mf.merge({},sp,{timeScale:Mf.merge(Jf,{addSpaceOnEdges:0})}),cp=up,lp=Mf.merge({},ep,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0}}),hp=Mf.merge({},tp,{pie:{labels:{formatter:null},alignment:L.LEFT}}),fp=Mf.merge({},tp,{legend:{enabled:!1},gauge:{type:U.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()},alignment:L.LEFT}}),pp=Mf.merge({},hp,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}},alignment:L.LEFT}}),dp=Mf.merge({},tp,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),vp=Mf.merge({},tp,{radar:{axes:{angle:"key",value:"value"},alignment:L.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),gp=Mf.merge({},tp,{data:Mf.merge(tp.data,{groupMapsTo:"name"})}),mp={chart:tp,axisChart:ep,simpleBarChart:rp,groupedBarChart:ip,stackedBarChart:op,bubbleChart:lp,lineChart:sp,areaChart:up,stackedAreaChart:cp,scatterChart:ap,pieChart:hp,donutChart:pp,meterChart:dp,radarChart:vp,gaugeChart:fp,treemapChart:gp},yp="$";function _p(){}function bp(t,e){var n=new _p;if(t instanceof _p)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}_p.prototype=bp.prototype={constructor:_p,has:function(t){return yp+t in this},get:function(t){return this[yp+t]},set:function(t,e){return this[yp+t]=e,this},remove:function(t){var e=yp+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===yp&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===yp&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===yp&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===yp&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===yp&&++t;return t},empty:function(){for(var t in this)if(t[0]===yp)return!1;return!0},each:function(t){for(var e in this)e[0]===yp&&t(this[e],e.slice(1),this)}};var wp=bp;function xp(){}var Op=wp.prototype;function Sp(t,e){var n=new xp;if(t instanceof xp)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}xp.prototype=Sp.prototype={constructor:xp,has:Op.has,add:function(t){return t+="",this[yp+t]=t,this},remove:Op.remove,clear:Op.clear,values:Op.keys,size:Op.size,empty:Op.empty,each:Op.each};var Ep=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Tp=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Mp=function(t){return 1===t.length&&(t=Ap(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function Ap(t){return function(e,n){return Tp(t(e),n)}}var Cp=Mp(Tp),Pp=Cp.right,kp=(Cp.left,Pp);var Dp=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},Lp=Array.prototype,Rp=(Lp.slice,Lp.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),Ip=Math.sqrt(50),jp=Math.sqrt(10),Np=Math.sqrt(2),Vp=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=Gp(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function Gp(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ip?10:o>=jp?5:o>=Np?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ip?10:o>=jp?5:o>=Np?2:1)}function Bp(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ip?i*=10:o>=jp?i*=5:o>=Np&&(i*=2),e<t?-i:i}var Up=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&n>r&&(r=n)}return r},zp=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r},Hp=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function Fp(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Wp=Array.prototype,Yp=Wp.map,Xp=Wp.slice,qp={name:"implicit"};function Zp(){var t=wp(),e=[],n=[],r=qp;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==qp)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=wp();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=Xp.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Zp(e,n).unknown(r)},Fp.apply(i,arguments),i}function $p(){var t,e,n=Zp().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=Rp(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return $p(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},Fp.apply(l(),arguments)}var Kp=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Qp(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Jp(){}var td=.7,ed=1/td,nd="\\s*([+-]?\\d+)\\s*",rd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",id="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",od=/^#([0-9a-f]{3,8})$/,ad=new RegExp("^rgb\\("+[nd,nd,nd]+"\\)$"),sd=new RegExp("^rgb\\("+[id,id,id]+"\\)$"),ud=new RegExp("^rgba\\("+[nd,nd,nd,rd]+"\\)$"),cd=new RegExp("^rgba\\("+[id,id,id,rd]+"\\)$"),ld=new RegExp("^hsl\\("+[rd,id,id]+"\\)$"),hd=new RegExp("^hsla\\("+[rd,id,id,rd]+"\\)$"),fd={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function pd(){return this.rgb().formatHex()}function dd(){return Td(this).formatHsl()}function vd(){return this.rgb().formatRgb()}function gd(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=od.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?md(e):3===n?new wd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new wd(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new wd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ad.exec(t))?new wd(e[1],e[2],e[3],1):(e=sd.exec(t))?new wd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ud.exec(t))?yd(e[1],e[2],e[3],e[4]):(e=cd.exec(t))?yd(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ld.exec(t))?Ed(e[1],e[2]/100,e[3]/100,1):(e=hd.exec(t))?Ed(e[1],e[2]/100,e[3]/100,e[4]):fd.hasOwnProperty(t)?md(fd[t]):"transparent"===t?new wd(NaN,NaN,NaN,0):null}function md(t){return new wd(t>>16&255,t>>8&255,255&t,1)}function yd(t,e,n,r){return r<=0&&(t=e=n=NaN),new wd(t,e,n,r)}function _d(t){return t instanceof Jp||(t=gd(t)),t?(t=t.rgb(),new wd(t.r,t.g,t.b,t.opacity)):new wd}function bd(t,e,n,r){return 1===arguments.length?_d(t):new wd(t,e,n,null==r?1:r)}function wd(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function xd(){return"#"+Sd(this.r)+Sd(this.g)+Sd(this.b)}function Od(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Sd(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ed(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ad(t,e,n,r)}function Td(t){if(t instanceof Ad)return new Ad(t.h,t.s,t.l,t.opacity);if(t instanceof Jp||(t=gd(t)),!t)return new Ad;if(t instanceof Ad)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Ad(a,s,u,t.opacity)}function Md(t,e,n,r){return 1===arguments.length?Td(t):new Ad(t,e,n,null==r?1:r)}function Ad(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Cd(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pd(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Kp(Jp,gd,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:pd,formatHex:pd,formatHsl:dd,formatRgb:vd,toString:vd}),Kp(wd,bd,Qp(Jp,{brighter:function(t){return t=null==t?ed:Math.pow(ed,t),new wd(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?td:Math.pow(td,t),new wd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xd,formatHex:xd,formatRgb:Od,toString:Od})),Kp(Ad,Md,Qp(Jp,{brighter:function(t){return t=null==t?ed:Math.pow(ed,t),new Ad(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?td:Math.pow(td,t),new Ad(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new wd(Cd(t>=240?t-240:t+120,i,r),Cd(t,i,r),Cd(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var kd=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Pd((n-r/e)*e,a,i,o,s)}},Dd=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Pd((n-r/e)*e,i,o,a,s)}},Ld=function(t){return function(){return t}};function Rd(t,e){return function(n){return t+n*e}}function Id(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function jd(t){return 1===(t=+t)?Nd:function(e,n){return n-e?Id(e,n,t):Ld(isNaN(e)?n:e)}}function Nd(t,e){var n=e-t;return n?Rd(t,n):Ld(isNaN(t)?e:t)}var Vd=function t(e){var n=jd(e);function r(t,e){var r=n((t=bd(t)).r,(e=bd(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Nd(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Gd(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=bd(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Gd(kd),Gd(Dd);var Bd=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Ud(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function zd(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Kd(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Hd=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Fd=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Wd=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=Kd(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Yd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xd=new RegExp(Yd.source,"g");function qd(t){return function(){return t}}function Zd(t){return function(e){return t(e)+""}}var $d=function(t,e){var n,r,i,o=Yd.lastIndex=Xd.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Yd.exec(t))&&(r=Xd.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Fd(n,r)})),o=Xd.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Zd(u[0].x):qd(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},Kd=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ld(e):("number"===r?Fd:"string"===r?(n=gd(e))?(e=n,Vd):$d:e instanceof gd?Vd:e instanceof Date?Hd:Ud(e)?Bd:Array.isArray(e)?zd:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Wd:Fd)(t,e)},Qd=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Jd=function(t){return function(){return t}},tv=function(t){return+t},ev=[0,1];function nv(t){return t}function rv(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Jd(isNaN(e)?NaN:.5)}function iv(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function ov(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=rv(i,r),o=n(a,o)):(r=rv(r,i),o=n(o,a)),function(t){return o(r(t))}}function av(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=rv(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=kp(t,e,1,r)-1;return o[n](i[n](e))}}function sv(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function uv(){var t,e,n,r,i,o,a=ev,s=ev,u=Kd,c=nv;function l(){return r=Math.min(a.length,s.length)>2?av:ov,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),Fd)))(n)))},h.domain=function(t){return arguments.length?(a=Yp.call(t,tv),c===nv||(c=iv(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Xp.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Xp.call(t),u=Qd,l()},h.clamp=function(t){return arguments.length?(c=t?iv(a):nv,h):c!==nv},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function cv(t,e){return uv()(t,e)}var lv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hv(t){if(!(e=lv.exec(t)))throw new Error("invalid format: "+t);var e;return new fv({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function fv(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}hv.prototype=fv.prototype,fv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var pv,dv,vv,gv,mv=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]},yv=function(t){return t=mv(Math.abs(t)),t?t[1]:NaN},_v=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(yv(e)/3)))-yv(Math.abs(t)))},bv=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},wv=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},xv=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},Ov=function(t,e){var n=mv(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(pv=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+mv(t,Math.max(0,e+o-1))[0]},Sv=function(t,e){var n=mv(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Ev={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Sv(100*t,e)},r:Sv,s:Ov,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Tv=function(t){return t},Mv=Array.prototype.map,Av=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Cv=function(t){var e=void 0===t.grouping||void 0===t.thousands?Tv:bv(Mv.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Tv:wv(Mv.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){t=hv(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):Ev[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",w=Ev[y],x=/[defgprs%]/.test(y);function O(t){var n,r,a,f=_,O=b;if("c"===y)O=w(t)+O,t="";else{t=+t;var S=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),m&&(t=xv(t)),S&&0===+t&&(S=!1),f=(S?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===y?Av[8+pv/3]:"")+O+(S&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var E=f.length+t.length+O.length,T=E<d?new Array(d-E+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-O.length:1/0),T=""),l){case"<":t=f+t+O+T;break;case"=":t=f+T+t+O;break;case"^":t=T.slice(0,E=T.length>>1)+f+t+O+T.slice(E);break;default:t=T+f+t+O;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=hv(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(yv(e)/3))),i=Math.pow(10,-r),o=Av[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Pv(t){return dv=Cv(t),vv=dv.format,gv=dv.formatPrefix,dv}Pv({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var kv=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,yv(e)-yv(t))+1},Dv=function(t){return Math.max(0,-yv(Math.abs(t)))},Lv=function(t,e,n,r){var i,o=Bp(t,e,n);switch(r=hv(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=_v(o,a))||(r.precision=i),gv(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=kv(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Dv(o))||(r.precision=i-2*("%"===r.type));break}return vv(r)};function Rv(t){var e=t.domain;return t.ticks=function(t){var n=e();return Vp(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Lv(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=Gp(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=Gp(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=Gp(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Iv(){var t=cv(nv,nv);return t.copy=function(){return sv(t,Iv())},Fp.apply(t,arguments),Rv(t)}var jv=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function Nv(t){return Math.log(t)}function Vv(t){return Math.exp(t)}function Gv(t){return-Math.log(-t)}function Bv(t){return-Math.exp(-t)}function Uv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function zv(t){return 10===t?Uv:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Hv(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function Fv(t){return function(e){return-t(-e)}}function Wv(t){var e,n,r=t(Nv,Vv),i=r.domain,o=10;function a(){return e=Hv(o),n=zv(o),i()[0]<0?(e=Fv(e),n=Fv(n),t(Gv,Bv)):t(Nv,Vv),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=Vp(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=vv(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(jv(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Yv(){var t=Wv(uv()).domain([1,10]);return t.copy=function(){return sv(t,Yv()).base(t.base())},Fp.apply(t,arguments),t}var Xv=new Date,qv=new Date;function Zv(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Zv((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return Xv.setTime(+e),qv.setTime(+r),t(Xv),t(qv),Math.floor(n(Xv,qv))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var $v=Zv((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));$v.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zv((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Kv=$v,Qv=($v.range,Zv((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Jv=Qv,tg=(Qv.range,1e3),eg=6e4,ng=36e5,rg=864e5,ig=6048e5;function og(t){return Zv((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*eg)/ig}))}var ag=og(0),sg=og(1),ug=og(2),cg=og(3),lg=og(4),hg=og(5),fg=og(6),pg=(ag.range,sg.range,ug.range,cg.range,lg.range,hg.range,fg.range,Zv((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*eg)/rg}),(function(t){return t.getDate()-1}))),dg=pg,vg=(pg.range,Zv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tg-t.getMinutes()*eg)}),(function(t,e){t.setTime(+t+e*ng)}),(function(t,e){return(e-t)/ng}),(function(t){return t.getHours()}))),gg=vg,mg=(vg.range,Zv((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tg)}),(function(t,e){t.setTime(+t+e*eg)}),(function(t,e){return(e-t)/eg}),(function(t){return t.getMinutes()}))),yg=mg,_g=(mg.range,Zv((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*tg)}),(function(t,e){return(e-t)/tg}),(function(t){return t.getUTCSeconds()}))),bg=_g,wg=(_g.range,Zv((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));wg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Zv((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):wg:null};var xg=wg;wg.range;function Og(t){return Zv((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/ig}))}var Sg=Og(0),Eg=Og(1),Tg=Og(2),Mg=Og(3),Ag=Og(4),Cg=Og(5),Pg=Og(6),kg=(Sg.range,Eg.range,Tg.range,Mg.range,Ag.range,Cg.range,Pg.range,Zv((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/rg}),(function(t){return t.getUTCDate()-1}))),Dg=kg,Lg=(kg.range,Zv((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Lg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zv((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Rg=Lg;Lg.range;function Ig(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function jg(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ng(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Vg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=Xg(i),l=qg(i),h=Xg(o),f=qg(o),p=Xg(a),d=qg(a),v=Xg(s),g=qg(s),m=Xg(u),y=qg(u),_={a:L,A:R,b:I,B:j,c:null,d:vm,e:vm,f:bm,H:gm,I:mm,j:ym,L:_m,m:wm,M:xm,p:N,q:V,Q:$m,s:Km,S:Om,u:Sm,U:Em,V:Tm,w:Mm,W:Am,x:null,X:null,y:Cm,Y:Pm,Z:km,"%":Zm},b={a:G,A:B,b:U,B:z,c:null,d:Dm,e:Dm,f:Nm,H:Lm,I:Rm,j:Im,L:jm,m:Vm,M:Gm,p:H,q:F,Q:$m,s:Km,S:Bm,u:Um,U:zm,V:Hm,w:Fm,W:Wm,x:null,X:null,y:Ym,Y:Xm,Z:qm,"%":Zm},w={a:T,A:M,b:A,B:C,c:P,d:om,e:om,f:hm,H:sm,I:sm,j:am,L:lm,m:im,M:um,p:E,q:rm,Q:pm,s:dm,S:cm,u:$g,U:Kg,V:Qg,w:Zg,W:Jg,x:k,X:D,y:em,Y:tm,Z:nm,"%":fm};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=Ug[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(n){var r,i,o=Ng(1900,void 0,1),a=S(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=jg(Ng(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Eg.ceil(r):Eg(r),r=Dg.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Ig(Ng(o.y,0,1)),i=r.getDay(),r=i>4||0===i?sg.ceil(r):sg(r),r=dg.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?jg(Ng(o.y,0,1)).getUTCDay():Ig(Ng(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,jg(o)):Ig(o)}}function S(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=w[i in Ug?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function E(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return S(t,e,n,r)}function k(t,e,r){return S(t,n,e,r)}function D(t,e,n){return S(t,r,e,n)}function L(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function j(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function V(t){return 1+~~(t.getMonth()/3)}function G(t){return a[t.getUTCDay()]}function B(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function z(t){return s[t.getUTCMonth()]}function H(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}})}var Gg,Bg,Ug={"-":"",_:" ",0:"0"},zg=/^\s*\d+/,Hg=/^%/,Fg=/[\\^$*+?|[\]().{}]/g;function Wg(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Yg(t){return t.replace(Fg,"\\$&")}function Xg(t){return new RegExp("^(?:"+t.map(Yg).join("|")+")","i")}function qg(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Zg(t,e,n){var r=zg.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function $g(t,e,n){var r=zg.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Kg(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Qg(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Jg(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function tm(t,e,n){var r=zg.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function em(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nm(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function rm(t,e,n){var r=zg.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function im(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function om(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function am(t,e,n){var r=zg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function sm(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function um(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function cm(t,e,n){var r=zg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function lm(t,e,n){var r=zg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hm(t,e,n){var r=zg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fm(t,e,n){var r=Hg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function pm(t,e,n){var r=zg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function dm(t,e,n){var r=zg.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function vm(t,e){return Wg(t.getDate(),e,2)}function gm(t,e){return Wg(t.getHours(),e,2)}function mm(t,e){return Wg(t.getHours()%12||12,e,2)}function ym(t,e){return Wg(1+dg.count(Kv(t),t),e,3)}function _m(t,e){return Wg(t.getMilliseconds(),e,3)}function bm(t,e){return _m(t,e)+"000"}function wm(t,e){return Wg(t.getMonth()+1,e,2)}function xm(t,e){return Wg(t.getMinutes(),e,2)}function Om(t,e){return Wg(t.getSeconds(),e,2)}function Sm(t){var e=t.getDay();return 0===e?7:e}function Em(t,e){return Wg(ag.count(Kv(t)-1,t),e,2)}function Tm(t,e){var n=t.getDay();return t=n>=4||0===n?lg(t):lg.ceil(t),Wg(lg.count(Kv(t),t)+(4===Kv(t).getDay()),e,2)}function Mm(t){return t.getDay()}function Am(t,e){return Wg(sg.count(Kv(t)-1,t),e,2)}function Cm(t,e){return Wg(t.getFullYear()%100,e,2)}function Pm(t,e){return Wg(t.getFullYear()%1e4,e,4)}function km(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Wg(e/60|0,"0",2)+Wg(e%60,"0",2)}function Dm(t,e){return Wg(t.getUTCDate(),e,2)}function Lm(t,e){return Wg(t.getUTCHours(),e,2)}function Rm(t,e){return Wg(t.getUTCHours()%12||12,e,2)}function Im(t,e){return Wg(1+Dg.count(Rg(t),t),e,3)}function jm(t,e){return Wg(t.getUTCMilliseconds(),e,3)}function Nm(t,e){return jm(t,e)+"000"}function Vm(t,e){return Wg(t.getUTCMonth()+1,e,2)}function Gm(t,e){return Wg(t.getUTCMinutes(),e,2)}function Bm(t,e){return Wg(t.getUTCSeconds(),e,2)}function Um(t){var e=t.getUTCDay();return 0===e?7:e}function zm(t,e){return Wg(Sg.count(Rg(t)-1,t),e,2)}function Hm(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Ag(t):Ag.ceil(t),Wg(Ag.count(Rg(t),t)+(4===Rg(t).getUTCDay()),e,2)}function Fm(t){return t.getUTCDay()}function Wm(t,e){return Wg(Eg.count(Rg(t)-1,t),e,2)}function Ym(t,e){return Wg(t.getUTCFullYear()%100,e,2)}function Xm(t,e){return Wg(t.getUTCFullYear()%1e4,e,4)}function qm(){return"+0000"}function Zm(){return"%"}function $m(t){return+t}function Km(t){return Math.floor(+t/1e3)}function Qm(t){return Gg=Vg(t),Bg=Gg.format,Gg.parse,Gg.utcFormat,Gg.utcParse,Gg}Qm({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Jm=1e3,ty=60*Jm,ey=60*ty,ny=24*ey,ry=7*ny,iy=30*ny,oy=365*ny;function ay(t){return new Date(t)}function sy(t){return t instanceof Date?+t:+new Date(+t)}function uy(t,e,n,r,i,o,a,s,u){var c=cv(nv,nv),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,Jm],[a,5,5*Jm],[a,15,15*Jm],[a,30,30*Jm],[o,1,ty],[o,5,5*ty],[o,15,15*ty],[o,30,30*ty],[i,1,ey],[i,3,3*ey],[i,6,6*ey],[i,12,12*ey],[r,1,ny],[r,2,2*ny],[n,1,ry],[e,1,iy],[e,3,3*iy],[t,1,oy]];function w(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=Mp((function(t){return t[2]})).right(b,o);a===b.length?(i=Bp(n/oy,r/oy,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(Bp(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(Yp.call(t,sy)):h().map(ay)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=x(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?w:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(jv(n,t)):c},c.copy=function(){return sv(c,uy(t,e,n,r,i,o,a,s,u))},c}var cy=function(){return Fp.apply(uy(Kv,Jv,ag,dg,gg,yg,bg,xg,Bg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},ly=Zv((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),hy=(ly.range,Zv((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ng)}),(function(t,e){return(e-t)/ng}),(function(t){return t.getUTCHours()}))),fy=(hy.range,Zv((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*eg)}),(function(t,e){return(e-t)/eg}),(function(t){return t.getUTCMinutes()})));fy.range;var py=Array.prototype.slice,dy=function(t){return function(){return t}},vy=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},gy=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function my(t,e){return t[e]}var yy=function(){var t=dy([]),e=gy,n=vy,r=my;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:dy(py.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:dy(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?gy:"function"===typeof t?t:dy(py.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?vy:t,i):n},i},_y=function(){return _y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},_y.apply(this,arguments)},by=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(){if(!this.get("data"))return null;var t=this.getDataGroups(),e=Mf.clone(this.get("data")),n=this.getOptions().data.groupMapsTo,r=this.getOptions().axes;return r&&Object.keys(r).forEach((function(t){var n=r[t].mapsTo,i=r[t].scaleType;if(i!==k.LINEAR&&i!==k.LOG||(e=e.map((function(t){var e;return _y(_y({},t),(e={},e[n]=Number(t[n]),e))}))),r[t].mapsTo&&r[t].domain)if(i===k.LABELS)e=e.filter((function(e){return r[t].domain.includes(e[n])}));else{var o=r[t].domain,a=o[0],s=o[1];e=e.filter((function(t){return t[n]>=a&&t[n]<=s}))}})),e.filter((function(e){return t.find((function(t){return t.name===e[n]}))}))},t.prototype.getDisplayData=function(){if(!this.get("data"))return null;var t=Nf.items.status.ACTIVE,e=this.getDataGroups(),n=this.getOptions().data.groupMapsTo,r=this.getAllDataFromDomain();return r.filter((function(r){return e.find((function(e){return e.name===r[n]&&e.status===t}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(Mf.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(){var t=Mf.getProperty(this.getOptions(),"data","loading");return t?[]:this.get("dataGroups")},t.prototype.getActiveDataGroups=function(){var t=Nf.items.status.ACTIVE;return this.getDataGroups().filter((function(e){return e.status===t}))},t.prototype.getDataGroupNames=function(){return this.getDataGroups().map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(){return this.getActiveDataGroups().map((function(t){return t.name}))},t.prototype.getGroupedData=function(){var t=this.getDisplayData(),e={},n=this.getOptions().data.groupMapsTo;return t.map((function(t){var r=t[n];null!==e[r]&&void 0!==e[r]?e[r].push(t):e[r]=[t]})),Object.keys(e).map((function(t){return{name:t,data:e[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getDisplayData(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=wp(n,(function(t){return t[r]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=t.axes[a].scaleType;s===k.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==k.LOG&&s!==k.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var o={sharedStackKey:t};return u.forEach((function(a){var s=n.find((function(n){return n[e]===a&&n[r].toString()===t}));o[a]=s?s[i]:null})),o}))},t.prototype.getStackedData=function(t){var e=(void 0===t?{percentage:!1}:t).percentage,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDataGroupNames(),o=this.getDataValuesGroupedByKeys();if(e){var a=Mf.fromPairs(o.map((function(t){return[t.sharedStackKey,0]})));o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]+=t[e]}))})),o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]?t[e]=t[e]/a[t.sharedStackKey]*100:t[e]=0}))}))}return yy().keys(i)(o).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var o=t[n];return o[r]=i[e],o}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:Mf.merge(this.getOptions(),t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(Y.Model.UPDATE,{animate:t}))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=Nf.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(Y.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){if(!this.isUserProvidedColorScaleValid())return null;var r=this.getOptions(),i=this.getFillScale()(t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){if(!this.isUserProvidedColorScaleValid())return null;var r=this.getOptions(),i=this.colorScale(t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.getFillScale=function(){return this.colorScale},t.prototype.isUserProvidedColorScaleValid=function(){var t=Mf.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return!(null==t||Object.keys(t).length<e.length)&&e.every((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){if(this.isUserProvidedColorScaleValid())return t.originalClassName;var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=Mf.getProperty(t,"label");if(null===a){var s=Mf.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=Nf.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=wp(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){if(this.isUserProvidedColorScaleValid()){var t=this.getOptions(),e=Mf.getProperty(t,"color","scale"),n=[];this.allDataGroups.forEach((function(t){e[t]&&n.push(e[t])})),this.colorScale=Zp().range(n).domain(this.allDataGroups)}},t.prototype.setColorClassNames=function(){var t=Mf.getProperty(this.getOptions(),"color","pairing"),e=Mf.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=Mf.getProperty(t,"option"),r=Rf.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.isUserProvidedColorScaleValid()||(this.colorClassNames=Zp().range(o).domain(this.allDataGroups))},t}(),wy=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}();function xy(){}var Oy=function(t){return null==t?xy:function(){return this.querySelector(t)}},Sy=function(t){"function"!==typeof t&&(t=Oy(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new tb(r,this._parents)};function Ey(){return[]}var Ty=function(t){return null==t?Ey:function(){return this.querySelectorAll(t)}},My=function(t){"function"!==typeof t&&(t=Ty(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new tb(r,i)},Ay=function(t){return function(){return this.matches(t)}},Cy=function(t){"function"!==typeof t&&(t=Ay(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new tb(r,this._parents)},Py=function(t){return new Array(t.length)},ky=function(){return new tb(this._enter||this._groups.map(Py),this._parents)};function Dy(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Dy.prototype={constructor:Dy,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ly=function(t){return function(){return t}},Ry="$";function Iy(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Dy(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function jy(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=Ry+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=Ry+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new Dy(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var Ny=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?jy:Iy,r=this._parents,i=this._groups;"function"!==typeof t&&(t=Ly(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,w=0;b<d;++b)if(y=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);y._next=_||null}}return a=new tb(a,r),a._enter=s,a._exit=u,a},Vy=function(){return new tb(this._exit||this._groups.map(Py),this._parents)},Gy=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},By=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new tb(a,this._parents)},Uy=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},zy=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Hy);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new tb(i,this._parents).order()};function Hy(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Fy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Wy=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},Yy=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},Xy=function(){var t=0;return this.each((function(){++t})),t},qy=function(){return!this.node()},Zy=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},$y="http://www.w3.org/1999/xhtml",Ky={svg:"http://www.w3.org/2000/svg",xhtml:$y,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Qy=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ky.hasOwnProperty(e)?{space:Ky[e],local:t}:t};function Jy(t){return function(){this.removeAttribute(t)}}function t_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function e_(t,e){return function(){this.setAttribute(t,e)}}function n_(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function r_(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function i_(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var o_=function(t,e){var n=Qy(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?t_:Jy:"function"===typeof e?n.local?i_:r_:n.local?n_:e_)(n,e))},a_=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function s_(t){return function(){this.style.removeProperty(t)}}function u_(t,e,n){return function(){this.style.setProperty(t,e,n)}}function c_(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var l_=function(t,e,n){return arguments.length>1?this.each((null==e?s_:"function"===typeof e?c_:u_)(t,e,null==n?"":n)):h_(this.node(),t)};function h_(t,e){return t.style.getPropertyValue(e)||a_(t).getComputedStyle(t,null).getPropertyValue(e)}function f_(t){return function(){delete this[t]}}function p_(t,e){return function(){this[t]=e}}function d_(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var v_=function(t,e){return arguments.length>1?this.each((null==e?f_:"function"===typeof e?d_:p_)(t,e)):this.node()[t]};function g_(t){return t.trim().split(/^|\s+/)}function m_(t){return t.classList||new y_(t)}function y_(t){this._node=t,this._names=g_(t.getAttribute("class")||"")}function __(t,e){var n=m_(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function b_(t,e){var n=m_(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function w_(t){return function(){__(this,t)}}function x_(t){return function(){b_(this,t)}}function O_(t,e){return function(){(e.apply(this,arguments)?__:b_)(this,t)}}y_.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var S_=function(t,e){var n=g_(t+"");if(arguments.length<2){var r=m_(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?O_:e?w_:x_)(n,e))};function E_(){this.textContent=""}function T_(t){return function(){this.textContent=t}}function M_(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var A_=function(t){return arguments.length?this.each(null==t?E_:("function"===typeof t?M_:T_)(t)):this.node().textContent};function C_(){this.innerHTML=""}function P_(t){return function(){this.innerHTML=t}}function k_(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var D_=function(t){return arguments.length?this.each(null==t?C_:("function"===typeof t?k_:P_)(t)):this.node().innerHTML};function L_(){this.nextSibling&&this.parentNode.appendChild(this)}var R_=function(){return this.each(L_)};function I_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var j_=function(){return this.each(I_)};function N_(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===$y&&e.documentElement.namespaceURI===$y?e.createElement(t):e.createElementNS(n,t)}}function V_(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var G_=function(t){var e=Qy(t);return(e.local?V_:N_)(e)},B_=function(t){var e="function"===typeof t?t:G_(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function U_(){return null}var z_=function(t,e){var n="function"===typeof t?t:G_(t),r=null==e?U_:"function"===typeof e?e:Oy(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function H_(){var t=this.parentNode;t&&t.removeChild(this)}var F_=function(){return this.each(H_)};function W_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var X_=function(t){return this.select(t?Y_:W_)},q_=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function Z_(t,e,n){var r=a_(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function $_(t,e){return function(){return Z_(this,t,e)}}function K_(t,e){return function(){return Z_(this,t,e.apply(this,arguments))}}var Q_=function(t,e){return this.each(("function"===typeof e?K_:$_)(t,e))},J_=[null];function tb(t,e){this._groups=t,this._parents=e}function eb(){return new tb([[document.documentElement]],J_)}tb.prototype=eb.prototype={constructor:tb,select:Sy,selectAll:My,filter:Cy,data:Ny,enter:ky,exit:Vy,join:Gy,merge:By,order:Uy,sort:zy,call:Fy,nodes:Wy,node:Yy,size:Xy,empty:qy,each:Zy,attr:o_,style:l_,property:v_,classed:S_,text:A_,html:D_,raise:R_,lower:j_,append:B_,insert:z_,remove:F_,clone:X_,datum:q_,on:Ef,dispatch:Q_};var nb=eb,rb=function(t){return"string"===typeof t?new tb([[document.querySelector(t)]],[document.documentElement]):new tb([[t]],J_)},ib={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "},ob=ib,ab=ob,sb=n("2da1"),ub=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cb="DONT_STYLE_ME_css_styles_verifier",lb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ub(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=rb(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:Mf.getProperty(t.node(),"width","baseVal","value"),height:Mf.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===L.CENTER?a=Math.floor((o-i.width)/2):t===L.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();rb(this.getHolder()).classed(ab.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"style","prefix"),n=rb(this.getHolder()).append("svg").classed(ab.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");n.append("g").attr("class",cb),this.svg=n.node()},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=rb(t.svg).select("g."+cb).node(),n=getComputedStyle(e);"hidden"===n.getPropertyValue("overflow")&&"0"===n.getPropertyValue("opacity")||console.error("Missing CSS styles for Carbon Charts. Please read the Carbon Charts getting started guide.")}))},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(rb(this.svg),{useBBox:!0}).height,n=rb(this.svg).attr("class"),r=rb(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(rb(t),{useBBox:!0}).height)})),i<=t?rb(this.svg).attr("height",i):rb(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&rb(e).on("mouseover",(function(){t.services.events.dispatchEvent(Y.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(Y.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=Mf.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent(Y.Chart.RESIZE))}),12.5),o=new sb["a"](i);o.observe(e)}},e}(wy),hb=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hb(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(wy),pb={value:function(){}};function db(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new vb(r)}function vb(t){this._=t}function gb(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function mb(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function yb(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=pb,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}vb.prototype=db.prototype={constructor:vb,on:function(t,e){var n,r=this._,i=gb(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=yb(r[n],t.name,e);else if(null==e)for(n in r)r[n]=yb(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=mb(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new vb(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var _b,bb,wb=db,xb=0,Ob=0,Sb=0,Eb=1e3,Tb=0,Mb=0,Ab=0,Cb="object"===typeof performance&&performance.now?performance:Date,Pb="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kb(){return Mb||(Pb(Db),Mb=Cb.now()+Ab)}function Db(){Mb=0}function Lb(){this._call=this._time=this._next=null}function Rb(t,e,n){var r=new Lb;return r.restart(t,e,n),r}function Ib(){kb(),++xb;var t,e=_b;while(e)(t=Mb-e._time)>=0&&e._call.call(null,t),e=e._next;--xb}function jb(){Mb=(Tb=Cb.now())+Ab,xb=Ob=0;try{Ib()}finally{xb=0,Vb(),Mb=0}}function Nb(){var t=Cb.now(),e=t-Tb;e>Eb&&(Ab-=e,Tb=t)}function Vb(){var t,e,n=_b,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:_b=e);bb=t,Gb(r)}function Gb(t){if(!xb){Ob&&(Ob=clearTimeout(Ob));var e=t-Mb;e>24?(t<1/0&&(Ob=setTimeout(jb,t-Cb.now()-Ab)),Sb&&(Sb=clearInterval(Sb))):(Sb||(Tb=Cb.now(),Sb=setInterval(Nb,Eb)),xb=1,Pb(jb))}}Lb.prototype=Rb.prototype={constructor:Lb,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?kb():+n)+(null==e?0:+e),this._next||bb===this||(bb?bb._next=this:_b=this,bb=this),this._call=t,this._time=n,Gb()},stop:function(){this._call&&(this._call=null,this._time=1/0,Gb())}};var Bb=function(t,e,n){var r=new Lb;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Ub=wb("start","end","cancel","interrupt"),zb=[],Hb=0,Fb=1,Wb=2,Yb=3,Xb=4,qb=5,Zb=6,$b=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};tw(t,n,{name:e,index:r,group:i,on:Ub,tween:zb,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Hb})};function Kb(t,e){var n=Jb(t,e);if(n.state>Hb)throw new Error("too late; already scheduled");return n}function Qb(t,e){var n=Jb(t,e);if(n.state>Yb)throw new Error("too late; already running");return n}function Jb(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function tw(t,e,n){var r,i=t.__transition;function o(t){n.state=Fb,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==Fb)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Yb)return Bb(a);f.state===Xb?(f.state=Zb,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=Zb,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Bb((function(){n.state===Yb&&(n.state=Xb,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Wb,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Wb){for(n.state=Yb,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=qb,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===qb&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=Zb,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Rb(o,0,n.time)}var ew,nw,rw,iw,ow=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>Wb&&n.state<qb,n.state=Zb,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},aw=function(t){return this.each((function(){ow(this,t)}))},sw=180/Math.PI,uw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cw=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*sw,skewX:Math.atan(u)*sw,scaleX:a,scaleY:s}};function lw(t){return"none"===t?uw:(ew||(ew=document.createElement("DIV"),nw=document.documentElement,rw=document.defaultView),ew.style.transform=t,t=rw.getComputedStyle(nw.appendChild(ew),null).getPropertyValue("transform"),nw.removeChild(ew),t=t.slice(7,-1).split(","),cw(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function hw(t){return null==t?uw:(iw||(iw=document.createElementNS("http://www.w3.org/2000/svg","g")),iw.setAttribute("transform",t),(t=iw.transform.baseVal.consolidate())?(t=t.matrix,cw(t.a,t.b,t.c,t.d,t.e,t.f)):uw)}function fw(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:Fd(t,i)},{i:u-2,x:Fd(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fd(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fd(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Fd(t,n)},{i:s-2,x:Fd(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var pw=fw(lw,"px, ","px)","deg)"),dw=fw(hw,", ",")",")");function vw(t,e){var n,r;return function(){var i=Qb(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function gw(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Qb(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var mw=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Jb(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?vw:gw)(n,t,e))};function yw(t,e,n){var r=t._id;return t.each((function(){var t=Qb(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Jb(t,r).value[e]}}var _w=function(t,e){var n;return("number"===typeof e?Fd:e instanceof gd?Vd:(n=gd(e))?(e=n,Vd):$d)(t,e)};function bw(t){return function(){this.removeAttribute(t)}}function ww(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xw(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function Ow(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Sw(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function Ew(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var Tw=function(t,e){var n=Qy(t),r="transform"===n?dw:_w;return this.attrTween(t,"function"===typeof e?(n.local?Ew:Sw)(n,r,yw(this,"attr."+t,e)):null==e?(n.local?ww:bw)(n):(n.local?Ow:xw)(n,r,e))};function Mw(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Aw(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Cw(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Aw(t,i)),n}return i._value=e,i}function Pw(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Mw(t,i)),n}return i._value=e,i}var kw=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Qy(t);return this.tween(n,(r.local?Cw:Pw)(r,e))};function Dw(t,e){return function(){Kb(this,t).delay=+e.apply(this,arguments)}}function Lw(t,e){return e=+e,function(){Kb(this,t).delay=e}}var Rw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Dw:Lw)(e,t)):Jb(this.node(),e).delay};function Iw(t,e){return function(){Qb(this,t).duration=+e.apply(this,arguments)}}function jw(t,e){return e=+e,function(){Qb(this,t).duration=e}}var Nw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Iw:jw)(e,t)):Jb(this.node(),e).duration};function Vw(t,e){if("function"!==typeof e)throw new Error;return function(){Qb(this,t).ease=e}}var Gw=function(t){var e=this._id;return arguments.length?this.each(Vw(e,t)):Jb(this.node(),e).ease},Bw=function(t){"function"!==typeof t&&(t=Ay(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new vx(r,this._parents,this._name,this._id)},Uw=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new vx(a,this._parents,this._name,this._id)};function zw(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function Hw(t,e,n){var r,i,o=zw(e)?Kb:Qb;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Fw=function(t,e){var n=this._id;return arguments.length<2?Jb(this.node(),n).on.on(t):this.each(Hw(n,t,e))};function Ww(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var Yw=function(){return this.on("end.remove",Ww(this._id))},Xw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Oy(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,$b(h[f],e,n,f,h,Jb(s,n)));return new vx(o,this._parents,e,n)},qw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Ty(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=Jb(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&$b(f,e,n,v,p,d);o.push(p),a.push(u)}return new vx(o,a,e,n)},Zw=nb.prototype.constructor,$w=function(){return new Zw(this._groups,this._parents)};function Kw(t,e){var n,r,i;return function(){var o=h_(this,t),a=(this.style.removeProperty(t),h_(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Qw(t){return function(){this.style.removeProperty(t)}}function Jw(t,e,n){var r,i,o=n+"";return function(){var a=h_(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function tx(t,e,n){var r,i,o;return function(){var a=h_(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=h_(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function ex(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Qb(this,t),c=u.on,l=null==u.value[a]?o||(o=Qw(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var nx=function(t,e,n){var r="transform"===(t+="")?pw:_w;return null==e?this.styleTween(t,Kw(t,r)).on("end.style."+t,Qw(t)):"function"===typeof e?this.styleTween(t,tx(t,r,yw(this,"style."+t,e))).each(ex(this._id,t)):this.styleTween(t,Jw(t,r,e),n).on("end.style."+t,null)};function rx(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function ix(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&rx(t,o,n)),r}return o._value=e,o}var ox=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,ix(t,e,null==n?"":n))};function ax(t){return function(){this.textContent=t}}function sx(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var ux=function(t){return this.tween("text","function"===typeof t?sx(yw(this,"text",t)):ax(null==t?"":t+""))};function cx(t){return function(e){this.textContent=t.call(this,e)}}function lx(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&cx(r)),e}return r._value=t,r}var hx=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,lx(t))},fx=function(){for(var t=this._name,e=this._id,n=mx(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=Jb(a,e);$b(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new vx(r,this._parents,t,n)},px=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=Qb(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},dx=0;function vx(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function gx(t){return nb().transition(t)}function mx(){return++dx}var yx=nb.prototype;function _x(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}vx.prototype=gx.prototype={constructor:vx,select:Xw,selectAll:qw,filter:Bw,merge:Uw,selection:$w,transition:fx,call:yx.call,nodes:yx.nodes,node:yx.node,size:yx.size,empty:yx.empty,each:yx.each,on:Fw,attr:Tw,attrTween:kw,style:nx,styleTween:ox,text:ux,textTween:hx,remove:Yw,tween:mw,delay:Rw,duration:Nw,ease:Gw,end:px};var bx={time:null,delay:0,duration:250,ease:_x};function wx(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return bx.time=kb(),bx;return n}var xx=function(t){var e,n;t instanceof vx?(e=t._id,t=t._name):(e=mx(),(n=bx).time=kb(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&$b(a,t,e,c,s,n||wx(a,e));return new vx(r,this._parents,t,e)};nb.prototype.interrupt=aw,nb.prototype.transition=xx;var Ox=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Ox(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(Y.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=gx(t).duration(Mf.getProperty(Ff,t,"duration")||Ff.default.duration);return this.pendingTransitions[r._id]=r,r.on("end interrupt cancel",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=gx(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(wy),Ex=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ex(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(wy);function Mx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e);return n.getFullYear()-r.getFullYear()}function Cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Px(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e),i=Cx(n,r),o=Math.abs(Ax(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Cx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function kx(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Dx(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Lx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=kx(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=Dx(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return Lx(t,12*n)}function Ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return Rx(t,-n)}function jx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function Nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e),i=Cx(n,r),o=Math.abs(jx(n,r));n.setMonth(n.getMonth()-i*o);var a=Cx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Vx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return Lx(t,-n)}var Gx=6e4;function Bx(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Gx;return n*Gx+r}function Ux(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t);return e.setHours(0,0,0,0),e}var zx=864e5;function Hx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Ux(t),r=Ux(e),i=n.getTime()-Bx(n),o=r.getTime()-Bx(r);return Math.round((i-o)/zx)}function Fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e),i=Cx(n,r),o=Math.abs(Hx(n,r));n.setDate(n.getDate()-i*o);var a=Cx(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Wx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=kx(e);return n.setDate(n.getDate()+r),n}function Yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return Wx(t,-n)}function Xx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t),r=Mx(e);return n.getTime()-r.getTime()}var qx=36e5;function Zx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xx(t,e)/qx;return n>0?Math.floor(n):Math.ceil(n)}function $x(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Mx(t).getTime(),r=kx(e);return new Date(n+r)}var Kx=36e5;function Qx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return $x(t,n*Kx)}function Jx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return Qx(t,-n)}var tO=6e4;function eO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xx(t,e)/tO;return n>0?Math.floor(n):Math.ceil(n)}var nO=6e4;function rO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return $x(t,n*nO)}function iO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return rO(t,-n)}function oO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xx(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function aO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return $x(t,1e3*n)}function sO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return aO(t,-n)}var uO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return uO(e,t),e.prototype.getDomainAxisPosition=function(){return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(){return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return Mf.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(M).map((function(t){return M[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findMainVerticalAxisPosition(),e=this.findMainHorizontalAxisPosition(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.domainAxisPosition,this.rangeAxisPosition=n.rangeAxisPosition},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==M.LEFT&&this.rangeAxisPosition!==M.RIGHT||this.domainAxisPosition!==M.BOTTOM&&this.domainAxisPosition!==M.TOP?this.orientation=P.HORIZONTAL:this.orientation=P.VERTICAL},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[M.BOTTOM,M.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[M.LEFT,M.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=Mf.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=void 0!==r[c]?r[c]:r;switch(e){case k.LABELS:o=t(l)+t.step()/2;break;case k.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){return this.getValueThroughAxisPosition(this.domainAxisPosition,t,e)},e.prototype.getRangeValue=function(t,e){return this.getValueThroughAxisPosition(this.rangeAxisPosition,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"axes",this.domainAxisPosition);return e.mapsTo},e.prototype.getRangeIdentifier=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"axes",this.rangeAxisPosition);return e.mapsTo},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=Mf.getProperty(n,"axes",t);if(r.scaleType===k.TIME){var i=Mf.getProperty(n,"timeScale","addSpaceOnEdges");return lO(e,i)}return hO(e,jf.paddingRatio)},e.prototype.findMainVerticalAxisPosition=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"axes");return null===Mf.getProperty(e,M.LEFT)&&null!==Mf.getProperty(e,M.RIGHT)||!0===Mf.getProperty(e,M.RIGHT,"main")?M.RIGHT:M.LEFT},e.prototype.findMainHorizontalAxisPosition=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"axes");return null===Mf.getProperty(e,M.BOTTOM)&&null!==Mf.getProperty(e,M.TOP)||!0===Mf.getProperty(e,M.TOP,"main")?M.TOP:M.BOTTOM},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=Mf.getProperty(n,"axes",t),i=Mf.getProperty(n,"axes",e),o=r.scaleType||k.LINEAR,a=i.scaleType||k.LINEAR,s={domainAxisPosition:null,rangeAxisPosition:null};return a===k.LABELS||a===k.TIME?(s.domainAxisPosition=e,s.rangeAxisPosition=t):o===k.LABELS||o===k.TIME?(s.domainAxisPosition=t,s.rangeAxisPosition=e):(s.domainAxisPosition=e,s.rangeAxisPosition=t),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=Mf.getProperty(e,"axes",t),r=n.includeZero,i=Mf.getProperty(n,"scaleType")||k.LINEAR;if(this.model.isDataEmpty())return[];var o,a,s=this.model.getDisplayData(),u=n.mapsTo,c=n.percentage;if(n.domain)return i===k.LABELS?n.domain:this.extendsDomain(t,n.domain);if(c)return[0,100];if(n&&i===k.LABELS)return wp(s,(function(t){return t[u]})).keys();if(n.stacked){var l=this.services.zoom.filterDataForRangeAxis(this.model.getDataValuesGroupedByKeys(),{stacked:!0});a=l.map((function(t){return Hp(Ep(t))}))}else a=i===k.TIME?s.map((function(t){return t[u]})):this.services.zoom.filterDataForRangeAxis(s).map((function(t){return t[u]}));return i!==k.TIME&&r&&a.push(0),o=Dp(a),o=this.extendsDomain(t,o),o},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=Mf.getProperty(e,"axes",t);if(!n)return null;var r,i=Mf.getProperty(n,"scaleType")||k.LINEAR;return this.scaleTypes[t]=i,r=i===k.TIME?cy():i===k.LOG?Yv().base(n.base||10):i===k.LABELS?$p():Iv(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=Mf.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==k.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=Mf.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(wy);function lO(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Px(r,n)>1?[Ix(n,e),Rx(r,e)]:Nx(r,n)>1?[Vx(n,e),Lx(r,e)]:Fx(r,n)>1?[Yx(n,e),Wx(r,e)]:Zx(r,n)>1?[Jx(n,e),Qx(r,e)]:eO(r,n)>30?[iO(n,30*e),rO(r,30*e)]:eO(r,n)>1?[iO(n,e),rO(r,e)]:oO(r,n)>15?[sO(n,15*e),aO(r,15*e)]:oO(r,n)>1?[sO(n,e),aO(r,e)]:[n,r]}function hO(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function fO(t){this._context=t}fO.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var pO=function(t){return new fO(t)},dO=function(){};function vO(t){this._context=t}vO.prototype={areaStart:dO,areaEnd:dO,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var gO=function(t){return new vO(t)};function mO(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function yO(t){this._context=t}yO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:mO(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:mO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var _O=function(t){return new yO(t)};function bO(t){this._context=t}bO.prototype={areaStart:dO,areaEnd:dO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:mO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var wO=function(t){return new bO(t)};function xO(t){this._context=t}xO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:mO(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var OO=function(t){return new xO(t)};function SO(t,e){this._basis=new yO(t),this._beta=e}SO.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var EO=function t(e){function n(t){return 1===e?new yO(t):new SO(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function TO(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function MO(t,e){this._context=t,this._k=(1-e)/6}MO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:TO(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:TO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var AO=function t(e){function n(t){return new MO(t,e)}return n.tension=function(e){return t(+e)},n}(0);function CO(t,e){this._context=t,this._k=(1-e)/6}CO.prototype={areaStart:dO,areaEnd:dO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:TO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var PO=function t(e){function n(t){return new CO(t,e)}return n.tension=function(e){return t(+e)},n}(0);function kO(t,e){this._context=t,this._k=(1-e)/6}kO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:TO(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var DO=function t(e){function n(t){return new kO(t,e)}return n.tension=function(e){return t(+e)},n}(0),LO=Math.abs,RO=Math.atan2,IO=Math.cos,jO=Math.max,NO=Math.min,VO=Math.sin,GO=Math.sqrt,BO=1e-12,UO=Math.PI,zO=UO/2,HO=2*UO;function FO(t){return t>1?0:t<-1?UO:Math.acos(t)}function WO(t){return t>=1?zO:t<=-1?-zO:Math.asin(t)}function YO(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>BO){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>BO){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function XO(t,e){this._context=t,this._alpha=e}XO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:YO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qO=function t(e){function n(t){return e?new XO(t,e):new MO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ZO(t,e){this._context=t,this._alpha=e}ZO.prototype={areaStart:dO,areaEnd:dO,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:YO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $O=function t(e){function n(t){return e?new ZO(t,e):new CO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KO(t,e){this._context=t,this._alpha=e}KO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:YO(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var QO=function t(e){function n(t){return e?new KO(t,e):new kO(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function JO(t){return t<0?-1:1}function tS(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(JO(o)+JO(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function eS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function nS(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function rS(t){this._context=t}function iS(t){this._context=new oS(t)}function oS(t){this._context=t}function aS(t){return new rS(t)}function sS(t){return new iS(t)}function uS(t){this._context=t}function cS(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}rS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:nS(this,this._t0,eS(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,nS(this,eS(this,n=tS(this,t,e)),n);break;default:nS(this,this._t0,n=tS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(iS.prototype=Object.create(rS.prototype)).point=function(t,e){rS.prototype.point.call(this,e,t)},oS.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},uS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=cS(t),i=cS(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var lS=function(t){return new uS(t)};function hS(t,e){this._context=t,this._t=e}hS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var fS=function(t){return new hS(t,.5)};function pS(t){return new hS(t,0)}function dS(t){return new hS(t,1)}var vS,gS,mS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:pO,curveLinearClosed:gO,curveBasis:_O,curveBasisClosed:wO,curveBasisOpen:OO,curveBundle:EO,curveCardinal:AO,curveCardinalClosed:PO,curveCardinalOpen:DO,curveCatmullRom:qO,curveCatmullRomClosed:$O,curveCatmullRomOpen:QO,curveMonotoneX:aS,curveMonotoneY:sS,curveNatural:lS,curveStep:fS,curveStepAfter:dS,curveStepBefore:pS},e}return mS(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(wy),_S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _S(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!Mf.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=Mf.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===M.BOTTOM&&e===k.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Dp(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(Y.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return Mf.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=Mf.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=Yf.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=Mf.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return Mf.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return Mf.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(wy),wS=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(rb(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=Mf.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(ab.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(ab.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=Mf.getProperty(this.model.getOptions(),"style","prefix"),n=lb.appendOrSelect(this.parent,"g."+ab.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var r=this.model.get("chartClipId");r&&n.attr("clip-path","url(#"+r+")")}return n}return this.parent},t}(),xS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return xS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GROUP).attr("data-name","legend-items"),n=this.model.getOptions(),r=Mf.getProperty(n,"legend"),i=this.model.getDataGroups(),a=Mf.getProperty(r,"order");a&&(i=this.sortDataGroups(i,a));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===Nf.items.status.ACTIVE})),c=Nf.checkbox.radius,l=Mf.getProperty(r,"truncation","type"),h=Mf.getProperty(r,"truncation","threshold"),f=Mf.getProperty(r,"truncation","numCharacter"),p=Mf.getProperty(n,"color","pairing","option");u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",o.CHECKBOX).attr("tabindex",0).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===Nf.items.status.ACTIVE})).attr("width",2*c).attr("height",2*c).attr("rx",1).attr("ry",1).attr("class",(function(e,n){if(p)return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===Nf.items.status.ACTIVE?t.model.getFillColor(e.name):null})).classed("active",(function(t,e){return t.status===Nf.items.status.ACTIVE}));var d=u.append("text").merge(s.select("text"));l!==C.NONE?d.html((function(t){return t.name.length>h?Mf.truncateLabel(t.name,l,f):t.name})):d.html((function(t){return t.name})),this.breakItemsIntoLines(u),s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var v=Mf.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",v),v&&u.size()>0&&this.addEventListeners();var g=Mf.getProperty(r,"alignment"),m=lb.getAlignmentOffset(g,e,this.getParent());e.attr("transform","translate("+m+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=Nf.checkbox.radius,o=Nf.items.horizontalSpace,a=Nf.items.verticalSpace,s=Nf.items.textYOffset,u=2*i+Nf.checkbox.spaceAfter,c=Nf.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=Mf.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=rb(this),l=rb(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===R.VERTICAL)f===R.VERTICAL&&0!==r&&d++;else{var g=lb.getSVGElementSize(e.parent,{useAttr:!0}),m=lb.getSVGElementSize(rb(this).select("text"),{useBBox:!0}),y=lb.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+y.width+u+o,p+u+m.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b+3),b;var w=(!f||f===R.HORIZONTAL)&&"0"===c.select("rect.checkbox").attr("y"),x=f===R.VERTICAL&&"0"===c.select("rect.checkbox").attr("x"),O=w||x;h&&c.select("g.check").empty()&&O?(c.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=Mf.getProperty(n,"legend"),i=Mf.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(Y.Legend.ITEM_HOVER,{hoveredElement:rb(this)});var e=Nf.checkbox.radius,n=rb(this);n.select("rect.checkbox").classed("hovered",!0),n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(Y.Legend.ITEM_CLICK,{clickedElement:rb(this)});var e=rb(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=rb(this);e.select("rect.hover-stroke").remove(),e.select("rect.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(Y.Tooltip.HIDE),t.services.events.dispatchEvent(Y.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!yf.key||"Enter"!==yf.key&&" "!==yf.key||(yf.preventDefault(),t.model.toggleDataLabel(e.name))}))},e}(wS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(gS||(gS={}));var SS=(vS={},vS[gS.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},vS[gS.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},vS[gS.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},vS[gS.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},vS),ES="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},TS=function(){function t(t){void 0===t&&(t={}),this.positions=SS,this.positions=Object.assign({},SS,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:ES.innerHeight-ES.scrollY,height:ES.innerWidth-ES.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),MS=(new TS,TS);function AS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t);return!isNaN(e)}var CS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function PS(t,e,n){var r;return n=n||{},r="string"===typeof CS[t]?CS[t]:1===e?CS[t].one:CS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function kS(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var DS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},RS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IS={date:kS({formats:DS,defaultWidth:"full"}),time:kS({formats:LS,defaultWidth:"full"}),dateTime:kS({formats:RS,defaultWidth:"full"})},jS=IS,NS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function VS(t,e,n,r){return NS[t]}function GS(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var BS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},US={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},FS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},WS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function YS(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var XS={ordinalNumber:YS,era:GS({values:BS,defaultWidth:"wide"}),quarter:GS({values:US,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:GS({values:zS,defaultWidth:"wide"}),day:GS({values:HS,defaultWidth:"wide"}),dayPeriod:GS({values:FS,defaultWidth:"wide",formattingValues:WS,defaultFormattingWidth:"wide"})},qS=XS;function ZS(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function $S(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?QS(l,(function(t){return t.test(r)})):KS(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function KS(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function QS(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var JS=/^(\d+)(th|st|nd|rd)?/i,tE=/\d+/i,eE={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},nE={any:[/^b/i,/^(a|c)/i]},rE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iE={any:[/1/i,/2/i,/3/i,/4/i]},oE={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aE={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sE={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},uE={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},cE={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},lE={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},hE={ordinalNumber:ZS({matchPattern:JS,parsePattern:tE,valueCallback:function(t){return parseInt(t,10)}}),era:$S({matchPatterns:eE,defaultMatchWidth:"wide",parsePatterns:nE,defaultParseWidth:"any"}),quarter:$S({matchPatterns:rE,defaultMatchWidth:"wide",parsePatterns:iE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:$S({matchPatterns:oE,defaultMatchWidth:"wide",parsePatterns:aE,defaultParseWidth:"any"}),day:$S({matchPatterns:sE,defaultMatchWidth:"wide",parsePatterns:uE,defaultParseWidth:"any"}),dayPeriod:$S({matchPatterns:cE,defaultMatchWidth:"any",parsePatterns:lE,defaultParseWidth:"any"})},fE=hE,pE={code:"en-US",formatDistance:PS,formatLong:jS,formatRelative:VS,localize:qS,match:fE,options:{weekStartsOn:0,firstWeekContainsDate:1}},dE=pE;function vE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=kx(e);return $x(t,-n)}function gE(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var mE={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return gE("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):gE(n+1,2)},d:function(t,e){return gE(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return gE(t.getUTCHours()%12||12,e.length)},H:function(t,e){return gE(t.getUTCHours(),e.length)},m:function(t,e){return gE(t.getUTCMinutes(),e.length)},s:function(t,e){return gE(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return gE(i,e.length)}},yE=mE,_E=864e5;function bE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/_E)+1}function wE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Mx(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function xE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=wE(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=wE(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function OE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=xE(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=wE(n);return r}var SE=6048e5;function EE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Mx(t),n=wE(e).getTime()-OE(e).getTime();return Math.round(n/SE)+1}function TE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:kx(i),a=null==n.weekStartsOn?o:kx(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Mx(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function ME(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Mx(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:kx(a),u=null==i.firstWeekContainsDate?s:kx(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=TE(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=TE(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function AE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:kx(i),a=null==n.firstWeekContainsDate?o:kx(n.firstWeekContainsDate),s=ME(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=TE(u,e);return c}var CE=6048e5;function PE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Mx(t),r=TE(n,e).getTime()-AE(n,e).getTime();return Math.round(r/CE)+1}var kE={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},DE={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return yE.y(t,e)},Y:function(t,e,n,r){var i=ME(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return gE(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):gE(o,e.length)},R:function(t,e){var n=xE(t);return gE(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return gE(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return gE(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return gE(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return yE.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return gE(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=PE(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):gE(i,e.length)},I:function(t,e,n){var r=EE(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):gE(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):yE.d(t,e)},D:function(t,e,n){var r=bE(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):gE(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return gE(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return gE(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return gE(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?kE.noon:0===i?kE.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?kE.evening:i>=12?kE.afternoon:i>=4?kE.morning:kE.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return yE.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):yE.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):gE(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):gE(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):yE.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):yE.s(t,e)},S:function(t,e){return yE.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return RE(o);case"XXXX":case"XX":return IE(o);case"XXXXX":case"XXX":default:return IE(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return RE(o);case"xxxx":case"xx":return IE(o);case"xxxxx":case"xxx":default:return IE(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+LE(o,":");case"OOOO":default:return"GMT"+IE(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+LE(o,":");case"zzzz":default:return"GMT"+IE(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return gE(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return gE(o,e.length)}};function LE(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+gE(o,2)}function RE(t,e){if(t%60===0){var n=t>0?"-":"+";return n+gE(Math.abs(t)/60,2)}return IE(t,e)}function IE(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=gE(Math.floor(i/60),2),a=gE(i%60,2);return r+o+n+a}var jE=DE;function NE(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function VE(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function GE(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return NE(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",NE(i,e)).replace("{{time}}",VE(o,e))}var BE={p:VE,P:GE},UE=BE,zE=["D","DD"],HE=["YY","YYYY"];function FE(t){return-1!==zE.indexOf(t)}function WE(t){return-1!==HE.indexOf(t)}function YE(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var XE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ZE=/^'([^]*?)'?$/,$E=/''/g,KE=/[a-zA-Z]/;function QE(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||dE,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:kx(a),u=null==i.firstWeekContainsDate?s:kx(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:kx(c),h=null==i.weekStartsOn?l:kx(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=Mx(t);if(!AS(f))throw new RangeError("Invalid time value");var p=Bx(f),d=vE(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(qE).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=UE[e];return n(t,o.formatLong,v)}return t})).join("").match(XE).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return JE(t);var n=jE[e];if(n)return!i.useAdditionalWeekYearTokens&&WE(t)&&YE(t),!i.useAdditionalDayOfYearTokens&&FE(t)&&YE(t),n(d,t,o.localize,v);if(e.match(KE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function JE(t){return t.match(ZE)[1].replace($E,"'")}var tT=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function eT(t,e,n,r){var i=0===e,o=2===Number(QE(new Date(t),"c")),a=1===Number(QE(new Date(t),"q"));switch(n){case"15seconds":return i||sT(t)||uT(t)||cT(t);case"minute":return i||sT(t)||uT(t)||cT(t);case"30minutes":return i||sT(t)||uT(t)||cT(t);case"hourly":return i||sT(t)||uT(t)||cT(t);case"daily":return r?i||o||cT(t):i||uT(t)||cT(t);case"monthly":return i||cT(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function nT(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=Mf.getProperty(r,"timeIntervalFormats")[o],u=Mf.getProperty(s,"primary"),c=Mf.getProperty(s,"secondary"),l=eT(t,e,n,i)?u:c,h=r.localeObject;return QE(a,l,{locale:h})}function rT(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function iT(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function oT(t){var e=tT.reduce((function(e,n,r){n[0];var i=n[1],o=tT[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return tT[e][0]}function aT(t){if(1===t.length)return"15seconds";var e=iT(t),n=zp(e);return oT(n)}function sT(t){var e=rT(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function uT(t){var e=rT(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function cT(t){var e=rT(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var lT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hT=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new MS,i}return lT(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=Mf.getProperty(this.model.getOptions(),"style","prefix");this.thresholdClass=ab.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=lb.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=lb.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=lb.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===k.LABELS,v=f.range(),g=v[0],m=v[1],y=p.range(),_=y[0],b=y[1],w=this.services.cartesianScales,x=w.getOrientation(),O=function(t){return w.getDomainValue(t)},S=function(t){return w.getRangeValue(t)},E=Mf.flipDomainAndRangeBasedOnOrientation(O,S,x),T=E[0],A=E[1];if(o===M.TOP||o===M.BOTTOM){var C=T(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",_-b).classed("rotate",!0)}else{C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",m-g),u.attr("width",m-g)}var P=this;this.services.events.addEventListener(Y.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===P.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(Y.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.model.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===k.TIME){var o=[M.LEFT,M.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=Mf.getProperty(r,"timeScale"),l=aT(u.ticks());return nT(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=rb(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=lb.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=Pf(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[gS.RIGHT,gS.LEFT,gS.TOP,gS.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;lb.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(Y.Threshold.SHOW,{hoveredElement:rb(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(Y.Threshold.HIDE,{hoveredElement:rb(t.threshold)})}))},e}(wS),fT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return fT(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.model.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=lb.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=lb.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(Y.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return lb.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(wS),dT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return dT(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.model.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=lb.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.model.getOptions(),lb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=Gf.status.indicatorSize/2,a=lb.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=lb.appendOrSelect(e,"text.meter-title"),r=!0===Mf.getProperty(this.model.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=Gf.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=lb.appendOrSelect(this.parent,"tspan"),i=Gf.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=lb.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=lb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=lb.appendOrSelect(this.parent,"text.percent-value"),r=Gf.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=lb.appendOrSelect(this.parent,"g.status-indicator").node(),a=lb.getSVGElementSize(o,{useBBox:!0}).width+Gf.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case H.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case H.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case H.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(pT),gT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mT=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new MS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=lb.appendOrSelect(i.tooltip,"div.content-box");if(Mf.getProperty(i.model.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip">'+t.detail.content+"</div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return gT(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(Y.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(Y.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(Y.Tooltip.HIDE,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(Y.Tooltip.MOVE,null),this.services.events.removeEventListener(Y.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(Y.Tooltip.HIDE,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.model.getOptions(),r=Mf.getProperty(n,"tooltip","truncation","type"),i=Mf.getProperty(n,"tooltip","truncation","threshold"),o=Mf.getProperty(n,"tooltip","truncation","numCharacter");return r!==C.NONE?t.map((function(t){return t.value=t.value?e.valueFormatter(t.value):t.value,t.label&&t.label.length>i&&(t.label=Mf.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=Mf.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip">'+t.detail.content+"</div>";else{var n=this.getItems(t),r=this.formatItems(n),i=this.model.isUserProvidedColorScaleValid();e="<ul class='multi-tooltip'>"+r.map((function(t){var e=t.color||i;return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class&&!e?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color&&e?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<p class="label">'+(t.label||"")+'</p>\n\t\t\t\t\t\t\t\t<p class="value">'+(t.value||"")+"</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t){var e=this.model.getOptions(),n=Mf.getProperty(e,"tooltip","valueFormatter");return n?n(t):t.toLocaleString()},e.prototype.render=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"tooltip","enabled");if(e){var n=rb(this.services.domUtils.getHolder()),r=Mf.getProperty(t,"style","prefix");this.tooltip=lb.appendOrSelect(n,"div."+ab.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.model.getOptions(),o=Mf.getProperty(i,"zoomBar","top","enabled"),a=Mf.getProperty(t,"detail","mousePosition");if(a){var s=Mf.getProperty(i,"zoomBar","top","type"),u=Yf.height[s];o&&(a[1]+=u+Yf.spacerHeight)}else a=Pf(n);var c=this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[gS.RIGHT,gS.LEFT,gS.TOP,gS.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),l=Hf.horizontalOffset;c===gS.LEFT&&(l*=-1),e=this.positionService.findPositionAt({left:a[0]+l,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(wS),yT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yT(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.model.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=i.getDomainAxisScaleType(),u=i.getRangeAxisOptions(),c=i.getRangeIdentifier(),l=(i.getRangeAxisScaleType(),r.data.groupMapsTo),h=o.title;if(!h){var f=i.getDomainAxisPosition();h=f===M.BOTTOM||f===M.TOP?"x-value":"y-value"}var p,d=n[0][a];if(s===k.TIME?d=QE(new Date(n[0][a]),"MMM d, yyyy"):s===k.LINEAR&&(d=d.toLocaleString()),1===n.length){var v=n[0],g=u.title;if(!g){var m=i.getRangeAxisPosition();g=m===M.LEFT||m===M.RIGHT?"y-value":"x-value"}p=[{label:h,value:d},{label:g,value:v[c]},{label:r.tooltip.groupLabel||"Group",value:v[l],color:this.model.getFillColor(v[l]),class:this.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:v[l]})}]}else n.length>1&&(p=[{label:h,value:this.valueFormatter(d)}],p=p.concat(n.map((function(t){return{label:t[l],value:e.valueFormatter(t[c]),color:e.model.getFillColor(t[l]),class:e.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:t[l]})}})).sort((function(t,e){return e.value-t.value}))),!0===Mf.getProperty(r,"tooltip","showTotal")&&p.push({label:r.tooltip.totalLabel||"Total",value:this.valueFormatter(n.reduce((function(t,e){return t+e[c]}),0)),bold:!0}));return p},e}(mT),bT=Math.PI,wT=2*bT,xT=1e-6,OT=wT-xT;function ST(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ET(){return new ST}ST.prototype=ET.prototype={constructor:ST,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>xT)if(Math.abs(l*s-u*c)>xT&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((bT-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>xT&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>xT||Math.abs(this._y1-c)>xT)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%wT+wT),h>OT?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>xT&&(this._+="A"+n+","+n+",0,"+ +(h>=bT)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var TT=ET;function MT(t){return t[0]}function AT(t){return t[1]}var CT=function(){var t=MT,e=AT,n=dy(!0),r=null,i=pO,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=TT())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:dy(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:dy(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:dy(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},PT=function(){var t=MT,e=null,n=dy(0),r=AT,i=dy(!0),o=null,a=pO,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=TT())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return CT().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:dy(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:dy(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:dy(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:dy(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:dy(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:dy(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:dy(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},kT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?If.opacity.unselected:If.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",If.opacity.selected)},e}return kT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=PT().curve(this.services.curves.getD3Curve());o===P.VERTICAL?(a.x((function(t,e){return i.getDomainValue(t,e)})).y0(i.getRangeValue(0)).y1((function(t,e){return i.getRangeValue(t,e)})),r=this.services.cartesianScales.getMainYScale().domain()):(a.x0(i.getRangeValue(0)).x1((function(t,e){return i.getRangeValue(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})),r=this.services.cartesianScales.getMainXScale().domain());var s=this.model.getGroupedData(),u=Mf.getProperty(this.model.getOptions(),"color","gradient","enabled"),c=s&&1===s.length&&u;s.length>1&&u&&console.error("Gradients can only be enabled when having 1 single dataset");var l=n.selectAll("path.area").data(s,(function(t){return t.name})),h=Mf.getProperty(this.model.getOptions(),"style","prefix"),f=lb.appendOrSelect(rb(this.services.domUtils.getHolder()),"svg."+ab.prefix+"--"+h+"--chart-svg"),p=f.select("path."+this.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:s[0].name})).node(),d=p?getComputedStyle(p,null).getPropertyValue("stroke"):null;c&&d?Tx.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:Tx.getStops(r,d)}):this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()})),l.exit().attr("opacity",0).remove();var v=this,g=l.enter().append("path");c?g.merge(l).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):g.attr("opacity",0).merge(l).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("fill",(function(t){return v.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",If.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wS),LT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0][i]!==n.datum().name?If.opacity.unselected:If.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",If.opacity.selected)},e}return LT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=this.services.cartesianScales.getDomainAxisPosition(),l=this.services.cartesianScales.getScaleTypeByPosition(c),h=l===k.TIME;if(h){var f=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),p=this.model.getStackedData({percentage:f}),d=n.selectAll("path.area").data(p,(function(t){return t[0][a]}));this.areaGenerator=PT().x((function(t){return s(new Date(t.data.sharedStackKey))})).y0((function(t){return u(t[0])})).y1((function(t){return u(t[1])})).curve(this.services.curves.getD3Curve()),d.exit().attr("opacity",0).remove();var v=d.enter().append("path").attr("opacity",0);v.merge(d).data(p,(function(t){return t[0][a]})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[0][a],originalClassName:"area"})})).attr("fill",(function(t){return r.model.getFillColor(t[0][a])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",If.opacity.selected).attr("d",this.areaGenerator)}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(wS),IT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return IT(e,t),e.prototype.getBarWidth=function(t){var e=this.model.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=lb.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(wS),NT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return NT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),a=i.selectAll("path.bar").data(this.model.getDisplayData(),(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[r],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);if(!e.isOutsideZoomedDomain(i,o))return Mf.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=rb(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){rb(this);t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEMOVE,{element:rb(this),datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Bar.BAR_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(jT),GT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return GT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier();this.setGroupScale();var s=this.getContainerSVG({withinChartClip:!0}),u=wp(n,(function(t){return t[a]})).keys(),c=s.selectAll("g.bars").data(u,(function(t){return t}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars"),h=l.merge(c).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===P.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"})).selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeValue(0),u=e.services.cartesianScales.getRangeValue(t.value);if(!e.isOutsideZoomedDomain(o,a))return Mf.generateSVGPathString({x0:o,x1:a,y0:s,y1:u},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=rb(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Bar.BAR_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this.model.getDisplayData(),n=this.services.cartesianScales.getDomainIdentifier();return e.filter((function(e){return e[n]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getActiveDataGroupNames().length,e=this.getTotalGroupPadding();return this.getBarWidth()*t+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getActiveDataGroupNames().length;if(1===t)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t-1)},e.prototype.getBarWidth=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"bars","width"),n=Mf.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getActiveDataGroupNames().length,i=this.getTotalGroupPadding(),o=this.services.cartesianScales.getDomainScale();return Math.min(n,(o.step()-i)/r)},e.prototype.setGroupScale=function(){this.groupScale=$p().domain(this.model.getActiveDataGroupNames()).rangeRound([0,this.getGroupWidth()])},e}(jT),UT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return UT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=(this.model.getDisplayData(),this.model.getOptions()),i=r.data.groupMapsTo,a=(this.services.cartesianScales.getDomainIdentifier(),this.model.getStackedData()),s=n.selectAll("g.bars").data(a,(function(t){return t.key}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[i],originalClassName:"bar"})})).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===P.VERTICAL?c+=1:c-=1),Mf.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=rb(this);i.classed("hovered",!0),i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(),a=n.services.cartesianScales.getDomainIdentifier(),s=n.services.cartesianScales.getRangeIdentifier(),u=o.find((function(n){return n[s]===t.data[t.group]&&n[a].toString()===t.data.sharedStackKey&&n[e]===t.group}));void 0===u&&(r={},r[a]=t.data.sharedStackKey,r[s]=t.data[t.group],r[e]=t.group,u=r),n.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:i,data:[u]})})).on("mousemove",(function(t){var e=rb(this);n.services.events.dispatchEvent(Y.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(Y.Bar.BAR_CLICK,{element:rb(this),datum:t})})).on("mouseout",(function(t){var e=rb(this);e.classed("hovered",!1),n.services.events.dispatchEvent(Y.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(jT),HT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return HT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(Y.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(Y.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.render=function(t){var e=Mf.getProperty(this.model.getOptions(),"points","enabled")||Mf.getProperty(this.model.getOptions(),"bubble","enabled");if(e){var n,r=this.getContainerSVG({withinChartClip:!0}),i=this.model.getOptions(),o=i.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier(),s=this.services.cartesianScales.getRangeIdentifier(),u=this.configs.stacked;if(u){var c=Object.keys(i.axes).some((function(t){return i.axes[t].percentage}));n=this.model.getStackedData({percentage:c})}else n=this.model.getDisplayData().filter((function(t){return void 0!==t[s]&&null!==t[s]}));n=this.filterBasedOnZoomDomain(n);var l=r.selectAll("circle.dot").data(n,(function(t){return t[o]+"-"+t[a]}));l.exit().attr("opacity",0).remove();var h=l.enter().append("circle").classed("dot",!0).attr("opacity",0),f=h.merge(l);this.styleCircles(f,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this.configs.handleThresholds;if(!n)return!1;var r=this.services.cartesianScales,i=r.getOrientation(),o=Mf.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),i),a=o[0],s=o[1],u=Mf.flipDomainAndRangeBasedOnOrientation((function(t,e){return r.getDomainValue(t,e)}),(function(t,e){return r.getRangeValue(t,e)}),i),c=u[0],l=u[1],h=c(t,e),f=l(t,e);return s&&a?f<=s.scaleValue&&h>=a.scaleValue:s?f<=s.scaleValue:a?h>=a.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.points,a=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=c.getDomainIdentifier(),p=c.getRangeIdentifier(),d=function(t,e){return c.getDomainValue(t,e)},v=function(t,e){return c.getRangeValue(t,e)},g=Mf.flipDomainAndRangeBasedOnOrientation(d,v,c.getOrientation()),m=g[0],y=g[1],_=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=n.model.getIsFilled(t[h],t[f],t,a),r=e?[T.FILL,T.STROKE]:[T.STROKE];return n.model.getColorClassName({classNameTypes:r,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){return n.model.getIsFilled(t[h],t[f],t,a)})).classed("unfilled",(function(t){return!n.model.getIsFilled(t[h],t[f],t,a)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",m).attr("cy",y).attr("r",r.points.radius).attr("fill",(function(t){if(n.model.getIsFilled(t[h],t[f],t,a))return n.model.getFillColor(t[h],t[f],t)})).attr("fill-opacity",a?s:1).attr("stroke",(function(t){return n.model.getStrokeColor(t[h],t[f],t)})).attr("opacity",_?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t[p]})),this.addEventListeners()},e.prototype.getTooltipData=function(t,e){var n=this;return this.model.getDisplayData().filter((function(r){return t===n.services.cartesianScales.getDomainValue(r)&&e===n.services.cartesianScales.getRangeValue(r)}))},e.prototype.addEventListeners=function(){var t=this,e=t.model.getOptions().data.groupMapsTo,n=this.services.cartesianScales.getDomainIdentifier();this.parent.selectAll("circle").on("mouseover",(function(r){var i=rb(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:n[e],originalClassName:i.attr("class")})})).style("fill",(function(r){return t.model.getFillColor(r[e],r[n],r)})).classed("unfilled",!1);var o=t.services.cartesianScales.getDomainValue(r),a=t.services.cartesianScales.getRangeValue(r),s=t.getTooltipData(o,a);t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:i,data:s}),t.services.events.dispatchEvent(Y.Scatter.SCATTER_MOUSEOVER,{element:i,datum:r})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Scatter.SCATTER_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);n.classed("hovered",!1),t.configs.filled||"1"!==n.attr("fill-opacity")||(n.classed("unfilled",!0),n.style("fill",null)),t.services.events.dispatchEvent(Y.Scatter.SCATTER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(Y.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(Y.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(wS),WT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return WT(e,t),e.prototype.getRadiusScale=function(t){var e=this.model.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=lb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?Dp(i):[1,1];return Iv().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales.getDomainIdentifier();t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).attr("fill",(function(t){return n.model.getFillColor(t[s],t[u],t)})).attr("stroke",(function(t){return n.model.getStrokeColor(t[s],t[u],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(FT),XT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?Vf.opacity.unselected:Vf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Vf.opacity.selected)},e}return XT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=Mf.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.model.getOptions(),p=CT().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({percentage:v}),y=this.services.cartesianScales.getDomainIdentifier(),_=this.services.cartesianScales.getRangeIdentifier();d=m.map((function(t){return{name:t[0][g],data:t.map((function(t){var e;return e={},e[y]=t.data.sharedStackKey,e[g]=t[g],e[_]=t[1],e})),hidden:!Mf.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData();var b=n.selectAll("path.line").data(d,(function(t){return t.name}));b.exit().attr("opacity",0).remove();var w=b.enter().append("path").classed("line",!0).attr("opacity",0);w.merge(b).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.STROKE],dataGroupName:t.name,originalClassName:"line"})})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data,r=e.services.cartesianScales.getRangeIdentifier();return n.map((function(t){return t[r]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wS),ZT=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return ZT(e,t),e.prototype.render=function(t){var e=Mf.getProperty(this.model.getOptions(),"points","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier(),s=this.services.cartesianScales.getRangeIdentifier(),u=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),c=this.model.getStackedData({percentage:u}),l=n.selectAll("g.dots").data(c,(function(t){return t[0][i]}));l.exit().attr("opacity",0).remove();var h=l.enter().append("g").classed("dots",!0).attr("role",o.GROUP),f=h.merge(l).selectAll("circle.dot").data((function(t){return t}));f.exit().attr("opacity",0).remove();var p=f.enter().append("circle").classed("dot",!0).attr("opacity",0),d=p.merge(f).datum((function(t){var e,n=t[i];return e={},e[i]=n,e[a]=t["data"]["sharedStackKey"],e[s]=t[1],e}));this.styleCircles(d,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=this.model.getOptions(),a=o.data.groupMapsTo,s=Object.keys(o.axes).some((function(t){return o.axes[t].percentage})),u=this.model.getStackedData({percentage:s}),c=[];return u.forEach((function(o,u){o.forEach((function(o,l){var h,f=o[a],p=o["data"]["sharedStackKey"],d=o["data"][f],v=o[1];null!==d&&void 0!==d&&t===n.services.cartesianScales.getDomainValue(p)&&e===n.services.cartesianScales.getRangeValue(v)&&(s&&(d=n.model.getStackedData()[u][l]["data"][f]),null!==d&&c.push((h={},h[a]=f,h[r]=p,h[i]=d,h)))}))})),this.model.getDisplayData().filter((function(t){return void 0!==c.find((function(e){return e[a]==t[a]&&e[r]==t[r]&&e[i]==t[i]}))}))},e}(FT);function KT(t){return t.innerRadius}function QT(t){return t.outerRadius}function JT(t){return t.startAngle}function tM(t){return t.endAngle}function eM(t){return t&&t.padAngle}function nM(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<BO))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function rM(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/GO(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,w=i-o,x=f*v-d*p,O=(_<0?-1:1)*GO(jO(0,w*w*b-x*x)),S=(x*_-y*O)/b,E=(-x*y-_*O)/b,T=(x*_+y*O)/b,M=(-x*y+_*O)/b,A=S-g,C=E-m,P=T-g,k=M-m;return A*A+C*C>P*P+k*k&&(S=T,E=M),{cx:S,cy:E,x01:-l,y01:-h,x11:S*(i/w-1),y11:E*(i/w-1)}}var iM=function(){var t=KT,e=QT,n=dy(0),r=null,i=JT,o=tM,a=eM,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-zO,p=o.apply(this,arguments)-zO,d=LO(p-f),v=p>f;if(s||(s=u=TT()),h<l&&(c=h,h=l,l=c),h>BO)if(d>HO-BO)s.moveTo(h*IO(f),h*VO(f)),s.arc(0,0,h,f,p,!v),l>BO&&(s.moveTo(l*IO(p),l*VO(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,w=p,x=d,O=d,S=a.apply(this,arguments)/2,E=S>BO&&(r?+r.apply(this,arguments):GO(l*l+h*h)),T=NO(LO(h-l)/2,+n.apply(this,arguments)),M=T,A=T;if(E>BO){var C=WO(E/l*VO(S)),P=WO(E/h*VO(S));(x-=2*C)>BO?(C*=v?1:-1,b+=C,w-=C):(x=0,b=w=(f+p)/2),(O-=2*P)>BO?(P*=v?1:-1,y+=P,_-=P):(O=0,y=_=(f+p)/2)}var k=h*IO(y),D=h*VO(y),L=l*IO(w),R=l*VO(w);if(T>BO){var I,j=h*IO(_),N=h*VO(_),V=l*IO(b),G=l*VO(b);if(d<UO&&(I=nM(k,D,V,G,j,N,L,R))){var B=k-I[0],U=D-I[1],z=j-I[0],H=N-I[1],F=1/VO(FO((B*z+U*H)/(GO(B*B+U*U)*GO(z*z+H*H)))/2),W=GO(I[0]*I[0]+I[1]*I[1]);M=NO(T,(l-W)/(F-1)),A=NO(T,(h-W)/(F+1))}}O>BO?A>BO?(g=rM(V,G,k,D,h,A,v),m=rM(j,N,L,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<T?s.arc(g.cx,g.cy,A,RO(g.y01,g.x01),RO(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,A,RO(g.y01,g.x01),RO(g.y11,g.x11),!v),s.arc(0,0,h,RO(g.cy+g.y11,g.cx+g.x11),RO(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,A,RO(m.y11,m.x11),RO(m.y01,m.x01),!v))):(s.moveTo(k,D),s.arc(0,0,h,y,_,!v)):s.moveTo(k,D),l>BO&&x>BO?M>BO?(g=rM(L,R,j,N,l,-M,v),m=rM(k,D,V,G,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,RO(g.y01,g.x01),RO(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,RO(g.y01,g.x01),RO(g.y11,g.x11),!v),s.arc(0,0,l,RO(g.cy+g.y11,g.cx+g.x11),RO(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,RO(m.y11,m.x11),RO(m.y01,m.x01),!v))):s.arc(0,0,l,w,b,v):s.lineTo(L,R)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-UO/2;return[IO(r)*n,VO(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:dy(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:dy(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:dy(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:dy(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:dy(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:dy(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:dy(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},oM=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},aM=function(t){return t},sM=function(){var t=aM,e=oM,n=null,r=dy(0),i=dy(HO),o=dy(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(HO,Math.max(-HO,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:dy(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:dy(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:dy(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:dy(+t),a):o},a},uM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function cM(t,e){var n=this,r=Kd(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return uM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return Bf.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData(),a=this.model.getOptions(),s=a.data.groupMapsTo,u=this.computeRadius();this.arc=iM().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=iM().innerRadius(this.getInnerRadius()).outerRadius(u+Bf.hoverArc.outerRadiusOffset);var c=sM().value((function(t){return t.value})).sort(null).padAngle(Bf.padAngle),l=c(i).sort((function(t,e){return t.index-e.index})),h=lb.appendOrSelect(r,"g.slices").attr("role",o.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).attr("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+Mf.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return cM.bind(this)(t,n.arc)}));var d=l.filter((function(t){return t.value>0})),v=lb.appendOrSelect(r,"g.labels").attr("role",o.GROUP).attr("data-name","labels"),g=v.selectAll("text.pie-label").data(d,(function(t){return t.data[s]}));g.exit().attr("opacity",0).remove();var m=g.enter().append("text").classed("pie-label",!0),y=[];m.merge(g).style("text-anchor","middle").text((function(t){return a.pie.labels.formatter?a.pie.labels.formatter(t):Mf.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=d.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<Bf.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+Bf.callout.offsetX+Bf.callout.textMargin+t.textOffsetX,o=t.yPosition-Bf.callout.offsetY,t.direction=N.RIGHT,y.push(t)):(i=t.xPosition-Bf.callout.offsetX-t.textOffsetX-Bf.callout.textMargin,o=t.yPosition-Bf.callout.offsetY,t.direction=N.LEFT,y.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var _=Mf.getProperty(a,"donut")?"donut":"pie",b=Mf.getProperty(a,_,"alignment"),w=lb.getSVGElementSize(this.getParent(),{useAttr:!0}).width,x=u+Bf.xOffset;b===L.CENTER?x=w/2:b===L.RIGHT&&(x=w-u-Bf.xOffset);var O=u+Bf.yOffset;y.length>0&&(O+=Bf.yOffsetCallout),r.attr("transform","translate("+x+", "+O+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=lb.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===N.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+Bf.callout.offsetX,y:n-Bf.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-Bf.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-Bf.callout.offsetX,y:n-Bf.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+Bf.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return rb(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var a=r.append("line").classed("horizontal-line",!0);a.merge(e.selectAll("line.horizontal-line")).datum((function(t){return rb(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mouseover",(function(e){var n=rb(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(Y.Pie.SLICE_MOUSEOVER,{element:rb(this),datum:e});var r=t.model.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Pie.SLICE_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(Y.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=lb.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Bf.radiusOffset},e}(wS),hM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fM="4,10 8,6 12,10",pM="12,6 8,10 4,6",dM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return hM(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=Mf.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"gauge","type"),n=e===U.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.model.getOptions(),n=Mf.getProperty(e,"gauge","deltaArrow","direction");switch(n){case z.UP:return fM;case z.DOWN:return pM;default:return t>0?fM:pM}},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.getValue(),s=this.getValueRatio(),u=this.getArcSize(),c=this.getStartAngle(),l=s*u,h=c+l,f=c+u,p=this.computeRadius(),d=this.getInnerRadius();this.backgroundArc=iM().innerRadius(d).outerRadius(p).startAngle(h).endAngle(f),this.arc=iM().innerRadius(d).outerRadius(p).startAngle(c).endAngle(h),lb.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var v=n.selectAll("path.arc-foreground").data([a]),g=v.enter().append("path");g.merge(v).attr("class",this.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",this.arc).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),v.exit().remove();var m=Mf.getProperty(r,"gauge","alignment"),y=lb.getSVGElementSize(this.getParent(),{useAttr:!0}).width,_=p;m===L.CENTER?_=y/2:m===L.RIGHT&&(_=y-p),n.attr("transform","translate("+_+", "+p+")"),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.model.getOptions(),n=Mf.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=Mf.getProperty(e,"gauge","valueFontSize"),s=Mf.getProperty(e,"gauge","deltaFontSize"),u=Mf.getProperty(e,"gauge","numberSpacing"),c=0;n!==U.FULL||i?n===U.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=lb.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=lb.appendOrSelect(l,"g.gauge-value-number").attr("transform","translate(-10, 0)"),f=Mf.getProperty(e,"gauge","numberFormatter"),p=h.selectAll("text.gauge-value-number").data([r]);p.enter().append("text").attr("class","gauge-value-number").merge(p).style("font-size",a(o)+"px").attr("text-anchor","middle").text((function(t){return f(t)}));var d=lb.getSVGElementSize(lb.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width;lb.appendOrSelect(h,"text.gauge-value-symbol").style("font-size",a(o)/2+"px").attr("x",d/2).text("%")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?Mf.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?Mf.getProperty(n,"gauge","numberFormatter"):function(){return null},s=Mf.getProperty(n,"gauge","deltaArrow","size"),u=Mf.getProperty(n,"gauge","numberSpacing"),c=lb.appendOrSelect(e,"g.gauge-numbers"),l=lb.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=lb.appendOrSelect(l,"text.gauge-delta-number");h.data(null===r?[]:[r]),h.enter().append("text").classed("gauge-delta-number",!0).merge(h).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=lb.getSVGElementSize(lb.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=Mf.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),lb.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=Mf.getProperty(n,"gauge","status");lb.appendOrSelect(d,"polygon.gauge-delta-arrow").attr("class",null!==v?"gauge-delta-arrow status--"+v:"").attr("fill",(function(){return null===v?"currentColor":null})).attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=Mf.getProperty(this.model.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e){t.services.events.dispatchEvent(Y.Gauge.ARC_MOUSEOVER,{element:rb(this),datum:e})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(Y.Gauge.ARC_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=Mf.getProperty(t,"gauge","type"),n=lb.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===U.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(wS),vM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return vM(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=lb.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();lb.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(rb(this))})),lb.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(Mf.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=Mf.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Qd:Fd;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(lM);function mM(t){return+t}var yM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return yM(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=lb.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=Mf.getProperty(this.model.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===V.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===V.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===V.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==V.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===P.VERTICAL&&this.drawYGrid(t),e===P.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=Iv().domain([0,1]).range(t),this.yScale=Iv().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=lb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=lb.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=lb.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Mf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=lb.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=Mf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=lb.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=lb.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=lb.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=Mf.getProperty(this.model.getOptions(),u,"alignment");lb.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=iM().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(Bf.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=lb.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+Bf.xOffset;c===L.CENTER?d=o/2:c===L.RIGHT&&(d=o-t-Bf.xOffset);var v=t+Bf.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=lb.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+Bf.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=lb.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=lb.appendOrSelect(a,"defs").lower(),h=lb.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease(mM).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(wS),bM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return bM(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=lb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=Mf.getProperty(this.model.getOptions(),"data","loading"),s=!Mf.getProperty(this.model.getOptions(),"grid","x","enabled")&&!Mf.getProperty(this.model.getOptions(),"grid","y","enabled")&&!Mf.getProperty(this.model.getOptions(),"axes","bottom","visible")&&!Mf.getProperty(this.model.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=lb.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=lb.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=lb.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(_M);function xM(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var OM=function(){return this.eachAfter(xM)},SM=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},EM=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},TM=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},MM=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},AM=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},CM=function(t){var e=this,n=PM(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function PM(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var kM=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},DM=function(){var t=[];return this.each((function(e){t.push(e)})),t},LM=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},RM=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function IM(t,e){var n,r,i,o,a,s=new BM(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=NM);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new BM(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(GM)}function jM(){return IM(this).eachBefore(VM)}function NM(t){return t.children}function VM(t){t.data=t.data.data}function GM(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function BM(t){this.data=t,this.depth=this.height=0,this.parent=null}BM.prototype=IM.prototype={constructor:BM,count:OM,each:SM,eachAfter:TM,eachBefore:EM,sum:MM,sort:AM,path:CM,ancestors:kM,descendants:DM,leaves:LM,links:RM,copy:jM};var UM=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},zM=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},HM=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},FM=(1+Math.sqrt(5))/2;function WM(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,w=y.length,x=e.value;while(_<w){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<w);for(h=f=l,v=Math.max(c/u,u/c)/(x*t),g=l*l*v,d=Math.max(f/g,g/h);b<w;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?zM(a,n,r,i,x?r+=c*l/x:o):HM(a,n,r,x?n+=u*l/x:i,o),x-=l,_=b}return m}var YM=function t(e){function n(t,n,r,i,o){WM(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(FM);function XM(t){if("function"!==typeof t)throw new Error;return t}function qM(){return 0}var ZM=function(t){return function(){return t}},$M=function(){var t=YM,e=!1,n=1,r=1,i=[0],o=qM,a=qM,s=qM,u=qM,c=qM;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(UM),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=XM(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:ZM(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:ZM(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:ZM(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:ZM(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:ZM(+t),l):c},l},KM="#000000",QM="#ffffff",JM="#f1c21b",tA=JM,eA="#ff832b",nA=eA,rA="#fff1f1",iA="#ffd7d9",oA="#ffb3b8",aA="#ff8389",sA="#fa4d56",uA="#da1e28",cA="#a2191f",lA="#750e13",hA="#520408",fA="#2d0709",pA={10:rA,20:iA,30:oA,40:aA,50:sA,60:uA,70:cA,80:lA,90:hA,100:fA},dA="#fff0f7",vA="#ffd6e8",gA="#ffafd2",mA="#ff7eb6",yA="#ee5396",_A="#d12771",bA="#9f1853",wA="#740937",xA="#510224",OA="#2a0a18",SA={10:dA,20:vA,30:gA,40:mA,50:yA,60:_A,70:bA,80:wA,90:xA,100:OA},EA="#f6f2ff",TA="#e8daff",MA="#d4bbff",AA="#be95ff",CA="#a56eff",PA="#8a3ffc",kA="#6929c4",DA="#491d8b",LA="#31135e",RA="#1c0f30",IA={10:EA,20:TA,30:MA,40:AA,50:CA,60:PA,70:kA,80:DA,90:LA,100:RA},jA="#edf5ff",NA="#d0e2ff",VA="#a6c8ff",GA="#78a9ff",BA="#4589ff",UA="#0f62fe",zA="#0043ce",HA="#002d9c",FA="#001d6c",WA="#001141",YA={10:jA,20:NA,30:VA,40:GA,50:BA,60:UA,70:zA,80:HA,90:FA,100:WA},XA="#e5f6ff",qA="#bae6ff",ZA="#82cfff",$A="#33b1ff",KA="#1192e8",QA="#0072c3",JA="#00539a",tC="#003a6d",eC="#012749",nC="#061727",rC={10:XA,20:qA,30:ZA,40:$A,50:KA,60:QA,70:JA,80:tC,90:eC,100:nC},iC="#d9fbfb",oC="#9ef0f0",aC="#3ddbd9",sC="#08bdba",uC="#009d9a",cC="#007d79",lC="#005d5d",hC="#004144",fC="#022b30",pC="#081a1c",dC={10:iC,20:oC,30:aC,40:sC,50:uC,60:cC,70:lC,80:hC,90:fC,100:pC},vC="#defbe6",gC="#a7f0ba",mC="#6fdc8c",yC="#42be65",_C="#24a148",bC="#198038",wC="#0e6027",xC="#044317",OC="#022d0d",SC="#071908",EC={10:vC,20:gC,30:mC,40:yC,50:_C,60:bC,70:wC,80:xC,90:OC,100:SC},TC="#f2f4f8",MC="#dde1e6",AC="#c1c7cd",CC="#a2a9b0",PC="#878d96",kC="#697077",DC="#4d5358",LC="#343a3f",RC="#21272a",IC="#121619",jC={10:TC,20:MC,30:AC,40:CC,50:PC,60:kC,70:DC,80:LC,90:RC,100:IC},NC="#f4f4f4",VC="#e0e0e0",GC="#c6c6c6",BC="#a8a8a8",UC="#8d8d8d",zC="#6f6f6f",HC="#525252",FC="#393939",WC="#262626",YC="#161616",XC={10:NC,20:VC,30:GC,40:BC,50:UC,60:zC,70:HC,80:FC,90:WC,100:YC},qC="#f7f3f2",ZC="#e5e0df",$C="#cac5c4",KC="#ada8a8",QC="#8f8b8b",JC="#736f6f",tP="#565151",eP="#3c3838",nP="#272525",rP="#171414",iP={10:qC,20:ZC,30:$C,40:KC,50:QC,60:JC,70:tP,80:eP,90:nP,100:rP},oP="#fdd13a",aP={black:{100:KM},blue:YA,coolGray:jC,cyan:rC,gray:XC,green:EC,magenta:SA,orange:{40:nA},purple:IA,red:pA,teal:dC,warmGray:iP,white:{0:QM},yellow:{20:oP,30:tA}};var sP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uP=function(t){if(!t)return null;for(var e=0,n=Object.keys(aP);e<n.length;e++)for(var r=n[e],i=aP[r],o=0,a=Object.keys(i);o<a.length;o++){var s=a[o],u=i[s];if(u===t)return s}return null},cP=function(){var t,e=rb(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=gd(n);if(r&&(t=uP(r?r.hex():null)),null===t||void 0===t){var i=Md(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},lP=0,hP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-hover-treemap")).attr("opacity",(function(t){return t.parent.data.name===n.datum()["name"]?1:.3}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-mouseout-treemap")).attr("opacity",1)},e}return sP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=Mf.getProperty(window,"location"),s=lb.getSVGElementSize(this.parent,{useAttrs:!0}),u=s.width,c=s.height,l=IM({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(Hp(r,(function(t){return Hp(t.children,(function(t){return t.value}))})),$M().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=this.services.transitions,p=n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name}));p.exit().attr("opacity",0).remove();var d=p.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return lP++})),v=d.merge(p);v.attr("data-name","leaf").transition(f.getTransition("treemap-group-update",t)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var g=v.selectAll("rect.leaf").data((function(t){return[t]}));g.exit().attr("width",0).attr("height",0).remove();var m=g.enter().append("rect").classed("leaf",!0);m.merge(g).attr("width",0).attr("height",0).attr("id",(function(){var t=rb(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition(this.services.transitions.getTransition("treemap-leaf-update-enter",t)).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})),v.selectAll("clipPath").data((function(t){return!0!==t.data.showLabel?[]:[1]}),(function(t){return t})).join((function(t){t.append("clipPath").attr("id",(function(){var t=rb(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=rb(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),v.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=Md(e.model.getFillColor(n.data.name));return[{text:t.data.name,color:r.l<.5?"white":"black"}]}),(function(t){return t})).join((function(t){var e=t.append("text").text((function(t){return t.text})).style("fill",cP).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=rb(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",cP)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e){var n=rb(this),r=getComputedStyle(this,null).getPropertyValue("fill"),i=e;while(i.depth>1)i=i.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).style("fill",(function(t){return gd(r).darker(.7).toString()})),t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:n,items:[{color:r,label:i.data.name,bold:!0},{label:e.data.name,value:e.data.value}]}),t.services.events.dispatchEvent(Y.Treemap.LEAF_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Treemap.LEAF_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Treemap.LEAF_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this);n.classed("hovered",!1);var r=e;while(r.depth>1)r=r.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).style("fill",null),t.services.events.dispatchEvent(Y.Treemap.LEAF_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE,{hoveredElement:n})}))},e}(wS),fP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return fP(e,t),e.prototype.render=function(){lb.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||zf.default.size).attr("height",this.configs.size||zf.default.size).attr("opacity",0)},e}(wS),dP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vP=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===I.ROW_REVERSE||a.configs.direction===I.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return dP(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Mf.getProperty(t,"data","growth","x");return e===j.PREFERRED||e===j.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Mf.getProperty(t,"data","growth","x");return e===j.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=lb.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=IM({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===I.ROW||this.configs.direction===I.ROW_REVERSE?zM:HM;$M().tile(s).size([i,o])(a);var u=this.configs.direction===I.ROW||this.configs.direction===I.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(rb(n));var i=Mf.getProperty(e,"data","growth","x");i!==j.PREFERRED&&i!==j.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=Mf.getProperty(t,"data","growth","x"),n=lb.getSVGElementSize(rb(this),{useBBox:!0});if("legend"===t.data.id){var r=lb.getSVGElementSize(rb(this),{useAttrs:!0});r.height<40&&(n.height=r.height)}if(e===j.PREFERRED){var a=u?n.width:n.height,s=u?i:o;t.data.size=a/s*100}})),c.exit().remove(),this.children.filter((function(t){var e=Mf.getProperty(t,"growth","x");return e===j.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=IM({children:this.children}).sum((function(t){return t.size})),$M().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=Mf.getProperty(e,"data","growth","x");r===j.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(wS),gP=Array.prototype.slice,mP=function(t){return t},yP=1,_P=2,bP=3,wP=4,xP=1e-6;function OP(t){return"translate("+(t+.5)+",0)"}function SP(t){return"translate(0,"+(t+.5)+")"}function EP(t){return function(e){return+t(e)}}function TP(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function MP(){return!this.__axis}function AP(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===yP||t===wP?-1:1,c=t===wP||t===_P?"x":"y",l=t===yP||t===bP?OP:SP;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):mP:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?TP:EP)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),x=w.exit(),O=w.enter().append("g").attr("class","tick"),S=w.select("line"),E=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(O),S=S.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),E=E.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===yP?"0em":t===bP?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),S=S.transition(h),E=E.transition(h),x=x.transition(h).attr("opacity",xP).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",xP).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),x.remove(),b.attr("d",t===wP||t==_P?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),w.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),S.attr(c+"2",u*o),E.attr(c,u*d).text(p),_.filter(MP).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===_P?"start":t===wP?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=gP.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:gP.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:gP.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function CP(t){return AP(yP,t)}function PP(t){return AP(_P,t)}function kP(t){return AP(bP,t)}function DP(t){return AP(wP,t)}var LP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RP=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return LP(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.model.getOptions(),a=Mf.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=lb.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=lb.appendOrSelect(s,"g.axis."+r);r===M.BOTTOM||r===M.TOP?(e=this.configs.axes[M.LEFT]?this.margins.left:0,n=this.configs.axes[M.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===k.LABELS?p.rangeRound([e,n]):p.range([e,n]),r){case M.LEFT:f=DP;break;case M.BOTTOM:f=kP;break;case M.RIGHT:f=PP;break;case M.TOP:f=CP;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=lb.appendOrSelect(h,"g.ticks");d||(v.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP),v.attr("aria-label",r+" ticks"));var g=lb.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=Mf.getProperty(i,"axes",r),y=this.scaleType===k.TIME||m.scaleType===k.TIME,_=r===M.LEFT||r===M.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),a){var w=Mf.getProperty(m,"scaleType"),x=Mf.getProperty(i,"data","loading"),O=Mf.getProperty(m,"ticks","number"),S=Mf.getProperty(m,"ticks","values"),E=Mf.getProperty(m,"truncation","type"),T=Mf.getProperty(m,"truncation","threshold"),A=Mf.getProperty(m,"truncation","numCharacter"),P=null!==O,D=Mf.getProperty(i,"timeScale"),L=lb.appendOrSelect(g,"g.tick"),R=lb.appendOrSelect(L,"text").text("0"),I=lb.getSVGElementSize(R.node(),{useBBox:!0}).height;L.remove();var j,N=this.scaleType||m.scaleType||k.LINEAR,V=f(p).tickSizeOuter(0);if(p.ticks){var G=void 0;if(P?G=O:(G=jf.ticks.number,_&&(G=this.getNumberOfFittingTicks(l,I,jf.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(G=0),V.ticks(G),y)if(p.ticks(G).length){var B=Mf.getProperty(i,"timeScale","addSpaceOnEdges"),U=Mf.getProperty(i,"axes",r,"domain"),z=void 0,H=p.copy();B&&!U&&H.nice(G),z=H.ticks(G),B&&z.length>2&&!U&&(z.splice(z.length-1,1),z.splice(0,1)),V.tickValues(z)}else V.tickValues([])}var W=Mf.getProperty(m,"ticks","formatter");if(y){var Y=aT(V.tickValues());j=null===W?function(t,e){return nT(t,e,Y,D)}:function(t,e){var n=nT(t,e,Y,D);return W(t,e,n)}}else null===W?N===k.LINEAR&&(j=function(t){return t.toLocaleString()}):j=W;V.tickFormat(j);var X,q=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=q[0],$=q[1];if(S){if(y)S.forEach((function(t,e){void 0===t.getTime&&(S[e]=new Date(t))})),X=S.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date($).getTime()}));else if(w===k.LABELS){var K=this.services.cartesianScales.getScaleByPosition(r).domain();X=S.filter((function(t){return K.includes(t)}))}else X=S.filter((function(t){return t>=Z&&t<=$}));V.tickValues(X)}switch(r){case M.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case M.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case M.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case M.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(m.title){var J=lb.appendOrSelect(h,"text.axis-title").html(Q||x?"":m.title);switch(r){case M.LEFT:J.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+l+")").style("text-anchor","middle");break;case M.RIGHT:J.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case M.TOP:var tt=lb.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+tt/2+")").style("text-anchor","middle");break}}if(y){var et=aT(V.tickValues()),nt=D.showDayName,rt=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(V);var it=rt.selectAll(".tick").data(V.tickValues(),p).order().select("text");it.style("font-weight",(function(t,e){return eT(t,e,et,nt)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(V):v.call(V);if(g.call(V),r===M.BOTTOM||r===M.TOP){var ot=!1,at=Mf.getProperty(m,"ticks","rotation");if(at===F.ALWAYS)ot=!0;else if(at===F.NEVER)ot=!1;else if(!at||at===F.AUTO)if(p.step){var st=g.selectAll("g.tick text").nodes();ot=st.some((function(t){return lb.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ut=Mf.getProperty(m,"ticks","rotateIfSmallerThan")||jf.ticks.rotateIfSmallerThan,ct=y?V.tickValues().length:p.ticks().length,lt=c/ct/2;ot=y?lt<2*ut:lt<ut}ot?(P||(V.ticks(this.getNumberOfFittingTicks(c,I,jf.ticks.horizontalSpaceRatio)),g.call(V),v.call(V)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===M.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),E!==C.NONE&&w===k.LABELS&&!S){var ht=this.model.getDataValuesGroupedByKeys();if(ht.length>0){var ft=ht.map((function(t){return t.sharedStackKey})),pt=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(pt),h.selectAll("g.tick text").data(ft).text((function(t){return t.length>T?Mf.truncateLabel(t,E,A):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(ft).text((function(t){return t.length>T?Mf.truncateLabel(t,E,A):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(ft)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=lb.appendOrSelect(t,"g.axis."+e),r=this.model.getOptions(),i=Mf.getProperty(r,"axes",e),o=Mf.getProperty(i,"scaleType"),a=Mf.getProperty(i,"truncation","threshold"),s=(this.scaleType===k.TIME||(i.scaleType,k.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(Y.Axis.LABEL_MOUSEOVER,{element:rb(this),datum:t}),o===k.LABELS&&t.length>a&&s.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:rb(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(Y.Axis.LABEL_MOUSEMOVE,{element:rb(this),datum:t}),o===k.LABELS&&t.length>a&&s.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(Y.Axis.LABEL_CLICK,{element:rb(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(Y.Axis.LABEL_MOUSEOUT,{element:rb(this),datum:t}),o===k.LABELS&&s.services.events.dispatchEvent(Y.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return Mf.clamp(r,2,jf.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=lb.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(wS),IP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jP=function(){return jP=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},jP.apply(this,arguments)},NP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return IP(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(M),i=Mf.getProperty(this.model.getOptions(),"axes");r.forEach((function(t){var e=i[M[t]];e&&(n[M[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=M[t];if(e.configs.axes[n]&&!e.children[n]){var r=new RP(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=lb.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(i.getTitleRef().empty()?r=0:(r=lb.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a!==M.LEFT&&a!==M.RIGHT||(r+=5)),a){case M.TOP:o.top=l+r;break;case M.BOTTOM:o.bottom=l+r;break;case M.LEFT:o.left=c+r;break;case M.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(Y.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=Mf.getProperty(this.model.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new hT(n.model,n.services,jP(jP({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(wS);var VP=function(){yf.preventDefault(),yf.stopImmediatePropagation()},GP=function(t){var e=t.document.documentElement,n=rb(t).on("dragstart.drag",VP,!0);"onselectstart"in e?n.on("selectstart.drag",VP,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function BP(t,e){var n=t.document.documentElement,r=rb(t).on("dragstart.drag",null);e&&(r.on("click.drag",VP,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var UP=function(t,e,n){arguments.length<3&&(n=e,e=Af().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Cf(t,r);return null},zP=function(t){return function(){return t}},HP=function(t,e,n){this.target=t,this.type=e,this.selection=n};function FP(){yf.stopImmediatePropagation()}var WP=function(){yf.preventDefault(),yf.stopImmediatePropagation()},YP={name:"drag"},XP={name:"space"},qP={name:"handle"},ZP={name:"center"};function $P(t){return[+t[0],+t[1]]}function KP(t){return[$P(t[0]),$P(t[1])]}function QP(t){return function(e){return UP(e,yf.touches,t)}}var JP={name:"x",handles:["w","e"].map(ak),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},tk={name:"y",handles:["n","s"].map(ak),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},ek=(["n","w","e","s","nw","ne","sw","se"].map(ak),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),nk={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},rk={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ik={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ok={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ak(t){return{type:t}}function sk(){return!yf.ctrlKey&&!yf.button}function uk(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ck(){return navigator.maxTouchPoints||"ontouchstart"in this}function lk(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function hk(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function fk(){return pk(JP)}function pk(t){var e,n=uk,r=sk,i=ck,o=!0,a=wb("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([ak("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ek.overlay).merge(n).each((function(){var t=lk(this).extent;rb(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([ak("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ek.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ek[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=rb(this),e=lk(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||yf.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=yf.target.__data__.type,_="selection"===(o&&yf.metaKey?y="overlay":y)?YP:o&&yf.altKey?ZP:qP,b=t===tk?null:ik[y],w=t===JP?null:ok[y],x=lk(m),O=x.extent,S=x.selection,E=O[0][0],T=O[0][1],M=O[1][0],A=O[1][1],C=0,P=0,k=b&&w&&o&&yf.shiftKey,D=yf.touches?QP(yf.changedTouches[0].identifier):Pf,L=D(m),R=L,I=l(m,arguments,!0).beforestart();"overlay"===y?(S&&(d=!0),x.selection=S=[[n=t===tk?E:L[0],a=t===JP?T:L[1]],[u=t===tk?M:n,f=t===JP?A:a]]):(n=S[0][0],a=S[0][1],u=S[1][0],f=S[1][1]),i=n,s=a,h=u,p=f;var j=rb(m).attr("pointer-events","none"),N=j.selectAll(".overlay").attr("cursor",ek[y]);if(yf.touches)I.moved=G,I.ended=U;else{var V=rb(yf.view).on("mousemove.brush",G,!0).on("mouseup.brush",U,!0);o&&V.on("keydown.brush",z,!0).on("keyup.brush",H,!0),GP(yf.view)}FP(),ow(m),c.call(m),I.start()}function G(){var t=D(m);!k||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,WP(),B()}function B(){var t;switch(C=R[0]-L[0],P=R[1]-L[1],_){case XP:case YP:b&&(C=Math.max(E-n,Math.min(M-u,C)),i=n+C,h=u+C),w&&(P=Math.max(T-a,Math.min(A-f,P)),s=a+P,p=f+P);break;case qP:b<0?(C=Math.max(E-n,Math.min(M-n,C)),i=n+C,h=u):b>0&&(C=Math.max(E-u,Math.min(M-u,C)),i=n,h=u+C),w<0?(P=Math.max(T-a,Math.min(A-a,P)),s=a+P,p=f):w>0&&(P=Math.max(T-f,Math.min(A-f,P)),s=a,p=f+P);break;case ZP:b&&(i=Math.max(E,Math.min(M,n-C*b)),h=Math.max(E,Math.min(M,u+C*b))),w&&(s=Math.max(T,Math.min(A,a-P*w)),p=Math.max(T,Math.min(A,f+P*w)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in nk&&N.attr("cursor",ek[y=nk[y]])),p<s&&(w*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in rk&&N.attr("cursor",ek[y=rk[y]])),x.selection&&(S=x.selection),v&&(i=S[0][0],h=S[1][0]),g&&(s=S[0][1],p=S[1][1]),S[0][0]===i&&S[0][1]===s&&S[1][0]===h&&S[1][1]===p||(x.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(FP(),yf.touches){if(yf.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else BP(yf.view,d),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);j.attr("pointer-events","all"),N.attr("cursor",ek.overlay),x.selection&&(S=x.selection),hk(S)&&(x.selection=null,c.call(m)),I.end()}function z(){switch(yf.keyCode){case 16:k=b&&w;break;case 18:_===qP&&(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=ZP,B());break;case 32:_!==qP&&_!==ZP||(b<0?u=h-C:b>0&&(n=i-C),w<0?f=p-P:w>0&&(a=s-P),_=XP,N.attr("cursor",ek.selection),B());break;default:return}WP()}function H(){switch(yf.keyCode){case 16:k&&(v=g=k=!1,B());break;case 18:_===ZP&&(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=qP,B());break;case 32:_===XP&&(yf.altKey?(b&&(u=h-C*b,n=i+C*b),w&&(f=p-P*w,a=s+P*w),_=ZP):(b<0?u=h:b>0&&(n=i),w<0?f=p:w>0&&(a=s),_=qP),N.attr("cursor",ek[y]),B());break;default:return}WP()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=KP(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=Kd(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();ow(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){Tf(new HP(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:zP(KP(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:zP(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:zP(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var dk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return dk(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=lb.appendOrSelect(r,"svg.chart-grid-backdrop"),a=lb.appendOrSelect(o,"g."+this.type),s=lb.appendOrSelect(a,this.selectionSelector),u=lb.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=lb.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===k.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=yf.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=cy().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},w=function(){var t=yf.selection;null!==t&&(b(t[0],t[1]),a.call(x.move,null),g.style("display","none"))},x=fk().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",w);a.call(x);var O=this.services.zoom.getZoomRatio();o.on("click",(function(){if(yf.shiftKey){var t=Pf(a.node())[0],e=t-c*O/2;e<0&&(e=0);var n=t+c*O/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(wS),gk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mk=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return gk(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=lb.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=lb.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(wS),yk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_k=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return yk(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=Mf.getProperty(this.model.getOptions(),"grid","x","enabled"),n=Mf.getProperty(this.model.getOptions(),"grid","y","enabled");(e||n)&&(this.drawBackdrop(e,n),e&&(lb.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(lb.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=kP(r).tickSizeInner(-n).tickSizeOuter(0),o=Mf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=DP(r).tickSizeInner(-n).tickSizeOuter(0),o=Mf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(Mf.getTranslationValues(t).tx)-Number(Mf.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+Mf.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+Mf.getTranslationValues(s).tx-+Mf.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=lb.getSVGElementSize(u).width;o=c-+Mf.getTranslationValues(a).tx}else o=+Mf.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=Mf.getProperty(this.model.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=Mf.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=lb.appendOrSelect(n,"svg.chart-grid-backdrop");var h=lb.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",s-a).attr("height",c-l).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){this.model.getOptions();t.selectAll("text").remove(),t.select(".domain").remove()},e}(wS),bk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wk=5;function xk(t,e){return t>e-wk&&t<e+wk}var Ok=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=Mf.getProperty(e.model.getOptions(),"grid","x","enabled"),e.isYGridEnabled=Mf.getProperty(e.model.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return bk(e,t),e.prototype.render=function(){var t=Mf.getProperty(this.model.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===P.HORIZONTAL?r:n,s=lb.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=lb.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return xk(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(Y.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=this.services.cartesianScales.getRangeIdentifier(),y=g.map((function(t){return t.originalData})).filter((function(t){var e=t[m];return null!==e&&void 0!==e})),_=g.map((function(t){return t.domainValue})),b=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return _.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!Mf.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(Y.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(y)}),s.attr("opacity",1);var w=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",w.domainValue).attr("y2",w.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",w.domainValue).attr("x2",w.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=lb.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(Y.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=Pf(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=Mf.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=lb.appendOrSelect(t,"svg.chart-grid-backdrop");lb.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(wS),Sk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ek=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sk(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e.prototype.hideRuler=function(){var t=this.parent,e=lb.appendOrSelect(t,"g.ruler");this.services.events.dispatchEvent(Y.Tooltip.HIDE),e.attr("opacity",0)},e}(Ok),Tk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return Tk(e,t),e.prototype.init=function(){var t=this,e=this.model.getOptions(),n=rb(this.services.domUtils.getHolder()),r=Mf.getProperty(e,"style","prefix");this.overflowMenu=lb.appendOrSelect(n,"div."+ab.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(Y.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(Y.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=Mf.getProperty(this.model.getOptions(),"data","loading"),n=Wf.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),a=-6;i.attr("transform","translate(0, "+(r+a)+")");var s=lb.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+a+n;var c=lb.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",Wf.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)lb.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",Wf.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=lb.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=lb.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=lb.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+Wf.iconPadding).attr("y",Wf.iconPadding).attr("width",Wf.iconSize).attr("height",Wf.iconSize).attr("viewBox","0 0 32 32").attr("role",o.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",o.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(yf.key&&"Enter"===yf.key||" "===yf.key)&&(yf.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(Y.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(Y.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=rb("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=rb("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=rb("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===yf.key?n.clickFunction():"ArrowUp"===yf.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===yf.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}yf.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+o.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+o.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=Mf.getProperty(this.model.getOptions(),"toolbar","numberOfIcons"),n=Mf.getProperty(this.model.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case W.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case W.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case W.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case W.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case W.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case W.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(wS),Ak=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ck=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return Ak(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeScale().domain(),n=e[0],r=e[1],i=n>0&&r<0||n<0&&r>0;if(i){var o=this.getContainerSVG(),a=this.services.cartesianScales.getDomainScale().range(),s=a[0],u=a[1],c=+this.services.cartesianScales.getRangeValue(0)+.5;if(!c){var l=this.services.cartesianScales.getRangeAxisPosition(),h=this.services.cartesianScales.getScaleByPosition(l);c=h.range()[0]}var f=Mf.flipSVGCoordinatesBasedOnOrientation({x0:s,x1:u,y0:c,y1:c},this.services.cartesianScales.getOrientation()),p=lb.appendOrSelect(o,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}},e}(wS),Pk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=fk(),e}return Pk(e,t),e.prototype.init=function(){this.services.events.addEventListener(Y.ZoomBar.UPDATE,this.render.bind(this));var t=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(M.TOP),i=this.services.zoom.isZoomBarLocked(M.TOP),o=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),a=Yf.height[o],s=lb.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=lb.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);lb.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",Yf.spacerHeight).attr("opacity",1).attr("fill","none");if(o===A.GRAPH_VIEW?lb.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%"):o===A.SLIDER_VIEW&&lb.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2),!r){var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===k.TIME){var v=this.services.zoom.getZoomBarData();if(Mf.isEmpty(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),m===y||m&&y&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()||this.model.set({initialZoomDomain:y,zoomDomain:y||g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(Dp(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");if(o===A.GRAPH_VIEW){this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId);var b=CT()([[u,a],[s,a]]);lb.appendOrSelect(l,"path.zoom-bg-baseline").attr("d",b)}this.addBrushEventListener(_,u,s);var w=lb.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())w.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var x=_.map((function(t){return e.xScale(t)}));x[1]-x[0]<this.MIN_SELECTION_DIFF||(w.call(this.brush.move,x),this.updateBrushHandle(this.getContainerSVG(),x,_))}i&&(this.brush.filter((function(){return!1})),w.selectAll("rect").attr("cursor","auto"))}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=yf.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),a=Yf.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=yf.sourceEvent&&("mousemove"===yf.sourceEvent.type||"mouseup"===yf.sourceEvent.type||"mousedown"===yf.sourceEvent.type||"touchstart"===yf.sourceEvent.type||"touchmove"===yf.sourceEvent.type||"touchend"===yf.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===yf.type?i=Y.ZoomBar.SELECTION_START:"brush"===yf.type?i=Y.ZoomBar.SELECTION_IN_PROGRESS:"end"===yf.type&&(i=Y.ZoomBar.SELECTION_END),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=Yf.handleWidth,o=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),a=Yf.height[o],s=-i/2,u=Yf.handleBarWidth,c=o===A.GRAPH_VIEW?Yf.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===A.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),n=Yf.height[e],r=(lb.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");lb.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"type"),p=Yf.height[f],d=PT().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=lb.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=lb.appendOrSelect(t,"clipPath").attr("id",e);lb.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=Mf.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(Y.ZoomBar.UPDATE,this.render.bind(this))},e}(wS),Dk=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Lk=function(){function t(t,e){this.services={domUtils:lb,events:fb,gradientUtils:Tx,transitions:Sx},this.model=new by(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!0}),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener(Y.Model.UPDATE,(function(t){var e=!!Mf.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(Y.Chart.RESIZE,(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent(Y.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new pT(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"legend",components:[new OS(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},r={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=I.COLUMN;if(i){var a=Mf.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"right"===a?(o=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):"bottom"===a&&(o=I.COLUMN_REVERSE)}var s={id:"spacer",components:[new pP(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},u={id:"full-frame",components:[new vP(this.model,this.services,Dk(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:j.STRETCH,y:j.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new pP(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};c.push(l)}return c.push(u),[new mT(this.model,this.services),new vP(this.model,this.services,c,{direction:I.COLUMN})]},t}(),Rk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ik=function(t){function e(e){return t.call(this,e)||this}return Rk(e,t),e.prototype.setData=function(e){var n;return e&&(n=t.prototype.setData.call(this,e),Mf.getProperty(this.getOptions(),"zoomBar","top","enabled")&&this.setZoomBarData()),n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(Mf.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=Mf.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(M).forEach((function(t){var r=M[t],i=e.axes[r];if(i&&i.scaleType===k.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){null===Mf.getProperty(t,e,"getTime")&&(t[e]=new Date(t[e]))}))})),t},e.prototype.sanitize=function(e){return e=t.prototype.sanitize.call(this,e),e=this.sanitizeDateValues(e),e},e}(by),jk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nk=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Vk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:cO,curves:yS,zoom:bS}),r.model=new Ik(r.services),r}return jk(e,t),e.prototype.getAxisChartComponents=function(t){var e=Mf.getProperty(this.model.getOptions(),"zoomBar",M.TOP,"enabled"),n=Mf.getProperty(this.model.getOptions(),"toolbar","enabled");this.services.cartesianScales.findDomainAndRangeAxes();var r=this.services.cartesianScales.getMainXAxisPosition(),i=Mf.getProperty(this.model.getOptions(),"axes",r,"scaleType"),o=e&&r===M.BOTTOM&&i===k.TIME,a=this.services.zoom.isZoomBarLocked(M.TOP),s=!!this.model.getOptions().title,u={id:"title",components:[new pT(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},c={id:"toolbar",components:[new Mk(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},l={id:"header",components:[new vP(this.model,this.services,Nk([u],n?[c]:[]),{direction:I.ROW})],growth:{x:j.PREFERRED,y:j.FIXED}},h={id:"legend",components:[new OS(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}};o&&!a&&t.push(new mk(this.model,this.services),new vk(this.model,this.services));var f={id:"graph-frame",components:t,growth:{x:j.STRETCH,y:j.FIXED}},p=!1!==this.model.getOptions().legend.enabled,d=I.COLUMN;if(p){var v=Mf.getProperty(this.model.getOptions(),"legend","position");v===D.LEFT?(d=I.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===D.RIGHT?(d=I.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=R.VERTICAL)):v===D.BOTTOM&&(d=I.COLUMN_REVERSE)}var g={id:"spacer",components:[new pP(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},m={id:"full-frame",components:[new vP(this.model,this.services,Nk(p?[h]:[],p?[g]:[],[f]),{direction:d})],growth:{x:j.STRETCH,y:j.FIXED}},y={id:"zoom-bar",components:[new kk(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},_=[];if(s||n){_.push(l);var b={id:"spacer",components:[new pP(this.model,this.services,n?{size:15}:void 0)],growth:{x:j.PREFERRED,y:j.FIXED}};_.push(b)}return o&&_.push(y),_.push(m),[new _T(this.model,this.services),new vP(this.model,this.services,_,{direction:I.COLUMN})]},e}(Lk),Gk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(Mf.clone(mp.areaChart),n.options)),r.init(e,n),r}return Gk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ok(this.model,this.services),new qT(this.model,this.services),new DT(this.model,this.services),new FT(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0})],e=this.getAxisChartComponents(t);return e},e}(Vk),Uk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.stackedAreaChart,n.options)),r.init(e,n),r}return Uk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ok(this.model,this.services),new RT(this.model,this.services),new qT(this.model,this.services,{stacked:!0}),new $T(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0})],e=this.getAxisChartComponents(t);return e},e}(Vk),Hk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.simpleBarChart,n.options)),r.init(e,n),r}return Hk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new VT(this.model,this.services),new Ck(this.model,this.services),new _M(this.model,this.services,{skeleton:V.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(Vk),Wk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.groupedBarChart,n.options)),r.init(e,n),r}return Wk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new BT(this.model,this.services),new Ck(this.model,this.services),new _M(this.model,this.services,{skeleton:V.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(Vk),Xk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.stackedBarChart,n.options)),r.init(e,n),r}return Xk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ek(this.model,this.services),new zT(this.model,this.services),new _M(this.model,this.services,{skeleton:V.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(Vk),Zk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.bubbleChart,n.options)),r.init(e,n),r}return Zk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ok(this.model,this.services),new YT(this.model,this.services),new _M(this.model,this.services,{skeleton:V.GRID})],e=this.getAxisChartComponents(t);return e},e}(Vk),Kk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qk=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.lineChart,n.options)),r.init(e,n),r}return Kk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ok(this.model,this.services),new qT(this.model,this.services),new FT(this.model,this.services,{handleThresholds:!0}),new wM(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(Vk),Jk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tD=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.scatterChart,n.options)),r.init(e,n),r}return Jk(e,t),e.prototype.getComponents=function(){var t=[new NP(this.model,this.services),new _k(this.model,this.services),new Ok(this.model,this.services),new FT(this.model,this.services),new _M(this.model,this.services,{skeleton:V.GRID})],e=this.getAxisChartComponents(t);return e},e}(Vk),eD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nD=function(t){function e(e){return t.call(this,e)||this}return eD(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(by),rD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iD=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new nD(i.services),r?i:(i.model.setOptions(Mf.mergeDefaultChartOptions(mp.pieChart,n.options)),i.init(e,n),i)}return rD(e,t),e.prototype.getComponents=function(){var t=[new lM(this.model,this.services),new _M(this.model,this.services,{skeleton:V.PIE})],e=this.getChartComponents(t);return e},e}(Lk),oD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aD=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.donutChart,n.options)),r.init(e,n),r}return oD(e,t),e.prototype.getComponents=function(){var t=[new gM(this.model,this.services),new _M(this.model,this.services,{skeleton:V.DONUT})],e=this.getChartComponents(t);return e},e}(iD),sD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uD=function(t){function e(e){return t.call(this,e)||this}return sD(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=Nf.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=Mf.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=Mf.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(by),cD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return cD(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getOptions(),a=this.model.getDisplayData(),s=this.model.getStatus(),u=lb.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=Iv().domain([0,100]).range([0,u]);lb.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",Mf.getProperty(i,"meter","height"));var h=a.value>=100,f=r.selectAll("rect.value").data([a]),p=null==s||n.model.isUserProvidedColorScaleValid()?"":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",Mf.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).attr("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=Mf.getProperty(i,"meter","peak"),v=null!==d&&d<a.value?a.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",Mf.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(wS),hD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fD=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new uD(r.services),r.model.setOptions(Mf.merge(Mf.clone(mp.meterChart),n.options)),r.init(e,n),r}return hD(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new lD(this.model,this.services)],growth:{x:j.STRETCH,y:j.FIXED}},e={id:"title",components:[new vT(this.model,this.services)],growth:{x:j.PREFERRED,y:j.FIXED}},n={id:"spacer",components:[new pP(this.model,this.services,{size:8})],growth:{x:j.PREFERRED,y:j.FIXED}},r=[new vP(this.model,this.services,[e,n,t],{direction:I.COLUMN})],i=this.getChartComponents(r);return i},e}(Lk);function pD(t){var e=dD(gD(t),360);return vD(e,[0,10])||vD(e,[350,0])?{textAnchor:G.START,dominantBaseline:B.MIDDLE}:vD(e,[10,80])?{textAnchor:G.START,dominantBaseline:B.HANGING}:vD(e,[80,100])?{textAnchor:G.MIDDLE,dominantBaseline:B.HANGING}:vD(e,[100,170])?{textAnchor:G.END,dominantBaseline:B.HANGING}:vD(e,[170,190])?{textAnchor:G.END,dominantBaseline:B.MIDDLE}:vD(e,[190,260])?{textAnchor:G.END,dominantBaseline:B.BASELINE}:vD(e,[260,280])?{textAnchor:G.MIDDLE,dominantBaseline:B.BASELINE}:{textAnchor:G.START,dominantBaseline:B.BASELINE}}function dD(t,e){return(t%e+e)%e}function vD(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function gD(t){return t*(180/Math.PI)}function mD(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function yD(t,e){return e*Math.sin(t-Math.PI/2)}var _D=wD(pO);function bD(t){this._curve=t}function wD(t){function e(e){return new bD(t(e))}return e._curve=t,e}function xD(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(wD(t)):e()._curve},t}bD.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var OD,SD,ED,TD=function(){return xD(CT().curve(_D))},MD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=lb.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=lb.appendOrSelect(n,"text").text(t),i=lb.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.model.getOptions(),r=Mf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Mf.getProperty(n,"data","groupMapsTo"),s=Mf.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return Mf.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.model.getOptions(),r=Mf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=Mf.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:Mf.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?Uf.opacity.unselected:Uf.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Uf.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",Uf.opacity.selected).style("stroke-opacity",1)},e}return MD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=lb.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,a=r.height,s=this.model.getData(),u=this.model.getDisplayData(),c=this.model.getGroupedData(),l=this.model.getOptions(),h=Mf.getProperty(l,"radar","axes"),f=h.angle,p=h.value,d=Mf.getProperty(l,"data","groupMapsTo"),v=Uf,g=v.xLabelPadding,m=v.yLabelPadding,y=v.yTicksNumber,_=v.minRange,b=v.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[f]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[d]})))),this.displayDataNormalized=this.normalizeFlatData(u),this.groupedDataNormalized=this.normalizeGroupedData(c);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,x=2*(w+m),O=Math.min(i,a),S=O-x,E=S/2;if(!(E<=0)){var M=$p().domain(this.displayDataNormalized.map((function(t){return t[f]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),A=Iv().domain([0,Up(this.displayDataNormalized.map((function(t){return t[p]})))]).range([_,E]).nice(y),C=A.ticks(y),P=function(t){return e.model.getFillColor(t)},k=TD().angle((function(t){return M(t[f])+Math.PI/2})).radius((function(t){return A(t[p])})).curve(gO),D=TD().angle(k.angle()).radius((function(t){return OD?OD(t[p]):_})).curve(k.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=yD(M(t),E);return n+r})),R=Up(L),I={x:R+g,y:a/2},j=lb.appendOrSelect(n,"g.y-axes").attr("role",o.GROUP),N=j.selectAll("path").data(C,(function(t){return t})),V=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[f]=e,n[p]=t,n}))};N.join((function(n){return n.append("path").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill","none").attr("d",(function(t){return D(V(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return k(V(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return k(V(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return k(V(t))})).attr("opacity",0).remove()}))}));var G=lb.appendOrSelect(n,"g.x-axes").attr("role",o.GROUP),B=G.selectAll("line").data(this.uniqueKeys,(function(t){return t}));B.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+Mf.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return mD(M(t),0,I).x})).attr("y1",(function(t){return mD(M(t),0,I).y})).attr("x2",(function(t){return mD(M(t),0,I).x})).attr("y2",(function(t){return mD(M(t),0,I).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return mD(M(t),A.range()[0],I).x})).attr("y1",(function(t){return mD(M(t),A.range()[0],I).y})).attr("x2",(function(t){return mD(M(t),A.range()[1],I).x})).attr("y2",(function(t){return mD(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return mD(M(t),A.range()[0],I).x})).attr("y1",(function(t){return mD(M(t),A.range()[0],I).y})).attr("x2",(function(t){return mD(M(t),A.range()[1],I).x})).attr("y2",(function(t){return mD(M(t),A.range()[1],I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var U=lb.appendOrSelect(n,"g.x-labels").attr("role",o.GROUP),z=U.selectAll("text").data(this.uniqueKeys);z.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return mD(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return mD(M(t),A.range()[1]+g,I).y})).style("text-anchor",(function(t){return pD(M(t)).textAnchor})).style("dominant-baseline",(function(t){return pD(M(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return mD(M(t),A.range()[1]+g,I).x})).attr("y",(function(t){return mD(M(t),A.range()[1]+g,I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var H=lb.appendOrSelect(n,"g.blobs").attr("role",o.GROUP),F=H.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));F.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+I.x+", "+I.y+")").attr("fill",(function(t){return P(t.name)})).style("fill-opacity",Uf.opacity.selected).attr("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return D(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return k(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL,T.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("fill",(function(t){return P(t.name)})).attr("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+I.x+", "+I.y+")").attr("d",(function(t){return k(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return k(t.data)})).attr("opacity",0).remove()}))}));var W=lb.appendOrSelect(n,"g.dots").attr("role",o.GROUP),Y=W.selectAll("circle").data(this.displayDataNormalized);Y.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[T.FILL],dataGroupName:t[d],originalClassName:Mf.kebabCase(t[f])})})).attr("cx",(function(t){return mD(M(t[f]),A(t[p]),I).x})).attr("cy",(function(t){return mD(M(t[f]),A(t[p]),I).y})).attr("r",0).attr("opacity",0).attr("fill",(function(t){return P(t[d])}));var X=lb.appendOrSelect(n,"g.x-axes-rect").attr("role",o.GROUP),q=X.selectAll("rect").data(this.uniqueKeys);q.join((function(t){return t.append("rect").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",I.x).attr("y",I.y-b/2).attr("width",A.range()[1]).attr("height",b).attr("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+gD(M(t))+", "+I.x+", "+I.y+")"}));var Z=lb.appendOrSelect(n,"g.y-labels").attr("role",o.GROUP),$=Z.selectAll("text").data(Dp(C));$.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return mD(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return mD(-Math.PI/2,A(t),I).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return mD(-Math.PI/2,A(t),I).x+m})).attr("y",(function(t){return mD(-Math.PI/2,A(t),I).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var K=Mf.getProperty(l,"radar","alignment"),Q=lb.getAlignmentOffset(K,n,this.getParent());n.attr("transform","translate("+Q+", 0)"),this.addEventListeners(),OD=A}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(Y.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(Y.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=Mf.getProperty(this.model.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=rb(this);t.services.events.dispatchEvent(Y.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+Mf.kebabCase(n)),o=t.parent.selectAll(".dots circle."+Mf.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",Uf.dotsRadius);var a=t.displayDataNormalized.filter((function(t){return t[e]===n})),s=t.model.getOptions(),u=s.data.groupMapsTo,c=Mf.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(Y.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[T.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=rb(this);t.services.events.dispatchEvent(Y.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(Y.Radar.X_AXIS_CLICK,{element:rb(this),datum:e})})).on("mouseout",(function(e){var n=rb(this),r=t.parent.select(".x-axes .x-axis-"+Mf.kebabCase(e)),i=t.parent.selectAll(".dots circle."+Mf.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(Y.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(Y.Tooltip.HIDE)}))},e}(wS),CD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PD=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(Mf.mergeDefaultChartOptions(mp.radarChart,n.options)),i.init(e,n),i)}return CD(e,t),e.prototype.getComponents=function(){var t=[new AD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Lk),kD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DD=function(t){function e(e){return t.call(this,e)||this}return kD(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(by),LD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RD=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new DD(r.services),r.model.setOptions(Mf.mergeDefaultChartOptions(mp.gaugeChart,n.options)),r.init(e,n),r}return LD(e,t),e.prototype.getComponents=function(){var t=[new dM(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Lk),ID=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jD=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Mf.mergeDefaultChartOptions(mp.treemapChart,n.options)),r.init(e,n),r}return ID(e,t),e.prototype.getComponents=function(){var t=[new hP(this.model,this.services)],e=this.getChartComponents(t);return e},e}(Lk),ND={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},VD=ND;function GD(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var BD=GD(VD,SD,ED,!1,null,null,null),UD=BD.exports,zD={name:"CcvAreaChart",extends:UD,mounted:function(){this.coreChart=new Bk(this.$el,{data:this.data,options:this.options})}},HD=zD,FD=GD(HD,O,S,!1,null,null,null),WD=FD.exports,YD=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},XD=[],qD={name:"CcvStackedAreaChart",extends:UD,mounted:function(){this.coreChart=new zk(this.$el,{data:this.data,options:this.options})}},ZD=qD,$D=GD(ZD,YD,XD,!1,null,null,null),KD=$D.exports,QD=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},JD=[],tL={name:"CcvSimpleBarChart",extends:UD,mounted:function(){this.coreChart=new Fk(this.$el,{data:this.data,options:this.options})}},eL=tL,nL=GD(eL,QD,JD,!1,null,null,null),rL=nL.exports,iL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},oL=[],aL={name:"CcvGroupedBarChart",extends:UD,mounted:function(){this.coreChart=new Yk(this.$el,{data:this.data,options:this.options})}},sL=aL,uL=GD(sL,iL,oL,!1,null,null,null),cL=uL.exports,lL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},hL=[],fL={name:"CcvStackedBarChart",extends:UD,mounted:function(){this.coreChart=new qk(this.$el,{data:this.data,options:this.options})}},pL=fL,dL=GD(pL,lL,hL,!1,null,null,null),vL=dL.exports,gL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},mL=[],yL={name:"CcvBubbleChart",extends:UD,mounted:function(){this.coreChart=new $k(this.$el,{data:this.data,options:this.options})}},_L=yL,bL=GD(_L,gL,mL,!1,null,null,null),wL=bL.exports,xL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},OL=[],SL={name:"CcvDonutChart",extends:UD,mounted:function(){this.coreChart=new aD(this.$el,{data:this.data,options:this.options})}},EL=SL,TL=GD(EL,xL,OL,!1,null,null,null),ML=TL.exports,AL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},CL=[],PL={name:"CcvGaugeChart",extends:UD,mounted:function(){this.coreChart=new RD(this.$el,{data:this.data,options:this.options})}},kL=PL,DL=GD(kL,AL,CL,!1,null,null,null),LL=DL.exports,RL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},IL=[],jL={name:"CcvLineChart",extends:UD,mounted:function(){this.coreChart=new Qk(this.$el,{data:this.data,options:this.options})}},NL=jL,VL=GD(NL,RL,IL,!1,null,null,null),GL=VL.exports,BL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},UL=[],zL={name:"CcvPieChart",extends:UD,mounted:function(){this.coreChart=new iD(this.$el,{data:this.data,options:this.options})}},HL=zL,FL=GD(HL,BL,UL,!1,null,null,null),WL=FL.exports,YL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},XL=[],qL={name:"CcvScatterChart",extends:UD,mounted:function(){this.coreChart=new tD(this.$el,{data:this.data,options:this.options})}},ZL=qL,$L=GD(ZL,YL,XL,!1,null,null,null),KL=$L.exports,QL=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},JL=[],tR={name:"CcvMeterChart",extends:UD,mounted:function(){this.coreChart=new fD(this.$el,{data:this.data,options:this.options})}},eR=tR,nR=GD(eR,QL,JL,!1,null,null,null),rR=nR.exports,iR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},oR=[],aR={name:"CcvRadarChart",extends:UD,mounted:function(){this.coreChart=new PD(this.$el,{data:this.data,options:this.options})}},sR=aR,uR=GD(sR,iR,oR,!1,null,null,null),cR=uR.exports,lR=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},hR=[],fR={name:"CcvTreemapChart",extends:UD,mounted:function(){this.coreChart=new jD(this.$el,{data:this.data,options:this.options})}},pR=fR,dR=GD(pR,lR,hR,!1,null,null,null),vR=dR.exports,gR=[WD,KD,rL,cL,vL,wL,ML,LL,GL,WL,KL,rR,cR,vR],mR={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=gR[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=gR[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvAreaChart",(function(){return WD})),n.d(e,"CcvStackedAreaChart",(function(){return KD})),n.d(e,"CcvSimpleBarChart",(function(){return rL})),n.d(e,"CcvGroupedBarChart",(function(){return cL})),n.d(e,"CcvStackedBarChart",(function(){return vL})),n.d(e,"CcvBubbleChart",(function(){return wL})),n.d(e,"CcvDonutChart",(function(){return ML})),n.d(e,"CcvGaugeChart",(function(){return LL})),n.d(e,"CcvLineChart",(function(){return GL})),n.d(e,"CcvPieChart",(function(){return WL})),n.d(e,"CcvScatterChart",(function(){return KL})),n.d(e,"CcvMeterChart",(function(){return rR})),n.d(e,"CcvRadarChart",(function(){return cR})),n.d(e,"CcvTreemapChart",(function(){return vR}));e["default"]=mR},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},2402:function(t,e){e.f=Object.getOwnPropertySymbols},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=S(0,0,0,0);function v(t){return parseFloat(t)||0}function g(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function y(t){var e=t.getBBox();return S(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!w(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return S(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function w(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?y(t):_(t):d}function O(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function S(t,e,n,r){return{x:t,y:e,width:n,height:r}}var E=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=t};E.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=O(e);f(this,{target:t,contentRect:n})},M=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};M.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new E(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(t){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new M(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){C.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:C}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,x){i(n,e,l);var O,S,E,T=function(t){if(t===p&&k)return k;if(!v&&t in C)return C[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,C=t.prototype,P=C[g]||C["@@iterator"]||p&&C[p],k=!v&&P||T(p),D="Array"==e&&C.entries||P;if(D&&(O=o(D.call(new t)),d!==Object.prototype&&O.next&&(h||o(O)===d||(a?a(O,d):"function"!=typeof O[g]&&u(O,g,b)),s(O,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(A=!0,k=function(){return P.call(this)}),h&&!x||C[g]===k||u(C,g,k),f[e]=k,p)if(S={values:T(y),keys:w?k:T(m),entries:T(_)},x)for(E in S)!v&&!A&&E in C||c(C,E,S[E]);else r({target:e,proto:!0,forced:v||A},S);return S}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[t]}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),w=r(d,v,3),x=a(b.length),O=0,S=g||s,E=e?S(p,x):n?S(p,0):void 0;x>O;O++)if((f||O in b)&&(m=b[O],y=w(m,O,_),t))if(e)E[O]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:u.call(E,m)}else if(l)return!1;return h?-1:c||l?l:E}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),x=n("ee58"),O=n("2402"),S=n("185a"),E=n("abdf"),T=n("e129"),M=n("5b12"),A=n("b8ba"),C=n("4cdd"),P=n("332c"),k=n("d687"),D=n("1d8a"),L=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),V=n("d054").forEach,G=P("hidden"),B="Symbol",U="prototype",z=L("toPrimitive"),H=N.set,F=N.getterFor(B),W=Object[U],Y=i.Symbol,X=o("JSON","stringify"),q=S.f,Z=E.f,$=x.f,K=T.f,Q=C("symbols"),J=C("op-symbols"),tt=C("string-to-symbol-registry"),et=C("symbol-to-string-registry"),nt=C("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(W,e);r&&delete W[e],Z(t,e,n),r&&t!==W&&Z(W,e,r)}:Z,at=function(t,e){var n=Q[t]=_(Y[U]);return H(n,{type:B,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,G)&&t[G][r]&&(t[G][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,G)||Z(t,G,y(1,{})),t[G][r]=!0),ot(t,r,n)):Z(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return V(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=K.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,G)&&this[G][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=q(n,r);return!i||!h(Q,r)||h(n,G)&&n[G][r]||(i.enumerable=!0),i}},pt=function(t){var e=$(g(t)),n=[];return V(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=$(e?J:g(t)),r=[];return V(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),n=function(t){this===W&&n.call(J,t),h(this,G)&&h(this[G],e)&&(this[G][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[U],"toString",(function(){return F(this).tag})),A(Y,"withoutSetter",(function(t){return at(D(t),t)})),T.f=ht,E.f=ut,S.f=ft,w.f=x.f=pt,O.f=dt,R.f=function(t){return at(L(t),t)},s&&(Z(Y[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),V(b(nt),(function(t){I(t)})),r({target:B,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),X){var vt=!u||l((function(){var t=Y();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,X.apply(null,i)}})}Y[U][z]||M(Y[U],z,Y[U].valueOf),j(Y,B),k[G]=!0},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
|
|
2
2
|
//# sourceMappingURL=charts-vue.umd.min.js.map
|